blob: ae6be9d535efaba14eeff86bab1fc1930e37cecf [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00003# Generated by GNU Autoconf 2.60 for llvm 3.1svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
565PACKAGE_STRING='llvm 3.1svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000694ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_DOXYGEN
696ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000697ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000699ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000700ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000701ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000711CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713NM
714ifGNUmake
715LN_S
716CMP
717CP
718DATE
719FIND
720MKDIR
721MV
722RANLIB
723AR
724RM
725SED
726TAR
727BINPWD
728GRAPHVIZ
729DOT
730FDP
731NEATO
732TWOPI
733CIRCO
734GV
735DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000736XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000737PERL
738HAVE_PERL
739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000743CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000744DOXYGEN
745GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000746GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747POD2HTML
748POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000749PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000750RUNTEST
751TCLSH
752ZIP
753OCAMLC
754OCAMLOPT
755OCAMLDEP
756OCAMLDOC
757GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000758HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000759INSTALL_LTDL_TRUE
760INSTALL_LTDL_FALSE
761CONVENIENCE_LTDL_TRUE
762CONVENIENCE_LTDL_FALSE
763LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000772SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
789LIBOBJS
790LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000791ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000799CXX
800CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000801CCC
802CPP'
John Criswell0157f502010-03-19 21:31:39 +0000803ac_subdirs_all='projects/llvm-gcc
804projects/test-suite
805projects/llvm-test
806projects/poolalloc
807projects/llvm-poolalloc
808projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000809projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000810projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-java
813projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000814projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000815projects/llvm-kernel
816tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000843# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000852includedir='${prefix}/include'
853oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000863
864ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000865ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000866for ac_option
867do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000870 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000871 ac_prev=
872 continue
873 fi
874
Reid Spencera773bd52006-08-04 18:18:08 +0000875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
John Criswell7a73b802003-06-30 21:59:07 +0000879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
Reid Spencera773bd52006-08-04 18:18:08 +0000906 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000907 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000909 datadir=$ac_optarg ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
John Criswell7a73b802003-06-30 21:59:07 +0000918 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000920 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000936
937 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000939 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
Reid Spencera773bd52006-08-04 18:18:08 +0000971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
John Criswell7a73b802003-06-30 21:59:07 +0000977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
Reid Spencera773bd52006-08-04 18:18:08 +00001001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
John Criswell7a73b802003-06-30 21:59:07 +00001006 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001007 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
Reid Spencera773bd52006-08-04 18:18:08 +00001075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
John Criswell7a73b802003-06-30 21:59:07 +00001085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001136 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001142
1143 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001181 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001199fi
1200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001206do
Reid Spencera773bd52006-08-04 18:18:08 +00001207 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001208 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001211 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
Reid Spencera773bd52006-08-04 18:18:08 +00001240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248
1249
John Criswell7a73b802003-06-30 21:59:07 +00001250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001253 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 ac_confdir=`$as_dirname -- "$0" ||
1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001277 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001278 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
Reid Spencera773bd52006-08-04 18:18:08 +00001284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
John Criswell7a73b802003-06-30 21:59:07 +00001310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001318\`configure' configures llvm 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
John Criswell7a73b802003-06-30 21:59:07 +00001338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001340 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383 case $ac_init_help in
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001384 short | recursive ) echo "Configuration of llvm 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001385 esac
1386 cat <<\_ACEOF
1387
1388Optional Features:
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001391 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1395 YES)
David Greenea696d242007-06-28 19:36:08 +00001396 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001397 Compile with expensive debug checks enabled (default
1398 is NO)
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001403 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001404 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001405 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001406 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001407 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001408 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001409 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001412 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001413 Win32 DLL (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,
Dan Gohman33ba8b02011-10-27 22:56:32 +00001418 x86_64, sparc, powerpc, arm, mips, spu,
Eric Christopher360fa9a2011-10-26 00:42:12 +00001419 xcore, msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001424 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001425 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001430 --with-optimize-option Select the compiler options to use for optimized
1431 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001432 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001433 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1435 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001436 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001437 --with-clang-resource-dir
1438 Relative directory from the Clang binary for
1439 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001440 --with-c-include-dirs Colon separated list of directories clang will
1441 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001442 --with-cxx-include-root Directory with the libstdc++ headers.
1443 --with-cxx-include-arch Architecture of the libstdc++ headers.
1444 --with-cxx-include-32bit-dir
1445 32 bit multilib dir.
1446 --with-cxx-include-64bit-dir
1447 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001448 --with-binutils-include Specify path to binutils/include/ containing
1449 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001450 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001451 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001452 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001453 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001454 --with-oprofile=<prefix>
1455 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001456
1457Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001458 CC C compiler command
1459 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001463 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001466 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468Use these variables to override the choices made by `configure' or to help
1469it to find libraries and programs with nonstandard names/locations.
1470
1471Report bugs to <llvmbugs@cs.uiuc.edu>.
1472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001473ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001474fi
1475
1476if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001479 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001480 ac_builddir=.
1481
Reid Spencera773bd52006-08-04 18:18:08 +00001482case "$ac_dir" in
1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001486 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492esac
1493ac_abs_top_builddir=$ac_pwd
1494ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495# for backward compatibility:
1496ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001497
1498case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001499 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001500 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001511esac
Reid Spencera773bd52006-08-04 18:18:08 +00001512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001513
Reid Spencera773bd52006-08-04 18:18:08 +00001514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001522 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001526 done
1527fi
1528
Reid Spencera773bd52006-08-04 18:18:08 +00001529test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001530if $ac_init_version; then
1531 cat <<\_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001532llvm configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001533generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15362002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001540Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001541_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001542 exit
John Criswell7a73b802003-06-30 21:59:07 +00001543fi
Reid Spencera773bd52006-08-04 18:18:08 +00001544cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001545This file contains any messages produced by compilers while
1546running configure, to aid debugging if configure makes a mistake.
1547
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001548It was created by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001550
1551 $ $0 $@
1552
1553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001554exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001555{
1556cat <<_ASUNAME
1557## --------- ##
1558## Platform. ##
1559## --------- ##
1560
1561hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566
1567/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1569
1570/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1571/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1572/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001573/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001574/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1575/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1576/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1577
1578_ASUNAME
1579
1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581for as_dir in $PATH
1582do
1583 IFS=$as_save_IFS
1584 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001585 echo "PATH: $as_dir"
1586done
Reid Spencera773bd52006-08-04 18:18:08 +00001587IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001588
1589} >&5
1590
1591cat >&5 <<_ACEOF
1592
1593
1594## ----------- ##
1595## Core tests. ##
1596## ----------- ##
1597
1598_ACEOF
1599
1600
1601# Keep a trace of the command line.
1602# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001603# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001604# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001605# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001606ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001607ac_configure_args0=
1608ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001609ac_must_keep_next=false
1610for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001611do
John Criswell0c38eaf2003-09-10 15:17:25 +00001612 for ac_arg
1613 do
1614 case $ac_arg in
1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617 | -silent | --silent | --silen | --sile | --sil)
1618 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001619 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 esac
1622 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001627 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629 case $ac_arg in
1630 *=* | --config-cache | -C | -disable-* | --disable-* \
1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633 | -with-* | --with-* | -without-* | --without-* | --x)
1634 case "$ac_configure_args0 " in
1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636 esac
1637 ;;
1638 -* ) ac_must_keep_next=true ;;
1639 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001641 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 ;;
1643 esac
1644 done
John Criswell7a73b802003-06-30 21:59:07 +00001645done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647$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 +00001648
1649# When interrupted or exit'd, cleanup temporary files, and complete
1650# config.log. We remove comments because anyway the quotes in there
1651# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001652# WARNING: Use '\'' to represent an apostrophe within the trap.
1653# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001654trap 'exit_status=$?
1655 # Save into config.log some information that might help in debugging.
1656 {
1657 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001658
John Criswell7a73b802003-06-30 21:59:07 +00001659 cat <<\_ASBOX
1660## ---------------- ##
1661## Cache variables. ##
1662## ---------------- ##
1663_ASBOX
1664 echo
1665 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001666(
1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668 eval ac_val=\$$ac_var
1669 case $ac_val in #(
1670 *${as_nl}*)
1671 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001674 esac
1675 case $ac_var in #(
1676 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac ;;
1679 esac
1680 done
John Criswell7a73b802003-06-30 21:59:07 +00001681 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001684 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001685 "s/'\''/'\''\\\\'\'''\''/g;
1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001688 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001690 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001691 esac |
1692 sort
1693)
John Criswell7a73b802003-06-30 21:59:07 +00001694 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001695
1696 cat <<\_ASBOX
1697## ----------------- ##
1698## Output variables. ##
1699## ----------------- ##
1700_ASBOX
1701 echo
1702 for ac_var in $ac_subst_vars
1703 do
Reid Spencera773bd52006-08-04 18:18:08 +00001704 eval ac_val=\$$ac_var
1705 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001707 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001708 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 done | sort
1710 echo
1711
1712 if test -n "$ac_subst_files"; then
1713 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001714## ------------------- ##
1715## File substitutions. ##
1716## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001717_ASBOX
1718 echo
1719 for ac_var in $ac_subst_files
1720 do
Reid Spencera773bd52006-08-04 18:18:08 +00001721 eval ac_val=\$$ac_var
1722 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001724 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001726 done | sort
1727 echo
1728 fi
1729
John Criswell7a73b802003-06-30 21:59:07 +00001730 if test -s confdefs.h; then
1731 cat <<\_ASBOX
1732## ----------- ##
1733## confdefs.h. ##
1734## ----------- ##
1735_ASBOX
1736 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001737 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001738 echo
1739 fi
1740 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001741 echo "$as_me: caught signal $ac_signal"
1742 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001743 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001744 rm -f core *.core core.conftest.* &&
1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001746 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001747' 0
John Criswell7a73b802003-06-30 21:59:07 +00001748for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001750done
1751ac_signal=0
1752
1753# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001754rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001755
1756# Predefined preprocessor variables.
1757
1758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE_NAME "$PACKAGE_NAME"
1760_ACEOF
1761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001762
John Criswell7a73b802003-06-30 21:59:07 +00001763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765_ACEOF
1766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_VERSION "$PACKAGE_VERSION"
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_STRING "$PACKAGE_STRING"
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_BUGREPORT "$PACKAGE_BUGREPORT"
1780_ACEOF
1781
1782
1783# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001785if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001787elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$ac_default_prefix/share/config.site" \
1791 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793shift
1794for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001795do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796 if test -r "$ac_site_file"; then
1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001799 sed 's/^/| /' "$ac_site_file" >&5
1800 . "$ac_site_file"
1801 fi
1802done
1803
1804if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 # Some versions of bash will fail to source /dev/null (special
1806 # files actually), so we avoid doing that.
1807 if test -f "$cache_file"; then
1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001810 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001811 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001813 esac
1814 fi
1815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001818 >$cache_file
1819fi
1820
1821# Check that the precious variables saved in the cache have kept the same
1822# value.
1823ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001824for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001825 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001827 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001829 case $ac_old_set,$ac_new_set in
1830 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001833 ac_cache_corrupted=: ;;
1834 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,);;
1839 *)
1840 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1844echo "$as_me: former value: $ac_old_val" >&2;}
1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1846echo "$as_me: current value: $ac_new_val" >&2;}
1847 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001848 fi;;
1849 esac
1850 # Pass precious variables to config.status.
1851 if test "$ac_new_set" = set; then
1852 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001854 *) ac_arg=$ac_var=$ac_new_val ;;
1855 esac
1856 case " $ac_configure_args " in
1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001859 esac
1860 fi
1861done
1862if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
Reid Spencera773bd52006-08-04 18:18:08 +00001893
John Criswell7a73b802003-06-30 21:59:07 +00001894ac_ext=c
1895ac_cpp='$CPP $CPPFLAGS'
1896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899
1900
1901
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001902LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001903
1904
1905
1906
1907
1908
1909
John Criswell7a73b802003-06-30 21:59:07 +00001910ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001911for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001912 if test -f "$ac_dir/install-sh"; then
1913 ac_aux_dir=$ac_dir
1914 ac_install_sh="$ac_aux_dir/install-sh -c"
1915 break
1916 elif test -f "$ac_dir/install.sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install.sh -c"
1919 break
1920 elif test -f "$ac_dir/shtool"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/shtool install -c"
1923 break
1924 fi
John Criswell7a73b802003-06-30 21:59:07 +00001925done
1926if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001927 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1928echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1929 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001930fi
Reid Spencera773bd52006-08-04 18:18:08 +00001931
1932# These three variables are undocumented and unsupported,
1933# and are intended to be withdrawn in a future Autoconf release.
1934# They can cause serious problems if a builder's source tree is in a directory
1935# whose full name contains unusual characters.
1936ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1937ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1938ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1939
John Criswell7a73b802003-06-30 21:59:07 +00001940
John Criswell392aaa32003-07-22 19:18:09 +00001941
Reid Spencer2706f8c2004-09-19 23:53:36 +00001942if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001943 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001944 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1945echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1946 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 fi
John Criswell93e1c722003-09-15 17:04:06 +00001948fi
1949
Nick Lewycky83fc4472009-09-29 05:48:51 +00001950ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951ac_cpp='$CPP $CPPFLAGS'
1952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001955if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001956 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001957 do
1958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001964else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001967else
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 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 +00001975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001977 break 2
1978 fi
1979done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001980done
Reid Spencera773bd52006-08-04 18:18:08 +00001981IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001982
1983fi
1984fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001985CC=$ac_cv_prog_CC
1986if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001987 { echo "$as_me:$LINENO: result: $CC" >&5
1988echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001989else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001990 { echo "$as_me:$LINENO: result: no" >&5
1991echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001992fi
1993
Reid Spencera773bd52006-08-04 18:18:08 +00001994
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001995 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00001996 done
1997fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001998if test -z "$CC"; then
1999 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002000 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002001do
2002 # Extract the first word of "$ac_prog", so it can be a program name with args.
2003set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002008else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002009 if test -n "$ac_ct_CC"; then
2010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002011else
2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013for as_dir in $PATH
2014do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 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 +00002019 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002021 break 2
2022 fi
2023done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024done
Reid Spencera773bd52006-08-04 18:18:08 +00002025IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002026
2027fi
2028fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 { echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002036fi
2037
Reid Spencera773bd52006-08-04 18:18:08 +00002038
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002040done
John Criswell7a73b802003-06-30 21:59:07 +00002041
Reid Spencera773bd52006-08-04 18:18:08 +00002042 if test "x$ac_ct_CC" = x; then
2043 CC=""
2044 else
2045 case $cross_compiling:$ac_tool_warned in
2046yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002047{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048whose name does not start with the host triplet. If you think this
2049configuration is useful to you, please write to autoconf@gnu.org." >&5
2050echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051whose name does not start with the host triplet. If you think this
2052configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002053ac_tool_warned=yes ;;
2054esac
2055 CC=$ac_ct_CC
2056 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002057fi
2058
John Criswell7a73b802003-06-30 21:59:07 +00002059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002060test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2061See \`config.log' for more details." >&5
2062echo "$as_me: error: no acceptable C compiler found in \$PATH
2063See \`config.log' for more details." >&2;}
2064 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002065
John Criswell7a73b802003-06-30 21:59:07 +00002066# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002067echo "$as_me:$LINENO: checking for C compiler version" >&5
2068ac_compiler=`set X $ac_compile; echo $2`
2069{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002070case "(($ac_try" in
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2073esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2075 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002076 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079{ (ac_try="$ac_compiler -v >&5"
2080case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083esac
2084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085 (eval "$ac_compiler -v >&5") 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089{ (ac_try="$ac_compiler -V >&5"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler -V >&5") 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002100cat >conftest.$ac_ext <<_ACEOF
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002106
John Criswell7a73b802003-06-30 21:59:07 +00002107int
2108main ()
2109{
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002116ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002117# Try to create an executable without -o first, disregard a.out.
2118# It will help us diagnose broken compilers, and finding out an intuition
2119# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2121echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2122ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123#
2124# List of possible output files, starting from the most likely.
2125# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2126# only as a last resort. b.out is created by i960 compilers.
2127ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2128#
2129# The IRIX 6 linker writes into existing files which may not be
2130# executable, retaining their permissions. Remove them first so a
2131# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002132ac_rmfiles=
2133for ac_file in $ac_files
2134do
2135 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2138 esac
2139done
2140rm -f $ac_rmfiles
2141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002142if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002143case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002148 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002149 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002152 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2153# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2154# in a Makefile. We should not override ac_cv_exeext if it was cached,
2155# so that the user can short-circuit this test for compilers unknown to
2156# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002158do
2159 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002160 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002162 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002163 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002164 # We found the default executable, but exeext='' is most
2165 # certainly right.
2166 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002167 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002168 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002169 then :; else
2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171 fi
2172 # We set ac_cv_exeext here because the later test for it is not
2173 # safe: cross compilers may not add the suffix if given an `-o'
2174 # argument, so we may need to know it at that point already.
2175 # Even if this section looks crufty: it has the advantage of
2176 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002177 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002178 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002179 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002180 esac
2181done
Reid Spencera773bd52006-08-04 18:18:08 +00002182test "$ac_cv_exeext" = no && ac_cv_exeext=
2183
John Criswell7a73b802003-06-30 21:59:07 +00002184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002186sed 's/^/| /' conftest.$ac_ext >&5
2187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002188{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2189See \`config.log' for more details." >&5
2190echo "$as_me: error: C compiler cannot create executables
2191See \`config.log' for more details." >&2;}
2192 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002193fi
John Criswell7a73b802003-06-30 21:59:07 +00002194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002195ac_exeext=$ac_cv_exeext
2196{ echo "$as_me:$LINENO: result: $ac_file" >&5
2197echo "${ECHO_T}$ac_file" >&6; }
2198
2199# Check that the compiler produces executables we can run. If not, either
2200# the compiler is broken, or we cross compile.
2201{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2202echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2203# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2204# If not cross compiling, check that we can run a simple program.
2205if test "$cross_compiling" != yes; then
2206 if { ac_try='./$ac_file'
2207 { (case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210esac
2211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_try") 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 cross_compiling=no
2217 else
2218 if test "$cross_compiling" = maybe; then
2219 cross_compiling=yes
2220 else
2221 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2222If you meant to cross compile, use \`--host'.
2223See \`config.log' for more details." >&5
2224echo "$as_me: error: cannot run C compiled programs.
2225If you meant to cross compile, use \`--host'.
2226See \`config.log' for more details." >&2;}
2227 { (exit 1); exit 1; }; }
2228 fi
2229 fi
2230fi
2231{ echo "$as_me:$LINENO: result: yes" >&5
2232echo "${ECHO_T}yes" >&6; }
2233
2234rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002235ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002236# Check that the compiler produces executables we can run. If not, either
2237# the compiler is broken, or we cross compile.
2238{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2239echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2240{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2241echo "${ECHO_T}$cross_compiling" >&6; }
2242
2243{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2244echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2245if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002246case "(($ac_try" in
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2249esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002251 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002252 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257# work properly (i.e., refer to `conftest.exe'), while it won't with
2258# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002259for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002261 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002264 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002265 * ) break;;
2266 esac
2267done
2268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002269 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002275
2276rm -f conftest$ac_cv_exeext
2277{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002279
2280rm -f conftest.$ac_ext
2281EXEEXT=$ac_cv_exeext
2282ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002283{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2285if test "${ac_cv_objext+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288 cat >conftest.$ac_ext <<_ACEOF
2289/* confdefs.h. */
2290_ACEOF
2291cat confdefs.h >>conftest.$ac_ext
2292cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002294
John Criswell7a73b802003-06-30 21:59:07 +00002295int
2296main ()
2297{
2298
2299 ;
2300 return 0;
2301}
2302_ACEOF
2303rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002305case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002310 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002311 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002314 for ac_file in conftest.o conftest.obj conftest.*; do
2315 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002316 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319 break;;
2320 esac
2321done
2322else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002324sed 's/^/| /' conftest.$ac_ext >&5
2325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002326{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327See \`config.log' for more details." >&5
2328echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002332
John Criswell7a73b802003-06-30 21:59:07 +00002333rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002337OBJEXT=$ac_cv_objext
2338ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2341if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344 cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002350
John Criswell7a73b802003-06-30 21:59:07 +00002351int
2352main ()
2353{
2354#ifndef __GNUC__
2355 choke me
2356#endif
2357
2358 ;
2359 return 0;
2360}
2361_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002362rm -f conftest.$ac_objext
2363if { (ac_try="$ac_compile"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compile") 2>conftest.er1
2370 ac_status=$?
2371 grep -v '^ *+' conftest.er1 >conftest.err
2372 rm -f conftest.er1
2373 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2377 { (case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380esac
2381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_try") 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390esac
2391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_try") 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002396 ac_compiler_gnu=yes
2397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002398 echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002403
Reid Spencera773bd52006-08-04 18:18:08 +00002404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002406
2407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002408{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2410GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411ac_test_CFLAGS=${CFLAGS+set}
2412ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2414echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2415if test "${ac_cv_prog_cc_g+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002417else
Reid Spencera773bd52006-08-04 18:18:08 +00002418 ac_save_c_werror_flag=$ac_c_werror_flag
2419 ac_c_werror_flag=yes
2420 ac_cv_prog_cc_g=no
2421 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h. */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002428
John Criswell7a73b802003-06-30 21:59:07 +00002429int
2430main ()
2431{
2432
2433 ;
2434 return 0;
2435}
2436_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437rm -f conftest.$ac_objext
2438if { (ac_try="$ac_compile"
2439case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2442esac
2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 (eval "$ac_compile") 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452 { (case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455esac
2456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_try") 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465esac
2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 CFLAGS=""
2477 cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002482/* end confdefs.h. */
2483
2484int
2485main ()
2486{
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002492rm -f conftest.$ac_objext
2493if { (ac_try="$ac_compile"
2494case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497esac
2498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510esac
2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2526 :
Torok Edwin871384f2010-01-26 08:50:50 +00002527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002528 echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002532 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002533 cat >conftest.$ac_ext <<_ACEOF
2534/* confdefs.h. */
2535_ACEOF
2536cat confdefs.h >>conftest.$ac_ext
2537cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002538/* end confdefs.h. */
2539
2540int
2541main ()
2542{
2543
2544 ;
2545 return 0;
2546}
2547_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548rm -f conftest.$ac_objext
2549if { (ac_try="$ac_compile"
2550case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2553esac
2554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_compile") 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2563 { (case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566esac
2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_try") 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576esac
2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_try") 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002582 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
John Criswell7a73b802003-06-30 21:59:07 +00002588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589
Reid Spencera773bd52006-08-04 18:18:08 +00002590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002591fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002592
Reid Spencera773bd52006-08-04 18:18:08 +00002593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595
Reid Spencera773bd52006-08-04 18:18:08 +00002596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002599{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2605 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002606 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002608 fi
2609else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610 if test "$GCC" = yes; then
2611 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002612 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002614 fi
2615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618if test "${ac_cv_prog_cc_c89+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620else
Reid Spencera773bd52006-08-04 18:18:08 +00002621 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628/* end confdefs.h. */
2629#include <stdarg.h>
2630#include <stdio.h>
2631#include <sys/types.h>
2632#include <sys/stat.h>
2633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634struct buf { int x; };
2635FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636static char *e (p, i)
2637 char **p;
2638 int i;
2639{
2640 return p[i];
2641}
2642static char *f (char * (*g) (char **, int), char **p, ...)
2643{
2644 char *s;
2645 va_list v;
2646 va_start (v,p);
2647 s = g (p, va_arg (v,int));
2648 va_end (v);
2649 return s;
2650}
2651
2652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002655 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002658 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
Reid Spencera773bd52006-08-04 18:18:08 +00002661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662 inside strings and character constants. */
2663#define FOO(x) 'x'
2664int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666int test (int i, double x);
2667struct s1 {int (*f) (int a);};
2668struct s2 {int (*f) (double a);};
2669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670int argc;
2671char **argv;
2672int
2673main ()
2674{
2675return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2676 ;
2677 return 0;
2678}
2679_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002680for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682do
2683 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002684 rm -f conftest.$ac_objext
2685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2699 { (case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_try") 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_try") 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002718 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002719else
2720 echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002725
Reid Spencera773bd52006-08-04 18:18:08 +00002726rm -f core conftest.err conftest.$ac_objext
2727 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728done
Reid Spencera773bd52006-08-04 18:18:08 +00002729rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002730CC=$ac_save_CC
2731
2732fi
Reid Spencera773bd52006-08-04 18:18:08 +00002733# AC_CACHE_VAL
2734case "x$ac_cv_prog_cc_c89" in
2735 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002736 { echo "$as_me:$LINENO: result: none needed" >&5
2737echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002738 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002739 { echo "$as_me:$LINENO: result: unsupported" >&5
2740echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002741 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002742 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2744echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745esac
2746
John Criswell0c38eaf2003-09-10 15:17:25 +00002747
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002748ac_ext=c
2749ac_cpp='$CPP $CPPFLAGS'
2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
Eric Christopherffee5722011-09-16 20:36:25 +00002754ac_ext=cpp
2755ac_cpp='$CXXCPP $CPPFLAGS'
2756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2759if test -z "$CXX"; then
2760 if test -n "$CCC"; then
2761 CXX=$CCC
2762 else
2763 if test -n "$ac_tool_prefix"; then
2764 for ac_prog in clang++ llvm-g++ g++
2765 do
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770if test "${ac_cv_prog_CXX+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772else
2773 if test -n "$CXX"; then
2774 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787done
2788done
2789IFS=$as_save_IFS
2790
2791fi
2792fi
2793CXX=$ac_cv_prog_CXX
2794if test -n "$CXX"; then
2795 { echo "$as_me:$LINENO: result: $CXX" >&5
2796echo "${ECHO_T}$CXX" >&6; }
2797else
2798 { echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6; }
2800fi
2801
2802
2803 test -n "$CXX" && break
2804 done
2805fi
2806if test -z "$CXX"; then
2807 ac_ct_CXX=$CXX
2808 for ac_prog in clang++ llvm-g++ g++
2809do
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811set dummy $ac_prog; ac_word=$2
2812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817 if test -n "$ac_ct_CXX"; then
2818 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_ac_ct_CXX="$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831done
2832done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2838if test -n "$ac_ct_CXX"; then
2839 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2840echo "${ECHO_T}$ac_ct_CXX" >&6; }
2841else
2842 { echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6; }
2844fi
2845
2846
2847 test -n "$ac_ct_CXX" && break
2848done
2849
2850 if test "x$ac_ct_CXX" = x; then
2851 CXX="g++"
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854yes:)
2855{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856whose name does not start with the host triplet. If you think this
2857configuration is useful to you, please write to autoconf@gnu.org." >&5
2858echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859whose name does not start with the host triplet. If you think this
2860configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861ac_tool_warned=yes ;;
2862esac
2863 CXX=$ac_ct_CXX
2864 fi
2865fi
2866
2867 fi
2868fi
2869# Provide some information about the compiler.
2870echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2871ac_compiler=`set X $ac_compile; echo $2`
2872{ (ac_try="$ac_compiler --version >&5"
2873case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compiler --version >&5") 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }
2882{ (ac_try="$ac_compiler -v >&5"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler -v >&5") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892{ (ac_try="$ac_compiler -V >&5"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -V >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902
2903{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2904echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2905if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908 cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
2914
2915int
2916main ()
2917{
2918#ifndef __GNUC__
2919 choke me
2920#endif
2921
2922 ;
2923 return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext
2927if { (ac_try="$ac_compile"
2928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2941 { (case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944esac
2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_try") 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 ac_compiler_gnu=yes
2961else
2962 echo "$as_me: failed program was:" >&5
2963sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 ac_compiler_gnu=no
2966fi
2967
2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2970
2971fi
2972{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2973echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2974GXX=`test $ac_compiler_gnu = yes && echo yes`
2975ac_test_CXXFLAGS=${CXXFLAGS+set}
2976ac_save_CXXFLAGS=$CXXFLAGS
2977{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2978echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2979if test "${ac_cv_prog_cxx_g+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981else
2982 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2983 ac_cxx_werror_flag=yes
2984 ac_cv_prog_cxx_g=no
2985 CXXFLAGS="-g"
2986 cat >conftest.$ac_ext <<_ACEOF
2987/* confdefs.h. */
2988_ACEOF
2989cat confdefs.h >>conftest.$ac_ext
2990cat >>conftest.$ac_ext <<_ACEOF
2991/* end confdefs.h. */
2992
2993int
2994main ()
2995{
2996
2997 ;
2998 return 0;
2999}
3000_ACEOF
3001rm -f conftest.$ac_objext
3002if { (ac_try="$ac_compile"
3003case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006esac
3007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3009 ac_status=$?
3010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 ac_cv_prog_cxx_g=yes
3036else
3037 echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 CXXFLAGS=""
3041 cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h. */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h. */
3047
3048int
3049main ()
3050{
3051
3052 ;
3053 return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext
3057if { (ac_try="$ac_compile"
3058case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 :
3091else
3092 echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3096 CXXFLAGS="-g"
3097 cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
3103
3104int
3105main ()
3106{
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext
3113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_cv_prog_cxx_g=yes
3147else
3148 echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151
3152fi
3153
3154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155fi
3156
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158fi
3159
3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3162fi
3163{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3164echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3165if test "$ac_test_CXXFLAGS" = set; then
3166 CXXFLAGS=$ac_save_CXXFLAGS
3167elif test $ac_cv_prog_cxx_g = yes; then
3168 if test "$GXX" = yes; then
3169 CXXFLAGS="-g -O2"
3170 else
3171 CXXFLAGS="-g"
3172 fi
3173else
3174 if test "$GXX" = yes; then
3175 CXXFLAGS="-O2"
3176 else
3177 CXXFLAGS=
3178 fi
3179fi
3180ac_ext=c
3181ac_cpp='$CPP $CPPFLAGS'
3182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003185
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003186ac_ext=c
3187ac_cpp='$CPP $CPPFLAGS'
3188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003191{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3192echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003193# On Suns, sometimes $CPP names a directory.
3194if test -n "$CPP" && test -d "$CPP"; then
3195 CPP=
3196fi
3197if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003198 if test "${ac_cv_prog_CPP+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200else
3201 # Double quotes because CPP needs to be expanded
3202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3203 do
3204 ac_preproc_ok=false
3205for ac_c_preproc_warn_flag in '' yes
3206do
3207 # Use a header file that comes with gcc, so configuring glibc
3208 # with a fresh cross-compiler works.
3209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210 # <limits.h> exists even on freestanding compilers.
3211 # On the NeXT, cc -E runs the code through the compiler's parser,
3212 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003218/* end confdefs.h. */
3219#ifdef __STDC__
3220# include <limits.h>
3221#else
3222# include <assert.h>
3223#endif
3224 Syntax error
3225_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003226if { (ac_try="$ac_cpp conftest.$ac_ext"
3227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
3231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242 else
3243 ac_cpp_err=
3244 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003246 ac_cpp_err=yes
3247fi
3248if test -z "$ac_cpp_err"; then
3249 :
3250else
3251 echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254 # Broken: fails on valid input.
3255continue
3256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003257
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258rm -f conftest.err conftest.$ac_ext
3259
Reid Spencera773bd52006-08-04 18:18:08 +00003260 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003262 cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h. */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267/* end confdefs.h. */
3268#include <ac_nonexistent.h>
3269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003270if { (ac_try="$ac_cpp conftest.$ac_ext"
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286 else
3287 ac_cpp_err=
3288 fi
3289else
3290 ac_cpp_err=yes
3291fi
3292if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293 # Broken: success on invalid input.
3294continue
3295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003296 echo "$as_me: failed program was:" >&5
3297sed 's/^/| /' conftest.$ac_ext >&5
3298
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299 # Passes both tests.
3300ac_preproc_ok=:
3301break
3302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003303
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304rm -f conftest.err conftest.$ac_ext
3305
3306done
3307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003309if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310 break
3311fi
3312
3313 done
3314 ac_cv_prog_CPP=$CPP
3315
3316fi
3317 CPP=$ac_cv_prog_CPP
3318else
3319 ac_cv_prog_CPP=$CPP
3320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003321{ echo "$as_me:$LINENO: result: $CPP" >&5
3322echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323ac_preproc_ok=false
3324for ac_c_preproc_warn_flag in '' yes
3325do
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
3330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003332 cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337/* end confdefs.h. */
3338#ifdef __STDC__
3339# include <limits.h>
3340#else
3341# include <assert.h>
3342#endif
3343 Syntax error
3344_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003345if { (ac_try="$ac_cpp conftest.$ac_ext"
3346case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349esac
3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null; then
3358 if test -s conftest.err; then
3359 ac_cpp_err=$ac_c_preproc_warn_flag
3360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3361 else
3362 ac_cpp_err=
3363 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003365 ac_cpp_err=yes
3366fi
3367if test -z "$ac_cpp_err"; then
3368 :
3369else
3370 echo "$as_me: failed program was:" >&5
3371sed 's/^/| /' conftest.$ac_ext >&5
3372
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373 # Broken: fails on valid input.
3374continue
3375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377rm -f conftest.err conftest.$ac_ext
3378
Reid Spencera773bd52006-08-04 18:18:08 +00003379 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003381 cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h. */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386/* end confdefs.h. */
3387#include <ac_nonexistent.h>
3388_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003389if { (ac_try="$ac_cpp conftest.$ac_ext"
3390case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405 else
3406 ac_cpp_err=
3407 fi
3408else
3409 ac_cpp_err=yes
3410fi
3411if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412 # Broken: success on invalid input.
3413continue
3414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415 echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418 # Passes both tests.
3419ac_preproc_ok=:
3420break
3421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003422
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423rm -f conftest.err conftest.$ac_ext
3424
3425done
3426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003428if $ac_preproc_ok; then
3429 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432See \`config.log' for more details." >&5
3433echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434See \`config.log' for more details." >&2;}
3435 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003436fi
3437
John Criswell7a73b802003-06-30 21:59:07 +00003438ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
John Criswell7a73b802003-06-30 21:59:07 +00003444
Eric Christopherffee5722011-09-16 20:36:25 +00003445
3446
3447if test -d ${srcdir}/projects/llvm-gcc ; then
3448 subdirs="$subdirs projects/llvm-gcc"
3449
3450fi
3451
3452if test -d ${srcdir}/projects/test-suite ; then
3453 subdirs="$subdirs projects/test-suite"
3454
3455fi
3456
3457if test -d ${srcdir}/projects/llvm-test ; then
3458 subdirs="$subdirs projects/llvm-test"
3459
3460fi
3461
3462if test -d ${srcdir}/projects/poolalloc ; then
3463 subdirs="$subdirs projects/poolalloc"
3464
3465fi
3466
3467if test -d ${srcdir}/projects/llvm-poolalloc ; then
3468 subdirs="$subdirs projects/llvm-poolalloc"
3469
3470fi
3471
3472for i in `ls ${srcdir}/projects`
3473do
3474 if test -d ${srcdir}/projects/${i} ; then
3475 case ${i} in
3476 sample) subdirs="$subdirs projects/sample"
3477 ;;
3478 privbracket) subdirs="$subdirs projects/privbracket"
3479 ;;
3480 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3481 ;;
3482 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3483;;
3484 llvm-java) subdirs="$subdirs projects/llvm-java"
3485 ;;
3486 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3487 ;;
3488 safecode) subdirs="$subdirs projects/safecode"
3489 ;;
3490 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3491 ;;
3492 llvm-gcc) ;;
3493 test-suite) ;;
3494 llvm-test) ;;
3495 poolalloc) ;;
3496 llvm-poolalloc) ;;
3497 *)
3498 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3499echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3500 ;;
3501 esac
3502 fi
3503done
3504
3505# Check whether --enable-polly was given.
3506if test "${enable_polly+set}" = set; then
3507 enableval=$enable_polly;
3508else
3509 enableval=default
3510fi
3511
3512case "$enableval" in
3513 yes) ENABLE_POLLY=1
3514 ;;
3515 no) ENABLE_POLLY=0
3516 ;;
3517 default) ENABLE_POLLY=1
3518 ;;
3519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3520echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3521 { (exit 1); exit 1; }; } ;;
3522esac
3523
3524
3525if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3526 LLVM_HAS_POLLY=1
3527
3528 subdirs="$subdirs tools/polly"
3529
3530fi
3531
3532
3533# Make sure we can run config.sub.
3534$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3535 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3536echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3537 { (exit 1); exit 1; }; }
3538
3539{ echo "$as_me:$LINENO: checking build system type" >&5
3540echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3541if test "${ac_cv_build+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 ac_build_alias=$build_alias
3545test "x$ac_build_alias" = x &&
3546 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3547test "x$ac_build_alias" = x &&
3548 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3549echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3550 { (exit 1); exit 1; }; }
3551ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3552 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3553echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3554 { (exit 1); exit 1; }; }
3555
3556fi
3557{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3558echo "${ECHO_T}$ac_cv_build" >&6; }
3559case $ac_cv_build in
3560*-*-*) ;;
3561*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3562echo "$as_me: error: invalid value of canonical build" >&2;}
3563 { (exit 1); exit 1; }; };;
3564esac
3565build=$ac_cv_build
3566ac_save_IFS=$IFS; IFS='-'
3567set x $ac_cv_build
3568shift
3569build_cpu=$1
3570build_vendor=$2
3571shift; shift
3572# Remember, the first character of IFS is used to create $*,
3573# except with old shells:
3574build_os=$*
3575IFS=$ac_save_IFS
3576case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3577
3578
3579{ echo "$as_me:$LINENO: checking host system type" >&5
3580echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3581if test "${ac_cv_host+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583else
3584 if test "x$host_alias" = x; then
3585 ac_cv_host=$ac_cv_build
3586else
3587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3588 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3589echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3590 { (exit 1); exit 1; }; }
3591fi
3592
3593fi
3594{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3595echo "${ECHO_T}$ac_cv_host" >&6; }
3596case $ac_cv_host in
3597*-*-*) ;;
3598*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3599echo "$as_me: error: invalid value of canonical host" >&2;}
3600 { (exit 1); exit 1; }; };;
3601esac
3602host=$ac_cv_host
3603ac_save_IFS=$IFS; IFS='-'
3604set x $ac_cv_host
3605shift
3606host_cpu=$1
3607host_vendor=$2
3608shift; shift
3609# Remember, the first character of IFS is used to create $*,
3610# except with old shells:
3611host_os=$*
3612IFS=$ac_save_IFS
3613case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3614
3615
3616{ echo "$as_me:$LINENO: checking target system type" >&5
3617echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3618if test "${ac_cv_target+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621 if test "x$target_alias" = x; then
3622 ac_cv_target=$ac_cv_host
3623else
3624 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3625 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3626echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3627 { (exit 1); exit 1; }; }
3628fi
3629
3630fi
3631{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3632echo "${ECHO_T}$ac_cv_target" >&6; }
3633case $ac_cv_target in
3634*-*-*) ;;
3635*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3636echo "$as_me: error: invalid value of canonical target" >&2;}
3637 { (exit 1); exit 1; }; };;
3638esac
3639target=$ac_cv_target
3640ac_save_IFS=$IFS; IFS='-'
3641set x $ac_cv_target
3642shift
3643target_cpu=$1
3644target_vendor=$2
3645shift; shift
3646# Remember, the first character of IFS is used to create $*,
3647# except with old shells:
3648target_os=$*
3649IFS=$ac_save_IFS
3650case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3651
3652
3653# The aliases save the names the user supplied, while $host etc.
3654# will get canonicalized.
3655test -n "$target_alias" &&
3656 test "$program_prefix$program_suffix$program_transform_name" = \
3657 NONENONEs,x,x, &&
3658 program_prefix=${target_alias}-
3659
3660{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3661echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3662if test "${llvm_cv_os_type+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665 case $host in
3666 *-*-aix*)
3667 llvm_cv_link_all_option="-Wl,--whole-archive"
3668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669 llvm_cv_os_type="AIX"
3670 llvm_cv_platform_type="Unix" ;;
3671 *-*-irix*)
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="IRIX"
3675 llvm_cv_platform_type="Unix" ;;
3676 *-*-cygwin*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="Cygwin"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-darwin*)
3682 llvm_cv_link_all_option="-Wl,-all_load"
3683 llvm_cv_no_link_all_option="-Wl,-noall_load"
3684 llvm_cv_os_type="Darwin"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-minix*)
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Minix"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-freebsd*)
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="FreeBSD"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-openbsd*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="OpenBSD"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-netbsd*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="NetBSD"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-dragonfly*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="DragonFly"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-hpux*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="HP-UX"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-interix*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="Interix"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-linux*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Linux"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-solaris*)
3727 llvm_cv_link_all_option="-Wl,-z,allextract"
3728 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3729 llvm_cv_os_type="SunOS"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-auroraux*)
3732 llvm_cv_link_all_option="-Wl,-z,allextract"
3733 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3734 llvm_cv_os_type="AuroraUX"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-win32*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Win32"
3740 llvm_cv_platform_type="Win32" ;;
3741 *-*-mingw*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="MingW"
3745 llvm_cv_platform_type="Win32" ;;
3746 *-*-haiku*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Haiku"
3750 llvm_cv_platform_type="Unix" ;;
3751 *-unknown-eabi*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Freestanding"
3755 llvm_cv_platform_type="Unix" ;;
3756 *-unknown-elf*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Freestanding"
3760 llvm_cv_platform_type="Unix" ;;
3761 *)
3762 llvm_cv_link_all_option=""
3763 llvm_cv_no_link_all_option=""
3764 llvm_cv_os_type="Unknown"
3765 llvm_cv_platform_type="Unknown" ;;
3766esac
3767fi
3768{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3769echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3770
3771{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3772echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3773if test "${llvm_cv_target_os_type+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776 case $target in
3777 *-*-aix*)
3778 llvm_cv_target_os_type="AIX" ;;
3779 *-*-irix*)
3780 llvm_cv_target_os_type="IRIX" ;;
3781 *-*-cygwin*)
3782 llvm_cv_target_os_type="Cygwin" ;;
3783 *-*-darwin*)
3784 llvm_cv_target_os_type="Darwin" ;;
3785 *-*-minix*)
3786 llvm_cv_target_os_type="Minix" ;;
3787 *-*-freebsd*)
3788 llvm_cv_target_os_type="FreeBSD" ;;
3789 *-*-openbsd*)
3790 llvm_cv_target_os_type="OpenBSD" ;;
3791 *-*-netbsd*)
3792 llvm_cv_target_os_type="NetBSD" ;;
3793 *-*-dragonfly*)
3794 llvm_cv_target_os_type="DragonFly" ;;
3795 *-*-hpux*)
3796 llvm_cv_target_os_type="HP-UX" ;;
3797 *-*-interix*)
3798 llvm_cv_target_os_type="Interix" ;;
3799 *-*-linux*)
3800 llvm_cv_target_os_type="Linux" ;;
3801 *-*-solaris*)
3802 llvm_cv_target_os_type="SunOS" ;;
3803 *-*-auroraux*)
3804 llvm_cv_target_os_type="AuroraUX" ;;
3805 *-*-win32*)
3806 llvm_cv_target_os_type="Win32" ;;
3807 *-*-mingw*)
3808 llvm_cv_target_os_type="MingW" ;;
3809 *-*-haiku*)
3810 llvm_cv_target_os_type="Haiku" ;;
3811 *-*-rtems*)
3812 llvm_cv_target_os_type="RTEMS" ;;
3813 *-*-nacl*)
3814 llvm_cv_target_os_type="NativeClient" ;;
3815 *-unknown-eabi*)
3816 llvm_cv_target_os_type="Freestanding" ;;
3817 *)
3818 llvm_cv_target_os_type="Unknown" ;;
3819esac
3820fi
3821{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3822echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3823
3824if test "$llvm_cv_os_type" = "Unknown" ; then
3825 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3826echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3827 { (exit 1); exit 1; }; }
3828fi
3829
3830OS=$llvm_cv_os_type
3831
3832HOST_OS=$llvm_cv_os_type
3833
3834TARGET_OS=$llvm_cv_target_os_type
3835
3836
3837LINKALL=$llvm_cv_link_all_option
3838
3839NOLINKALL=$llvm_cv_no_link_all_option
3840
3841
3842case $llvm_cv_platform_type in
3843 Unix)
3844
3845cat >>confdefs.h <<\_ACEOF
3846#define LLVM_ON_UNIX 1
3847_ACEOF
3848
3849 LLVM_ON_UNIX=1
3850
3851 LLVM_ON_WIN32=0
3852
3853 ;;
3854 Win32)
3855
3856cat >>confdefs.h <<\_ACEOF
3857#define LLVM_ON_WIN32 1
3858_ACEOF
3859
3860 LLVM_ON_UNIX=0
3861
3862 LLVM_ON_WIN32=1
3863
3864 ;;
3865esac
3866
3867{ echo "$as_me:$LINENO: checking target architecture" >&5
3868echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3869if test "${llvm_cv_target_arch+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
3872 case $target in
3873 i?86-*) llvm_cv_target_arch="x86" ;;
3874 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3875 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3876 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003877 arm*-*) llvm_cv_target_arch="ARM" ;;
3878 mips-*) llvm_cv_target_arch="Mips" ;;
3879 xcore-*) llvm_cv_target_arch="XCore" ;;
3880 msp430-*) llvm_cv_target_arch="MSP430" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003881 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3882 ptx-*) llvm_cv_target_arch="PTX" ;;
3883 *) llvm_cv_target_arch="Unknown" ;;
3884esac
3885fi
3886{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3887echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3888
3889if test "$llvm_cv_target_arch" = "Unknown" ; then
3890 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3891echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3892fi
3893
3894# Determine the LLVM native architecture for the target
3895case "$llvm_cv_target_arch" in
3896 x86) LLVM_NATIVE_ARCH="X86" ;;
3897 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3898 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3899esac
3900
3901ARCH=$llvm_cv_target_arch
3902
3903
3904
3905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003906{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3907echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3908if test "${ac_cv_path_GREP+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003910else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003911 # Extract the first word of "grep ggrep" to use in msg output
3912if test -z "$GREP"; then
3913set dummy grep ggrep; ac_prog_name=$2
3914if test "${ac_cv_path_GREP+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
Reid Spencera773bd52006-08-04 18:18:08 +00003917 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003918# Loop through the user's path and test for each of PROGNAME-LIST
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003921do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003924 for ac_prog in grep ggrep; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3927 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3928 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003929 # Check for GNU $ac_path_GREP
3930case `"$ac_path_GREP" --version 2>&1` in
3931*GNU*)
3932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3933*)
3934 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003935 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003936 while :
3937 do
3938 cat "conftest.in" "conftest.in" >"conftest.tmp"
3939 mv "conftest.tmp" "conftest.in"
3940 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003941 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003944 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3946 # Best one so far, save it but keep looking for a better one
3947 ac_cv_path_GREP="$ac_path_GREP"
3948 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003949 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003950 # 10*(2^10) chars as input seems more than enough
3951 test $ac_count -gt 10 && break
3952 done
3953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954esac
3955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003956
3957 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003958 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959done
3960
3961done
Reid Spencera773bd52006-08-04 18:18:08 +00003962IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003963
3964
3965fi
3966
3967GREP="$ac_cv_path_GREP"
3968if test -z "$GREP"; then
3969 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3970echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3971 { (exit 1); exit 1; }; }
3972fi
3973
Reid Spencera773bd52006-08-04 18:18:08 +00003974else
3975 ac_cv_path_GREP=$GREP
3976fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003978
Reid Spencera773bd52006-08-04 18:18:08 +00003979fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3981echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003982 GREP="$ac_cv_path_GREP"
3983
3984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985{ echo "$as_me:$LINENO: checking for egrep" >&5
3986echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3987if test "${ac_cv_path_EGREP+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003989else
3990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3991 then ac_cv_path_EGREP="$GREP -E"
3992 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003993 # Extract the first word of "egrep" to use in msg output
3994if test -z "$EGREP"; then
3995set dummy egrep; ac_prog_name=$2
3996if test "${ac_cv_path_EGREP+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
Reid Spencera773bd52006-08-04 18:18:08 +00003999 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000# Loop through the user's path and test for each of PROGNAME-LIST
4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004006 for ac_prog in egrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4010 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004011 # Check for GNU $ac_path_EGREP
4012case `"$ac_path_EGREP" --version 2>&1` in
4013*GNU*)
4014 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4015*)
4016 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004017 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004018 while :
4019 do
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004023 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004026 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_EGREP="$ac_path_EGREP"
4030 ac_path_EGREP_max=$ac_count
4031 fi
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4034 done
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036esac
4037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038
4039 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004040 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041done
4042
4043done
Reid Spencera773bd52006-08-04 18:18:08 +00004044IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004045
4046
4047fi
4048
4049EGREP="$ac_cv_path_EGREP"
4050if test -z "$EGREP"; then
4051 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4054fi
4055
Reid Spencera773bd52006-08-04 18:18:08 +00004056else
4057 ac_cv_path_EGREP=$EGREP
4058fi
4059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004060
Reid Spencera773bd52006-08-04 18:18:08 +00004061 fi
4062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004063{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4064echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004065 EGREP="$ac_cv_path_EGREP"
4066
4067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004068{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4069echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4070if test "${ac_cv_header_stdc+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004072else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004073 cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004078/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004079#include <stdlib.h>
4080#include <stdarg.h>
4081#include <string.h>
4082#include <float.h>
4083
John Criswell0c38eaf2003-09-10 15:17:25 +00004084int
4085main ()
4086{
4087
4088 ;
4089 return 0;
4090}
John Criswell7a73b802003-06-30 21:59:07 +00004091_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004092rm -f conftest.$ac_objext
4093if { (ac_try="$ac_compile"
4094case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4107 { (case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110esac
4111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_try") 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; } &&
4116 { ac_try='test -s conftest.$ac_objext'
4117 { (case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120esac
4121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_try") 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004126 ac_cv_header_stdc=yes
4127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004128 echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133
Reid Spencera773bd52006-08-04 18:18:08 +00004134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004135
4136if test $ac_cv_header_stdc = yes; then
4137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138 cat >conftest.$ac_ext <<_ACEOF
4139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004144#include <string.h>
4145
4146_ACEOF
4147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004148 $EGREP "memchr" >/dev/null 2>&1; then
4149 :
John Criswell7a73b802003-06-30 21:59:07 +00004150else
4151 ac_cv_header_stdc=no
4152fi
4153rm -f conftest*
4154
4155fi
4156
4157if test $ac_cv_header_stdc = yes; then
4158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159 cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004165#include <stdlib.h>
4166
4167_ACEOF
4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004169 $EGREP "free" >/dev/null 2>&1; then
4170 :
John Criswell7a73b802003-06-30 21:59:07 +00004171else
4172 ac_cv_header_stdc=no
4173fi
4174rm -f conftest*
4175
4176fi
4177
4178if test $ac_cv_header_stdc = yes; then
4179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004180 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004181 :
4182else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004183 cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004189#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004190#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004191#if ((' ' & 0x0FF) == 0x020)
4192# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4194#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004195# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004196 (('a' <= (c) && (c) <= 'i') \
4197 || ('j' <= (c) && (c) <= 'r') \
4198 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004199# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4200#endif
4201
4202#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4203int
4204main ()
4205{
4206 int i;
4207 for (i = 0; i < 256; i++)
4208 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004209 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004210 return 2;
4211 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004212}
4213_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004214rm -f conftest$ac_exeext
4215if { (ac_try="$ac_link"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_link") 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228esac
4229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 :
John Criswell7a73b802003-06-30 21:59:07 +00004235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236 echo "$as_me: program exited with status $ac_status" >&5
4237echo "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
4240( exit $ac_status )
4241ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004243rm -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 +00004244fi
4245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004246
John Criswell7a73b802003-06-30 21:59:07 +00004247fi
4248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004249{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4250echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004251if test $ac_cv_header_stdc = yes; then
4252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004253cat >>confdefs.h <<\_ACEOF
4254#define STDC_HEADERS 1
4255_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004256
4257fi
4258
Reid Spencera773bd52006-08-04 18:18:08 +00004259# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004260
4261
4262
4263
4264
4265
4266
4267
4268
Reid Spencera773bd52006-08-04 18:18:08 +00004269for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4270 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004271do
4272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4273{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278 cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h. */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h. */
4284$ac_includes_default
4285
4286#include <$ac_header>
4287_ACEOF
4288rm -f conftest.$ac_objext
4289if { (ac_try="$ac_compile"
4290case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293esac
4294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_compile") 2>conftest.er1
4296 ac_status=$?
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4303 { (case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306esac
4307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; } &&
4312 { ac_try='test -s conftest.$ac_objext'
4313 { (case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316esac
4317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_try") 2>&5
4319 ac_status=$?
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4322 eval "$as_ac_Header=yes"
4323else
4324 echo "$as_me: failed program was:" >&5
4325sed 's/^/| /' conftest.$ac_ext >&5
4326
4327 eval "$as_ac_Header=no"
4328fi
4329
4330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331fi
4332ac_res=`eval echo '${'$as_ac_Header'}'`
4333 { echo "$as_me:$LINENO: result: $ac_res" >&5
4334echo "${ECHO_T}$ac_res" >&6; }
4335if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004336 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004338_ACEOF
4339
4340fi
4341
4342done
4343
4344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004345{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4346echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4347if test "${ac_cv_c_bigendian+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004349else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350 # See if sys/param.h defines the BYTE_ORDER macro.
4351cat >conftest.$ac_ext <<_ACEOF
4352/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004354cat confdefs.h >>conftest.$ac_ext
4355cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004356/* end confdefs.h. */
4357#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004358#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004359
4360int
4361main ()
4362{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004363#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4364 bogus endian macros
4365#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004366
4367 ;
4368 return 0;
4369}
4370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004371rm -f conftest.$ac_objext
4372if { (ac_try="$ac_compile"
4373case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376esac
4377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_compile") 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4386 { (case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389esac
4390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_try") 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399esac
4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_try") 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004405 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406cat >conftest.$ac_ext <<_ACEOF
4407/* confdefs.h. */
4408_ACEOF
4409cat confdefs.h >>conftest.$ac_ext
4410cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004411/* end confdefs.h. */
4412#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004414
4415int
4416main ()
4417{
4418#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004419 not big endian
4420#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004421
4422 ;
4423 return 0;
4424}
4425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004426rm -f conftest.$ac_objext
4427if { (ac_try="$ac_compile"
4428case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431esac
4432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_compile") 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4441 { (case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444esac
4445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_try") 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454esac
4455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_try") 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004460 ac_cv_c_bigendian=yes
4461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004462 echo "$as_me: failed program was:" >&5
4463sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004465 ac_cv_c_bigendian=no
4466fi
4467
4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469else
4470 echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
4473 # It does not; compile a test program.
4474if test "$cross_compiling" = yes; then
4475 # try to guess the endianness by grepping values into an object file
4476 ac_cv_c_bigendian=unknown
4477 cat >conftest.$ac_ext <<_ACEOF
4478/* confdefs.h. */
4479_ACEOF
4480cat confdefs.h >>conftest.$ac_ext
4481cat >>conftest.$ac_ext <<_ACEOF
4482/* end confdefs.h. */
4483short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4484short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4485void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4486short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4487short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4488void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004489int
4490main ()
4491{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004493 ;
4494 return 0;
4495}
4496_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004497rm -f conftest.$ac_objext
4498if { (ac_try="$ac_compile"
4499case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502esac
4503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_compile") 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4512 { (case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515esac
4516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_try") 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; } &&
4521 { ac_try='test -s conftest.$ac_objext'
4522 { (case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4525esac
4526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_try") 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004532 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004533fi
4534if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4535 if test "$ac_cv_c_bigendian" = unknown; then
4536 ac_cv_c_bigendian=no
4537 else
4538 # finding both strings is unlikely to happen, but who knows?
4539 ac_cv_c_bigendian=unknown
4540 fi
4541fi
Reid Spencera773bd52006-08-04 18:18:08 +00004542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004543 echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546
Torok Edwin871384f2010-01-26 08:50:50 +00004547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548
Reid Spencera773bd52006-08-04 18:18:08 +00004549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004551 cat >conftest.$ac_ext <<_ACEOF
4552/* confdefs.h. */
4553_ACEOF
4554cat confdefs.h >>conftest.$ac_ext
4555cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004556/* end confdefs.h. */
4557$ac_includes_default
4558int
4559main ()
4560{
4561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 /* Are we little or big endian? From Harbison&Steele. */
4563 union
4564 {
4565 long int l;
4566 char c[sizeof (long int)];
4567 } u;
4568 u.l = 1;
4569 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004570
4571 ;
4572 return 0;
4573}
4574_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004575rm -f conftest$ac_exeext
4576if { (ac_try="$ac_link"
4577case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_link") 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4586 { (case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589esac
4590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_try") 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004595 ac_cv_c_bigendian=no
4596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597 echo "$as_me: program exited with status $ac_status" >&5
4598echo "$as_me: failed program was:" >&5
4599sed 's/^/| /' conftest.$ac_ext >&5
4600
4601( exit $ac_status )
4602ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604rm -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 +00004605fi
4606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607
Reid Spencera773bd52006-08-04 18:18:08 +00004608fi
4609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611fi
4612{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4613echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4614case $ac_cv_c_bigendian in
4615 yes)
4616 ENDIAN=big
4617 ;;
4618 no)
4619 ENDIAN=little
4620 ;;
4621 *)
4622 { { echo "$as_me:$LINENO: error: unknown endianness
4623presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4624echo "$as_me: error: unknown endianness
4625presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4626 { (exit 1); exit 1; }; } ;;
4627esac
Reid Spencera773bd52006-08-04 18:18:08 +00004628
4629
4630if test "$cross_compiling" = yes; then
4631 LLVM_CROSS_COMPILING=1
4632
4633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004634{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4635echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4636if test "${ac_cv_build_exeext+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004638else
4639 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4640 ac_cv_build_exeext=.exe
4641else
4642 ac_build_prefix=${build_alias}-
4643
4644 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4645set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004650else
4651 if test -n "$BUILD_CC"; then
4652 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 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 +00004661 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004663 break 2
4664 fi
4665done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666done
Reid Spencera773bd52006-08-04 18:18:08 +00004667IFS=$as_save_IFS
4668
4669fi
4670fi
4671BUILD_CC=$ac_cv_prog_BUILD_CC
4672if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4674echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676 { echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004678fi
4679
4680
4681 if test -z "$BUILD_CC"; then
4682 # Extract the first word of "gcc", so it can be a program name with args.
4683set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004688else
4689 if test -n "$BUILD_CC"; then
4690 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 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 +00004699 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004701 break 2
4702 fi
4703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004704done
Reid Spencera773bd52006-08-04 18:18:08 +00004705IFS=$as_save_IFS
4706
4707fi
4708fi
4709BUILD_CC=$ac_cv_prog_BUILD_CC
4710if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004711 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4712echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714 { echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004716fi
4717
4718
4719 if test -z "$BUILD_CC"; then
4720 # Extract the first word of "cc", so it can be a program name with args.
4721set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004726else
4727 if test -n "$BUILD_CC"; then
4728 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4729else
4730 ac_prog_rejected=no
4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 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 +00004738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4739 ac_prog_rejected=yes
4740 continue
4741 fi
4742 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004744 break 2
4745 fi
4746done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004747done
Reid Spencera773bd52006-08-04 18:18:08 +00004748IFS=$as_save_IFS
4749
4750if test $ac_prog_rejected = yes; then
4751 # We found a bogon in the path, so make sure we never use it.
4752 set dummy $ac_cv_prog_BUILD_CC
4753 shift
4754 if test $# != 0; then
4755 # We chose a different compiler from the bogus one.
4756 # However, it has the same basename, so the bogon will be chosen
4757 # first if we set BUILD_CC to just the basename; use the full file name.
4758 shift
4759 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4760 fi
4761fi
4762fi
4763fi
4764BUILD_CC=$ac_cv_prog_BUILD_CC
4765if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004766 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4767echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004769 { echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004771fi
4772
4773
4774 fi
4775 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004776 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4777echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4778 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004779 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4780 rm -f conftest*
4781 echo 'int main () { return 0; }' > conftest.$ac_ext
4782 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004783 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004784 (eval $ac_build_link) 2>&5
4785 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004788 for file in conftest.*; do
4789 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004790 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004791 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4792 esac
4793 done
4794 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4796echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4797 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004798 fi
4799 rm -f conftest*
4800 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4801fi
4802fi
4803
4804BUILD_EXEEXT=""
4805test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004806{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4807echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004808ac_build_exeext=$BUILD_EXEEXT
4809
Jim Grosbach673612e2008-10-02 22:56:44 +00004810 ac_build_prefix=${build_alias}-
4811 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4812set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4815if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004817else
4818 if test -n "$BUILD_CXX"; then
4819 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 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 +00004828 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004830 break 2
4831 fi
4832done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004833done
Jim Grosbach673612e2008-10-02 22:56:44 +00004834IFS=$as_save_IFS
4835
4836fi
4837fi
4838BUILD_CXX=$ac_cv_prog_BUILD_CXX
4839if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004840 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4841echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004843 { echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004845fi
4846
4847
4848 if test -z "$BUILD_CXX"; then
4849 # Extract the first word of "g++", so it can be a program name with args.
4850set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004855else
4856 if test -n "$BUILD_CXX"; then
4857 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 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 +00004866 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004868 break 2
4869 fi
4870done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004871done
Jim Grosbach673612e2008-10-02 22:56:44 +00004872IFS=$as_save_IFS
4873
4874fi
4875fi
4876BUILD_CXX=$ac_cv_prog_BUILD_CXX
4877if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004878 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4879echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004881 { echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004883fi
4884
4885
4886 if test -z "$BUILD_CXX"; then
4887 # Extract the first word of "c++", so it can be a program name with args.
4888set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004893else
4894 if test -n "$BUILD_CXX"; then
4895 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4896else
4897 ac_prog_rejected=no
4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 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 +00004905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4906 ac_prog_rejected=yes
4907 continue
4908 fi
4909 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004911 break 2
4912 fi
4913done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004914done
Jim Grosbach673612e2008-10-02 22:56:44 +00004915IFS=$as_save_IFS
4916
4917if test $ac_prog_rejected = yes; then
4918 # We found a bogon in the path, so make sure we never use it.
4919 set dummy $ac_cv_prog_BUILD_CXX
4920 shift
4921 if test $# != 0; then
4922 # We chose a different compiler from the bogus one.
4923 # However, it has the same basename, so the bogon will be chosen
4924 # first if we set BUILD_CXX to just the basename; use the full file name.
4925 shift
4926 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4927 fi
4928fi
4929fi
4930fi
4931BUILD_CXX=$ac_cv_prog_BUILD_CXX
4932if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004933 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4934echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004936 { echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004938fi
4939
4940
4941 fi
4942 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004943else
4944 LLVM_CROSS_COMPILING=0
4945
4946fi
4947
Dan Gohman56fb5f92010-08-04 16:25:01 +00004948if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004949 cvsbuild="yes"
4950 optimize="no"
4951 CVSBUILD=CVSBUILD=1
4952
4953else
4954 cvsbuild="no"
4955 optimize="yes"
4956fi
4957
4958
4959# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004960if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004961 enableval=$enable_optimized;
4962else
4963 enableval=$optimize
4964fi
4965
4966if test ${enableval} = "no" ; then
4967 ENABLE_OPTIMIZED=
4968
4969else
4970 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4971
4972fi
4973
David Greene2a5a12c2009-04-17 14:50:39 +00004974# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004975if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004976 enableval=$enable_profiling;
4977else
4978 enableval="no"
4979fi
4980
4981if test ${enableval} = "no" ; then
4982 ENABLE_PROFILING=
4983
4984else
4985 ENABLE_PROFILING=ENABLE_PROFILING=1
4986
4987fi
4988
Reid Spencera773bd52006-08-04 18:18:08 +00004989# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004990if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004991 enableval=$enable_assertions;
4992else
4993 enableval="yes"
4994fi
4995
4996if test ${enableval} = "yes" ; then
4997 DISABLE_ASSERTIONS=
4998
4999else
5000 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5001
5002fi
5003
David Greenea696d242007-06-28 19:36:08 +00005004# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005005if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005006 enableval=$enable_expensive_checks;
5007else
5008 enableval="no"
5009fi
5010
5011if test ${enableval} = "yes" ; then
5012 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5013
5014 EXPENSIVE_CHECKS=yes
5015
5016else
5017 ENABLE_EXPENSIVE_CHECKS=
5018
5019 EXPENSIVE_CHECKS=no
5020
5021fi
5022
Reid Spencer8b2e1412006-11-17 03:32:33 +00005023# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005024if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005025 enableval=$enable_debug_runtime;
5026else
5027 enableval=no
5028fi
5029
5030if test ${enableval} = "no" ; then
5031 DEBUG_RUNTIME=
5032
5033else
5034 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5035
5036fi
5037
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005038# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005039if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005040 enableval=$enable_debug_symbols;
5041else
5042 enableval=no
5043fi
5044
5045if test ${enableval} = "no" ; then
5046 DEBUG_SYMBOLS=
5047
5048else
5049 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5050
5051fi
5052
Reid Spencera773bd52006-08-04 18:18:08 +00005053# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005054if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005055 enableval=$enable_jit;
5056else
5057 enableval=default
5058fi
5059
5060if test ${enableval} = "no"
5061then
5062 JIT=
5063
5064else
5065 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005066 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005067 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005068 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005069 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005070 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005071 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005072 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005073 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005074 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005075 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005076 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005077 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005078 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005079 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005080 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005081 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005082 MBlaze) TARGET_HAS_JIT=0
5083 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005084 PTX) TARGET_HAS_JIT=0
5085 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005086 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005087 ;;
5088 esac
5089fi
5090
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005091# Check whether --enable-docs was given.
5092if test "${enable_docs+set}" = set; then
5093 enableval=$enable_docs;
5094else
5095 enableval=default
5096fi
5097
5098case "$enableval" in
5099 yes) ENABLE_DOCS=1
5100 ;;
5101 no) ENABLE_DOCS=0
5102 ;;
5103 default) ENABLE_DOCS=1
5104 ;;
5105 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5106echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5107 { (exit 1); exit 1; }; } ;;
5108esac
5109
Reid Spencera773bd52006-08-04 18:18:08 +00005110# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005111if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005112 enableval=$enable_doxygen;
5113else
5114 enableval=default
5115fi
5116
5117case "$enableval" in
5118 yes) ENABLE_DOXYGEN=1
5119 ;;
5120 no) ENABLE_DOXYGEN=0
5121 ;;
5122 default) ENABLE_DOXYGEN=0
5123 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005124 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5125echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5126 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005127esac
5128
5129# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005130if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005131 enableval=$enable_threads;
5132else
Reid Spencer65c5d752006-11-05 17:08:18 +00005133 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005134fi
5135
5136case "$enableval" in
5137 yes) ENABLE_THREADS=1
5138 ;;
5139 no) ENABLE_THREADS=0
5140 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005141 default) ENABLE_THREADS=1
5142 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5144echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005146esac
5147
Owen Andersona8603702009-05-19 22:18:56 +00005148cat >>confdefs.h <<_ACEOF
5149#define ENABLE_THREADS $ENABLE_THREADS
5150_ACEOF
5151
5152
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005153# Check whether --enable-pthreads was given.
5154if test "${enable_pthreads+set}" = set; then
5155 enableval=$enable_pthreads;
5156else
5157 enableval=default
5158fi
5159
5160case "$enableval" in
5161 yes) ENABLE_PTHREADS=1
5162 ;;
5163 no) ENABLE_PTHREADS=0
5164 ;;
5165 default) ENABLE_PTHREADS=1
5166 ;;
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5168echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5170esac
5171
Reid Spencer89b0d992006-12-16 22:07:52 +00005172# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005173if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005174 enableval=$enable_pic;
5175else
5176 enableval=default
5177fi
5178
5179case "$enableval" in
5180 yes) ENABLE_PIC=1
5181 ;;
5182 no) ENABLE_PIC=0
5183 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005184 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005185 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5187echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005189esac
5190
5191cat >>confdefs.h <<_ACEOF
5192#define ENABLE_PIC $ENABLE_PIC
5193_ACEOF
5194
5195
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005196# Check whether --enable-shared was given.
5197if test "${enable_shared+set}" = set; then
5198 enableval=$enable_shared;
5199else
5200 enableval=default
5201fi
5202
5203case "$enableval" in
5204 yes) ENABLE_SHARED=1
5205 ;;
5206 no) ENABLE_SHARED=0
5207 ;;
5208 default) ENABLE_SHARED=0
5209 ;;
5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5211echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5213esac
5214
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005215# Check whether --enable-embed-stdcxx was given.
5216if test "${enable_embed_stdcxx+set}" = set; then
5217 enableval=$enable_embed_stdcxx;
5218else
5219 enableval=default
5220fi
5221
5222case "$enableval" in
5223 yes) ENABLE_EMBED_STDCXX=1
5224 ;;
5225 no) ENABLE_EMBED_STDCXX=0
5226 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005227 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005228 ;;
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5230echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5232esac
5233
Daniel Dunbardd464df2010-05-10 20:11:56 +00005234# Check whether --enable-timestamps was given.
5235if test "${enable_timestamps+set}" = set; then
5236 enableval=$enable_timestamps;
5237else
5238 enableval=default
5239fi
5240
5241case "$enableval" in
5242 yes) ENABLE_TIMESTAMPS=1
5243 ;;
5244 no) ENABLE_TIMESTAMPS=0
5245 ;;
5246 default) ENABLE_TIMESTAMPS=1
5247 ;;
5248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5249echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5250 { (exit 1); exit 1; }; } ;;
5251esac
5252
5253cat >>confdefs.h <<_ACEOF
5254#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5255_ACEOF
5256
5257
Reid Spencera773bd52006-08-04 18:18:08 +00005258TARGETS_TO_BUILD=""
5259# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005260if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005261 enableval=$enable_targets;
5262else
5263 enableval=all
5264fi
5265
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005266if test "$enableval" = host-only ; then
5267 enableval=host
5268fi
Reid Spencera773bd52006-08-04 18:18:08 +00005269case "$enableval" in
Dan Gohman33ba8b02011-10-27 22:56:32 +00005270 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005271 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5272 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005273 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5274 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5275 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5276 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005277 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5278 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5279 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005280 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5281 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005282 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005283 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005284 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005285 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005286 host) case "$llvm_cv_target_arch" in
5287 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5288 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5289 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5290 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005291 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5292 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005293 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005294 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005295 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5296 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005297 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005298 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5299echo "$as_me: error: Can not set target to build" >&2;}
5300 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005301 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005302 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5303echo "$as_me: error: Unrecognized target $a_target" >&2;}
5304 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005305 esac
5306 done
5307 ;;
5308esac
Reid Spencera773bd52006-08-04 18:18:08 +00005309TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5310
5311
Douglas Gregor0711c302009-06-17 00:43:20 +00005312# Determine whether we are building LLVM support for the native architecture.
5313# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5314for a_target in $TARGETS_TO_BUILD; do
5315 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5316
5317cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005318#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5319_ACEOF
5320
5321 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5322 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005323 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005324 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005325 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5326 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5327 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005328
5329cat >>confdefs.h <<_ACEOF
5330#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005331_ACEOF
5332
5333
5334cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005335#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5336_ACEOF
5337
5338
5339cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005340#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005341_ACEOF
5342
5343
5344cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005345#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005346_ACEOF
5347
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005348 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005349
5350cat >>confdefs.h <<_ACEOF
5351#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5352_ACEOF
5353
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005354 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005355 fi
5356done
5357
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005358# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5359# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005360LLVM_ENUM_TARGETS=""
5361LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005362LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005363LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005364for target_to_build in $TARGETS_TO_BUILD; do
5365 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005366 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005367 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5368 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005369 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5370 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5371 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005372 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5373 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5374 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005375done
5376
5377
5378
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005379
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005380
Reid Spencer65c5d752006-11-05 17:08:18 +00005381# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005382if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005383 enableval=$enable_cbe_printf_a;
5384else
5385 enableval=default
5386fi
5387
5388case "$enableval" in
5389 yes) ENABLE_CBE_PRINTF_A=1
5390 ;;
5391 no) ENABLE_CBE_PRINTF_A=0
5392 ;;
5393 default) ENABLE_CBE_PRINTF_A=1
5394 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005395 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5396echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5397 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005398esac
5399
5400cat >>confdefs.h <<_ACEOF
5401#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5402_ACEOF
5403
5404
Reid Spencera773bd52006-08-04 18:18:08 +00005405
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005406# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005407if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005408 withval=$with_optimize_option;
5409else
5410 withval=default
5411fi
5412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005413{ echo "$as_me:$LINENO: checking optimization flags" >&5
5414echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005415case "$withval" in
5416 default)
5417 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005418 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005419 MingW) optimize_option=-O2 ;;
5420 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005421 esac ;;
5422 *) optimize_option="$withval" ;;
5423esac
5424OPTIMIZE_OPTION=$optimize_option
5425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005426{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5427echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005428
5429
Reid Spencera773bd52006-08-04 18:18:08 +00005430# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005432 withval=$with_extra_options;
5433else
5434 withval=default
5435fi
5436
5437case "$withval" in
5438 default) EXTRA_OPTIONS= ;;
5439 *) EXTRA_OPTIONS=$withval ;;
5440esac
5441EXTRA_OPTIONS=$EXTRA_OPTIONS
5442
5443
Daniel Dunbared344d22011-06-16 22:30:41 +00005444
5445# Check whether --with-extra-ld-options was given.
5446if test "${with_extra_ld_options+set}" = set; then
5447 withval=$with_extra_ld_options;
5448else
5449 withval=default
5450fi
5451
5452case "$withval" in
5453 default) EXTRA_LD_OPTIONS= ;;
5454 *) EXTRA_LD_OPTIONS=$withval ;;
5455esac
5456EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5457
5458
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005459# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005461 enableval=$enable_bindings;
5462else
5463 enableval=default
5464fi
5465
5466BINDINGS_TO_BUILD=""
5467case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005468 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005469 all ) BINDINGS_TO_BUILD="ocaml" ;;
5470 none | no) BINDINGS_TO_BUILD="" ;;
5471 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5472 case "$a_binding" in
5473 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005474 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5475echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5476 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005477 esac
5478 done
5479 ;;
5480esac
5481
Reid Spencera773bd52006-08-04 18:18:08 +00005482
Gordon Henriksenf0915682007-10-02 16:42:22 +00005483# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005484if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005485 withval=$with_ocaml_libdir;
5486else
5487 withval=auto
5488fi
5489
5490case "$withval" in
5491 auto) with_ocaml_libdir="$withval" ;;
5492 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5494echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5495 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005496esac
5497
5498
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005499# Check whether --with-clang-srcdir was given.
5500if test "${with_clang_srcdir+set}" = set; then
5501 withval=$with_clang_srcdir;
5502else
5503 withval="-"
5504fi
5505
5506case "$withval" in
5507 -) clang_src_root="" ;;
5508 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5509 *) clang_src_root="$ac_pwd/$withval" ;;
5510esac
5511CLANG_SRC_ROOT=$clang_src_root
5512
5513
5514
Chandler Carruth6b241162010-10-19 08:21:25 +00005515# Check whether --with-clang-resource-dir was given.
5516if test "${with_clang_resource_dir+set}" = set; then
5517 withval=$with_clang_resource_dir;
5518else
5519 withval=""
5520fi
5521
5522
5523cat >>confdefs.h <<_ACEOF
5524#define CLANG_RESOURCE_DIR "$withval"
5525_ACEOF
5526
5527
5528
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005529# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005530if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005531 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005532else
5533 withval=""
5534fi
5535
5536
5537cat >>confdefs.h <<_ACEOF
5538#define C_INCLUDE_DIRS "$withval"
5539_ACEOF
5540
5541
5542
Rafael Espindola420d23c2009-11-16 19:46:55 +00005543# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005544if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005545 withval=$with_cxx_include_root;
5546else
5547 withval=""
5548fi
5549
5550
5551cat >>confdefs.h <<_ACEOF
5552#define CXX_INCLUDE_ROOT "$withval"
5553_ACEOF
5554
5555
5556
5557# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005558if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005559 withval=$with_cxx_include_arch;
5560else
5561 withval=""
5562fi
5563
5564
5565cat >>confdefs.h <<_ACEOF
5566#define CXX_INCLUDE_ARCH "$withval"
5567_ACEOF
5568
5569
5570
5571# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005572if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005573 withval=$with_cxx_include_32bit_dir;
5574else
5575 withval=""
5576fi
5577
5578
5579cat >>confdefs.h <<_ACEOF
5580#define CXX_INCLUDE_32BIT_DIR "$withval"
5581_ACEOF
5582
5583
5584
5585# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005586if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005587 withval=$with_cxx_include_64bit_dir;
5588else
5589 withval=""
5590fi
5591
5592
5593cat >>confdefs.h <<_ACEOF
5594#define CXX_INCLUDE_64BIT_DIR "$withval"
5595_ACEOF
5596
5597
5598
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005599# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005600if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005601 withval=$with_binutils_include;
5602else
5603 withval=default
5604fi
5605
5606case "$withval" in
5607 default) WITH_BINUTILS_INCDIR=default ;;
5608 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005609 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5610echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5611 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005612esac
5613if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5614 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5615
5616 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5617 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005618 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5619echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5620 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005621 fi
5622fi
5623
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005624
5625# Check whether --with-bug-report-url was given.
5626if test "${with_bug_report_url+set}" = set; then
5627 withval=$with_bug_report_url;
5628else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005629 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005630fi
5631
5632
5633cat >>confdefs.h <<_ACEOF
5634#define BUG_REPORT_URL "$withval"
5635_ACEOF
5636
5637
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005638# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005639if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005640 enableval=$enable_libffi; case "$enableval" in
5641 yes) llvm_cv_enable_libffi="yes" ;;
5642 no) llvm_cv_enable_libffi="no" ;;
5643 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5645 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005646 esac
5647else
5648 llvm_cv_enable_libffi=no
5649fi
5650
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005651
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005653{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5654echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5655if test "${lt_cv_path_NM+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005657else
5658 if test -n "$NM"; then
5659 # Let the user override the test.
5660 lt_cv_path_NM="$NM"
5661else
5662 lt_nm_to_check="${ac_tool_prefix}nm"
5663 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5664 lt_nm_to_check="$lt_nm_to_check nm"
5665 fi
5666 for lt_tmp_nm in $lt_nm_to_check; do
5667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5668 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5669 IFS="$lt_save_ifs"
5670 test -z "$ac_dir" && ac_dir=.
5671 tmp_nm="$ac_dir/$lt_tmp_nm"
5672 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5673 # Check to see if the nm accepts a BSD-compat flag.
5674 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5675 # nm: unknown option "B" ignored
5676 # Tru64's nm complains that /dev/null is an invalid object file
5677 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5678 */dev/null* | *'Invalid file or object type'*)
5679 lt_cv_path_NM="$tmp_nm -B"
5680 break
5681 ;;
5682 *)
5683 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5684 */dev/null*)
5685 lt_cv_path_NM="$tmp_nm -p"
5686 break
5687 ;;
5688 *)
5689 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5690 continue # so that we can try to find one that supports BSD flags
5691 ;;
5692 esac
5693 ;;
5694 esac
5695 fi
5696 done
5697 IFS="$lt_save_ifs"
5698 done
5699 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5700fi
5701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005702{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5703echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005704NM="$lt_cv_path_NM"
5705
5706
5707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708{ echo "$as_me:$LINENO: checking for GNU make" >&5
5709echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5710if test "${llvm_cv_gnu_make_command+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005712else
5713 llvm_cv_gnu_make_command=''
5714 for a in "$MAKE" make gmake gnumake ; do
5715 if test -z "$a" ; then continue ; fi ;
5716 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5717 then
5718 llvm_cv_gnu_make_command=$a ;
5719 break;
5720 fi
5721 done
5722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005723{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5724echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005725 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5726 ifGNUmake='' ;
5727 else
5728 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005729 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5730echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005731 fi
5732
5733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5735echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005736LN_S=$as_ln_s
5737if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738 { echo "$as_me:$LINENO: result: yes" >&5
5739echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5742echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005743fi
5744
5745# Extract the first word of "cmp", so it can be a program name with args.
5746set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749if test "${ac_cv_path_CMP+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005751else
5752 case $CMP in
5753 [\\/]* | ?:[\\/]*)
5754 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5755 ;;
5756 *)
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 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 +00005764 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005766 break 2
5767 fi
5768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769done
Reid Spencera773bd52006-08-04 18:18:08 +00005770IFS=$as_save_IFS
5771
5772 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5773 ;;
5774esac
5775fi
5776CMP=$ac_cv_path_CMP
5777if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005778 { echo "$as_me:$LINENO: result: $CMP" >&5
5779echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005781 { echo "$as_me:$LINENO: result: no" >&5
5782echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005783fi
5784
5785
5786# Extract the first word of "cp", so it can be a program name with args.
5787set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790if test "${ac_cv_path_CP+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005792else
5793 case $CP in
5794 [\\/]* | ?:[\\/]*)
5795 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5796 ;;
5797 *)
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 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 +00005805 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005807 break 2
5808 fi
5809done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005810done
Reid Spencera773bd52006-08-04 18:18:08 +00005811IFS=$as_save_IFS
5812
5813 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5814 ;;
5815esac
5816fi
5817CP=$ac_cv_path_CP
5818if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819 { echo "$as_me:$LINENO: result: $CP" >&5
5820echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822 { echo "$as_me:$LINENO: result: no" >&5
5823echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005824fi
5825
5826
5827# Extract the first word of "date", so it can be a program name with args.
5828set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831if test "${ac_cv_path_DATE+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005833else
5834 case $DATE in
5835 [\\/]* | ?:[\\/]*)
5836 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5837 ;;
5838 *)
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 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 +00005846 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005848 break 2
5849 fi
5850done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851done
Reid Spencera773bd52006-08-04 18:18:08 +00005852IFS=$as_save_IFS
5853
5854 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5855 ;;
5856esac
5857fi
5858DATE=$ac_cv_path_DATE
5859if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860 { echo "$as_me:$LINENO: result: $DATE" >&5
5861echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863 { echo "$as_me:$LINENO: result: no" >&5
5864echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005865fi
5866
5867
5868# Extract the first word of "find", so it can be a program name with args.
5869set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872if test "${ac_cv_path_FIND+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005874else
5875 case $FIND in
5876 [\\/]* | ?:[\\/]*)
5877 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5878 ;;
5879 *)
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 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 +00005887 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005889 break 2
5890 fi
5891done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005892done
Reid Spencera773bd52006-08-04 18:18:08 +00005893IFS=$as_save_IFS
5894
5895 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5896 ;;
5897esac
5898fi
5899FIND=$ac_cv_path_FIND
5900if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005901 { echo "$as_me:$LINENO: result: $FIND" >&5
5902echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904 { echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005906fi
5907
5908
5909# Extract the first word of "grep", so it can be a program name with args.
5910set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913if test "${ac_cv_path_GREP+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005915else
5916 case $GREP in
5917 [\\/]* | ?:[\\/]*)
5918 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5919 ;;
5920 *)
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 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 +00005928 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005930 break 2
5931 fi
5932done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005933done
Reid Spencera773bd52006-08-04 18:18:08 +00005934IFS=$as_save_IFS
5935
5936 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5937 ;;
5938esac
5939fi
5940GREP=$ac_cv_path_GREP
5941if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942 { echo "$as_me:$LINENO: result: $GREP" >&5
5943echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945 { echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005947fi
5948
5949
5950# Extract the first word of "mkdir", so it can be a program name with args.
5951set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954if test "${ac_cv_path_MKDIR+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005956else
5957 case $MKDIR in
5958 [\\/]* | ?:[\\/]*)
5959 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5960 ;;
5961 *)
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 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 +00005969 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005971 break 2
5972 fi
5973done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005974done
Reid Spencera773bd52006-08-04 18:18:08 +00005975IFS=$as_save_IFS
5976
5977 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5978 ;;
5979esac
5980fi
5981MKDIR=$ac_cv_path_MKDIR
5982if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005983 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5984echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005985else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986 { echo "$as_me:$LINENO: result: no" >&5
5987echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005988fi
5989
5990
5991# Extract the first word of "mv", so it can be a program name with args.
5992set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995if test "${ac_cv_path_MV+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005997else
5998 case $MV in
5999 [\\/]* | ?:[\\/]*)
6000 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6001 ;;
6002 *)
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 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 +00006010 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006012 break 2
6013 fi
6014done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015done
Reid Spencera773bd52006-08-04 18:18:08 +00006016IFS=$as_save_IFS
6017
6018 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6019 ;;
6020esac
6021fi
6022MV=$ac_cv_path_MV
6023if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006024 { echo "$as_me:$LINENO: result: $MV" >&5
6025echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027 { echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006029fi
6030
6031
6032if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6034set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037if test "${ac_cv_prog_RANLIB+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006039else
6040 if test -n "$RANLIB"; then
6041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6042else
6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 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 +00006050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006052 break 2
6053 fi
6054done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006055done
Reid Spencera773bd52006-08-04 18:18:08 +00006056IFS=$as_save_IFS
6057
6058fi
6059fi
6060RANLIB=$ac_cv_prog_RANLIB
6061if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6063echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006064else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006065 { echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006067fi
6068
6069
6070fi
6071if test -z "$ac_cv_prog_RANLIB"; then
6072 ac_ct_RANLIB=$RANLIB
6073 # Extract the first word of "ranlib", so it can be a program name with args.
6074set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006075{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006079else
6080 if test -n "$ac_ct_RANLIB"; then
6081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 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 +00006090 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006092 break 2
6093 fi
6094done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006095done
Reid Spencera773bd52006-08-04 18:18:08 +00006096IFS=$as_save_IFS
6097
6098fi
6099fi
6100ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6101if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006102 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6103echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 { echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006107fi
6108
6109 if test "x$ac_ct_RANLIB" = x; then
6110 RANLIB=":"
6111 else
6112 case $cross_compiling:$ac_tool_warned in
6113yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006114{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6115whose name does not start with the host triplet. If you think this
6116configuration is useful to you, please write to autoconf@gnu.org." >&5
6117echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6118whose name does not start with the host triplet. If you think this
6119configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006120ac_tool_warned=yes ;;
6121esac
6122 RANLIB=$ac_ct_RANLIB
6123 fi
6124else
6125 RANLIB="$ac_cv_prog_RANLIB"
6126fi
6127
Torok Edwin871384f2010-01-26 08:50:50 +00006128if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6130set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133if test "${ac_cv_prog_AR+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006135else
6136 if test -n "$AR"; then
6137 ac_cv_prog_AR="$AR" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 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 +00006146 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006148 break 2
6149 fi
6150done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006151done
Torok Edwin871384f2010-01-26 08:50:50 +00006152IFS=$as_save_IFS
6153
6154fi
6155fi
6156AR=$ac_cv_prog_AR
6157if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158 { echo "$as_me:$LINENO: result: $AR" >&5
6159echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161 { echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006163fi
6164
6165
6166fi
6167if test -z "$ac_cv_prog_AR"; then
6168 ac_ct_AR=$AR
6169 # Extract the first word of "ar", so it can be a program name with args.
6170set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006175else
6176 if test -n "$ac_ct_AR"; then
6177 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 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 +00006186 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006188 break 2
6189 fi
6190done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191done
Torok Edwin871384f2010-01-26 08:50:50 +00006192IFS=$as_save_IFS
6193
6194fi
6195fi
6196ac_ct_AR=$ac_cv_prog_ac_ct_AR
6197if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6199echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201 { echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006203fi
6204
6205 if test "x$ac_ct_AR" = x; then
6206 AR="false"
6207 else
6208 case $cross_compiling:$ac_tool_warned in
6209yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006210{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6211whose name does not start with the host triplet. If you think this
6212configuration is useful to you, please write to autoconf@gnu.org." >&5
6213echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6214whose name does not start with the host triplet. If you think this
6215configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006216ac_tool_warned=yes ;;
6217esac
6218 AR=$ac_ct_AR
6219 fi
6220else
6221 AR="$ac_cv_prog_AR"
6222fi
6223
Reid Spencera773bd52006-08-04 18:18:08 +00006224# Extract the first word of "rm", so it can be a program name with args.
6225set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228if test "${ac_cv_path_RM+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006230else
6231 case $RM in
6232 [\\/]* | ?:[\\/]*)
6233 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6234 ;;
6235 *)
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 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 +00006243 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006245 break 2
6246 fi
6247done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248done
Reid Spencera773bd52006-08-04 18:18:08 +00006249IFS=$as_save_IFS
6250
6251 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6252 ;;
6253esac
6254fi
6255RM=$ac_cv_path_RM
6256if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257 { echo "$as_me:$LINENO: result: $RM" >&5
6258echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006260 { echo "$as_me:$LINENO: result: no" >&5
6261echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006262fi
6263
6264
6265# Extract the first word of "sed", so it can be a program name with args.
6266set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269if test "${ac_cv_path_SED+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006271else
6272 case $SED in
6273 [\\/]* | ?:[\\/]*)
6274 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6275 ;;
6276 *)
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 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 +00006284 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006286 break 2
6287 fi
6288done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006289done
Reid Spencera773bd52006-08-04 18:18:08 +00006290IFS=$as_save_IFS
6291
6292 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6293 ;;
6294esac
6295fi
6296SED=$ac_cv_path_SED
6297if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298 { echo "$as_me:$LINENO: result: $SED" >&5
6299echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006300else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301 { echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006303fi
6304
6305
6306# Extract the first word of "tar", so it can be a program name with args.
6307set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310if test "${ac_cv_path_TAR+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006312else
6313 case $TAR in
6314 [\\/]* | ?:[\\/]*)
6315 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6316 ;;
6317 *)
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319for as_dir in $PATH
6320do
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 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 +00006325 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006327 break 2
6328 fi
6329done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006330done
Reid Spencera773bd52006-08-04 18:18:08 +00006331IFS=$as_save_IFS
6332
6333 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6334 ;;
6335esac
6336fi
6337TAR=$ac_cv_path_TAR
6338if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006339 { echo "$as_me:$LINENO: result: $TAR" >&5
6340echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342 { echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006344fi
6345
6346
6347# Extract the first word of "pwd", so it can be a program name with args.
6348set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351if test "${ac_cv_path_BINPWD+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006353else
6354 case $BINPWD in
6355 [\\/]* | ?:[\\/]*)
6356 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6357 ;;
6358 *)
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 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 +00006366 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006368 break 2
6369 fi
6370done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371done
Reid Spencera773bd52006-08-04 18:18:08 +00006372IFS=$as_save_IFS
6373
6374 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6375 ;;
6376esac
6377fi
6378BINPWD=$ac_cv_path_BINPWD
6379if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6381echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383 { echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006385fi
6386
6387
6388
6389# Extract the first word of "Graphviz", so it can be a program name with args.
6390set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006395else
6396 case $GRAPHVIZ in
6397 [\\/]* | ?:[\\/]*)
6398 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6399 ;;
6400 *)
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 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 +00006408 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006410 break 2
6411 fi
6412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413done
Reid Spencera773bd52006-08-04 18:18:08 +00006414IFS=$as_save_IFS
6415
6416 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6417 ;;
6418esac
6419fi
6420GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6421if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6423echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425 { echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006427fi
6428
6429
6430if test "$GRAPHVIZ" != "echo Graphviz" ; then
6431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006432cat >>confdefs.h <<\_ACEOF
6433#define HAVE_GRAPHVIZ 1
6434_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006435
Jeff Cohen28783c32007-01-12 18:22:38 +00006436 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006437 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6438 fi
6439
6440cat >>confdefs.h <<_ACEOF
6441#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6442_ACEOF
6443
6444fi
6445# Extract the first word of "dot", so it can be a program name with args.
6446set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449if test "${ac_cv_path_DOT+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006451else
6452 case $DOT in
6453 [\\/]* | ?:[\\/]*)
6454 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6455 ;;
6456 *)
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 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 +00006464 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006466 break 2
6467 fi
6468done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006469done
Reid Spencera773bd52006-08-04 18:18:08 +00006470IFS=$as_save_IFS
6471
6472 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6473 ;;
6474esac
6475fi
6476DOT=$ac_cv_path_DOT
6477if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 { echo "$as_me:$LINENO: result: $DOT" >&5
6479echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481 { echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006483fi
6484
6485
6486if test "$DOT" != "echo dot" ; then
6487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006488cat >>confdefs.h <<\_ACEOF
6489#define HAVE_DOT 1
6490_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006491
Jeff Cohen28783c32007-01-12 18:22:38 +00006492 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006493 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6494 fi
6495
6496cat >>confdefs.h <<_ACEOF
6497#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6498_ACEOF
6499
6500fi
David Greenef0b9eff2009-07-09 17:16:26 +00006501# Extract the first word of "fdp", so it can be a program name with args.
6502set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6505if test "${ac_cv_path_FDP+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006507else
6508 case $FDP in
6509 [\\/]* | ?:[\\/]*)
6510 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6511 ;;
6512 *)
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 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 +00006520 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006522 break 2
6523 fi
6524done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006525done
David Greenef0b9eff2009-07-09 17:16:26 +00006526IFS=$as_save_IFS
6527
6528 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6529 ;;
6530esac
6531fi
6532FDP=$ac_cv_path_FDP
6533if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534 { echo "$as_me:$LINENO: result: $FDP" >&5
6535echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537 { echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006539fi
6540
6541
6542if test "$FDP" != "echo fdp" ; then
6543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006544cat >>confdefs.h <<\_ACEOF
6545#define HAVE_FDP 1
6546_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006547
6548 if test "$llvm_cv_os_type" = "MingW" ; then
6549 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6550 fi
6551
6552cat >>confdefs.h <<_ACEOF
6553#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6554_ACEOF
6555
6556fi
6557# Extract the first word of "neato", so it can be a program name with args.
6558set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561if test "${ac_cv_path_NEATO+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006563else
6564 case $NEATO in
6565 [\\/]* | ?:[\\/]*)
6566 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6567 ;;
6568 *)
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 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 +00006576 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006578 break 2
6579 fi
6580done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006581done
David Greenef0b9eff2009-07-09 17:16:26 +00006582IFS=$as_save_IFS
6583
6584 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6585 ;;
6586esac
6587fi
6588NEATO=$ac_cv_path_NEATO
6589if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590 { echo "$as_me:$LINENO: result: $NEATO" >&5
6591echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006593 { echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006595fi
6596
6597
6598if test "$NEATO" != "echo neato" ; then
6599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006600cat >>confdefs.h <<\_ACEOF
6601#define HAVE_NEATO 1
6602_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006603
6604 if test "$llvm_cv_os_type" = "MingW" ; then
6605 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6606 fi
6607
6608cat >>confdefs.h <<_ACEOF
6609#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6610_ACEOF
6611
6612fi
6613# Extract the first word of "twopi", so it can be a program name with args.
6614set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617if test "${ac_cv_path_TWOPI+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006619else
6620 case $TWOPI in
6621 [\\/]* | ?:[\\/]*)
6622 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6623 ;;
6624 *)
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 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 +00006632 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006634 break 2
6635 fi
6636done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006637done
David Greenef0b9eff2009-07-09 17:16:26 +00006638IFS=$as_save_IFS
6639
6640 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6641 ;;
6642esac
6643fi
6644TWOPI=$ac_cv_path_TWOPI
6645if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6647echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006649 { echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006651fi
6652
6653
6654if test "$TWOPI" != "echo twopi" ; then
6655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006656cat >>confdefs.h <<\_ACEOF
6657#define HAVE_TWOPI 1
6658_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006659
6660 if test "$llvm_cv_os_type" = "MingW" ; then
6661 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6662 fi
6663
6664cat >>confdefs.h <<_ACEOF
6665#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6666_ACEOF
6667
6668fi
6669# Extract the first word of "circo", so it can be a program name with args.
6670set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673if test "${ac_cv_path_CIRCO+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006675else
6676 case $CIRCO in
6677 [\\/]* | ?:[\\/]*)
6678 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6679 ;;
6680 *)
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 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 +00006688 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006690 break 2
6691 fi
6692done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006693done
David Greenef0b9eff2009-07-09 17:16:26 +00006694IFS=$as_save_IFS
6695
6696 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6697 ;;
6698esac
6699fi
6700CIRCO=$ac_cv_path_CIRCO
6701if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6703echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006705 { echo "$as_me:$LINENO: result: no" >&5
6706echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006707fi
6708
6709
6710if test "$CIRCO" != "echo circo" ; then
6711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006712cat >>confdefs.h <<\_ACEOF
6713#define HAVE_CIRCO 1
6714_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006715
6716 if test "$llvm_cv_os_type" = "MingW" ; then
6717 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6718 fi
6719
6720cat >>confdefs.h <<_ACEOF
6721#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6722_ACEOF
6723
6724fi
Reid Spencera773bd52006-08-04 18:18:08 +00006725for ac_prog in gv gsview32
6726do
6727 # Extract the first word of "$ac_prog", so it can be a program name with args.
6728set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_GV+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006733else
6734 case $GV in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 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 +00006746 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006748 break 2
6749 fi
6750done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006751done
Reid Spencera773bd52006-08-04 18:18:08 +00006752IFS=$as_save_IFS
6753
6754 ;;
6755esac
6756fi
6757GV=$ac_cv_path_GV
6758if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759 { echo "$as_me:$LINENO: result: $GV" >&5
6760echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006761else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762 { echo "$as_me:$LINENO: result: no" >&5
6763echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006764fi
6765
6766
6767 test -n "$GV" && break
6768done
6769test -n "$GV" || GV="echo gv"
6770
6771if test "$GV" != "echo gv" ; then
6772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006773cat >>confdefs.h <<\_ACEOF
6774#define HAVE_GV 1
6775_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006776
Jeff Cohen28783c32007-01-12 18:22:38 +00006777 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006778 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6779 fi
6780
6781cat >>confdefs.h <<_ACEOF
6782#define LLVM_PATH_GV "$GV${EXEEXT}"
6783_ACEOF
6784
6785fi
6786# Extract the first word of "dotty", so it can be a program name with args.
6787set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790if test "${ac_cv_path_DOTTY+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006792else
6793 case $DOTTY in
6794 [\\/]* | ?:[\\/]*)
6795 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6796 ;;
6797 *)
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 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 +00006805 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006807 break 2
6808 fi
6809done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006810done
Reid Spencera773bd52006-08-04 18:18:08 +00006811IFS=$as_save_IFS
6812
6813 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6814 ;;
6815esac
6816fi
6817DOTTY=$ac_cv_path_DOTTY
6818if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006819 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6820echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822 { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006824fi
6825
6826
6827if test "$DOTTY" != "echo dotty" ; then
6828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829cat >>confdefs.h <<\_ACEOF
6830#define HAVE_DOTTY 1
6831_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006832
Jeff Cohen28783c32007-01-12 18:22:38 +00006833 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006834 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6835 fi
6836
6837cat >>confdefs.h <<_ACEOF
6838#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6839_ACEOF
6840
6841fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006842# Extract the first word of "xdot.py", so it can be a program name with args.
6843set dummy xdot.py; ac_word=$2
6844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846if test "${ac_cv_path_XDOT_PY+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848else
6849 case $XDOT_PY in
6850 [\\/]* | ?:[\\/]*)
6851 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6852 ;;
6853 *)
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865done
6866done
6867IFS=$as_save_IFS
6868
6869 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6870 ;;
6871esac
6872fi
6873XDOT_PY=$ac_cv_path_XDOT_PY
6874if test -n "$XDOT_PY"; then
6875 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6876echo "${ECHO_T}$XDOT_PY" >&6; }
6877else
6878 { echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6; }
6880fi
6881
6882
6883if test "$XDOT_PY" != "echo xdot.py" ; then
6884
6885cat >>confdefs.h <<\_ACEOF
6886#define HAVE_XDOT_PY 1
6887_ACEOF
6888
6889 if test "$llvm_cv_os_type" = "MingW" ; then
6890 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6891 fi
6892
6893cat >>confdefs.h <<_ACEOF
6894#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6895_ACEOF
6896
6897fi
Reid Spencera773bd52006-08-04 18:18:08 +00006898
6899
6900# Extract the first word of "perl", so it can be a program name with args.
6901set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_path_PERL+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006906else
6907 case $PERL in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 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 +00006919 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006921 break 2
6922 fi
6923done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924done
Reid Spencera773bd52006-08-04 18:18:08 +00006925IFS=$as_save_IFS
6926
6927 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6928 ;;
6929esac
6930fi
6931PERL=$ac_cv_path_PERL
6932if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933 { echo "$as_me:$LINENO: result: $PERL" >&5
6934echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006936 { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006938fi
6939
6940
6941if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6943echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006944 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945 { echo "$as_me:$LINENO: result: yes" >&5
6946echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006947 else
6948 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949 { echo "$as_me:$LINENO: result: not found" >&5
6950echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006951 fi
6952fi
6953
6954
6955if test x"$PERL" = xnone; then
6956 HAVE_PERL=0
6957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6959echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6960 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006961else
6962 HAVE_PERL=1
6963
6964fi
6965
6966# Find a good install program. We prefer a C program (faster),
6967# so one script is as good as another. But avoid the broken or
6968# incompatible versions:
6969# SysV /etc/install, /usr/sbin/install
6970# SunOS /usr/etc/install
6971# IRIX /sbin/install
6972# AIX /bin/install
6973# AmigaOS /C/install, which installs bootblocks on floppy discs
6974# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6975# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6976# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6977# OS/2's system install, which has a completely different semantic
6978# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6980echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006981if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982if test "${ac_cv_path_install+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006984else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990 # Account for people who put trailing slashes in PATH elements.
6991case $as_dir/ in
6992 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006995 /usr/ucb/* ) ;;
6996 *)
6997 # OSF1 and SCO ODT 3.0 have their own names for install.
6998 # Don't use installbsd from OSF since it installs stuff as root
6999 # by default.
7000 for ac_prog in ginstall scoinst install; do
7001 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002 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 +00007003 if test $ac_prog = install &&
7004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7005 # AIX install. It has an incompatible calling convention.
7006 :
7007 elif test $ac_prog = install &&
7008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7009 # program-specific install script used by HP pwplus--don't use.
7010 :
7011 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007012 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7013 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007014 fi
7015 fi
7016 done
7017 done
7018 ;;
7019esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020done
Reid Spencera773bd52006-08-04 18:18:08 +00007021IFS=$as_save_IFS
7022
7023
7024fi
7025 if test "${ac_cv_path_install+set}" = set; then
7026 INSTALL=$ac_cv_path_install
7027 else
7028 # As a last resort, use the slow shell script. Don't cache a
7029 # value for INSTALL within a source directory, because that will
7030 # break other packages using the cache if that directory is
7031 # removed, or if the value is a relative name.
7032 INSTALL=$ac_install_sh
7033 fi
7034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007035{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7036echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007037
7038# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7039# It thinks the first close brace ends the variable substitution.
7040test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7041
7042test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7043
7044test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7045
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007046case "$INSTALL" in
7047 [\\/$]* | ?:[\\/]* ) ;;
7048 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7049esac
Reid Spencera773bd52006-08-04 18:18:08 +00007050
7051# Extract the first word of "bzip2", so it can be a program name with args.
7052set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055if test "${ac_cv_path_BZIP2+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007057else
7058 case $BZIP2 in
7059 [\\/]* | ?:[\\/]*)
7060 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7061 ;;
7062 *)
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 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 +00007070 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007072 break 2
7073 fi
7074done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007075done
Reid Spencera773bd52006-08-04 18:18:08 +00007076IFS=$as_save_IFS
7077
Reid Spencera773bd52006-08-04 18:18:08 +00007078 ;;
7079esac
7080fi
7081BZIP2=$ac_cv_path_BZIP2
7082if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7084echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086 { echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007088fi
7089
7090
mike-m68cb3192010-05-06 23:45:43 +00007091# Extract the first word of "cat", so it can be a program name with args.
7092set dummy cat; ac_word=$2
7093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095if test "${ac_cv_path_CAT+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098 case $CAT in
7099 [\\/]* | ?:[\\/]*)
7100 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7101 ;;
7102 *)
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104for as_dir in $PATH
7105do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7113 fi
7114done
7115done
7116IFS=$as_save_IFS
7117
7118 ;;
7119esac
7120fi
7121CAT=$ac_cv_path_CAT
7122if test -n "$CAT"; then
7123 { echo "$as_me:$LINENO: result: $CAT" >&5
7124echo "${ECHO_T}$CAT" >&6; }
7125else
7126 { echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6; }
7128fi
7129
7130
Reid Spencera773bd52006-08-04 18:18:08 +00007131# Extract the first word of "doxygen", so it can be a program name with args.
7132set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135if test "${ac_cv_path_DOXYGEN+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007137else
7138 case $DOXYGEN in
7139 [\\/]* | ?:[\\/]*)
7140 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7141 ;;
7142 *)
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 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 +00007150 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007152 break 2
7153 fi
7154done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007155done
Reid Spencera773bd52006-08-04 18:18:08 +00007156IFS=$as_save_IFS
7157
Reid Spencera773bd52006-08-04 18:18:08 +00007158 ;;
7159esac
7160fi
7161DOXYGEN=$ac_cv_path_DOXYGEN
7162if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007163 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7164echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166 { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007168fi
7169
7170
Reid Spencera773bd52006-08-04 18:18:08 +00007171# Extract the first word of "groff", so it can be a program name with args.
7172set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175if test "${ac_cv_path_GROFF+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007177else
7178 case $GROFF in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7181 ;;
7182 *)
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 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 +00007190 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007192 break 2
7193 fi
7194done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007195done
Reid Spencera773bd52006-08-04 18:18:08 +00007196IFS=$as_save_IFS
7197
Reid Spencera773bd52006-08-04 18:18:08 +00007198 ;;
7199esac
7200fi
7201GROFF=$ac_cv_path_GROFF
7202if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203 { echo "$as_me:$LINENO: result: $GROFF" >&5
7204echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007208fi
7209
7210
7211# Extract the first word of "gzip", so it can be a program name with args.
7212set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007215if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007217else
Eric Christopher031d3072010-12-10 01:31:51 +00007218 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007219 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007220 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007221 ;;
7222 *)
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007230 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007232 break 2
7233 fi
7234done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235done
Reid Spencera773bd52006-08-04 18:18:08 +00007236IFS=$as_save_IFS
7237
Reid Spencera773bd52006-08-04 18:18:08 +00007238 ;;
7239esac
7240fi
Eric Christopher031d3072010-12-10 01:31:51 +00007241GZIPBIN=$ac_cv_path_GZIPBIN
7242if test -n "$GZIPBIN"; then
7243 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7244echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246 { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007248fi
7249
7250
7251# Extract the first word of "pod2html", so it can be a program name with args.
7252set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255if test "${ac_cv_path_POD2HTML+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007257else
7258 case $POD2HTML in
7259 [\\/]* | ?:[\\/]*)
7260 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7261 ;;
7262 *)
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 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 +00007270 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007272 break 2
7273 fi
7274done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275done
Reid Spencera773bd52006-08-04 18:18:08 +00007276IFS=$as_save_IFS
7277
Reid Spencera773bd52006-08-04 18:18:08 +00007278 ;;
7279esac
7280fi
7281POD2HTML=$ac_cv_path_POD2HTML
7282if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007283 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7284echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286 { echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007288fi
7289
7290
7291# Extract the first word of "pod2man", so it can be a program name with args.
7292set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295if test "${ac_cv_path_POD2MAN+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007297else
7298 case $POD2MAN in
7299 [\\/]* | ?:[\\/]*)
7300 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7301 ;;
7302 *)
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 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 +00007310 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007312 break 2
7313 fi
7314done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315done
Reid Spencera773bd52006-08-04 18:18:08 +00007316IFS=$as_save_IFS
7317
Reid Spencera773bd52006-08-04 18:18:08 +00007318 ;;
7319esac
7320fi
7321POD2MAN=$ac_cv_path_POD2MAN
7322if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7324echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007325else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326 { echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007328fi
7329
7330
mike-m68cb3192010-05-06 23:45:43 +00007331# Extract the first word of "pdfroff", so it can be a program name with args.
7332set dummy pdfroff; ac_word=$2
7333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335if test "${ac_cv_path_PDFROFF+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337else
7338 case $PDFROFF in
7339 [\\/]* | ?:[\\/]*)
7340 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7341 ;;
7342 *)
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354done
7355done
7356IFS=$as_save_IFS
7357
7358 ;;
7359esac
7360fi
7361PDFROFF=$ac_cv_path_PDFROFF
7362if test -n "$PDFROFF"; then
7363 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7364echo "${ECHO_T}$PDFROFF" >&6; }
7365else
7366 { echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6; }
7368fi
7369
7370
Reid Spencera773bd52006-08-04 18:18:08 +00007371# Extract the first word of "runtest", so it can be a program name with args.
7372set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375if test "${ac_cv_path_RUNTEST+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007377else
7378 case $RUNTEST in
7379 [\\/]* | ?:[\\/]*)
7380 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7381 ;;
7382 *)
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 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 +00007390 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007392 break 2
7393 fi
7394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395done
Reid Spencera773bd52006-08-04 18:18:08 +00007396IFS=$as_save_IFS
7397
Reid Spencera773bd52006-08-04 18:18:08 +00007398 ;;
7399esac
7400fi
7401RUNTEST=$ac_cv_path_RUNTEST
7402if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007403 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7404echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406 { echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007408fi
7409
7410
7411
7412no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007413{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7414echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007415
7416# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007418 withval=$with_tclinclude; with_tclinclude=${withval}
7419else
7420 with_tclinclude=''
7421fi
7422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423if test "${ac_cv_path_tclsh+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007425else
7426
7427if test x"${with_tclinclude}" != x ; then
7428 if test -f ${with_tclinclude}/tclsh ; then
7429 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7430 elif test -f ${with_tclinclude}/src/tclsh ; then
7431 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7432 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7434echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7435 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007436 fi
7437fi
Torok Edwin871384f2010-01-26 08:50:50 +00007438fi
7439
Reid Spencera773bd52006-08-04 18:18:08 +00007440
7441if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 { echo "$as_me:$LINENO: result: none" >&5
7443echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007444 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
7445do
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450if test "${ac_cv_path_TCLSH+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007452else
7453 case $TCLSH in
7454 [\\/]* | ?:[\\/]*)
7455 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7456 ;;
7457 *)
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 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 +00007465 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007467 break 2
7468 fi
7469done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470done
Reid Spencera773bd52006-08-04 18:18:08 +00007471IFS=$as_save_IFS
7472
7473 ;;
7474esac
7475fi
7476TCLSH=$ac_cv_path_TCLSH
7477if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007478 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7479echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007481 { echo "$as_me:$LINENO: result: no" >&5
7482echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007483fi
7484
7485
7486 test -n "$TCLSH" && break
7487done
7488
7489 if test x"${TCLSH}" = x ; then
7490 ac_cv_path_tclsh='';
7491 else
7492 ac_cv_path_tclsh="${TCLSH}";
7493 fi
7494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7496echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007497 TCLSH="${ac_cv_path_tclsh}"
7498
7499fi
7500
Reid Spencera773bd52006-08-04 18:18:08 +00007501# Extract the first word of "zip", so it can be a program name with args.
7502set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505if test "${ac_cv_path_ZIP+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007507else
7508 case $ZIP in
7509 [\\/]* | ?:[\\/]*)
7510 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7511 ;;
7512 *)
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 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 +00007520 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007522 break 2
7523 fi
7524done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525done
Reid Spencera773bd52006-08-04 18:18:08 +00007526IFS=$as_save_IFS
7527
Reid Spencera773bd52006-08-04 18:18:08 +00007528 ;;
7529esac
7530fi
7531ZIP=$ac_cv_path_ZIP
7532if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007533 { echo "$as_me:$LINENO: result: $ZIP" >&5
7534echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007536 { echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007538fi
7539
7540
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007541for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007542do
7543 # Extract the first word of "$ac_prog", so it can be a program name with args.
7544set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547if test "${ac_cv_path_OCAMLC+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007549else
7550 case $OCAMLC in
7551 [\\/]* | ?:[\\/]*)
7552 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7553 ;;
7554 *)
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 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 +00007562 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007564 break 2
7565 fi
7566done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007568IFS=$as_save_IFS
7569
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007570 ;;
7571esac
7572fi
7573OCAMLC=$ac_cv_path_OCAMLC
7574if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7576echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007578 { echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007580fi
7581
7582
Gordon Henriksene7072162008-03-07 18:20:01 +00007583 test -n "$OCAMLC" && break
7584done
7585
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007586for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007587do
7588 # Extract the first word of "$ac_prog", so it can be a program name with args.
7589set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007594else
7595 case $OCAMLOPT in
7596 [\\/]* | ?:[\\/]*)
7597 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7598 ;;
7599 *)
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 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 +00007607 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007609 break 2
7610 fi
7611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007613IFS=$as_save_IFS
7614
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007615 ;;
7616esac
7617fi
7618OCAMLOPT=$ac_cv_path_OCAMLOPT
7619if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7621echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007623 { echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007625fi
7626
7627
Gordon Henriksene7072162008-03-07 18:20:01 +00007628 test -n "$OCAMLOPT" && break
7629done
7630
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007631for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007632do
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007639else
7640 case $OCAMLDEP in
7641 [\\/]* | ?:[\\/]*)
7642 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7643 ;;
7644 *)
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 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 +00007652 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007654 break 2
7655 fi
7656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007657done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007658IFS=$as_save_IFS
7659
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007660 ;;
7661esac
7662fi
7663OCAMLDEP=$ac_cv_path_OCAMLDEP
7664if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7666echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668 { echo "$as_me:$LINENO: result: no" >&5
7669echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007670fi
7671
7672
Gordon Henriksene7072162008-03-07 18:20:01 +00007673 test -n "$OCAMLDEP" && break
7674done
7675
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007676for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007677do
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007684else
7685 case $OCAMLDOC in
7686 [\\/]* | ?:[\\/]*)
7687 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7688 ;;
7689 *)
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 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 +00007697 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007699 break 2
7700 fi
7701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007702done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007703IFS=$as_save_IFS
7704
7705 ;;
7706esac
7707fi
7708OCAMLDOC=$ac_cv_path_OCAMLDOC
7709if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7711echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007713 { echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007715fi
7716
7717
7718 test -n "$OCAMLDOC" && break
7719done
7720
Torok Edwincc499a42008-10-22 09:56:27 +00007721for ac_prog in gas as
7722do
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727if test "${ac_cv_path_GAS+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007729else
7730 case $GAS in
7731 [\\/]* | ?:[\\/]*)
7732 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7733 ;;
7734 *)
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 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 +00007742 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007744 break 2
7745 fi
7746done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747done
Torok Edwincc499a42008-10-22 09:56:27 +00007748IFS=$as_save_IFS
7749
7750 ;;
7751esac
7752fi
7753GAS=$ac_cv_path_GAS
7754if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755 { echo "$as_me:$LINENO: result: $GAS" >&5
7756echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007758 { echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007760fi
7761
7762
7763 test -n "$GAS" && break
7764done
7765
Reid Spencera773bd52006-08-04 18:18:08 +00007766
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007767{ echo "$as_me:$LINENO: checking for linker version" >&5
7768echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7769if test "${llvm_cv_link_version+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771else
7772
7773 version_string="$(ld -v 2>&1 | head -1)"
7774
7775 # Check for ld64.
7776 if (echo "$version_string" | grep -q "ld64"); then
7777 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7778 else
7779 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7780 fi
7781
7782fi
7783{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7784echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7785
7786cat >>confdefs.h <<_ACEOF
7787#define HOST_LINK_VERSION "$llvm_cv_link_version"
7788_ACEOF
7789
7790
7791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7793echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7794if test "${llvm_cv_link_use_r+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007796else
7797 ac_ext=c
7798ac_cpp='$CPP $CPPFLAGS'
7799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801ac_compiler_gnu=$ac_cv_c_compiler_gnu
7802
7803 oldcflags="$CFLAGS"
7804 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805 cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007810/* end confdefs.h. */
7811
7812int
7813main ()
7814{
Dan Gohman39ed6782010-04-25 00:12:20 +00007815
Reid Spencera773bd52006-08-04 18:18:08 +00007816 ;
7817 return 0;
7818}
7819_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007820rm -f conftest.$ac_objext conftest$ac_exeext
7821if { (ac_try="$ac_link"
7822case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825esac
7826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_link") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7835 { (case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_try") 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848esac
7849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_try") 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007854 llvm_cv_link_use_r=yes
7855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856 echo "$as_me: failed program was:" >&5
7857sed 's/^/| /' conftest.$ac_ext >&5
7858
7859 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007861
Bill Wendlingebcceee2009-04-18 11:20:33 +00007862rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007864 CFLAGS="$oldcflags"
7865 ac_ext=c
7866ac_cpp='$CPP $CPPFLAGS'
7867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870
7871
7872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007873{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7874echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007875if test "$llvm_cv_link_use_r" = yes ; then
7876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007877cat >>confdefs.h <<\_ACEOF
7878#define HAVE_LINK_R 1
7879_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007880
7881 fi
7882
7883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007884{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7885echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7886if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007888else
7889 ac_ext=c
7890ac_cpp='$CPP $CPPFLAGS'
7891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895 oldcflags="$CFLAGS"
7896 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007897 cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h. */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007902/* end confdefs.h. */
7903
7904int
7905main ()
7906{
Dan Gohman39ed6782010-04-25 00:12:20 +00007907
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007908 ;
7909 return 0;
7910}
7911_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912rm -f conftest.$ac_objext conftest$ac_exeext
7913if { (ac_try="$ac_link"
7914case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7917esac
7918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_link") 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7927 { (case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7930esac
7931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_try") 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try='test -s conftest$ac_exeext'
7937 { (case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940esac
7941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_try") 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007946 llvm_cv_link_use_export_dynamic=yes
7947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007948 echo "$as_me: failed program was:" >&5
7949sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007952fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953
Bill Wendlingebcceee2009-04-18 11:20:33 +00007954rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007955 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007956 CFLAGS="$oldcflags"
7957 ac_ext=c
7958ac_cpp='$CPP $CPPFLAGS'
7959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962
7963
7964fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007965{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7966echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007967if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969cat >>confdefs.h <<\_ACEOF
7970#define HAVE_LINK_EXPORT_DYNAMIC 1
7971_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007972
7973 fi
7974
7975
Dan Gohmanda612d62010-06-01 14:56:56 +00007976{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7977echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7978if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980else
7981 ac_ext=c
7982ac_cpp='$CPP $CPPFLAGS'
7983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986
7987 oldcflags="$CFLAGS"
7988
7989 # The following code is from the autoconf manual,
7990 # "11.13: Limitations of Usual Tools".
7991 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7992 # Use mktemp if possible; otherwise fall back on mkdir,
7993 # with $RANDOM to make collisions less likely.
7994 : ${TMPDIR=/tmp}
7995 {
7996 tmp=`
7997 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7998 ` &&
7999 test -n "$tmp" && test -d "$tmp"
8000 } || {
8001 tmp=$TMPDIR/foo$$-$RANDOM
8002 (umask 077 && mkdir "$tmp")
8003 } || exit $?
8004
Dan Gohmanda612d62010-06-01 14:56:56 +00008005 echo "{" > "$tmp/export.map"
8006 echo " global: main;" >> "$tmp/export.map"
8007 echo " local: *;" >> "$tmp/export.map"
8008 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008009
Dan Gohmanda612d62010-06-01 14:56:56 +00008010 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008011 cat >conftest.$ac_ext <<_ACEOF
8012/* confdefs.h. */
8013_ACEOF
8014cat confdefs.h >>conftest.$ac_ext
8015cat >>conftest.$ac_ext <<_ACEOF
8016/* end confdefs.h. */
8017
8018int
8019main ()
8020{
Dan Gohman39ed6782010-04-25 00:12:20 +00008021
Dan Gohman391569c2010-04-16 22:59:06 +00008022 ;
8023 return 0;
8024}
8025_ACEOF
8026rm -f conftest.$ac_objext conftest$ac_exeext
8027if { (ac_try="$ac_link"
8028case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031esac
8032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_link") 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8041 { (case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044esac
8045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_try") 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest$ac_exeext'
8051 { (case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054esac
8055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_try") 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008060 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008061else
8062 echo "$as_me: failed program was:" >&5
8063sed 's/^/| /' conftest.$ac_ext >&5
8064
Dan Gohman943005e2010-06-01 16:22:27 +00008065 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008066fi
8067
8068rm -f core conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008070 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008071 rmdir "$tmp"
8072 CFLAGS="$oldcflags"
8073 ac_ext=c
8074ac_cpp='$CPP $CPPFLAGS'
8075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077ac_compiler_gnu=$ac_cv_c_compiler_gnu
8078
8079
8080fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008081{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8082echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8083if test "$llvm_cv_link_use_version_script" = yes ; then
8084 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008085
8086 fi
8087
8088
Reid Spencera773bd52006-08-04 18:18:08 +00008089
8090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008091{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8092echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8093if test "${ac_cv_c_const+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096 cat >conftest.$ac_ext <<_ACEOF
8097/* confdefs.h. */
8098_ACEOF
8099cat confdefs.h >>conftest.$ac_ext
8100cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008101/* end confdefs.h. */
8102
8103int
8104main ()
8105{
8106/* FIXME: Include the comments suggested by Paul. */
8107#ifndef __cplusplus
8108 /* Ultrix mips cc rejects this. */
8109 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008110 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008111 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008112 char const *const *ccp;
8113 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008114 /* NEC SVR4.0.2 mips cc rejects this. */
8115 struct point {int x, y;};
8116 static struct point const zero = {0,0};
8117 /* AIX XL C 1.02.0.0 rejects this.
8118 It does not let you subtract one const X* pointer from another in
8119 an arm of an if-expression whose if-part is not a constant
8120 expression */
8121 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008122 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008123 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008124 ++ccp;
8125 p = (char**) ccp;
8126 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008127 { /* SCO 3.2v4 cc rejects this. */
8128 char *t;
8129 char const *s = 0 ? (char *) 0 : (char const *) 0;
8130
8131 *t++ = 0;
8132 if (s) return 0;
8133 }
8134 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8135 int x[] = {25, 17};
8136 const int *foo = &x[0];
8137 ++foo;
8138 }
8139 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8140 typedef const int *iptr;
8141 iptr p = 0;
8142 ++p;
8143 }
8144 { /* AIX XL C 1.02.0.0 rejects this saying
8145 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8146 struct s { int j; const int *ap[3]; };
8147 struct s *b; b->j = 5;
8148 }
8149 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8150 const int foo = 10;
8151 if (!foo) return 0;
8152 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008154#endif
8155
8156 ;
8157 return 0;
8158}
8159_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008160rm -f conftest.$ac_objext
8161if { (ac_try="$ac_compile"
8162case "(($ac_try" in
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8165esac
8166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_compile") 2>conftest.er1
8168 ac_status=$?
8169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8175 { (case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8178esac
8179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_try") 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest.$ac_objext'
8185 { (case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188esac
8189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_try") 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008194 ac_cv_c_const=yes
8195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196 echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008200fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008201
Reid Spencera773bd52006-08-04 18:18:08 +00008202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008204{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8205echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008206if test $ac_cv_c_const = no; then
8207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008208cat >>confdefs.h <<\_ACEOF
8209#define const
8210_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008211
8212fi
8213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214
8215
8216
8217
8218
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008219ac_header_dirent=no
8220for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008221 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8222{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8223echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008227 cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008232/* end confdefs.h. */
8233#include <sys/types.h>
8234#include <$ac_hdr>
8235
8236int
8237main ()
8238{
8239if ((DIR *) 0)
8240return 0;
8241 ;
8242 return 0;
8243}
8244_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008245rm -f conftest.$ac_objext
8246if { (ac_try="$ac_compile"
8247case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263esac
8264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest.$ac_objext'
8270 { (case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273esac
8274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_try") 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008279 eval "$as_ac_Header=yes"
8280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008281 echo "$as_me: failed program was:" >&5
8282sed 's/^/| /' conftest.$ac_ext >&5
8283
8284 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008285fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008286
Reid Spencera773bd52006-08-04 18:18:08 +00008287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289ac_res=`eval echo '${'$as_ac_Header'}'`
8290 { echo "$as_me:$LINENO: result: $ac_res" >&5
8291echo "${ECHO_T}$ac_res" >&6; }
8292if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008293 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008295_ACEOF
8296
8297ac_header_dirent=$ac_hdr; break
8298fi
8299
8300done
8301# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8302if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8304echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8305if test "${ac_cv_search_opendir+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008307else
8308 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008309cat >conftest.$ac_ext <<_ACEOF
8310/* confdefs.h. */
8311_ACEOF
8312cat confdefs.h >>conftest.$ac_ext
8313cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008314/* end confdefs.h. */
8315
Reid Spencera773bd52006-08-04 18:18:08 +00008316/* Override any GCC internal prototype to avoid an error.
8317 Use char because int might match the return type of a GCC
8318 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008319#ifdef __cplusplus
8320extern "C"
8321#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008322char opendir ();
8323int
8324main ()
8325{
Reid Spencera773bd52006-08-04 18:18:08 +00008326return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008327 ;
8328 return 0;
8329}
8330_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008331for ac_lib in '' dir; do
8332 if test -z "$ac_lib"; then
8333 ac_res="none required"
8334 else
8335 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008337 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338 rm -f conftest.$ac_objext conftest$ac_exeext
8339if { (ac_try="$ac_link"
8340case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8343esac
8344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_link") 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest$ac_exeext'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366esac
8367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008372 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008373else
8374 echo "$as_me: failed program was:" >&5
8375sed 's/^/| /' conftest.$ac_ext >&5
8376
8377
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008379
Bill Wendlingebcceee2009-04-18 11:20:33 +00008380rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008381 conftest$ac_exeext
8382 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008383 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008384fi
John Criswell7a73b802003-06-30 21:59:07 +00008385done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386if test "${ac_cv_search_opendir+set}" = set; then
8387 :
Reid Spencera773bd52006-08-04 18:18:08 +00008388else
8389 ac_cv_search_opendir=no
8390fi
8391rm conftest.$ac_ext
8392LIBS=$ac_func_search_save_LIBS
8393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8395echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008396ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008397if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008399
Reid Spencera773bd52006-08-04 18:18:08 +00008400fi
8401
8402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8404echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8405if test "${ac_cv_search_opendir+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008407else
8408 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409cat >conftest.$ac_ext <<_ACEOF
8410/* confdefs.h. */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008414/* end confdefs.h. */
8415
8416/* Override any GCC internal prototype to avoid an error.
8417 Use char because int might match the return type of a GCC
8418 builtin and then its argument prototype would still apply. */
8419#ifdef __cplusplus
8420extern "C"
8421#endif
8422char opendir ();
8423int
8424main ()
8425{
8426return opendir ();
8427 ;
8428 return 0;
8429}
8430_ACEOF
8431for ac_lib in '' x; do
8432 if test -z "$ac_lib"; then
8433 ac_res="none required"
8434 else
8435 ac_res=-l$ac_lib
8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8437 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438 rm -f conftest.$ac_objext conftest$ac_exeext
8439if { (ac_try="$ac_link"
8440case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8456esac
8457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest$ac_exeext'
8463 { (case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8466esac
8467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_try") 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008472 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008473else
8474 echo "$as_me: failed program was:" >&5
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477
Reid Spencera773bd52006-08-04 18:18:08 +00008478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479
Bill Wendlingebcceee2009-04-18 11:20:33 +00008480rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008481 conftest$ac_exeext
8482 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008483 break
8484fi
8485done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008486if test "${ac_cv_search_opendir+set}" = set; then
8487 :
Reid Spencera773bd52006-08-04 18:18:08 +00008488else
8489 ac_cv_search_opendir=no
8490fi
8491rm conftest.$ac_ext
8492LIBS=$ac_func_search_save_LIBS
8493fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008494{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8495echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008496ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8499
8500fi
8501
8502fi
John Criswell7a73b802003-06-30 21:59:07 +00008503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008504
John Criswell7a73b802003-06-30 21:59:07 +00008505for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008506do
8507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8513fi
8514ac_res=`eval echo '${'$as_ac_Header'}'`
8515 { echo "$as_me:$LINENO: result: $ac_res" >&5
8516echo "${ECHO_T}$ac_res" >&6; }
8517else
8518 # Is the header compilable?
8519{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8521cat >conftest.$ac_ext <<_ACEOF
8522/* confdefs.h. */
8523_ACEOF
8524cat confdefs.h >>conftest.$ac_ext
8525cat >>conftest.$ac_ext <<_ACEOF
8526/* end confdefs.h. */
8527$ac_includes_default
8528#include <$ac_header>
8529_ACEOF
8530rm -f conftest.$ac_objext
8531if { (ac_try="$ac_compile"
8532case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535esac
8536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_compile") 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548esac
8549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_try") 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558esac
8559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_try") 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_header_compiler=yes
8565else
8566 echo "$as_me: failed program was:" >&5
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 ac_header_compiler=no
8570fi
8571
8572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8574echo "${ECHO_T}$ac_header_compiler" >&6; }
8575
8576# Is the header present?
8577{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8579cat >conftest.$ac_ext <<_ACEOF
8580/* confdefs.h. */
8581_ACEOF
8582cat confdefs.h >>conftest.$ac_ext
8583cat >>conftest.$ac_ext <<_ACEOF
8584/* end confdefs.h. */
8585#include <$ac_header>
8586_ACEOF
8587if { (ac_try="$ac_cpp conftest.$ac_ext"
8588case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591esac
8592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } >/dev/null; then
8600 if test -s conftest.err; then
8601 ac_cpp_err=$ac_c_preproc_warn_flag
8602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8603 else
8604 ac_cpp_err=
8605 fi
8606else
8607 ac_cpp_err=yes
8608fi
8609if test -z "$ac_cpp_err"; then
8610 ac_header_preproc=yes
8611else
8612 echo "$as_me: failed program was:" >&5
8613sed 's/^/| /' conftest.$ac_ext >&5
8614
8615 ac_header_preproc=no
8616fi
8617
8618rm -f conftest.err conftest.$ac_ext
8619{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8620echo "${ECHO_T}$ac_header_preproc" >&6; }
8621
8622# So? What about this header?
8623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8624 yes:no: )
8625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8628echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8629 ac_header_preproc=yes
8630 ;;
8631 no:yes:* )
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8637echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8639echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8643echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8644 ( cat <<\_ASBOX
8645## ----------------------------------- ##
8646## Report this to llvmbugs@cs.uiuc.edu ##
8647## ----------------------------------- ##
8648_ASBOX
8649 ) | sed "s/^/$as_me: WARNING: /" >&2
8650 ;;
8651esac
8652{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8656else
8657 eval "$as_ac_Header=\$ac_header_preproc"
8658fi
8659ac_res=`eval echo '${'$as_ac_Header'}'`
8660 { echo "$as_me:$LINENO: result: $ac_res" >&5
8661echo "${ECHO_T}$ac_res" >&6; }
8662
8663fi
8664if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008665 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008667_ACEOF
8668
8669fi
8670
8671done
8672
Reid Spencera773bd52006-08-04 18:18:08 +00008673# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008674if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008675 enableval=$enable_ltdl_install;
8676fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008677
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008679
8680
8681if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008682 INSTALL_LTDL_TRUE=
8683 INSTALL_LTDL_FALSE='#'
8684else
8685 INSTALL_LTDL_TRUE='#'
8686 INSTALL_LTDL_FALSE=
8687fi
8688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008689
8690
8691if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008692 CONVENIENCE_LTDL_TRUE=
8693 CONVENIENCE_LTDL_FALSE='#'
8694else
8695 CONVENIENCE_LTDL_TRUE='#'
8696 CONVENIENCE_LTDL_FALSE=
8697fi
8698
8699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008700{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8701echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008702library_names_spec=
8703libname_spec='lib$name'
8704soname_spec=
8705shrext_cmds=".so"
8706postinstall_cmds=
8707postuninstall_cmds=
8708finish_cmds=
8709finish_eval=
8710shlibpath_var=
8711shlibpath_overrides_runpath=unknown
8712version_type=none
8713dynamic_linker="$host_os ld.so"
8714sys_lib_dlsearch_path_spec="/lib /usr/lib"
8715if test "$GCC" = yes; then
8716 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8717 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8718 # if the path contains ";" then we assume it to be the separator
8719 # otherwise default to the standard path separator (i.e. ":") - it is
8720 # assumed that no part of a normal pathname contains ";" but that should
8721 # okay in the real world where ";" in dirpaths is itself problematic.
8722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8723 else
8724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8725 fi
8726else
8727 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8728fi
8729need_lib_prefix=unknown
8730hardcode_into_libs=no
8731
8732# when you set need_version to no, make sure it does not cause -set_version
8733# flags to be left without arguments
8734need_version=unknown
8735
8736case $host_os in
8737aix3*)
8738 version_type=linux
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8740 shlibpath_var=LIBPATH
8741
8742 # AIX 3 has no versioning support, so we append a major version to the name.
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 ;;
8745
8746aix4* | aix5*)
8747 version_type=linux
8748 need_lib_prefix=no
8749 need_version=no
8750 hardcode_into_libs=yes
8751 if test "$host_cpu" = ia64; then
8752 # AIX 5 supports IA64
8753 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8754 shlibpath_var=LD_LIBRARY_PATH
8755 else
8756 # With GCC up to 2.95.x, collect2 would create an import file
8757 # for dependence libraries. The import file would start with
8758 # the line `#! .'. This would cause the generated library to
8759 # depend on `.', always an invalid library. This was fixed in
8760 # development snapshots of GCC prior to 3.0.
8761 case $host_os in
8762 aix4 | aix4.[01] | aix4.[01].*)
8763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8764 echo ' yes '
8765 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8766 :
8767 else
8768 can_build_shared=no
8769 fi
8770 ;;
8771 esac
8772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8773 # soname into executable. Probably we can add versioning support to
8774 # collect2, so additional links can be useful in future.
8775 if test "$aix_use_runtimelinking" = yes; then
8776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8777 # instead of lib<name>.a to let people know that these are not
8778 # typical AIX shared libraries.
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780 else
8781 # We preserve .a as extension for shared libraries through AIX4.2
8782 # and later when we are not doing run time linking.
8783 library_names_spec='${libname}${release}.a $libname.a'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 fi
8786 shlibpath_var=LIBPATH
8787 fi
8788 ;;
8789
8790amigaos*)
8791 library_names_spec='$libname.ixlibrary $libname.a'
8792 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8793 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'
8794 ;;
8795
8796beos*)
8797 library_names_spec='${libname}${shared_ext}'
8798 dynamic_linker="$host_os ld.so"
8799 shlibpath_var=LIBRARY_PATH
8800 ;;
8801
8802bsdi[45]*)
8803 version_type=linux
8804 need_version=no
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8808 shlibpath_var=LD_LIBRARY_PATH
8809 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8810 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8811 # the default ld.so.conf also contains /usr/contrib/lib and
8812 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8813 # libtool to hard-code these into programs
8814 ;;
8815
8816cygwin* | mingw* | pw32*)
8817 version_type=windows
8818 shrext_cmds=".dll"
8819 need_version=no
8820 need_lib_prefix=no
8821
8822 case $GCC,$host_os in
8823 yes,cygwin* | yes,mingw* | yes,pw32*)
8824 library_names_spec='$libname.dll.a'
8825 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8826 postinstall_cmds='base_file=`basename \${file}`~
8827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8828 dldir=$destdir/`dirname \$dlpath`~
8829 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008830 $install_prog $dir/$dlname \$dldir/$dlname~
8831 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008832 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8833 dlpath=$dir/\$dldll~
8834 $rm \$dlpath'
8835 shlibpath_overrides_runpath=yes
8836
8837 case $host_os in
8838 cygwin*)
8839 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8840 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8841 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8842 ;;
8843 mingw*)
8844 # MinGW DLLs use traditional 'lib' prefix
8845 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8846 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8847 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8848 # It is most probably a Windows format PATH printed by
8849 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8850 # path with ; separators, and with drive letters. We can handle the
8851 # drive letters (cygwin fileutils understands them), so leave them,
8852 # especially as we might pass files found there to a mingw objdump,
8853 # which wouldn't understand a cygwinified path. Ahh.
8854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8855 else
8856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8857 fi
8858 ;;
8859 pw32*)
8860 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008861 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 +00008862 ;;
8863 esac
8864 ;;
8865
8866 *)
8867 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8868 ;;
8869 esac
8870 dynamic_linker='Win32 ld.exe'
8871 # FIXME: first we should search . and the directory the executable is in
8872 shlibpath_var=PATH
8873 ;;
8874
8875darwin* | rhapsody*)
8876 dynamic_linker="$host_os dyld"
8877 version_type=darwin
8878 need_lib_prefix=no
8879 need_version=no
8880 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8881 soname_spec='${libname}${release}${major}$shared_ext'
8882 shlibpath_overrides_runpath=yes
8883 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008884 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008885 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8886 if test "$GCC" = yes; then
8887 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"`
8888 else
8889 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8890 fi
8891 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8892 ;;
8893
8894dgux*)
8895 version_type=linux
8896 need_lib_prefix=no
8897 need_version=no
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 ;;
8902
Eric Christopher360fa9a2011-10-26 00:42:12 +00008903freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008904 dynamic_linker=no
8905 ;;
8906
8907kfreebsd*-gnu)
8908 version_type=linux
8909 need_lib_prefix=no
8910 need_version=no
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 shlibpath_var=LD_LIBRARY_PATH
8914 shlibpath_overrides_runpath=no
8915 hardcode_into_libs=yes
8916 dynamic_linker='GNU ld.so'
8917 ;;
8918
Reid Spencera773bd52006-08-04 18:18:08 +00008919freebsd* | dragonfly*)
8920 # DragonFly does not have aout. When/if they implement a new
8921 # versioning mechanism, adjust this.
8922 if test -x /usr/bin/objformat; then
8923 objformat=`/usr/bin/objformat`
8924 else
8925 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008926 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008927 *) objformat=elf ;;
8928 esac
8929 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008930 version_type=freebsd-$objformat
8931 case $version_type in
8932 freebsd-elf*)
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8934 need_version=no
8935 need_lib_prefix=no
8936 ;;
8937 freebsd-*)
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8939 need_version=yes
8940 ;;
8941 esac
8942 shlibpath_var=LD_LIBRARY_PATH
8943 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008944 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008945 shlibpath_overrides_runpath=yes
8946 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008947 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008948 shlibpath_overrides_runpath=yes
8949 hardcode_into_libs=yes
8950 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008953 shlibpath_overrides_runpath=no
8954 hardcode_into_libs=yes
8955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008956 freebsd*) # from 4.6 on
8957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8959 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008960 esac
8961 ;;
8962
8963gnu*)
8964 version_type=linux
8965 need_lib_prefix=no
8966 need_version=no
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 hardcode_into_libs=yes
8971 ;;
8972
8973hpux9* | hpux10* | hpux11*)
8974 # Give a soname corresponding to the major version so that dld.sl refuses to
8975 # link against other versions.
8976 version_type=sunos
8977 need_lib_prefix=no
8978 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008979 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008980 ia64*)
8981 shrext_cmds='.so'
8982 hardcode_into_libs=yes
8983 dynamic_linker="$host_os dld.so"
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 if test "X$HPUX_IA64_MODE" = X32; then
8989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8990 else
8991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8992 fi
8993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8994 ;;
8995 hppa*64*)
8996 shrext_cmds='.sl'
8997 hardcode_into_libs=yes
8998 dynamic_linker="$host_os dld.sl"
8999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9005 ;;
9006 *)
9007 shrext_cmds='.sl'
9008 dynamic_linker="$host_os dld.sl"
9009 shlibpath_var=SHLIB_PATH
9010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 ;;
9014 esac
9015 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9016 postinstall_cmds='chmod 555 $lib'
9017 ;;
9018
Reid Spencera773bd52006-08-04 18:18:08 +00009019interix3*)
9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=no
9028 hardcode_into_libs=yes
9029 ;;
9030
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009031irix5* | irix6* | nonstopux*)
9032 case $host_os in
9033 nonstopux*) version_type=nonstopux ;;
9034 *)
9035 if test "$lt_cv_prog_gnu_ld" = yes; then
9036 version_type=linux
9037 else
9038 version_type=irix
9039 fi ;;
9040 esac
9041 need_lib_prefix=no
9042 need_version=no
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9045 case $host_os in
9046 irix5* | nonstopux*)
9047 libsuff= shlibsuff=
9048 ;;
9049 *)
9050 case $LD in # libtool.m4 will add one of these switches to LD
9051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9052 libsuff= shlibsuff= libmagic=32-bit;;
9053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9054 libsuff=32 shlibsuff=N32 libmagic=N32;;
9055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9056 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9057 *) libsuff= shlibsuff= libmagic=never-match;;
9058 esac
9059 ;;
9060 esac
9061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9062 shlibpath_overrides_runpath=no
9063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9065 hardcode_into_libs=yes
9066 ;;
9067
9068# No shared lib support for Linux oldld, aout, or coff.
9069linux*oldld* | linux*aout* | linux*coff*)
9070 dynamic_linker=no
9071 ;;
9072
9073# This must be Linux ELF.
9074linux*)
9075 version_type=linux
9076 need_lib_prefix=no
9077 need_version=no
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=no
9083 # This implies no fast_install, which is unacceptable.
9084 # Some rework will be needed to allow for fast_install
9085 # before this can be enabled.
9086 hardcode_into_libs=yes
9087
9088 # Append ld.so.conf contents to the search path
9089 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009090 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 +00009091 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9092 fi
9093
9094 # We used to test for /lib/ld.so.1 and disable shared libraries on
9095 # powerpc, because MkLinux only supported shared libraries with the
9096 # GNU dynamic linker. Since this was broken with cross compilers,
9097 # most powerpc-linux boxes support dynamic linking these days and
9098 # people can always --disable-shared, the test was removed, and we
9099 # assume the GNU/Linux dynamic linker is in use.
9100 dynamic_linker='GNU/Linux ld.so'
9101 ;;
9102
9103knetbsd*-gnu)
9104 version_type=linux
9105 need_lib_prefix=no
9106 need_version=no
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 shlibpath_overrides_runpath=no
9111 hardcode_into_libs=yes
9112 dynamic_linker='GNU ld.so'
9113 ;;
9114
9115netbsd*)
9116 version_type=sunos
9117 need_lib_prefix=no
9118 need_version=no
9119 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9122 dynamic_linker='NetBSD (a.out) ld.so'
9123 else
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 dynamic_linker='NetBSD ld.elf_so'
9127 fi
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=yes
9130 hardcode_into_libs=yes
9131 ;;
9132
9133newsos6)
9134 version_type=linux
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 shlibpath_overrides_runpath=yes
9138 ;;
9139
9140nto-qnx*)
9141 version_type=linux
9142 need_lib_prefix=no
9143 need_version=no
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 shlibpath_overrides_runpath=yes
9148 ;;
9149
9150openbsd*)
9151 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009152 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009153 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009154 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9155 case $host_os in
9156 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9157 *) need_version=no ;;
9158 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9163 case $host_os in
9164 openbsd2.[89] | openbsd2.[89].*)
9165 shlibpath_overrides_runpath=no
9166 ;;
9167 *)
9168 shlibpath_overrides_runpath=yes
9169 ;;
9170 esac
9171 else
9172 shlibpath_overrides_runpath=yes
9173 fi
9174 ;;
9175
9176os2*)
9177 libname_spec='$name'
9178 shrext_cmds=".dll"
9179 need_lib_prefix=no
9180 library_names_spec='$libname${shared_ext} $libname.a'
9181 dynamic_linker='OS/2 ld.exe'
9182 shlibpath_var=LIBPATH
9183 ;;
9184
9185osf3* | osf4* | osf5*)
9186 version_type=osf
9187 need_lib_prefix=no
9188 need_version=no
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9193 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9194 ;;
9195
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009196solaris*)
9197 version_type=linux
9198 need_lib_prefix=no
9199 need_version=no
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9205 # ldd complains unless libraries are executable
9206 postinstall_cmds='chmod +x $lib'
9207 ;;
9208
9209sunos4*)
9210 version_type=sunos
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=yes
9215 if test "$with_gnu_ld" = yes; then
9216 need_lib_prefix=no
9217 fi
9218 need_version=yes
9219 ;;
9220
Reid Spencera773bd52006-08-04 18:18:08 +00009221sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009222 version_type=linux
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 case $host_vendor in
9227 sni)
9228 shlibpath_overrides_runpath=no
9229 need_lib_prefix=no
9230 export_dynamic_flag_spec='${wl}-Blargedynsym'
9231 runpath_var=LD_RUN_PATH
9232 ;;
9233 siemens)
9234 need_lib_prefix=no
9235 ;;
9236 motorola)
9237 need_lib_prefix=no
9238 need_version=no
9239 shlibpath_overrides_runpath=no
9240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9241 ;;
9242 esac
9243 ;;
9244
9245sysv4*MP*)
9246 if test -d /usr/nec ;then
9247 version_type=linux
9248 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9249 soname_spec='$libname${shared_ext}.$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 fi
9252 ;;
9253
Reid Spencera773bd52006-08-04 18:18:08 +00009254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9255 version_type=freebsd-elf
9256 need_lib_prefix=no
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 hardcode_into_libs=yes
9262 if test "$with_gnu_ld" = yes; then
9263 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9264 shlibpath_overrides_runpath=no
9265 else
9266 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9267 shlibpath_overrides_runpath=yes
9268 case $host_os in
9269 sco3.2v5*)
9270 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9271 ;;
9272 esac
9273 fi
9274 sys_lib_dlsearch_path_spec='/usr/lib'
9275 ;;
9276
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009277uts4*)
9278 version_type=linux
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 ;;
9283
9284*)
9285 dynamic_linker=no
9286 ;;
9287esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009288{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9289echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009290test "$dynamic_linker" = no && can_build_shared=no
9291
Reid Spencera773bd52006-08-04 18:18:08 +00009292variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9293if test "$GCC" = yes; then
9294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9295fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009296
Reid Spencera773bd52006-08-04 18:18:08 +00009297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009298{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9299echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9300if test "${libltdl_cv_shlibext+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009302else
9303
9304module=yes
9305eval libltdl_cv_shlibext=$shrext_cmds
9306
9307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009308{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9309echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310if test -n "$libltdl_cv_shlibext"; then
9311
9312cat >>confdefs.h <<_ACEOF
9313#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9314_ACEOF
9315
9316fi
9317
9318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009319{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9320echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9321if test "${libltdl_cv_shlibpath_var+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009323else
9324 libltdl_cv_shlibpath_var="$shlibpath_var"
9325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009326{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9327echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009328if test -n "$libltdl_cv_shlibpath_var"; then
9329
9330cat >>confdefs.h <<_ACEOF
9331#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9332_ACEOF
9333
9334fi
9335
9336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009337{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9338echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9339if test "${libltdl_cv_sys_search_path+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009341else
9342 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009344{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9345echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009346if test -n "$libltdl_cv_sys_search_path"; then
9347 sys_search_path=
9348 for dir in $libltdl_cv_sys_search_path; do
9349 if test -z "$sys_search_path"; then
9350 sys_search_path="$dir"
9351 else
9352 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9353 fi
9354 done
9355
9356cat >>confdefs.h <<_ACEOF
9357#define LTDL_SYSSEARCHPATH "$sys_search_path"
9358_ACEOF
9359
9360fi
9361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009362{ echo "$as_me:$LINENO: checking for objdir" >&5
9363echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9364if test "${libltdl_cv_objdir+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009366else
9367 libltdl_cv_objdir="$objdir"
9368 if test -n "$objdir"; then
9369 :
9370 else
9371 rm -f .libs 2>/dev/null
9372 mkdir .libs 2>/dev/null
9373 if test -d .libs; then
9374 libltdl_cv_objdir=.libs
9375 else
9376 # MS-DOS does not allow filenames that begin with a dot.
9377 libltdl_cv_objdir=_libs
9378 fi
9379 rmdir .libs 2>/dev/null
9380 fi
9381
9382fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009383{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9384echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385
9386cat >>confdefs.h <<_ACEOF
9387#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9388_ACEOF
9389
9390
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391
9392
9393
9394
9395# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009396{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9397echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9398if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400else
9401
9402# These are sane defaults that work on at least a few old systems.
9403# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9404
9405# Character class describing NM global symbol codes.
9406symcode='[BCDEGRST]'
9407
9408# Regexp to match symbols that can be accessed directly from C.
9409sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9410
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009411# Transform an extracted symbol line into a proper C declaration
9412lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9413
9414# Transform an extracted symbol line into symbol name and symbol address
9415lt_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'"
9416
9417# Define system-specific variables.
9418case $host_os in
9419aix*)
9420 symcode='[BCDT]'
9421 ;;
9422cygwin* | mingw* | pw32*)
9423 symcode='[ABCDGISTW]'
9424 ;;
9425hpux*) # Its linker distinguishes data from code symbols
9426 if test "$host_cpu" = ia64; then
9427 symcode='[ABCDEGRST]'
9428 fi
9429 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9430 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'"
9431 ;;
9432linux*)
9433 if test "$host_cpu" = ia64; then
9434 symcode='[ABCDGIRSTW]'
9435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9436 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'"
9437 fi
9438 ;;
9439irix* | nonstopux*)
9440 symcode='[BCDEGRST]'
9441 ;;
9442osf*)
9443 symcode='[BCDEGQRST]'
9444 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009445solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009446 symcode='[BDRT]'
9447 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009448sco3.2v5*)
9449 symcode='[DT]'
9450 ;;
9451sysv4.2uw2*)
9452 symcode='[DT]'
9453 ;;
9454sysv5* | sco5v6* | unixware* | OpenUNIX*)
9455 symcode='[ABDT]'
9456 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009457sysv4)
9458 symcode='[DFNSTU]'
9459 ;;
9460esac
9461
9462# Handle CRLF in mingw tool chain
9463opt_cr=
9464case $build_os in
9465mingw*)
9466 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9467 ;;
9468esac
9469
9470# If we're using GNU nm, then use its standard symbol codes.
9471case `$NM -V 2>&1` in
9472*GNU* | *'with BFD'*)
9473 symcode='[ABCDGIRSTW]' ;;
9474esac
9475
9476# Try without a prefix undercore, then with it.
9477for ac_symprfx in "" "_"; do
9478
Reid Spencera773bd52006-08-04 18:18:08 +00009479 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9480 symxfrm="\\1 $ac_symprfx\\2 \\2"
9481
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009483 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 +00009484
9485 # Check to see that the pipe works correctly.
9486 pipe_works=no
9487
9488 rm -f conftest*
9489 cat > conftest.$ac_ext <<EOF
9490#ifdef __cplusplus
9491extern "C" {
9492#endif
9493char nm_test_var;
9494void nm_test_func(){}
9495#ifdef __cplusplus
9496}
9497#endif
9498int main(){nm_test_var='a';nm_test_func();return(0);}
9499EOF
9500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502 (eval $ac_compile) 2>&5
9503 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009506 # Now try to grab the symbols.
9507 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009508 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 +00009509 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9510 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513 # Try sorting and uniquifying the output.
9514 if sort "$nlist" | uniq > "$nlist"T; then
9515 mv -f "$nlist"T "$nlist"
9516 else
9517 rm -f "$nlist"T
9518 fi
9519
9520 # Make sure that we snagged all the symbols we need.
9521 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9522 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9523 cat <<EOF > conftest.$ac_ext
9524#ifdef __cplusplus
9525extern "C" {
9526#endif
9527
9528EOF
9529 # Now generate the symbol file.
9530 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9531
9532 cat <<EOF >> conftest.$ac_ext
9533#if defined (__STDC__) && __STDC__
9534# define lt_ptr_t void *
9535#else
9536# define lt_ptr_t char *
9537# define const
9538#endif
9539
9540/* The mapping between symbol names and symbols. */
9541const struct {
9542 const char *name;
9543 lt_ptr_t address;
9544}
9545lt_preloaded_symbols[] =
9546{
9547EOF
9548 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9549 cat <<\EOF >> conftest.$ac_ext
9550 {0, (lt_ptr_t) 0}
9551};
9552
9553#ifdef __cplusplus
9554}
9555#endif
9556EOF
9557 # Now try linking the two files.
9558 mv conftest.$ac_objext conftstm.$ac_objext
9559 lt_save_LIBS="$LIBS"
9560 lt_save_CFLAGS="$CFLAGS"
9561 LIBS="conftstm.$ac_objext"
9562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009564 (eval $ac_link) 2>&5
9565 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009568 pipe_works=yes
9569 fi
9570 LIBS="$lt_save_LIBS"
9571 CFLAGS="$lt_save_CFLAGS"
9572 else
9573 echo "cannot find nm_test_func in $nlist" >&5
9574 fi
9575 else
9576 echo "cannot find nm_test_var in $nlist" >&5
9577 fi
9578 else
9579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9580 fi
9581 else
9582 echo "$progname: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9584 fi
9585 rm -f conftest* conftst*
9586
9587 # Do not use the global_symbol_pipe unless it works.
9588 if test "$pipe_works" = yes; then
9589 break
9590 else
9591 lt_cv_sys_global_symbol_pipe=
9592 fi
9593done
9594
9595fi
9596
9597if test -z "$lt_cv_sys_global_symbol_pipe"; then
9598 lt_cv_sys_global_symbol_to_cdecl=
9599fi
9600if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009601 { echo "$as_me:$LINENO: result: failed" >&5
9602echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009604 { echo "$as_me:$LINENO: result: ok" >&5
9605echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009606fi
9607
9608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009609{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9610echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9611if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009613else
9614 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9615 libltdl_cv_preloaded_symbols=yes
9616 else
9617 libltdl_cv_preloaded_symbols=no
9618 fi
9619
9620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009621{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9622echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009623if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009625cat >>confdefs.h <<\_ACEOF
9626#define HAVE_PRELOADED_SYMBOLS 1
9627_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009628
9629fi
9630
9631LIBADD_DL=
9632
9633ac_ext=c
9634ac_cpp='$CPP $CPPFLAGS'
9635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9637ac_compiler_gnu=$ac_cv_c_compiler_gnu
9638
9639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009640{ echo "$as_me:$LINENO: checking for shl_load" >&5
9641echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9642if test "${ac_cv_func_shl_load+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644else
9645 cat >conftest.$ac_ext <<_ACEOF
9646/* confdefs.h. */
9647_ACEOF
9648cat confdefs.h >>conftest.$ac_ext
9649cat >>conftest.$ac_ext <<_ACEOF
9650/* end confdefs.h. */
9651/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009655/* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char shl_load (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9659
9660#ifdef __STDC__
9661# include <limits.h>
9662#else
9663# include <assert.h>
9664#endif
9665
9666#undef shl_load
9667
9668/* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671#ifdef __cplusplus
9672extern "C"
9673#endif
9674char shl_load ();
9675/* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678#if defined __stub_shl_load || defined __stub___shl_load
9679choke me
9680#endif
9681
9682int
9683main ()
9684{
9685return shl_load ();
9686 ;
9687 return 0;
9688}
9689_ACEOF
9690rm -f conftest.$ac_objext conftest$ac_exeext
9691if { (ac_try="$ac_link"
9692case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695esac
9696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9705 { (case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9708esac
9709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_try") 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718esac
9719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_try") 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 ac_cv_func_shl_load=yes
9725else
9726 echo "$as_me: failed program was:" >&5
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
9729 ac_cv_func_shl_load=no
9730fi
9731
9732rm -f core conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9734fi
9735{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9736echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9737if test $ac_cv_func_shl_load = yes; then
9738
9739cat >>confdefs.h <<\_ACEOF
9740#define HAVE_SHL_LOAD 1
9741_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742
9743else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009744 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9745echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9746if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748else
9749 ac_check_lib_save_LIBS=$LIBS
9750LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009751cat >conftest.$ac_ext <<_ACEOF
9752/* confdefs.h. */
9753_ACEOF
9754cat confdefs.h >>conftest.$ac_ext
9755cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756/* end confdefs.h. */
9757
Reid Spencera773bd52006-08-04 18:18:08 +00009758/* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761#ifdef __cplusplus
9762extern "C"
9763#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764char shl_load ();
9765int
9766main ()
9767{
Reid Spencera773bd52006-08-04 18:18:08 +00009768return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769 ;
9770 return 0;
9771}
9772_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009773rm -f conftest.$ac_objext conftest$ac_exeext
9774if { (ac_try="$ac_link"
9775case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778esac
9779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788 { (case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791esac
9792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_try") 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801esac
9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_try") 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009807 ac_cv_lib_dld_shl_load=yes
9808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009809 echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009814
Bill Wendlingebcceee2009-04-18 11:20:33 +00009815rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009816 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817LIBS=$ac_check_lib_save_LIBS
9818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009819{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9820echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9821if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009823cat >>confdefs.h <<\_ACEOF
9824#define HAVE_SHL_LOAD 1
9825_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826
9827 LIBADD_DL="$LIBADD_DL -ldld"
9828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009829 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9830echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9831if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833else
9834 ac_check_lib_save_LIBS=$LIBS
9835LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009836cat >conftest.$ac_ext <<_ACEOF
9837/* confdefs.h. */
9838_ACEOF
9839cat confdefs.h >>conftest.$ac_ext
9840cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009841/* end confdefs.h. */
9842
Reid Spencera773bd52006-08-04 18:18:08 +00009843/* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009846#ifdef __cplusplus
9847extern "C"
9848#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849char dlopen ();
9850int
9851main ()
9852{
Reid Spencera773bd52006-08-04 18:18:08 +00009853return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854 ;
9855 return 0;
9856}
9857_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009858rm -f conftest.$ac_objext conftest$ac_exeext
9859if { (ac_try="$ac_link"
9860case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9863esac
9864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_link") 2>conftest.er1
9866 ac_status=$?
9867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9873 { (case "(($ac_try" in
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9876esac
9877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_try") 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886esac
9887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_try") 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009892 ac_cv_lib_dl_dlopen=yes
9893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009894 echo "$as_me: failed program was:" >&5
9895sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009899
Bill Wendlingebcceee2009-04-18 11:20:33 +00009900rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009901 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902LIBS=$ac_check_lib_save_LIBS
9903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009904{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9905echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9906if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009908cat >>confdefs.h <<\_ACEOF
9909#define HAVE_LIBDL 1
9910_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911
9912 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9913else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009914 cat >conftest.$ac_ext <<_ACEOF
9915/* confdefs.h. */
9916_ACEOF
9917cat confdefs.h >>conftest.$ac_ext
9918cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919/* end confdefs.h. */
9920#if HAVE_DLFCN_H
9921# include <dlfcn.h>
9922#endif
9923
9924int
9925main ()
9926{
9927dlopen(0, 0);
9928 ;
9929 return 0;
9930}
9931_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009932rm -f conftest.$ac_objext conftest$ac_exeext
9933if { (ac_try="$ac_link"
9934case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937esac
9938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947 { (case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950esac
9951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_try") 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009967cat >>confdefs.h <<\_ACEOF
9968#define HAVE_LIBDL 1
9969_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009970 libltdl_cv_func_dlopen="yes"
9971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009972 echo "$as_me: failed program was:" >&5
9973sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9976echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9977if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979else
9980 ac_check_lib_save_LIBS=$LIBS
9981LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009982cat >conftest.$ac_ext <<_ACEOF
9983/* confdefs.h. */
9984_ACEOF
9985cat confdefs.h >>conftest.$ac_ext
9986cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987/* end confdefs.h. */
9988
Reid Spencera773bd52006-08-04 18:18:08 +00009989/* Override any GCC internal prototype to avoid an error.
9990 Use char because int might match the return type of a GCC
9991 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992#ifdef __cplusplus
9993extern "C"
9994#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995char dlopen ();
9996int
9997main ()
9998{
Reid Spencera773bd52006-08-04 18:18:08 +00009999return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000 ;
10001 return 0;
10002}
10003_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010004rm -f conftest.$ac_objext conftest$ac_exeext
10005if { (ac_try="$ac_link"
10006case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10009esac
10010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_link") 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10019 { (case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10022esac
10023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_try") 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032esac
10033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_try") 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010038 ac_cv_lib_svld_dlopen=yes
10039else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010040 echo "$as_me: failed program was:" >&5
10041sed 's/^/| /' conftest.$ac_ext >&5
10042
10043 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010045
Bill Wendlingebcceee2009-04-18 11:20:33 +000010046rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010047 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048LIBS=$ac_check_lib_save_LIBS
10049fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010050{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10051echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10052if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010054cat >>confdefs.h <<\_ACEOF
10055#define HAVE_LIBDL 1
10056_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057
10058 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010060 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10061echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10062if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064else
10065 ac_check_lib_save_LIBS=$LIBS
10066LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010067cat >conftest.$ac_ext <<_ACEOF
10068/* confdefs.h. */
10069_ACEOF
10070cat confdefs.h >>conftest.$ac_ext
10071cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072/* end confdefs.h. */
10073
Reid Spencera773bd52006-08-04 18:18:08 +000010074/* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077#ifdef __cplusplus
10078extern "C"
10079#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080char dld_link ();
10081int
10082main ()
10083{
Reid Spencera773bd52006-08-04 18:18:08 +000010084return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085 ;
10086 return 0;
10087}
10088_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010089rm -f conftest.$ac_objext conftest$ac_exeext
10090if { (ac_try="$ac_link"
10091case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10094esac
10095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_link") 2>conftest.er1
10097 ac_status=$?
10098 grep -v '^ *+' conftest.er1 >conftest.err
10099 rm -f conftest.er1
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10104 { (case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107esac
10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_try") 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest$ac_exeext'
10114 { (case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117esac
10118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_try") 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123 ac_cv_lib_dld_dld_link=yes
10124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010125 echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010129fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010130
Bill Wendlingebcceee2009-04-18 11:20:33 +000010131rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010132 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133LIBS=$ac_check_lib_save_LIBS
10134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010135{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10136echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10137if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010139cat >>confdefs.h <<\_ACEOF
10140#define HAVE_DLD 1
10141_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142
10143 LIBADD_DL="$LIBADD_DL -ldld"
10144else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010145 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10146echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10147if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149else
10150 cat >conftest.$ac_ext <<_ACEOF
10151/* confdefs.h. */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h. */
10156/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10158#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010160/* System header to define __stub macros and hopefully few prototypes,
10161 which can conflict with char _dyld_func_lookup (); below.
10162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10163 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010165#ifdef __STDC__
10166# include <limits.h>
10167#else
10168# include <assert.h>
10169#endif
10170
10171#undef _dyld_func_lookup
10172
10173/* Override any GCC internal prototype to avoid an error.
10174 Use char because int might match the return type of a GCC
10175 builtin and then its argument prototype would still apply. */
10176#ifdef __cplusplus
10177extern "C"
10178#endif
10179char _dyld_func_lookup ();
10180/* The GNU C library defines this for functions which it implements
10181 to always fail with ENOSYS. Some functions are actually named
10182 something starting with __ and the normal name is an alias. */
10183#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10184choke me
10185#endif
10186
10187int
10188main ()
10189{
10190return _dyld_func_lookup ();
10191 ;
10192 return 0;
10193}
10194_ACEOF
10195rm -f conftest.$ac_objext conftest$ac_exeext
10196if { (ac_try="$ac_link"
10197case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_link") 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210 { (case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10213esac
10214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_try") 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223esac
10224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_try") 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_func__dyld_func_lookup=yes
10230else
10231 echo "$as_me: failed program was:" >&5
10232sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235fi
Reid Spencera773bd52006-08-04 18:18:08 +000010236
Bill Wendlingebcceee2009-04-18 11:20:33 +000010237rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010238 conftest$ac_exeext conftest.$ac_ext
10239fi
10240{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10241echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10242if test $ac_cv_func__dyld_func_lookup = yes; then
10243
10244cat >>confdefs.h <<\_ACEOF
10245#define HAVE_DYLD 1
10246_ACEOF
10247
10248fi
10249
10250
10251fi
10252
10253
10254fi
10255
10256
10257fi
10258
10259rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261
10262fi
10263
10264
10265fi
10266
10267
10268fi
10269
10270
10271if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10272then
10273 lt_save_LIBS="$LIBS"
10274 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010275
10276for ac_func in dlerror
10277do
10278as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10280echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10281if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284 cat >conftest.$ac_ext <<_ACEOF
10285/* confdefs.h. */
10286_ACEOF
10287cat confdefs.h >>conftest.$ac_ext
10288cat >>conftest.$ac_ext <<_ACEOF
10289/* end confdefs.h. */
10290/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10292#define $ac_func innocuous_$ac_func
10293
10294/* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char $ac_func (); below.
10296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10297 <limits.h> exists even on freestanding compilers. */
10298
10299#ifdef __STDC__
10300# include <limits.h>
10301#else
10302# include <assert.h>
10303#endif
10304
10305#undef $ac_func
10306
10307/* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10310#ifdef __cplusplus
10311extern "C"
10312#endif
10313char $ac_func ();
10314/* The GNU C library defines this for functions which it implements
10315 to always fail with ENOSYS. Some functions are actually named
10316 something starting with __ and the normal name is an alias. */
10317#if defined __stub_$ac_func || defined __stub___$ac_func
10318choke me
10319#endif
10320
10321int
10322main ()
10323{
10324return $ac_func ();
10325 ;
10326 return 0;
10327}
10328_ACEOF
10329rm -f conftest.$ac_objext conftest$ac_exeext
10330if { (ac_try="$ac_link"
10331case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334esac
10335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_link") 2>conftest.er1
10337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10344 { (case "(($ac_try" in
10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346 *) ac_try_echo=$ac_try;;
10347esac
10348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349 (eval "$ac_try") 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; } &&
10353 { ac_try='test -s conftest$ac_exeext'
10354 { (case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_try") 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 eval "$as_ac_var=yes"
10364else
10365 echo "$as_me: failed program was:" >&5
10366sed 's/^/| /' conftest.$ac_ext >&5
10367
10368 eval "$as_ac_var=no"
10369fi
10370
10371rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373fi
10374ac_res=`eval echo '${'$as_ac_var'}'`
10375 { echo "$as_me:$LINENO: result: $ac_res" >&5
10376echo "${ECHO_T}$ac_res" >&6; }
10377if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010380_ACEOF
10381
10382fi
10383done
10384
10385 LIBS="$lt_save_LIBS"
10386fi
10387ac_ext=c
10388ac_cpp='$CPP $CPPFLAGS'
10389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10391ac_compiler_gnu=$ac_cv_c_compiler_gnu
10392
10393
10394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010395{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10396echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10397if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399else
10400 ac_cv_sys_symbol_underscore=no
10401 cat > conftest.$ac_ext <<EOF
10402void nm_test_func(){}
10403int main(){nm_test_func;return 0;}
10404EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406 (eval $ac_compile) 2>&5
10407 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410 # Now try to grab the symbols.
10411 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010412 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 +000010413 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10414 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010417 # See whether the symbols have a leading underscore.
10418 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10419 ac_cv_sys_symbol_underscore=yes
10420 else
10421 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10422 :
10423 else
10424 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10425 fi
10426 fi
10427 else
10428 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10429 fi
10430 else
10431 echo "configure: failed program was:" >&5
10432 cat conftest.c >&5
10433 fi
10434 rm -rf conftest*
10435
10436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010437{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10438echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439
10440
10441if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10442 if test x"$libltdl_cv_func_dlopen" = xyes ||
10443 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010444 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10445echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10446if test "${libltdl_cv_need_uscore+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448else
10449 libltdl_cv_need_uscore=unknown
10450 save_LIBS="$LIBS"
10451 LIBS="$LIBS $LIBADD_DL"
10452 if test "$cross_compiling" = yes; then :
10453 libltdl_cv_need_uscore=cross
10454else
10455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10456 lt_status=$lt_dlunknown
10457 cat > conftest.$ac_ext <<EOF
Charles Davis13460c92011-10-26 02:28:32 +000010458#line 10463 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459#include "confdefs.h"
10460
10461#if HAVE_DLFCN_H
10462#include <dlfcn.h>
10463#endif
10464
10465#include <stdio.h>
10466
10467#ifdef RTLD_GLOBAL
10468# define LT_DLGLOBAL RTLD_GLOBAL
10469#else
10470# ifdef DL_GLOBAL
10471# define LT_DLGLOBAL DL_GLOBAL
10472# else
10473# define LT_DLGLOBAL 0
10474# endif
10475#endif
10476
10477/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10478 find out it does not work in some platform. */
10479#ifndef LT_DLLAZY_OR_NOW
10480# ifdef RTLD_LAZY
10481# define LT_DLLAZY_OR_NOW RTLD_LAZY
10482# else
10483# ifdef DL_LAZY
10484# define LT_DLLAZY_OR_NOW DL_LAZY
10485# else
10486# ifdef RTLD_NOW
10487# define LT_DLLAZY_OR_NOW RTLD_NOW
10488# else
10489# ifdef DL_NOW
10490# define LT_DLLAZY_OR_NOW DL_NOW
10491# else
10492# define LT_DLLAZY_OR_NOW 0
10493# endif
10494# endif
10495# endif
10496# endif
10497#endif
10498
10499#ifdef __cplusplus
10500extern "C" void exit (int);
10501#endif
10502
10503void fnord() { int i=42;}
10504int main ()
10505{
10506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10507 int status = $lt_dlunknown;
10508
10509 if (self)
10510 {
10511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10512 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10513 /* dlclose (self); */
10514 }
Reid Spencera773bd52006-08-04 18:18:08 +000010515 else
10516 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010517
10518 exit (status);
10519}
10520EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010522 (eval $ac_link) 2>&5
10523 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010526 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527 lt_status=$?
10528 case x$lt_status in
10529 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10530 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010531 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532 esac
10533 else :
10534 # compilation failed
10535
10536 fi
10537fi
10538rm -fr conftest*
10539
10540 LIBS="$save_LIBS"
10541
10542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010543{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10544echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545 fi
10546fi
10547
10548if test x"$libltdl_cv_need_uscore" = xyes; then
10549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010550cat >>confdefs.h <<\_ACEOF
10551#define NEED_USCORE 1
10552_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553
10554fi
10555
10556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010557{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10558echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10559if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561else
10562 # PORTME does your system automatically load deplibs for dlopen?
10563 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10564 # For now, we just catch OSes we know something about -- in the
10565 # future, we'll try test this programmatically.
10566 libltdl_cv_sys_dlopen_deplibs=unknown
10567 case "$host_os" in
10568 aix3*|aix4.1.*|aix4.2.*)
10569 # Unknown whether this is true for these versions of AIX, but
10570 # we want this `case' here to explicitly catch those versions.
10571 libltdl_cv_sys_dlopen_deplibs=unknown
10572 ;;
10573 aix[45]*)
10574 libltdl_cv_sys_dlopen_deplibs=yes
10575 ;;
10576 darwin*)
10577 # Assuming the user has installed a libdl from somewhere, this is true
10578 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10579 libltdl_cv_sys_dlopen_deplibs=yes
10580 ;;
10581 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10582 # GNU and its variants, using gnu ld.so (Glibc)
10583 libltdl_cv_sys_dlopen_deplibs=yes
10584 ;;
10585 hpux10*|hpux11*)
10586 libltdl_cv_sys_dlopen_deplibs=yes
10587 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010588 interix*)
10589 libltdl_cv_sys_dlopen_deplibs=yes
10590 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591 irix[12345]*|irix6.[01]*)
10592 # Catch all versions of IRIX before 6.2, and indicate that we don't
10593 # know how it worked for any of those versions.
10594 libltdl_cv_sys_dlopen_deplibs=unknown
10595 ;;
10596 irix*)
10597 # The case above catches anything before 6.2, and it's known that
10598 # at 6.2 and later dlopen does load deplibs.
10599 libltdl_cv_sys_dlopen_deplibs=yes
10600 ;;
10601 netbsd*)
10602 libltdl_cv_sys_dlopen_deplibs=yes
10603 ;;
10604 openbsd*)
10605 libltdl_cv_sys_dlopen_deplibs=yes
10606 ;;
10607 osf[1234]*)
10608 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10609 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010610 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010611 libltdl_cv_sys_dlopen_deplibs=no
10612 ;;
10613 osf5.0|osf5.0a|osf5.1)
10614 # dlopen *does* load deplibs and with the right loader patch applied
10615 # it even uses RPATH in a shared library to search for shared objects
10616 # that the library depends on, but there's no easy way to know if that
10617 # patch is installed. Since this is the case, all we can really
10618 # say is unknown -- it depends on the patch being installed. If
10619 # it is, this changes to `yes'. Without it, it would be `no'.
10620 libltdl_cv_sys_dlopen_deplibs=unknown
10621 ;;
10622 osf*)
10623 # the two cases above should catch all versions of osf <= 5.1. Read
10624 # the comments above for what we know about them.
10625 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10626 # is used to find them so we can finally say `yes'.
10627 libltdl_cv_sys_dlopen_deplibs=yes
10628 ;;
10629 solaris*)
10630 libltdl_cv_sys_dlopen_deplibs=yes
10631 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10633 libltdl_cv_sys_dlopen_deplibs=yes
10634 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635 esac
10636
10637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010638{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10639echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010640if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010642cat >>confdefs.h <<\_ACEOF
10643#define LTDL_DLOPEN_DEPLIBS 1
10644_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010645
10646fi
10647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010648
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010650do
10651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10657fi
10658ac_res=`eval echo '${'$as_ac_Header'}'`
10659 { echo "$as_me:$LINENO: result: $ac_res" >&5
10660echo "${ECHO_T}$ac_res" >&6; }
10661else
10662 # Is the header compilable?
10663{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10665cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
10671$ac_includes_default
10672#include <$ac_header>
10673_ACEOF
10674rm -f conftest.$ac_objext
10675if { (ac_try="$ac_compile"
10676case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10679esac
10680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_compile") 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10689 { (case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10692esac
10693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_try") 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest.$ac_objext'
10699 { (case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702esac
10703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_try") 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_header_compiler=yes
10709else
10710 echo "$as_me: failed program was:" >&5
10711sed 's/^/| /' conftest.$ac_ext >&5
10712
10713 ac_header_compiler=no
10714fi
10715
10716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10718echo "${ECHO_T}$ac_header_compiler" >&6; }
10719
10720# Is the header present?
10721{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10723cat >conftest.$ac_ext <<_ACEOF
10724/* confdefs.h. */
10725_ACEOF
10726cat confdefs.h >>conftest.$ac_ext
10727cat >>conftest.$ac_ext <<_ACEOF
10728/* end confdefs.h. */
10729#include <$ac_header>
10730_ACEOF
10731if { (ac_try="$ac_cpp conftest.$ac_ext"
10732case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735esac
10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } >/dev/null; then
10744 if test -s conftest.err; then
10745 ac_cpp_err=$ac_c_preproc_warn_flag
10746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10747 else
10748 ac_cpp_err=
10749 fi
10750else
10751 ac_cpp_err=yes
10752fi
10753if test -z "$ac_cpp_err"; then
10754 ac_header_preproc=yes
10755else
10756 echo "$as_me: failed program was:" >&5
10757sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 ac_header_preproc=no
10760fi
10761
10762rm -f conftest.err conftest.$ac_ext
10763{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10764echo "${ECHO_T}$ac_header_preproc" >&6; }
10765
10766# So? What about this header?
10767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10768 yes:no: )
10769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10773 ac_header_preproc=yes
10774 ;;
10775 no:yes:* )
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10788 ( cat <<\_ASBOX
10789## ----------------------------------- ##
10790## Report this to llvmbugs@cs.uiuc.edu ##
10791## ----------------------------------- ##
10792_ASBOX
10793 ) | sed "s/^/$as_me: WARNING: /" >&2
10794 ;;
10795esac
10796{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800else
10801 eval "$as_ac_Header=\$ac_header_preproc"
10802fi
10803ac_res=`eval echo '${'$as_ac_Header'}'`
10804 { echo "$as_me:$LINENO: result: $ac_res" >&5
10805echo "${ECHO_T}$ac_res" >&6; }
10806
10807fi
10808if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010809 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811_ACEOF
10812
10813fi
10814
10815done
10816
10817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010818{ echo "$as_me:$LINENO: checking for error_t" >&5
10819echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10820if test "${ac_cv_type_error_t+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
10823 cat >conftest.$ac_ext <<_ACEOF
10824/* confdefs.h. */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
10828/* end confdefs.h. */
10829#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830# include <argz.h>
10831#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010832
10833typedef error_t ac__type_new_;
10834int
10835main ()
10836{
10837if ((ac__type_new_ *) 0)
10838 return 0;
10839if (sizeof (ac__type_new_))
10840 return 0;
10841 ;
10842 return 0;
10843}
10844_ACEOF
10845rm -f conftest.$ac_objext
10846if { (ac_try="$ac_compile"
10847case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850esac
10851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10860 { (case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863esac
10864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_try") 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest.$ac_objext'
10870 { (case "(($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_try") 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_type_error_t=yes
10880else
10881 echo "$as_me: failed program was:" >&5
10882sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_cv_type_error_t=no
10885fi
10886
10887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888fi
10889{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10890echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10891if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892
10893cat >>confdefs.h <<_ACEOF
10894#define HAVE_ERROR_T 1
10895_ACEOF
10896
10897
10898else
10899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010900cat >>confdefs.h <<\_ACEOF
10901#define error_t int
10902_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010903
10904fi
10905
10906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010907
10908
10909
10910
10911
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010912for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010913do
10914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10915{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10917if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919else
10920 cat >conftest.$ac_ext <<_ACEOF
10921/* confdefs.h. */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h. */
10926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10928#define $ac_func innocuous_$ac_func
10929
10930/* System header to define __stub macros and hopefully few prototypes,
10931 which can conflict with char $ac_func (); below.
10932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10933 <limits.h> exists even on freestanding compilers. */
10934
10935#ifdef __STDC__
10936# include <limits.h>
10937#else
10938# include <assert.h>
10939#endif
10940
10941#undef $ac_func
10942
10943/* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10946#ifdef __cplusplus
10947extern "C"
10948#endif
10949char $ac_func ();
10950/* The GNU C library defines this for functions which it implements
10951 to always fail with ENOSYS. Some functions are actually named
10952 something starting with __ and the normal name is an alias. */
10953#if defined __stub_$ac_func || defined __stub___$ac_func
10954choke me
10955#endif
10956
10957int
10958main ()
10959{
10960return $ac_func ();
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965rm -f conftest.$ac_objext conftest$ac_exeext
10966if { (ac_try="$ac_link"
10967case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970esac
10971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_link") 2>conftest.er1
10973 ac_status=$?
10974 grep -v '^ *+' conftest.er1 >conftest.err
10975 rm -f conftest.er1
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980 { (case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10983esac
10984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_try") 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } &&
10989 { ac_try='test -s conftest$ac_exeext'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 eval "$as_ac_var=yes"
11000else
11001 echo "$as_me: failed program was:" >&5
11002sed 's/^/| /' conftest.$ac_ext >&5
11003
11004 eval "$as_ac_var=no"
11005fi
11006
11007rm -f core conftest.err conftest.$ac_objext \
11008 conftest$ac_exeext conftest.$ac_ext
11009fi
11010ac_res=`eval echo '${'$as_ac_var'}'`
11011 { echo "$as_me:$LINENO: result: $ac_res" >&5
11012echo "${ECHO_T}$ac_res" >&6; }
11013if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011016_ACEOF
11017
11018fi
11019done
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011040
11041
11042
11043
11044
11045
11046
11047
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011048for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11049 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011050do
11051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057fi
11058ac_res=`eval echo '${'$as_ac_Header'}'`
11059 { echo "$as_me:$LINENO: result: $ac_res" >&5
11060echo "${ECHO_T}$ac_res" >&6; }
11061else
11062 # Is the header compilable?
11063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11065cat >conftest.$ac_ext <<_ACEOF
11066/* confdefs.h. */
11067_ACEOF
11068cat confdefs.h >>conftest.$ac_ext
11069cat >>conftest.$ac_ext <<_ACEOF
11070/* end confdefs.h. */
11071$ac_includes_default
11072#include <$ac_header>
11073_ACEOF
11074rm -f conftest.$ac_objext
11075if { (ac_try="$ac_compile"
11076case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11079esac
11080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_compile") 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11089 { (case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092esac
11093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_try") 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try='test -s conftest.$ac_objext'
11099 { (case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102esac
11103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_try") 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_header_compiler=yes
11109else
11110 echo "$as_me: failed program was:" >&5
11111sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 ac_header_compiler=no
11114fi
11115
11116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11118echo "${ECHO_T}$ac_header_compiler" >&6; }
11119
11120# Is the header present?
11121{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11123cat >conftest.$ac_ext <<_ACEOF
11124/* confdefs.h. */
11125_ACEOF
11126cat confdefs.h >>conftest.$ac_ext
11127cat >>conftest.$ac_ext <<_ACEOF
11128/* end confdefs.h. */
11129#include <$ac_header>
11130_ACEOF
11131if { (ac_try="$ac_cpp conftest.$ac_ext"
11132case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11138 ac_status=$?
11139 grep -v '^ *+' conftest.er1 >conftest.err
11140 rm -f conftest.er1
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } >/dev/null; then
11144 if test -s conftest.err; then
11145 ac_cpp_err=$ac_c_preproc_warn_flag
11146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11147 else
11148 ac_cpp_err=
11149 fi
11150else
11151 ac_cpp_err=yes
11152fi
11153if test -z "$ac_cpp_err"; then
11154 ac_header_preproc=yes
11155else
11156 echo "$as_me: failed program was:" >&5
11157sed 's/^/| /' conftest.$ac_ext >&5
11158
11159 ac_header_preproc=no
11160fi
11161
11162rm -f conftest.err conftest.$ac_ext
11163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11164echo "${ECHO_T}$ac_header_preproc" >&6; }
11165
11166# So? What about this header?
11167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11168 yes:no: )
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11173 ac_header_preproc=yes
11174 ;;
11175 no:yes:* )
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11188 ( cat <<\_ASBOX
11189## ----------------------------------- ##
11190## Report this to llvmbugs@cs.uiuc.edu ##
11191## ----------------------------------- ##
11192_ASBOX
11193 ) | sed "s/^/$as_me: WARNING: /" >&2
11194 ;;
11195esac
11196{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11200else
11201 eval "$as_ac_Header=\$ac_header_preproc"
11202fi
11203ac_res=`eval echo '${'$as_ac_Header'}'`
11204 { echo "$as_me:$LINENO: result: $ac_res" >&5
11205echo "${ECHO_T}$ac_res" >&6; }
11206
11207fi
11208if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211_ACEOF
11212
11213fi
11214
11215done
11216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011217
11218
11219
11220
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011222do
11223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229fi
11230ac_res=`eval echo '${'$as_ac_Header'}'`
11231 { echo "$as_me:$LINENO: result: $ac_res" >&5
11232echo "${ECHO_T}$ac_res" >&6; }
11233else
11234 # Is the header compilable?
11235{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11237cat >conftest.$ac_ext <<_ACEOF
11238/* confdefs.h. */
11239_ACEOF
11240cat confdefs.h >>conftest.$ac_ext
11241cat >>conftest.$ac_ext <<_ACEOF
11242/* end confdefs.h. */
11243$ac_includes_default
11244#include <$ac_header>
11245_ACEOF
11246rm -f conftest.$ac_objext
11247if { (ac_try="$ac_compile"
11248case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11251esac
11252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_compile") 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11261 { (case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264esac
11265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_try") 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest.$ac_objext'
11271 { (case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274esac
11275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_try") 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_header_compiler=yes
11281else
11282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_header_compiler=no
11286fi
11287
11288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11290echo "${ECHO_T}$ac_header_compiler" >&6; }
11291
11292# Is the header present?
11293{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11295cat >conftest.$ac_ext <<_ACEOF
11296/* confdefs.h. */
11297_ACEOF
11298cat confdefs.h >>conftest.$ac_ext
11299cat >>conftest.$ac_ext <<_ACEOF
11300/* end confdefs.h. */
11301#include <$ac_header>
11302_ACEOF
11303if { (ac_try="$ac_cpp conftest.$ac_ext"
11304case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307esac
11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } >/dev/null; then
11316 if test -s conftest.err; then
11317 ac_cpp_err=$ac_c_preproc_warn_flag
11318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11319 else
11320 ac_cpp_err=
11321 fi
11322else
11323 ac_cpp_err=yes
11324fi
11325if test -z "$ac_cpp_err"; then
11326 ac_header_preproc=yes
11327else
11328 echo "$as_me: failed program was:" >&5
11329sed 's/^/| /' conftest.$ac_ext >&5
11330
11331 ac_header_preproc=no
11332fi
11333
11334rm -f conftest.err conftest.$ac_ext
11335{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11336echo "${ECHO_T}$ac_header_preproc" >&6; }
11337
11338# So? What about this header?
11339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11340 yes:no: )
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11345 ac_header_preproc=yes
11346 ;;
11347 no:yes:* )
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11360 ( cat <<\_ASBOX
11361## ----------------------------------- ##
11362## Report this to llvmbugs@cs.uiuc.edu ##
11363## ----------------------------------- ##
11364_ASBOX
11365 ) | sed "s/^/$as_me: WARNING: /" >&2
11366 ;;
11367esac
11368{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372else
11373 eval "$as_ac_Header=\$ac_header_preproc"
11374fi
11375ac_res=`eval echo '${'$as_ac_Header'}'`
11376 { echo "$as_me:$LINENO: result: $ac_res" >&5
11377echo "${ECHO_T}$ac_res" >&6; }
11378
11379fi
11380if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011383_ACEOF
11384
11385fi
11386
11387done
11388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011389
11390
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011392do
11393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399fi
11400ac_res=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402echo "${ECHO_T}$ac_res" >&6; }
11403else
11404 # Is the header compilable?
11405{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11407cat >conftest.$ac_ext <<_ACEOF
11408/* confdefs.h. */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h. */
11413$ac_includes_default
11414#include <$ac_header>
11415_ACEOF
11416rm -f conftest.$ac_objext
11417if { (ac_try="$ac_compile"
11418case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421esac
11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11431 { (case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434esac
11435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_try") 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest.$ac_objext'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444esac
11445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_header_compiler=yes
11451else
11452 echo "$as_me: failed program was:" >&5
11453sed 's/^/| /' conftest.$ac_ext >&5
11454
11455 ac_header_compiler=no
11456fi
11457
11458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11460echo "${ECHO_T}$ac_header_compiler" >&6; }
11461
11462# Is the header present?
11463{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11465cat >conftest.$ac_ext <<_ACEOF
11466/* confdefs.h. */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
11471#include <$ac_header>
11472_ACEOF
11473if { (ac_try="$ac_cpp conftest.$ac_ext"
11474case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } >/dev/null; then
11486 if test -s conftest.err; then
11487 ac_cpp_err=$ac_c_preproc_warn_flag
11488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11489 else
11490 ac_cpp_err=
11491 fi
11492else
11493 ac_cpp_err=yes
11494fi
11495if test -z "$ac_cpp_err"; then
11496 ac_header_preproc=yes
11497else
11498 echo "$as_me: failed program was:" >&5
11499sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 ac_header_preproc=no
11502fi
11503
11504rm -f conftest.err conftest.$ac_ext
11505{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11506echo "${ECHO_T}$ac_header_preproc" >&6; }
11507
11508# So? What about this header?
11509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11510 yes:no: )
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11515 ac_header_preproc=yes
11516 ;;
11517 no:yes:* )
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11530 ( cat <<\_ASBOX
11531## ----------------------------------- ##
11532## Report this to llvmbugs@cs.uiuc.edu ##
11533## ----------------------------------- ##
11534_ASBOX
11535 ) | sed "s/^/$as_me: WARNING: /" >&2
11536 ;;
11537esac
11538{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542else
11543 eval "$as_ac_Header=\$ac_header_preproc"
11544fi
11545ac_res=`eval echo '${'$as_ac_Header'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547echo "${ECHO_T}$ac_res" >&6; }
11548
11549fi
11550if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553_ACEOF
11554 break
11555fi
11556
11557done
11558
11559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011560
11561
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011563do
11564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11565{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570 cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11578#define $ac_func innocuous_$ac_func
11579
11580/* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char $ac_func (); below.
11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583 <limits.h> exists even on freestanding compilers. */
11584
11585#ifdef __STDC__
11586# include <limits.h>
11587#else
11588# include <assert.h>
11589#endif
11590
11591#undef $ac_func
11592
11593/* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599char $ac_func ();
11600/* The GNU C library defines this for functions which it implements
11601 to always fail with ENOSYS. Some functions are actually named
11602 something starting with __ and the normal name is an alias. */
11603#if defined __stub_$ac_func || defined __stub___$ac_func
11604choke me
11605#endif
11606
11607int
11608main ()
11609{
11610return $ac_func ();
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext conftest$ac_exeext
11616if { (ac_try="$ac_link"
11617case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620esac
11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11630 { (case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11633esac
11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_try") 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest$ac_exeext'
11640 { (case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11643esac
11644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645 (eval "$ac_try") 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 eval "$as_ac_var=yes"
11650else
11651 echo "$as_me: failed program was:" >&5
11652sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 eval "$as_ac_var=no"
11655fi
11656
11657rm -f core conftest.err conftest.$ac_objext \
11658 conftest$ac_exeext conftest.$ac_ext
11659fi
11660ac_res=`eval echo '${'$as_ac_var'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662echo "${ECHO_T}$ac_res" >&6; }
11663if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011666_ACEOF
11667 break
11668fi
11669done
11670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011671
11672
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011673for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011674do
11675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11676{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11678if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680else
11681 cat >conftest.$ac_ext <<_ACEOF
11682/* confdefs.h. */
11683_ACEOF
11684cat confdefs.h >>conftest.$ac_ext
11685cat >>conftest.$ac_ext <<_ACEOF
11686/* end confdefs.h. */
11687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11689#define $ac_func innocuous_$ac_func
11690
11691/* System header to define __stub macros and hopefully few prototypes,
11692 which can conflict with char $ac_func (); below.
11693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11694 <limits.h> exists even on freestanding compilers. */
11695
11696#ifdef __STDC__
11697# include <limits.h>
11698#else
11699# include <assert.h>
11700#endif
11701
11702#undef $ac_func
11703
11704/* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707#ifdef __cplusplus
11708extern "C"
11709#endif
11710char $ac_func ();
11711/* The GNU C library defines this for functions which it implements
11712 to always fail with ENOSYS. Some functions are actually named
11713 something starting with __ and the normal name is an alias. */
11714#if defined __stub_$ac_func || defined __stub___$ac_func
11715choke me
11716#endif
11717
11718int
11719main ()
11720{
11721return $ac_func ();
11722 ;
11723 return 0;
11724}
11725_ACEOF
11726rm -f conftest.$ac_objext conftest$ac_exeext
11727if { (ac_try="$ac_link"
11728case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11731esac
11732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_link") 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11741 { (case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11744esac
11745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_try") 2>&5
11747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; } &&
11750 { ac_try='test -s conftest$ac_exeext'
11751 { (case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11754esac
11755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_try") 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 eval "$as_ac_var=yes"
11761else
11762 echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
11765 eval "$as_ac_var=no"
11766fi
11767
11768rm -f core conftest.err conftest.$ac_objext \
11769 conftest$ac_exeext conftest.$ac_ext
11770fi
11771ac_res=`eval echo '${'$as_ac_var'}'`
11772 { echo "$as_me:$LINENO: result: $ac_res" >&5
11773echo "${ECHO_T}$ac_res" >&6; }
11774if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777_ACEOF
11778 break
11779fi
11780done
11781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011782
11783
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011785do
11786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11787{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11789if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 cat >conftest.$ac_ext <<_ACEOF
11793/* confdefs.h. */
11794_ACEOF
11795cat confdefs.h >>conftest.$ac_ext
11796cat >>conftest.$ac_ext <<_ACEOF
11797/* end confdefs.h. */
11798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11800#define $ac_func innocuous_$ac_func
11801
11802/* System header to define __stub macros and hopefully few prototypes,
11803 which can conflict with char $ac_func (); below.
11804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11805 <limits.h> exists even on freestanding compilers. */
11806
11807#ifdef __STDC__
11808# include <limits.h>
11809#else
11810# include <assert.h>
11811#endif
11812
11813#undef $ac_func
11814
11815/* Override any GCC internal prototype to avoid an error.
11816 Use char because int might match the return type of a GCC
11817 builtin and then its argument prototype would still apply. */
11818#ifdef __cplusplus
11819extern "C"
11820#endif
11821char $ac_func ();
11822/* The GNU C library defines this for functions which it implements
11823 to always fail with ENOSYS. Some functions are actually named
11824 something starting with __ and the normal name is an alias. */
11825#if defined __stub_$ac_func || defined __stub___$ac_func
11826choke me
11827#endif
11828
11829int
11830main ()
11831{
11832return $ac_func ();
11833 ;
11834 return 0;
11835}
11836_ACEOF
11837rm -f conftest.$ac_objext conftest$ac_exeext
11838if { (ac_try="$ac_link"
11839case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842esac
11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_link") 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
11851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11852 { (case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855esac
11856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_try") 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; } &&
11861 { ac_try='test -s conftest$ac_exeext'
11862 { (case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865esac
11866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_try") 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 eval "$as_ac_var=yes"
11872else
11873 echo "$as_me: failed program was:" >&5
11874sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 eval "$as_ac_var=no"
11877fi
11878
11879rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881fi
11882ac_res=`eval echo '${'$as_ac_var'}'`
11883 { echo "$as_me:$LINENO: result: $ac_res" >&5
11884echo "${ECHO_T}$ac_res" >&6; }
11885if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011886 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888_ACEOF
11889 break
11890fi
11891done
11892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011893
11894
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011896do
11897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902else
11903 cat >conftest.$ac_ext <<_ACEOF
11904/* confdefs.h. */
11905_ACEOF
11906cat confdefs.h >>conftest.$ac_ext
11907cat >>conftest.$ac_ext <<_ACEOF
11908/* end confdefs.h. */
11909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11911#define $ac_func innocuous_$ac_func
11912
11913/* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char $ac_func (); below.
11915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916 <limits.h> exists even on freestanding compilers. */
11917
11918#ifdef __STDC__
11919# include <limits.h>
11920#else
11921# include <assert.h>
11922#endif
11923
11924#undef $ac_func
11925
11926/* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11929#ifdef __cplusplus
11930extern "C"
11931#endif
11932char $ac_func ();
11933/* The GNU C library defines this for functions which it implements
11934 to always fail with ENOSYS. Some functions are actually named
11935 something starting with __ and the normal name is an alias. */
11936#if defined __stub_$ac_func || defined __stub___$ac_func
11937choke me
11938#endif
11939
11940int
11941main ()
11942{
11943return $ac_func ();
11944 ;
11945 return 0;
11946}
11947_ACEOF
11948rm -f conftest.$ac_objext conftest$ac_exeext
11949if { (ac_try="$ac_link"
11950case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953esac
11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_link") 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963 { (case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966esac
11967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_try") 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976esac
11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_try") 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 eval "$as_ac_var=yes"
11983else
11984 echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 eval "$as_ac_var=no"
11988fi
11989
11990rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992fi
11993ac_res=`eval echo '${'$as_ac_var'}'`
11994 { echo "$as_me:$LINENO: result: $ac_res" >&5
11995echo "${ECHO_T}$ac_res" >&6; }
11996if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011997 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999_ACEOF
12000
12001fi
12002done
12003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012004
12005
12006
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012007for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012008do
12009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12010{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12014else
12015 cat >conftest.$ac_ext <<_ACEOF
12016/* confdefs.h. */
12017_ACEOF
12018cat confdefs.h >>conftest.$ac_ext
12019cat >>conftest.$ac_ext <<_ACEOF
12020/* end confdefs.h. */
12021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12023#define $ac_func innocuous_$ac_func
12024
12025/* System header to define __stub macros and hopefully few prototypes,
12026 which can conflict with char $ac_func (); below.
12027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12028 <limits.h> exists even on freestanding compilers. */
12029
12030#ifdef __STDC__
12031# include <limits.h>
12032#else
12033# include <assert.h>
12034#endif
12035
12036#undef $ac_func
12037
12038/* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041#ifdef __cplusplus
12042extern "C"
12043#endif
12044char $ac_func ();
12045/* The GNU C library defines this for functions which it implements
12046 to always fail with ENOSYS. Some functions are actually named
12047 something starting with __ and the normal name is an alias. */
12048#if defined __stub_$ac_func || defined __stub___$ac_func
12049choke me
12050#endif
12051
12052int
12053main ()
12054{
12055return $ac_func ();
12056 ;
12057 return 0;
12058}
12059_ACEOF
12060rm -f conftest.$ac_objext conftest$ac_exeext
12061if { (ac_try="$ac_link"
12062case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065esac
12066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_link") 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12075 { (case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12078esac
12079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_try") 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } &&
12084 { ac_try='test -s conftest$ac_exeext'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088esac
12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 eval "$as_ac_var=yes"
12095else
12096 echo "$as_me: failed program was:" >&5
12097sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 eval "$as_ac_var=no"
12100fi
12101
12102rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104fi
12105ac_res=`eval echo '${'$as_ac_var'}'`
12106 { echo "$as_me:$LINENO: result: $ac_res" >&5
12107echo "${ECHO_T}$ac_res" >&6; }
12108if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012109 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012110#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111_ACEOF
12112
12113fi
12114done
12115
12116
Douglas Gregor01746742009-05-11 18:05:52 +000012117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012118{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12119echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012120
Reid Spencer86901802004-12-08 23:07:27 +000012121ICC=no
12122IXX=no
12123case $CC in
12124 icc*|icpc*)
12125 ICC=yes
12126 IXX=yes
12127 ;;
12128 *)
12129 ;;
12130esac
12131
Duraid Madina937c60a2006-02-15 07:57:42 +000012132if test "$GCC" != "yes" && test "$ICC" != "yes"
12133then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012134 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12135echo "$as_me: error: gcc|icc required but not found" >&2;}
12136 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012137fi
12138
12139if test "$GXX" != "yes" && test "$IXX" != "yes"
12140then
Eric Christopher73e36da2010-12-08 02:02:14 +000012141 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12142echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012143 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012144fi
12145
Reid Spencer86901802004-12-08 23:07:27 +000012146if test "$GCC" = "yes"
12147then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012149#if !defined(__GNUC__) || __GNUC__ < 3
12150#error Unsupported GCC version
12151#endif
12152
12153_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012154rm -f conftest.$ac_objext
12155if { (ac_try="$ac_compile"
12156case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_compile") 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12172esac
12173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12194echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12195 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012197
Chris Lattner399c7c72008-02-05 19:43:53 +000012198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012199fi
12200
12201if test -z "$llvm_cv_gnu_make_command"
12202then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012203 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12204echo "$as_me: error: GNU Make required but not found" >&2;}
12205 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012206fi
12207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012208{ echo "$as_me:$LINENO: result: ok" >&5
12209echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012211{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12212echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012213NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12214
12215NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012217{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12218echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012219
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012221
12222{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12223echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12224if test "${ac_cv_lib_m_sin+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012226else
12227 ac_check_lib_save_LIBS=$LIBS
12228LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012229cat >conftest.$ac_ext <<_ACEOF
12230/* confdefs.h. */
12231_ACEOF
12232cat confdefs.h >>conftest.$ac_ext
12233cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012234/* end confdefs.h. */
12235
Reid Spencera773bd52006-08-04 18:18:08 +000012236/* Override any GCC internal prototype to avoid an error.
12237 Use char because int might match the return type of a GCC
12238 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012239#ifdef __cplusplus
12240extern "C"
12241#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012242char sin ();
12243int
12244main ()
12245{
Reid Spencera773bd52006-08-04 18:18:08 +000012246return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012247 ;
12248 return 0;
12249}
12250_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012251rm -f conftest.$ac_objext conftest$ac_exeext
12252if { (ac_try="$ac_link"
12253case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256esac
12257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269esac
12270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest$ac_exeext'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279esac
12280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012285 ac_cv_lib_m_sin=yes
12286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012292
Bill Wendlingebcceee2009-04-18 11:20:33 +000012293rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012294 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012295LIBS=$ac_check_lib_save_LIBS
12296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012297{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12298echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12299if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012300 cat >>confdefs.h <<_ACEOF
12301#define HAVE_LIBM 1
12302_ACEOF
12303
12304 LIBS="-lm $LIBS"
12305
12306fi
12307
Jeff Cohen28783c32007-01-12 18:22:38 +000012308if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012309
12310{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12311echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12312if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012314else
12315 ac_check_lib_save_LIBS=$LIBS
12316LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012317cat >conftest.$ac_ext <<_ACEOF
12318/* confdefs.h. */
12319_ACEOF
12320cat confdefs.h >>conftest.$ac_ext
12321cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012322/* end confdefs.h. */
12323
Reid Spencer48fdf912006-06-01 19:03:21 +000012324
Reid Spencer484fc8e2006-06-01 16:55:59 +000012325int
12326main ()
12327{
Reid Spencera773bd52006-08-04 18:18:08 +000012328return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012329 ;
12330 return 0;
12331}
12332_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012333rm -f conftest.$ac_objext conftest$ac_exeext
12334if { (ac_try="$ac_link"
12335case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338esac
12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_link") 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351esac
12352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361esac
12362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_try") 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012367 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012369 echo "$as_me: failed program was:" >&5
12370sed 's/^/| /' conftest.$ac_ext >&5
12371
12372 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012374
Bill Wendlingebcceee2009-04-18 11:20:33 +000012375rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012376 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012377LIBS=$ac_check_lib_save_LIBS
12378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012379{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12380echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12381if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012382 cat >>confdefs.h <<_ACEOF
12383#define HAVE_LIBIMAGEHLP 1
12384_ACEOF
12385
12386 LIBS="-limagehlp $LIBS"
12387
12388fi
12389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012390
12391{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12392echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12393if test "${ac_cv_lib_psapi_main+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012395else
12396 ac_check_lib_save_LIBS=$LIBS
12397LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012398cat >conftest.$ac_ext <<_ACEOF
12399/* confdefs.h. */
12400_ACEOF
12401cat confdefs.h >>conftest.$ac_ext
12402cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012403/* end confdefs.h. */
12404
Reid Spencer48fdf912006-06-01 19:03:21 +000012405
Reid Spencer484fc8e2006-06-01 16:55:59 +000012406int
12407main ()
12408{
Reid Spencera773bd52006-08-04 18:18:08 +000012409return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012410 ;
12411 return 0;
12412}
12413_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414rm -f conftest.$ac_objext conftest$ac_exeext
12415if { (ac_try="$ac_link"
12416case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_link") 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest$ac_exeext'
12439 { (case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442esac
12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_try") 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012448 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012450 echo "$as_me: failed program was:" >&5
12451sed 's/^/| /' conftest.$ac_ext >&5
12452
12453 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012455
Bill Wendlingebcceee2009-04-18 11:20:33 +000012456rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012457 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012458LIBS=$ac_check_lib_save_LIBS
12459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012460{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12461echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12462if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012463 cat >>confdefs.h <<_ACEOF
12464#define HAVE_LIBPSAPI 1
12465_ACEOF
12466
12467 LIBS="-lpsapi $LIBS"
12468
12469fi
12470
12471fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012473{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12474echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12475if test "${ac_cv_search_dlopen+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012477else
12478 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012479cat >conftest.$ac_ext <<_ACEOF
12480/* confdefs.h. */
12481_ACEOF
12482cat confdefs.h >>conftest.$ac_ext
12483cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012485
Reid Spencera773bd52006-08-04 18:18:08 +000012486/* Override any GCC internal prototype to avoid an error.
12487 Use char because int might match the return type of a GCC
12488 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012489#ifdef __cplusplus
12490extern "C"
12491#endif
John Criswell7a73b802003-06-30 21:59:07 +000012492char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012493int
12494main ()
12495{
Reid Spencera773bd52006-08-04 18:18:08 +000012496return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012497 ;
12498 return 0;
12499}
12500_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012501for ac_lib in '' dl; do
12502 if test -z "$ac_lib"; then
12503 ac_res="none required"
12504 else
12505 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012507 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012508 rm -f conftest.$ac_objext conftest$ac_exeext
12509if { (ac_try="$ac_link"
12510case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12513esac
12514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_link") 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12523 { (case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12526esac
12527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_try") 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; } &&
12532 { ac_try='test -s conftest$ac_exeext'
12533 { (case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12536esac
12537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_try") 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012542 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012543else
12544 echo "$as_me: failed program was:" >&5
12545sed 's/^/| /' conftest.$ac_ext >&5
12546
12547
John Criswell7a73b802003-06-30 21:59:07 +000012548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012549
Bill Wendlingebcceee2009-04-18 11:20:33 +000012550rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012551 conftest$ac_exeext
12552 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012553 break
John Criswell7a73b802003-06-30 21:59:07 +000012554fi
Reid Spencera773bd52006-08-04 18:18:08 +000012555done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012556if test "${ac_cv_search_dlopen+set}" = set; then
12557 :
Reid Spencera773bd52006-08-04 18:18:08 +000012558else
12559 ac_cv_search_dlopen=no
12560fi
12561rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012562LIBS=$ac_func_search_save_LIBS
12563fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012564{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12565echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012566ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012567if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012570cat >>confdefs.h <<\_ACEOF
12571#define HAVE_DLOPEN 1
12572_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012573
12574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12576echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012577fi
12578
12579
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012580if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012581 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12582echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12583if test "${ac_cv_search_ffi_call+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012585else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012586 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012587cat >conftest.$ac_ext <<_ACEOF
12588/* confdefs.h. */
12589_ACEOF
12590cat confdefs.h >>conftest.$ac_ext
12591cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012592/* end confdefs.h. */
12593
12594/* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12597#ifdef __cplusplus
12598extern "C"
12599#endif
12600char ffi_call ();
12601int
12602main ()
12603{
12604return ffi_call ();
12605 ;
12606 return 0;
12607}
12608_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012609for ac_lib in '' ffi; do
12610 if test -z "$ac_lib"; then
12611 ac_res="none required"
12612 else
12613 ac_res=-l$ac_lib
12614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12615 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012616 rm -f conftest.$ac_objext conftest$ac_exeext
12617if { (ac_try="$ac_link"
12618case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634esac
12635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12644esac
12645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_try") 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012650 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012651else
12652 echo "$as_me: failed program was:" >&5
12653sed 's/^/| /' conftest.$ac_ext >&5
12654
12655
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012657
Bill Wendlingebcceee2009-04-18 11:20:33 +000012658rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012659 conftest$ac_exeext
12660 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012661 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012662fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012663done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012664if test "${ac_cv_search_ffi_call+set}" = set; then
12665 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012666else
12667 ac_cv_search_ffi_call=no
12668fi
12669rm conftest.$ac_ext
12670LIBS=$ac_func_search_save_LIBS
12671fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012672{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12673echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012674ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012675if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012678cat >>confdefs.h <<\_ACEOF
12679#define HAVE_FFI_CALL 1
12680_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012681
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012682else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012683 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12684echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12685 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012686fi
12687
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012688fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012690{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12691echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12692if test "${ac_cv_search_mallinfo+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012694else
12695 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012696cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012701/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012702
Reid Spencera773bd52006-08-04 18:18:08 +000012703/* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012706#ifdef __cplusplus
12707extern "C"
12708#endif
John Criswell7a73b802003-06-30 21:59:07 +000012709char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012710int
12711main ()
12712{
Reid Spencera773bd52006-08-04 18:18:08 +000012713return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012714 ;
12715 return 0;
12716}
12717_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012718for ac_lib in '' malloc; do
12719 if test -z "$ac_lib"; then
12720 ac_res="none required"
12721 else
12722 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012724 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012725 rm -f conftest.$ac_objext conftest$ac_exeext
12726if { (ac_try="$ac_link"
12727case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730esac
12731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012759 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012760else
12761 echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
12764
John Criswell7a73b802003-06-30 21:59:07 +000012765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012766
Bill Wendlingebcceee2009-04-18 11:20:33 +000012767rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012768 conftest$ac_exeext
12769 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012770 break
John Criswell7a73b802003-06-30 21:59:07 +000012771fi
Reid Spencera773bd52006-08-04 18:18:08 +000012772done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012773if test "${ac_cv_search_mallinfo+set}" = set; then
12774 :
Reid Spencera773bd52006-08-04 18:18:08 +000012775else
12776 ac_cv_search_mallinfo=no
12777fi
12778rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012779LIBS=$ac_func_search_save_LIBS
12780fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012781{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12782echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012783ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012784if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012787cat >>confdefs.h <<\_ACEOF
12788#define HAVE_MALLINFO 1
12789_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012790
12791fi
12792
12793
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012794if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012795
12796{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12797echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12798if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012800else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012801 ac_check_lib_save_LIBS=$LIBS
12802LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012803cat >conftest.$ac_ext <<_ACEOF
12804/* confdefs.h. */
12805_ACEOF
12806cat confdefs.h >>conftest.$ac_ext
12807cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012808/* end confdefs.h. */
12809
Reid Spencera773bd52006-08-04 18:18:08 +000012810/* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012813#ifdef __cplusplus
12814extern "C"
12815#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012816char pthread_mutex_init ();
12817int
12818main ()
12819{
Reid Spencera773bd52006-08-04 18:18:08 +000012820return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012821 ;
12822 return 0;
12823}
12824_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012825rm -f conftest.$ac_objext conftest$ac_exeext
12826if { (ac_try="$ac_link"
12827case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830esac
12831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_link") 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12840 { (case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12843esac
12844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_try") 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12853esac
12854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_try") 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012859 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012861 echo "$as_me: failed program was:" >&5
12862sed 's/^/| /' conftest.$ac_ext >&5
12863
12864 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012866
Bill Wendlingebcceee2009-04-18 11:20:33 +000012867rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012868 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012869LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012871{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12872echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12873if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012874 cat >>confdefs.h <<_ACEOF
12875#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012876_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012877
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012878 LIBS="-lpthread $LIBS"
12879
Reid Spencer22177fe2005-07-12 15:24:20 +000012880fi
12881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012882 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12883echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12884if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012886else
12887 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012888cat >conftest.$ac_ext <<_ACEOF
12889/* confdefs.h. */
12890_ACEOF
12891cat confdefs.h >>conftest.$ac_ext
12892cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012893/* end confdefs.h. */
12894
Reid Spencera773bd52006-08-04 18:18:08 +000012895/* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012898#ifdef __cplusplus
12899extern "C"
12900#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012901char pthread_mutex_lock ();
12902int
12903main ()
12904{
Reid Spencera773bd52006-08-04 18:18:08 +000012905return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012906 ;
12907 return 0;
12908}
12909_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012910for ac_lib in '' pthread; do
12911 if test -z "$ac_lib"; then
12912 ac_res="none required"
12913 else
12914 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012916 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012917 rm -f conftest.$ac_objext conftest$ac_exeext
12918if { (ac_try="$ac_link"
12919case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922esac
12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_link") 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12932 { (case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12935esac
12936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_try") 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try='test -s conftest$ac_exeext'
12942 { (case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12945esac
12946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_try") 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012951 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012952else
12953 echo "$as_me: failed program was:" >&5
12954sed 's/^/| /' conftest.$ac_ext >&5
12955
12956
Brian Gaeke5f268f72003-12-05 19:29:01 +000012957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012958
Bill Wendlingebcceee2009-04-18 11:20:33 +000012959rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012960 conftest$ac_exeext
12961 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012962 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012963fi
Reid Spencera773bd52006-08-04 18:18:08 +000012964done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012965if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12966 :
Reid Spencera773bd52006-08-04 18:18:08 +000012967else
12968 ac_cv_search_pthread_mutex_lock=no
12969fi
12970rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012971LIBS=$ac_func_search_save_LIBS
12972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012973{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12974echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012975ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012976if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012979cat >>confdefs.h <<\_ACEOF
12980#define HAVE_PTHREAD_MUTEX_LOCK 1
12981_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012982
12983fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012985 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12986echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12987if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012989else
12990 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012991cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h. */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012996/* end confdefs.h. */
12997
12998/* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001#ifdef __cplusplus
13002extern "C"
13003#endif
13004char pthread_rwlock_init ();
13005int
13006main ()
13007{
13008return pthread_rwlock_init ();
13009 ;
13010 return 0;
13011}
13012_ACEOF
13013for ac_lib in '' pthread; do
13014 if test -z "$ac_lib"; then
13015 ac_res="none required"
13016 else
13017 ac_res=-l$ac_lib
13018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13019 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020 rm -f conftest.$ac_objext conftest$ac_exeext
13021if { (ac_try="$ac_link"
13022case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025esac
13026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_link") 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13035 { (case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_try") 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; } &&
13044 { ac_try='test -s conftest$ac_exeext'
13045 { (case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13048esac
13049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050 (eval "$ac_try") 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013054 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013055else
13056 echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059
Owen Andersonde8aed22009-06-16 18:20:20 +000013060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013061
Owen Andersonde8aed22009-06-16 18:20:20 +000013062rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013063 conftest$ac_exeext
13064 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013065 break
13066fi
13067done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013068if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13069 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013070else
13071 ac_cv_search_pthread_rwlock_init=no
13072fi
13073rm conftest.$ac_ext
13074LIBS=$ac_func_search_save_LIBS
13075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013076{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13077echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013078ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013079if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013082cat >>confdefs.h <<\_ACEOF
13083#define HAVE_PTHREAD_RWLOCK_INIT 1
13084_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013085
13086fi
13087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013088 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13089echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13090if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013092else
13093 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013094cat >conftest.$ac_ext <<_ACEOF
13095/* confdefs.h. */
13096_ACEOF
13097cat confdefs.h >>conftest.$ac_ext
13098cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013099/* end confdefs.h. */
13100
13101/* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13104#ifdef __cplusplus
13105extern "C"
13106#endif
13107char pthread_getspecific ();
13108int
13109main ()
13110{
13111return pthread_getspecific ();
13112 ;
13113 return 0;
13114}
13115_ACEOF
13116for ac_lib in '' pthread; do
13117 if test -z "$ac_lib"; then
13118 ac_res="none required"
13119 else
13120 ac_res=-l$ac_lib
13121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13122 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123 rm -f conftest.$ac_objext conftest$ac_exeext
13124if { (ac_try="$ac_link"
13125case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13128esac
13129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141esac
13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13151esac
13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013157 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013158else
13159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162
Owen Anderson27fcfe12009-06-25 23:10:26 +000013163fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013164
Owen Anderson27fcfe12009-06-25 23:10:26 +000013165rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013166 conftest$ac_exeext
13167 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013168 break
13169fi
13170done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013171if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13172 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013173else
13174 ac_cv_search_pthread_getspecific=no
13175fi
13176rm conftest.$ac_ext
13177LIBS=$ac_func_search_save_LIBS
13178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013179{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13180echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013181ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013182if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013185cat >>confdefs.h <<\_ACEOF
13186#define HAVE_PTHREAD_GETSPECIFIC 1
13187_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013188
13189fi
13190
Reid Spencer0a262ba2005-08-24 10:07:20 +000013191fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013192
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013193
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013194# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013195if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013196 withval=$with_udis86;
13197 USE_UDIS86=1
13198
13199 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013200 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013201 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13202 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013203
13204{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13205echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13206if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013208else
13209 ac_check_lib_save_LIBS=$LIBS
13210LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211cat >conftest.$ac_ext <<_ACEOF
13212/* confdefs.h. */
13213_ACEOF
13214cat confdefs.h >>conftest.$ac_ext
13215cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013216/* end confdefs.h. */
13217
13218/* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13221#ifdef __cplusplus
13222extern "C"
13223#endif
13224char ud_init ();
13225int
13226main ()
13227{
13228return ud_init ();
13229 ;
13230 return 0;
13231}
13232_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013233rm -f conftest.$ac_objext conftest$ac_exeext
13234if { (ac_try="$ac_link"
13235case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238esac
13239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_link") 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251esac
13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest$ac_exeext'
13258 { (case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13261esac
13262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_try") 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013267 ac_cv_lib_udis86_ud_init=yes
13268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274
Bill Wendlingebcceee2009-04-18 11:20:33 +000013275rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013276 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013277LIBS=$ac_check_lib_save_LIBS
13278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13280echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13281if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013282 cat >>confdefs.h <<_ACEOF
13283#define HAVE_LIBUDIS86 1
13284_ACEOF
13285
13286 LIBS="-ludis86 $LIBS"
13287
13288else
13289
13290 echo "Error! You need to have libudis86 around."
13291 exit -1
13292
13293fi
13294
13295
13296else
13297 USE_UDIS86=0
13298
13299fi
13300
13301
13302cat >>confdefs.h <<_ACEOF
13303#define USE_UDIS86 $USE_UDIS86
13304_ACEOF
13305
13306
13307
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013308# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013309if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013310 withval=$with_oprofile;
13311 USE_OPROFILE=1
13312
13313 case "$withval" in
13314 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013315 no) llvm_cv_oppath=
13316 USE_OPROFILE=0
13317 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013318 *) llvm_cv_oppath="${withval}/lib/oprofile"
13319 CPPFLAGS="-I${withval}/include";;
13320 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013321 if test -n "$llvm_cv_oppath" ; then
13322 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013323 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13324echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13325if test "${ac_cv_search_bfd_init+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013327else
13328 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013329cat >conftest.$ac_ext <<_ACEOF
13330/* confdefs.h. */
13331_ACEOF
13332cat confdefs.h >>conftest.$ac_ext
13333cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013334/* end confdefs.h. */
13335
13336/* Override any GCC internal prototype to avoid an error.
13337 Use char because int might match the return type of a GCC
13338 builtin and then its argument prototype would still apply. */
13339#ifdef __cplusplus
13340extern "C"
13341#endif
13342char bfd_init ();
13343int
13344main ()
13345{
13346return bfd_init ();
13347 ;
13348 return 0;
13349}
13350_ACEOF
13351for ac_lib in '' bfd; do
13352 if test -z "$ac_lib"; then
13353 ac_res="none required"
13354 else
13355 ac_res=-l$ac_lib
13356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13357 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013358 rm -f conftest.$ac_objext conftest$ac_exeext
13359if { (ac_try="$ac_link"
13360case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363esac
13364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_link") 2>conftest.er1
13366 ac_status=$?
13367 grep -v '^ *+' conftest.er1 >conftest.err
13368 rm -f conftest.er1
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13373 { (case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376esac
13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_try") 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; } &&
13382 { ac_try='test -s conftest$ac_exeext'
13383 { (case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13386esac
13387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_try") 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013392 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013393else
13394 echo "$as_me: failed program was:" >&5
13395sed 's/^/| /' conftest.$ac_ext >&5
13396
13397
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013399
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013400rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013401 conftest$ac_exeext
13402 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013403 break
13404fi
13405done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013406if test "${ac_cv_search_bfd_init+set}" = set; then
13407 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013408else
13409 ac_cv_search_bfd_init=no
13410fi
13411rm conftest.$ac_ext
13412LIBS=$ac_func_search_save_LIBS
13413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013414{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13415echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013416ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013417if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13419
13420fi
13421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013422 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13423echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13424if test "${ac_cv_search_op_open_agent+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013426else
13427 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013428cat >conftest.$ac_ext <<_ACEOF
13429/* confdefs.h. */
13430_ACEOF
13431cat confdefs.h >>conftest.$ac_ext
13432cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013433/* end confdefs.h. */
13434
13435/* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13438#ifdef __cplusplus
13439extern "C"
13440#endif
13441char op_open_agent ();
13442int
13443main ()
13444{
13445return op_open_agent ();
13446 ;
13447 return 0;
13448}
13449_ACEOF
13450for ac_lib in '' opagent; do
13451 if test -z "$ac_lib"; then
13452 ac_res="none required"
13453 else
13454 ac_res=-l$ac_lib
13455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13456 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013457 rm -f conftest.$ac_objext conftest$ac_exeext
13458if { (ac_try="$ac_link"
13459case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_link") 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475esac
13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest$ac_exeext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013491 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492else
13493 echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
13496
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013497fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013498
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013499rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013500 conftest$ac_exeext
13501 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013502 break
13503fi
13504done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013505if test "${ac_cv_search_op_open_agent+set}" = set; then
13506 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013507else
13508 ac_cv_search_op_open_agent=no
13509fi
13510rm conftest.$ac_ext
13511LIBS=$ac_func_search_save_LIBS
13512fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013513{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13514echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013515ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13518
13519else
13520
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013521 echo "Error! You need to have libopagent around."
13522 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013523
13524fi
13525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526 if test "${ac_cv_header_opagent_h+set}" = set; then
13527 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13528echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13529if test "${ac_cv_header_opagent_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531fi
13532{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13533echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13534else
13535 # Is the header compilable?
13536{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13537echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13538cat >conftest.$ac_ext <<_ACEOF
13539/* confdefs.h. */
13540_ACEOF
13541cat confdefs.h >>conftest.$ac_ext
13542cat >>conftest.$ac_ext <<_ACEOF
13543/* end confdefs.h. */
13544$ac_includes_default
13545#include <opagent.h>
13546_ACEOF
13547rm -f conftest.$ac_objext
13548if { (ac_try="$ac_compile"
13549case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13552esac
13553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_compile") 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13562 { (case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565esac
13566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_try") 2>&5
13568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; } &&
13571 { ac_try='test -s conftest.$ac_objext'
13572 { (case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13575esac
13576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_try") 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13581 ac_header_compiler=yes
13582else
13583 echo "$as_me: failed program was:" >&5
13584sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013586 ac_header_compiler=no
13587fi
13588
13589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13591echo "${ECHO_T}$ac_header_compiler" >&6; }
13592
13593# Is the header present?
13594{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13595echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13596cat >conftest.$ac_ext <<_ACEOF
13597/* confdefs.h. */
13598_ACEOF
13599cat confdefs.h >>conftest.$ac_ext
13600cat >>conftest.$ac_ext <<_ACEOF
13601/* end confdefs.h. */
13602#include <opagent.h>
13603_ACEOF
13604if { (ac_try="$ac_cpp conftest.$ac_ext"
13605case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13608esac
13609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } >/dev/null; then
13617 if test -s conftest.err; then
13618 ac_cpp_err=$ac_c_preproc_warn_flag
13619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13620 else
13621 ac_cpp_err=
13622 fi
13623else
13624 ac_cpp_err=yes
13625fi
13626if test -z "$ac_cpp_err"; then
13627 ac_header_preproc=yes
13628else
13629 echo "$as_me: failed program was:" >&5
13630sed 's/^/| /' conftest.$ac_ext >&5
13631
13632 ac_header_preproc=no
13633fi
13634
13635rm -f conftest.err conftest.$ac_ext
13636{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13637echo "${ECHO_T}$ac_header_preproc" >&6; }
13638
13639# So? What about this header?
13640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13641 yes:no: )
13642 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13643echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13644 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13645echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13646 ac_header_preproc=yes
13647 ;;
13648 no:yes:* )
13649 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13650echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13652echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13654echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13656echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13658echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13660echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13661 ( cat <<\_ASBOX
13662## ----------------------------------- ##
13663## Report this to llvmbugs@cs.uiuc.edu ##
13664## ----------------------------------- ##
13665_ASBOX
13666 ) | sed "s/^/$as_me: WARNING: /" >&2
13667 ;;
13668esac
13669{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13670echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13671if test "${ac_cv_header_opagent_h+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673else
13674 ac_cv_header_opagent_h=$ac_header_preproc
13675fi
13676{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13677echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13678
13679fi
13680if test $ac_cv_header_opagent_h = yes; then
13681 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013682else
13683
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013684 echo "Error! You need to have opagent.h around."
13685 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013686
13687fi
13688
13689
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013690 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013691
13692else
13693
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013694 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013695
13696
13697fi
13698
13699
13700cat >>confdefs.h <<_ACEOF
13701#define USE_OPROFILE $USE_OPROFILE
13702_ACEOF
13703
13704
13705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013706
13707
13708
13709
13710
Reid Spencer59473af2004-12-25 07:31:29 +000013711ac_header_dirent=no
13712for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013713 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13714{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13715echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013719 cat >conftest.$ac_ext <<_ACEOF
13720/* confdefs.h. */
13721_ACEOF
13722cat confdefs.h >>conftest.$ac_ext
13723cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013724/* end confdefs.h. */
13725#include <sys/types.h>
13726#include <$ac_hdr>
13727
13728int
13729main ()
13730{
13731if ((DIR *) 0)
13732return 0;
13733 ;
13734 return 0;
13735}
13736_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013737rm -f conftest.$ac_objext
13738if { (ac_try="$ac_compile"
13739case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13742esac
13743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_compile") 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13755esac
13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765esac
13766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013771 eval "$as_ac_Header=yes"
13772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013773 echo "$as_me: failed program was:" >&5
13774sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013778
Reid Spencera773bd52006-08-04 18:18:08 +000013779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013780fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013781ac_res=`eval echo '${'$as_ac_Header'}'`
13782 { echo "$as_me:$LINENO: result: $ac_res" >&5
13783echo "${ECHO_T}$ac_res" >&6; }
13784if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013785 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013786#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013787_ACEOF
13788
13789ac_header_dirent=$ac_hdr; break
13790fi
13791
13792done
13793# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13794if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013795 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13796echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13797if test "${ac_cv_search_opendir+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013799else
13800 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013801cat >conftest.$ac_ext <<_ACEOF
13802/* confdefs.h. */
13803_ACEOF
13804cat confdefs.h >>conftest.$ac_ext
13805cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013806/* end confdefs.h. */
13807
Reid Spencera773bd52006-08-04 18:18:08 +000013808/* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013811#ifdef __cplusplus
13812extern "C"
13813#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013814char opendir ();
13815int
13816main ()
13817{
Reid Spencera773bd52006-08-04 18:18:08 +000013818return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013819 ;
13820 return 0;
13821}
13822_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013823for ac_lib in '' dir; do
13824 if test -z "$ac_lib"; then
13825 ac_res="none required"
13826 else
13827 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013829 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830 rm -f conftest.$ac_objext conftest$ac_exeext
13831if { (ac_try="$ac_link"
13832case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835esac
13836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_link") 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848esac
13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858esac
13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013864 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013865else
13866 echo "$as_me: failed program was:" >&5
13867sed 's/^/| /' conftest.$ac_ext >&5
13868
13869
Reid Spencer59473af2004-12-25 07:31:29 +000013870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013871
Bill Wendlingebcceee2009-04-18 11:20:33 +000013872rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013873 conftest$ac_exeext
13874 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013875 break
Reid Spencer59473af2004-12-25 07:31:29 +000013876fi
Reid Spencera773bd52006-08-04 18:18:08 +000013877done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878if test "${ac_cv_search_opendir+set}" = set; then
13879 :
Reid Spencera773bd52006-08-04 18:18:08 +000013880else
13881 ac_cv_search_opendir=no
13882fi
13883rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013884LIBS=$ac_func_search_save_LIBS
13885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013886{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13887echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013888ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013889if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013891
13892fi
13893
13894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013895 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13896echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13897if test "${ac_cv_search_opendir+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013899else
13900 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013901cat >conftest.$ac_ext <<_ACEOF
13902/* confdefs.h. */
13903_ACEOF
13904cat confdefs.h >>conftest.$ac_ext
13905cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013906/* end confdefs.h. */
13907
Reid Spencera773bd52006-08-04 18:18:08 +000013908/* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013911#ifdef __cplusplus
13912extern "C"
13913#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013914char opendir ();
13915int
13916main ()
13917{
Reid Spencera773bd52006-08-04 18:18:08 +000013918return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013919 ;
13920 return 0;
13921}
13922_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013923for ac_lib in '' x; do
13924 if test -z "$ac_lib"; then
13925 ac_res="none required"
13926 else
13927 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013929 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930 rm -f conftest.$ac_objext conftest$ac_exeext
13931if { (ac_try="$ac_link"
13932case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13935esac
13936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_link") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13948esac
13949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13958esac
13959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_try") 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013964 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013965else
13966 echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969
Reid Spencer59473af2004-12-25 07:31:29 +000013970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971
Bill Wendlingebcceee2009-04-18 11:20:33 +000013972rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013973 conftest$ac_exeext
13974 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013975 break
Reid Spencer59473af2004-12-25 07:31:29 +000013976fi
Reid Spencera773bd52006-08-04 18:18:08 +000013977done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013978if test "${ac_cv_search_opendir+set}" = set; then
13979 :
Reid Spencera773bd52006-08-04 18:18:08 +000013980else
13981 ac_cv_search_opendir=no
13982fi
13983rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013984LIBS=$ac_func_search_save_LIBS
13985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013986{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13987echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013988ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013991
13992fi
13993
13994fi
13995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013996{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13997echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13998if test "${ac_cv_header_mmap_anon+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014000else
14001 ac_ext=c
14002ac_cpp='$CPP $CPPFLAGS'
14003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005ac_compiler_gnu=$ac_cv_c_compiler_gnu
14006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007 cat >conftest.$ac_ext <<_ACEOF
14008/* confdefs.h. */
14009_ACEOF
14010cat confdefs.h >>conftest.$ac_ext
14011cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014012/* end confdefs.h. */
14013#include <sys/mman.h>
14014#include <unistd.h>
14015#include <fcntl.h>
14016int
14017main ()
14018{
14019mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14020 ;
14021 return 0;
14022}
14023_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014024rm -f conftest.$ac_objext
14025if { (ac_try="$ac_compile"
14026case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14029esac
14030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_compile") 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14039 { (case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14042esac
14043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_try") 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest.$ac_objext'
14049 { (case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14052esac
14053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_try") 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014058 ac_cv_header_mmap_anon=yes
14059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014060 echo "$as_me: failed program was:" >&5
14061sed 's/^/| /' conftest.$ac_ext >&5
14062
14063 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065
Reid Spencera773bd52006-08-04 18:18:08 +000014066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014067 ac_ext=c
14068ac_cpp='$CPP $CPPFLAGS'
14069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14071ac_compiler_gnu=$ac_cv_c_compiler_gnu
14072
14073
14074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014075{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14076echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014077if test "$ac_cv_header_mmap_anon" = yes; then
14078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014079cat >>confdefs.h <<\_ACEOF
14080#define HAVE_MMAP_ANONYMOUS 1
14081_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014082
14083fi
14084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014085{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14086echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14087if test "${ac_cv_header_stat_broken+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090 cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014095/* end confdefs.h. */
14096#include <sys/types.h>
14097#include <sys/stat.h>
14098
Reid Spencera773bd52006-08-04 18:18:08 +000014099#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100# if S_ISBLK (S_IFDIR)
14101You lose.
14102# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014103#endif
14104
Reid Spencera773bd52006-08-04 18:18:08 +000014105#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014106# if S_ISBLK (S_IFCHR)
14107You lose.
14108# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014109#endif
14110
Reid Spencera773bd52006-08-04 18:18:08 +000014111#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112# if S_ISLNK (S_IFREG)
14113You lose.
14114# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014115#endif
14116
Reid Spencera773bd52006-08-04 18:18:08 +000014117#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118# if S_ISSOCK (S_IFREG)
14119You lose.
14120# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014121#endif
14122
14123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14125 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014126 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127else
14128 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014129fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130rm -f conftest*
14131
Reid Spencer59473af2004-12-25 07:31:29 +000014132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014133{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14134echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014135if test $ac_cv_header_stat_broken = yes; then
14136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014137cat >>confdefs.h <<\_ACEOF
14138#define STAT_MACROS_BROKEN 1
14139_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014140
14141fi
14142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014143{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14144echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14145if test "${ac_cv_header_sys_wait_h+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014147else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148 cat >conftest.$ac_ext <<_ACEOF
14149/* confdefs.h. */
14150_ACEOF
14151cat confdefs.h >>conftest.$ac_ext
14152cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014153/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014154#include <sys/types.h>
14155#include <sys/wait.h>
14156#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014157# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014158#endif
14159#ifndef WIFEXITED
14160# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14161#endif
14162
John Criswell7a73b802003-06-30 21:59:07 +000014163int
14164main ()
14165{
14166 int s;
14167 wait (&s);
14168 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14169 ;
14170 return 0;
14171}
14172_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014173rm -f conftest.$ac_objext
14174if { (ac_try="$ac_compile"
14175case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14178esac
14179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_compile") 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14188 { (case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191esac
14192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_try") 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest.$ac_objext'
14198 { (case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201esac
14202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_try") 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014207 ac_cv_header_sys_wait_h=yes
14208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014209 echo "$as_me: failed program was:" >&5
14210sed 's/^/| /' conftest.$ac_ext >&5
14211
14212 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014214
Reid Spencera773bd52006-08-04 18:18:08 +000014215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14218echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014219if test $ac_cv_header_sys_wait_h = yes; then
14220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014221cat >>confdefs.h <<\_ACEOF
14222#define HAVE_SYS_WAIT_H 1
14223_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014224
14225fi
14226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14228echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14229if test "${ac_cv_header_time+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232 cat >conftest.$ac_ext <<_ACEOF
14233/* confdefs.h. */
14234_ACEOF
14235cat confdefs.h >>conftest.$ac_ext
14236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014237/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014238#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014239#include <sys/time.h>
14240#include <time.h>
14241
14242int
14243main ()
14244{
14245if ((struct tm *) 0)
14246return 0;
14247 ;
14248 return 0;
14249}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014250_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014251rm -f conftest.$ac_objext
14252if { (ac_try="$ac_compile"
14253case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14256esac
14257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_compile") 2>conftest.er1
14259 ac_status=$?
14260 grep -v '^ *+' conftest.er1 >conftest.err
14261 rm -f conftest.er1
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14266 { (case "(($ac_try" in
14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268 *) ac_try_echo=$ac_try;;
14269esac
14270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271 (eval "$ac_try") 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; } &&
14275 { ac_try='test -s conftest.$ac_objext'
14276 { (case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279esac
14280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_try") 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014285 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287 echo "$as_me: failed program was:" >&5
14288sed 's/^/| /' conftest.$ac_ext >&5
14289
14290 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014292
Reid Spencera773bd52006-08-04 18:18:08 +000014293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014295{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14296echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014297if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014299cat >>confdefs.h <<\_ACEOF
14300#define TIME_WITH_SYS_TIME 1
14301_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014302
14303fi
14304
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014306
14307
14308
14309
14310
14311
Reid Spencer59473af2004-12-25 07:31:29 +000014312for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014313do
14314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320fi
14321ac_res=`eval echo '${'$as_ac_Header'}'`
14322 { echo "$as_me:$LINENO: result: $ac_res" >&5
14323echo "${ECHO_T}$ac_res" >&6; }
14324else
14325 # Is the header compilable?
14326{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14328cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334$ac_includes_default
14335#include <$ac_header>
14336_ACEOF
14337rm -f conftest.$ac_objext
14338if { (ac_try="$ac_compile"
14339case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14342esac
14343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_compile") 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14355esac
14356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest.$ac_objext'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14365esac
14366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_header_compiler=yes
14372else
14373 echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376 ac_header_compiler=no
14377fi
14378
14379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14381echo "${ECHO_T}$ac_header_compiler" >&6; }
14382
14383# Is the header present?
14384{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14385echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14386cat >conftest.$ac_ext <<_ACEOF
14387/* confdefs.h. */
14388_ACEOF
14389cat confdefs.h >>conftest.$ac_ext
14390cat >>conftest.$ac_ext <<_ACEOF
14391/* end confdefs.h. */
14392#include <$ac_header>
14393_ACEOF
14394if { (ac_try="$ac_cpp conftest.$ac_ext"
14395case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14398esac
14399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev/null; then
14407 if test -s conftest.err; then
14408 ac_cpp_err=$ac_c_preproc_warn_flag
14409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14410 else
14411 ac_cpp_err=
14412 fi
14413else
14414 ac_cpp_err=yes
14415fi
14416if test -z "$ac_cpp_err"; then
14417 ac_header_preproc=yes
14418else
14419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 ac_header_preproc=no
14423fi
14424
14425rm -f conftest.err conftest.$ac_ext
14426{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14427echo "${ECHO_T}$ac_header_preproc" >&6; }
14428
14429# So? What about this header?
14430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14431 yes:no: )
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14436 ac_header_preproc=yes
14437 ;;
14438 no:yes:* )
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14451 ( cat <<\_ASBOX
14452## ----------------------------------- ##
14453## Report this to llvmbugs@cs.uiuc.edu ##
14454## ----------------------------------- ##
14455_ASBOX
14456 ) | sed "s/^/$as_me: WARNING: /" >&2
14457 ;;
14458esac
14459{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463else
14464 eval "$as_ac_Header=\$ac_header_preproc"
14465fi
14466ac_res=`eval echo '${'$as_ac_Header'}'`
14467 { echo "$as_me:$LINENO: result: $ac_res" >&5
14468echo "${ECHO_T}$ac_res" >&6; }
14469
14470fi
14471if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014472 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014474_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014475
14476fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014477
Reid Spencer59473af2004-12-25 07:31:29 +000014478done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014480
14481
14482
14483
14484
14485
Douglas Gregor071d73d2009-05-18 17:21:34 +000014486for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014487do
14488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494fi
14495ac_res=`eval echo '${'$as_ac_Header'}'`
14496 { echo "$as_me:$LINENO: result: $ac_res" >&5
14497echo "${ECHO_T}$ac_res" >&6; }
14498else
14499 # Is the header compilable?
14500{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14502cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h. */
14508$ac_includes_default
14509#include <$ac_header>
14510_ACEOF
14511rm -f conftest.$ac_objext
14512if { (ac_try="$ac_compile"
14513case "(($ac_try" in
14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14516esac
14517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518 (eval "$ac_compile") 2>conftest.er1
14519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14526 { (case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14529esac
14530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_try") 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try='test -s conftest.$ac_objext'
14536 { (case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14539esac
14540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_try") 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_header_compiler=yes
14546else
14547 echo "$as_me: failed program was:" >&5
14548sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_header_compiler=no
14551fi
14552
14553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14555echo "${ECHO_T}$ac_header_compiler" >&6; }
14556
14557# Is the header present?
14558{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14560cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h. */
14566#include <$ac_header>
14567_ACEOF
14568if { (ac_try="$ac_cpp conftest.$ac_ext"
14569case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572esac
14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } >/dev/null; then
14581 if test -s conftest.err; then
14582 ac_cpp_err=$ac_c_preproc_warn_flag
14583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14584 else
14585 ac_cpp_err=
14586 fi
14587else
14588 ac_cpp_err=yes
14589fi
14590if test -z "$ac_cpp_err"; then
14591 ac_header_preproc=yes
14592else
14593 echo "$as_me: failed program was:" >&5
14594sed 's/^/| /' conftest.$ac_ext >&5
14595
14596 ac_header_preproc=no
14597fi
14598
14599rm -f conftest.err conftest.$ac_ext
14600{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14601echo "${ECHO_T}$ac_header_preproc" >&6; }
14602
14603# So? What about this header?
14604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14605 yes:no: )
14606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14610 ac_header_preproc=yes
14611 ;;
14612 no:yes:* )
14613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14625 ( cat <<\_ASBOX
14626## ----------------------------------- ##
14627## Report this to llvmbugs@cs.uiuc.edu ##
14628## ----------------------------------- ##
14629_ASBOX
14630 ) | sed "s/^/$as_me: WARNING: /" >&2
14631 ;;
14632esac
14633{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14637else
14638 eval "$as_ac_Header=\$ac_header_preproc"
14639fi
14640ac_res=`eval echo '${'$as_ac_Header'}'`
14641 { echo "$as_me:$LINENO: result: $ac_res" >&5
14642echo "${ECHO_T}$ac_res" >&6; }
14643
14644fi
14645if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014646 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014648_ACEOF
14649
14650fi
14651
14652done
14653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014654
14655
Douglas Gregor071d73d2009-05-18 17:21:34 +000014656for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014657do
14658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664fi
14665ac_res=`eval echo '${'$as_ac_Header'}'`
14666 { echo "$as_me:$LINENO: result: $ac_res" >&5
14667echo "${ECHO_T}$ac_res" >&6; }
14668else
14669 # Is the header compilable?
14670{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14671echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
14679#include <$ac_header>
14680_ACEOF
14681rm -f conftest.$ac_objext
14682if { (ac_try="$ac_compile"
14683case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686esac
14687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699esac
14700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest.$ac_objext'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14709esac
14710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_header_compiler=yes
14716else
14717 echo "$as_me: failed program was:" >&5
14718sed 's/^/| /' conftest.$ac_ext >&5
14719
14720 ac_header_compiler=no
14721fi
14722
14723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725echo "${ECHO_T}$ac_header_compiler" >&6; }
14726
14727# Is the header present?
14728{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14729echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14730cat >conftest.$ac_ext <<_ACEOF
14731/* confdefs.h. */
14732_ACEOF
14733cat confdefs.h >>conftest.$ac_ext
14734cat >>conftest.$ac_ext <<_ACEOF
14735/* end confdefs.h. */
14736#include <$ac_header>
14737_ACEOF
14738if { (ac_try="$ac_cpp conftest.$ac_ext"
14739case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742esac
14743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } >/dev/null; then
14751 if test -s conftest.err; then
14752 ac_cpp_err=$ac_c_preproc_warn_flag
14753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14754 else
14755 ac_cpp_err=
14756 fi
14757else
14758 ac_cpp_err=yes
14759fi
14760if test -z "$ac_cpp_err"; then
14761 ac_header_preproc=yes
14762else
14763 echo "$as_me: failed program was:" >&5
14764sed 's/^/| /' conftest.$ac_ext >&5
14765
14766 ac_header_preproc=no
14767fi
14768
14769rm -f conftest.err conftest.$ac_ext
14770{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14771echo "${ECHO_T}$ac_header_preproc" >&6; }
14772
14773# So? What about this header?
14774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14775 yes:no: )
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14780 ac_header_preproc=yes
14781 ;;
14782 no:yes:* )
14783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14786echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14790echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14795 ( cat <<\_ASBOX
14796## ----------------------------------- ##
14797## Report this to llvmbugs@cs.uiuc.edu ##
14798## ----------------------------------- ##
14799_ASBOX
14800 ) | sed "s/^/$as_me: WARNING: /" >&2
14801 ;;
14802esac
14803{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807else
14808 eval "$as_ac_Header=\$ac_header_preproc"
14809fi
14810ac_res=`eval echo '${'$as_ac_Header'}'`
14811 { echo "$as_me:$LINENO: result: $ac_res" >&5
14812echo "${ECHO_T}$ac_res" >&6; }
14813
14814fi
14815if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014816 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014818_ACEOF
14819
14820fi
14821
14822done
Reid Spencer59473af2004-12-25 07:31:29 +000014823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014824
14825
14826
14827
Daniel Dunbar3e462932011-02-03 02:40:02 +000014828
14829for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014830do
14831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837fi
14838ac_res=`eval echo '${'$as_ac_Header'}'`
14839 { echo "$as_me:$LINENO: result: $ac_res" >&5
14840echo "${ECHO_T}$ac_res" >&6; }
14841else
14842 # Is the header compilable?
14843{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14845cat >conftest.$ac_ext <<_ACEOF
14846/* confdefs.h. */
14847_ACEOF
14848cat confdefs.h >>conftest.$ac_ext
14849cat >>conftest.$ac_ext <<_ACEOF
14850/* end confdefs.h. */
14851$ac_includes_default
14852#include <$ac_header>
14853_ACEOF
14854rm -f conftest.$ac_objext
14855if { (ac_try="$ac_compile"
14856case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859esac
14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_compile") 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14872esac
14873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14882esac
14883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_try") 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_header_compiler=yes
14889else
14890 echo "$as_me: failed program was:" >&5
14891sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_header_compiler=no
14894fi
14895
14896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898echo "${ECHO_T}$ac_header_compiler" >&6; }
14899
14900# Is the header present?
14901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14903cat >conftest.$ac_ext <<_ACEOF
14904/* confdefs.h. */
14905_ACEOF
14906cat confdefs.h >>conftest.$ac_ext
14907cat >>conftest.$ac_ext <<_ACEOF
14908/* end confdefs.h. */
14909#include <$ac_header>
14910_ACEOF
14911if { (ac_try="$ac_cpp conftest.$ac_ext"
14912case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915esac
14916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } >/dev/null; then
14924 if test -s conftest.err; then
14925 ac_cpp_err=$ac_c_preproc_warn_flag
14926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14927 else
14928 ac_cpp_err=
14929 fi
14930else
14931 ac_cpp_err=yes
14932fi
14933if test -z "$ac_cpp_err"; then
14934 ac_header_preproc=yes
14935else
14936 echo "$as_me: failed program was:" >&5
14937sed 's/^/| /' conftest.$ac_ext >&5
14938
14939 ac_header_preproc=no
14940fi
14941
14942rm -f conftest.err conftest.$ac_ext
14943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14944echo "${ECHO_T}$ac_header_preproc" >&6; }
14945
14946# So? What about this header?
14947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14948 yes:no: )
14949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14953 ac_header_preproc=yes
14954 ;;
14955 no:yes:* )
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14968 ( cat <<\_ASBOX
14969## ----------------------------------- ##
14970## Report this to llvmbugs@cs.uiuc.edu ##
14971## ----------------------------------- ##
14972_ASBOX
14973 ) | sed "s/^/$as_me: WARNING: /" >&2
14974 ;;
14975esac
14976{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980else
14981 eval "$as_ac_Header=\$ac_header_preproc"
14982fi
14983ac_res=`eval echo '${'$as_ac_Header'}'`
14984 { echo "$as_me:$LINENO: result: $ac_res" >&5
14985echo "${ECHO_T}$ac_res" >&6; }
14986
14987fi
14988if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014989 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000014991_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000014992
14993fi
John Criswell7ed43ad2004-07-19 16:12:29 +000014994
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014995done
14996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014997
14998
14999
15000
Douglas Gregor01746742009-05-11 18:05:52 +000015001for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015002do
15003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15009fi
15010ac_res=`eval echo '${'$as_ac_Header'}'`
15011 { echo "$as_me:$LINENO: result: $ac_res" >&5
15012echo "${ECHO_T}$ac_res" >&6; }
15013else
15014 # Is the header compilable?
15015{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15017cat >conftest.$ac_ext <<_ACEOF
15018/* confdefs.h. */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h. */
15023$ac_includes_default
15024#include <$ac_header>
15025_ACEOF
15026rm -f conftest.$ac_objext
15027if { (ac_try="$ac_compile"
15028case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031esac
15032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15041 { (case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15044esac
15045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_try") 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; } &&
15050 { ac_try='test -s conftest.$ac_objext'
15051 { (case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15054esac
15055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_try") 2>&5
15057 ac_status=$?
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060 ac_header_compiler=yes
15061else
15062 echo "$as_me: failed program was:" >&5
15063sed 's/^/| /' conftest.$ac_ext >&5
15064
15065 ac_header_compiler=no
15066fi
15067
15068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15070echo "${ECHO_T}$ac_header_compiler" >&6; }
15071
15072# Is the header present?
15073{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15075cat >conftest.$ac_ext <<_ACEOF
15076/* confdefs.h. */
15077_ACEOF
15078cat confdefs.h >>conftest.$ac_ext
15079cat >>conftest.$ac_ext <<_ACEOF
15080/* end confdefs.h. */
15081#include <$ac_header>
15082_ACEOF
15083if { (ac_try="$ac_cpp conftest.$ac_ext"
15084case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087esac
15088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } >/dev/null; then
15096 if test -s conftest.err; then
15097 ac_cpp_err=$ac_c_preproc_warn_flag
15098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15099 else
15100 ac_cpp_err=
15101 fi
15102else
15103 ac_cpp_err=yes
15104fi
15105if test -z "$ac_cpp_err"; then
15106 ac_header_preproc=yes
15107else
15108 echo "$as_me: failed program was:" >&5
15109sed 's/^/| /' conftest.$ac_ext >&5
15110
15111 ac_header_preproc=no
15112fi
15113
15114rm -f conftest.err conftest.$ac_ext
15115{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116echo "${ECHO_T}$ac_header_preproc" >&6; }
15117
15118# So? What about this header?
15119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15120 yes:no: )
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc=yes
15126 ;;
15127 no:yes:* )
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15140 ( cat <<\_ASBOX
15141## ----------------------------------- ##
15142## Report this to llvmbugs@cs.uiuc.edu ##
15143## ----------------------------------- ##
15144_ASBOX
15145 ) | sed "s/^/$as_me: WARNING: /" >&2
15146 ;;
15147esac
15148{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15152else
15153 eval "$as_ac_Header=\$ac_header_preproc"
15154fi
15155ac_res=`eval echo '${'$as_ac_Header'}'`
15156 { echo "$as_me:$LINENO: result: $ac_res" >&5
15157echo "${ECHO_T}$ac_res" >&6; }
15158
15159fi
15160if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015161 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015162#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015163_ACEOF
15164
15165fi
15166
15167done
15168
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015169
15170for ac_header in valgrind/valgrind.h
15171do
15172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15178fi
15179ac_res=`eval echo '${'$as_ac_Header'}'`
15180 { echo "$as_me:$LINENO: result: $ac_res" >&5
15181echo "${ECHO_T}$ac_res" >&6; }
15182else
15183 # Is the header compilable?
15184{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15186cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h. */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h. */
15192$ac_includes_default
15193#include <$ac_header>
15194_ACEOF
15195rm -f conftest.$ac_objext
15196if { (ac_try="$ac_compile"
15197case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15200esac
15201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_compile") 2>conftest.er1
15203 ac_status=$?
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15210 { (case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213esac
15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_try") 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; } &&
15219 { ac_try='test -s conftest.$ac_objext'
15220 { (case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223esac
15224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_try") 2>&5
15226 ac_status=$?
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; }; then
15229 ac_header_compiler=yes
15230else
15231 echo "$as_me: failed program was:" >&5
15232sed 's/^/| /' conftest.$ac_ext >&5
15233
15234 ac_header_compiler=no
15235fi
15236
15237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15239echo "${ECHO_T}$ac_header_compiler" >&6; }
15240
15241# Is the header present?
15242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15244cat >conftest.$ac_ext <<_ACEOF
15245/* confdefs.h. */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h. */
15250#include <$ac_header>
15251_ACEOF
15252if { (ac_try="$ac_cpp conftest.$ac_ext"
15253case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15256esac
15257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15259 ac_status=$?
15260 grep -v '^ *+' conftest.er1 >conftest.err
15261 rm -f conftest.er1
15262 cat conftest.err >&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } >/dev/null; then
15265 if test -s conftest.err; then
15266 ac_cpp_err=$ac_c_preproc_warn_flag
15267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15268 else
15269 ac_cpp_err=
15270 fi
15271else
15272 ac_cpp_err=yes
15273fi
15274if test -z "$ac_cpp_err"; then
15275 ac_header_preproc=yes
15276else
15277 echo "$as_me: failed program was:" >&5
15278sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 ac_header_preproc=no
15281fi
15282
15283rm -f conftest.err conftest.$ac_ext
15284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15285echo "${ECHO_T}$ac_header_preproc" >&6; }
15286
15287# So? What about this header?
15288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15289 yes:no: )
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15294 ac_header_preproc=yes
15295 ;;
15296 no:yes:* )
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15309 ( cat <<\_ASBOX
15310## ----------------------------------- ##
15311## Report this to llvmbugs@cs.uiuc.edu ##
15312## ----------------------------------- ##
15313_ASBOX
15314 ) | sed "s/^/$as_me: WARNING: /" >&2
15315 ;;
15316esac
15317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321else
15322 eval "$as_ac_Header=\$ac_header_preproc"
15323fi
15324ac_res=`eval echo '${'$as_ac_Header'}'`
15325 { echo "$as_me:$LINENO: result: $ac_res" >&5
15326echo "${ECHO_T}$ac_res" >&6; }
15327
15328fi
15329if test `eval echo '${'$as_ac_Header'}'` = yes; then
15330 cat >>confdefs.h <<_ACEOF
15331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15332_ACEOF
15333
15334fi
15335
15336done
15337
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015338
15339for ac_header in fenv.h
15340do
15341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347fi
15348ac_res=`eval echo '${'$as_ac_Header'}'`
15349 { echo "$as_me:$LINENO: result: $ac_res" >&5
15350echo "${ECHO_T}$ac_res" >&6; }
15351else
15352 # Is the header compilable?
15353{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15355cat >conftest.$ac_ext <<_ACEOF
15356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
15360/* end confdefs.h. */
15361$ac_includes_default
15362#include <$ac_header>
15363_ACEOF
15364rm -f conftest.$ac_objext
15365if { (ac_try="$ac_compile"
15366case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369esac
15370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_compile") 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382esac
15383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392esac
15393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_header_compiler=yes
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 ac_header_compiler=no
15404fi
15405
15406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15408echo "${ECHO_T}$ac_header_compiler" >&6; }
15409
15410# Is the header present?
15411{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15413cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419#include <$ac_header>
15420_ACEOF
15421if { (ac_try="$ac_cpp conftest.$ac_ext"
15422case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425esac
15426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } >/dev/null; then
15434 if test -s conftest.err; then
15435 ac_cpp_err=$ac_c_preproc_warn_flag
15436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15437 else
15438 ac_cpp_err=
15439 fi
15440else
15441 ac_cpp_err=yes
15442fi
15443if test -z "$ac_cpp_err"; then
15444 ac_header_preproc=yes
15445else
15446 echo "$as_me: failed program was:" >&5
15447sed 's/^/| /' conftest.$ac_ext >&5
15448
15449 ac_header_preproc=no
15450fi
15451
15452rm -f conftest.err conftest.$ac_ext
15453{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15454echo "${ECHO_T}$ac_header_preproc" >&6; }
15455
15456# So? What about this header?
15457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15458 yes:no: )
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15463 ac_header_preproc=yes
15464 ;;
15465 no:yes:* )
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15478 ( cat <<\_ASBOX
15479## ----------------------------------- ##
15480## Report this to llvmbugs@cs.uiuc.edu ##
15481## ----------------------------------- ##
15482_ASBOX
15483 ) | sed "s/^/$as_me: WARNING: /" >&2
15484 ;;
15485esac
15486{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490else
15491 eval "$as_ac_Header=\$ac_header_preproc"
15492fi
15493ac_res=`eval echo '${'$as_ac_Header'}'`
15494 { echo "$as_me:$LINENO: result: $ac_res" >&5
15495echo "${ECHO_T}$ac_res" >&6; }
15496
15497fi
15498if test `eval echo '${'$as_ac_Header'}'` = yes; then
15499 cat >>confdefs.h <<_ACEOF
15500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15501_ACEOF
15502
15503fi
15504
15505done
15506
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015507if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015508
15509for ac_header in pthread.h
15510do
15511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517fi
15518ac_res=`eval echo '${'$as_ac_Header'}'`
15519 { echo "$as_me:$LINENO: result: $ac_res" >&5
15520echo "${ECHO_T}$ac_res" >&6; }
15521else
15522 # Is the header compilable?
15523{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15525cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531$ac_includes_default
15532#include <$ac_header>
15533_ACEOF
15534rm -f conftest.$ac_objext
15535if { (ac_try="$ac_compile"
15536case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15539esac
15540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_compile") 2>conftest.er1
15542 ac_status=$?
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552esac
15553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; } &&
15558 { ac_try='test -s conftest.$ac_objext'
15559 { (case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15562esac
15563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_try") 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_header_compiler=yes
15569else
15570 echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 ac_header_compiler=no
15574fi
15575
15576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15578echo "${ECHO_T}$ac_header_compiler" >&6; }
15579
15580# Is the header present?
15581{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15583cat >conftest.$ac_ext <<_ACEOF
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h. */
15589#include <$ac_header>
15590_ACEOF
15591if { (ac_try="$ac_cpp conftest.$ac_ext"
15592case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15595esac
15596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15598 ac_status=$?
15599 grep -v '^ *+' conftest.er1 >conftest.err
15600 rm -f conftest.er1
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } >/dev/null; then
15604 if test -s conftest.err; then
15605 ac_cpp_err=$ac_c_preproc_warn_flag
15606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15607 else
15608 ac_cpp_err=
15609 fi
15610else
15611 ac_cpp_err=yes
15612fi
15613if test -z "$ac_cpp_err"; then
15614 ac_header_preproc=yes
15615else
15616 echo "$as_me: failed program was:" >&5
15617sed 's/^/| /' conftest.$ac_ext >&5
15618
15619 ac_header_preproc=no
15620fi
15621
15622rm -f conftest.err conftest.$ac_ext
15623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15624echo "${ECHO_T}$ac_header_preproc" >&6; }
15625
15626# So? What about this header?
15627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15628 yes:no: )
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15633 ac_header_preproc=yes
15634 ;;
15635 no:yes:* )
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15648 ( cat <<\_ASBOX
15649## ----------------------------------- ##
15650## Report this to llvmbugs@cs.uiuc.edu ##
15651## ----------------------------------- ##
15652_ASBOX
15653 ) | sed "s/^/$as_me: WARNING: /" >&2
15654 ;;
15655esac
15656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15660else
15661 eval "$as_ac_Header=\$ac_header_preproc"
15662fi
15663ac_res=`eval echo '${'$as_ac_Header'}'`
15664 { echo "$as_me:$LINENO: result: $ac_res" >&5
15665echo "${ECHO_T}$ac_res" >&6; }
15666
15667fi
15668if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015669 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015671_ACEOF
15672 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015673
15674else
15675 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015676
15677fi
15678
Reid Spencerbe3e4192007-08-17 05:45:26 +000015679done
Reid Spencer1000b732006-12-01 00:37:14 +000015680
15681else
15682 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015683
15684fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015685
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015686if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015687
15688
15689for ac_header in ffi.h ffi/ffi.h
15690do
15691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697fi
15698ac_res=`eval echo '${'$as_ac_Header'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700echo "${ECHO_T}$ac_res" >&6; }
15701else
15702 # Is the header compilable?
15703{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15705cat >conftest.$ac_ext <<_ACEOF
15706/* confdefs.h. */
15707_ACEOF
15708cat confdefs.h >>conftest.$ac_ext
15709cat >>conftest.$ac_ext <<_ACEOF
15710/* end confdefs.h. */
15711$ac_includes_default
15712#include <$ac_header>
15713_ACEOF
15714rm -f conftest.$ac_objext
15715if { (ac_try="$ac_compile"
15716case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719esac
15720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_compile") 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732esac
15733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15742esac
15743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_try") 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_header_compiler=yes
15749else
15750 echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ac_header_compiler=no
15754fi
15755
15756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758echo "${ECHO_T}$ac_header_compiler" >&6; }
15759
15760# Is the header present?
15761{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15763cat >conftest.$ac_ext <<_ACEOF
15764/* confdefs.h. */
15765_ACEOF
15766cat confdefs.h >>conftest.$ac_ext
15767cat >>conftest.$ac_ext <<_ACEOF
15768/* end confdefs.h. */
15769#include <$ac_header>
15770_ACEOF
15771if { (ac_try="$ac_cpp conftest.$ac_ext"
15772case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15775esac
15776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15778 ac_status=$?
15779 grep -v '^ *+' conftest.er1 >conftest.err
15780 rm -f conftest.er1
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } >/dev/null; then
15784 if test -s conftest.err; then
15785 ac_cpp_err=$ac_c_preproc_warn_flag
15786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15787 else
15788 ac_cpp_err=
15789 fi
15790else
15791 ac_cpp_err=yes
15792fi
15793if test -z "$ac_cpp_err"; then
15794 ac_header_preproc=yes
15795else
15796 echo "$as_me: failed program was:" >&5
15797sed 's/^/| /' conftest.$ac_ext >&5
15798
15799 ac_header_preproc=no
15800fi
15801
15802rm -f conftest.err conftest.$ac_ext
15803{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15804echo "${ECHO_T}$ac_header_preproc" >&6; }
15805
15806# So? What about this header?
15807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15808 yes:no: )
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15812echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15813 ac_header_preproc=yes
15814 ;;
15815 no:yes:* )
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15817echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15819echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15821echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15823echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15827echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15828 ( cat <<\_ASBOX
15829## ----------------------------------- ##
15830## Report this to llvmbugs@cs.uiuc.edu ##
15831## ----------------------------------- ##
15832_ASBOX
15833 ) | sed "s/^/$as_me: WARNING: /" >&2
15834 ;;
15835esac
15836{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840else
15841 eval "$as_ac_Header=\$ac_header_preproc"
15842fi
15843ac_res=`eval echo '${'$as_ac_Header'}'`
15844 { echo "$as_me:$LINENO: result: $ac_res" >&5
15845echo "${ECHO_T}$ac_res" >&6; }
15846
15847fi
15848if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015849 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015851_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015852
15853fi
15854
15855done
15856
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015857fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015858
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015859
Eric Christopher654dee42010-06-22 21:01:04 +000015860for ac_header in CrashReporterClient.h
15861do
15862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868fi
15869ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result: $ac_res" >&5
15871echo "${ECHO_T}$ac_res" >&6; }
15872else
15873 # Is the header compilable?
15874{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15875echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15876cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882$ac_includes_default
15883#include <$ac_header>
15884_ACEOF
15885rm -f conftest.$ac_objext
15886if { (ac_try="$ac_compile"
15887case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15890esac
15891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_compile") 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903esac
15904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913esac
15914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_try") 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_header_compiler=yes
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_header_compiler=no
15925fi
15926
15927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929echo "${ECHO_T}$ac_header_compiler" >&6; }
15930
15931# Is the header present?
15932{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15934cat >conftest.$ac_ext <<_ACEOF
15935/* confdefs.h. */
15936_ACEOF
15937cat confdefs.h >>conftest.$ac_ext
15938cat >>conftest.$ac_ext <<_ACEOF
15939/* end confdefs.h. */
15940#include <$ac_header>
15941_ACEOF
15942if { (ac_try="$ac_cpp conftest.$ac_ext"
15943case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946esac
15947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } >/dev/null; then
15955 if test -s conftest.err; then
15956 ac_cpp_err=$ac_c_preproc_warn_flag
15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15958 else
15959 ac_cpp_err=
15960 fi
15961else
15962 ac_cpp_err=yes
15963fi
15964if test -z "$ac_cpp_err"; then
15965 ac_header_preproc=yes
15966else
15967 echo "$as_me: failed program was:" >&5
15968sed 's/^/| /' conftest.$ac_ext >&5
15969
15970 ac_header_preproc=no
15971fi
15972
15973rm -f conftest.err conftest.$ac_ext
15974{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15975echo "${ECHO_T}$ac_header_preproc" >&6; }
15976
15977# So? What about this header?
15978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15979 yes:no: )
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15984 ac_header_preproc=yes
15985 ;;
15986 no:yes:* )
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15999 ( cat <<\_ASBOX
16000## ----------------------------------- ##
16001## Report this to llvmbugs@cs.uiuc.edu ##
16002## ----------------------------------- ##
16003_ASBOX
16004 ) | sed "s/^/$as_me: WARNING: /" >&2
16005 ;;
16006esac
16007{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16011else
16012 eval "$as_ac_Header=\$ac_header_preproc"
16013fi
16014ac_res=`eval echo '${'$as_ac_Header'}'`
16015 { echo "$as_me:$LINENO: result: $ac_res" >&5
16016echo "${ECHO_T}$ac_res" >&6; }
16017
16018fi
16019if test `eval echo '${'$as_ac_Header'}'` = yes; then
16020 cat >>confdefs.h <<_ACEOF
16021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16022_ACEOF
16023
16024fi
16025
16026done
16027
16028
Eric Christopher51e57132010-12-07 02:05:42 +000016029{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16030echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016031cat >conftest.$ac_ext <<_ACEOF
16032/* confdefs.h. */
16033_ACEOF
16034cat confdefs.h >>conftest.$ac_ext
16035cat >>conftest.$ac_ext <<_ACEOF
16036/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016037extern const char *__crashreporter_info__;
16038 int main() {
16039 __crashreporter_info__ = "test";
16040 return 0;
16041 }
Eric Christopher481d4022010-12-03 07:45:22 +000016042
Eric Christopher481d4022010-12-03 07:45:22 +000016043_ACEOF
16044rm -f conftest.$ac_objext conftest$ac_exeext
16045if { (ac_try="$ac_link"
16046case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16049esac
16050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051 (eval "$ac_link") 2>conftest.er1
16052 ac_status=$?
16053 grep -v '^ *+' conftest.er1 >conftest.err
16054 rm -f conftest.er1
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16059 { (case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062esac
16063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_try") 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try='test -s conftest$ac_exeext'
16069 { (case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16072esac
16073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_try") 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016078 { echo "$as_me:$LINENO: result: yes" >&5
16079echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016080
16081cat >>confdefs.h <<\_ACEOF
16082#define HAVE_CRASHREPORTER_INFO 1
16083_ACEOF
16084
Eric Christopher51e57132010-12-07 02:05:42 +000016085else
16086 echo "$as_me: failed program was:" >&5
16087sed 's/^/| /' conftest.$ac_ext >&5
16088
16089 { echo "$as_me:$LINENO: result: no" >&5
16090echo "${ECHO_T}no" >&6; }
16091
16092cat >>confdefs.h <<\_ACEOF
16093#define HAVE_CRASHREPORTER_INFO 0
16094_ACEOF
16095
Eric Christopher481d4022010-12-03 07:45:22 +000016096fi
Eric Christopher654dee42010-06-22 21:01:04 +000016097
Eric Christopher51e57132010-12-07 02:05:42 +000016098rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16100
16101
Reid Spencer8085cff2005-01-16 02:58:39 +000016102
Torok Edwin871384f2010-01-26 08:50:50 +000016103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016104 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16105echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16106if test "${ac_cv_huge_val_sanity+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016108else
16109
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016110 ac_ext=cpp
16111ac_cpp='$CXXCPP $CPPFLAGS'
16112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016115
Eric Christopherc7718502010-03-02 05:06:54 +000016116 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016117 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016118 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016119 ac_cv_huge_val_sanity=yes
16120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016121 cat >conftest.$ac_ext <<_ACEOF
16122/* confdefs.h. */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016126/* end confdefs.h. */
16127#include <math.h>
16128int
16129main ()
16130{
16131double x = HUGE_VAL; return x != x;
16132 ;
16133 return 0;
16134}
16135_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016136rm -f conftest$ac_exeext
16137if { (ac_try="$ac_link"
16138case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141esac
16142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_link") 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16147 { (case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16150esac
16151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_try") 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016156 ac_cv_huge_val_sanity=yes
16157else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016158 echo "$as_me: program exited with status $ac_status" >&5
16159echo "$as_me: failed program was:" >&5
16160sed 's/^/| /' conftest.$ac_ext >&5
16161
16162( exit $ac_status )
16163ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016165rm -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 +000016166fi
16167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016168
Eric Christopherc7718502010-03-02 05:06:54 +000016169 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016170 ac_ext=c
16171ac_cpp='$CPP $CPPFLAGS'
16172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174ac_compiler_gnu=$ac_cv_c_compiler_gnu
16175
16176
16177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016178{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16179echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016180 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16181
16182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016183{ echo "$as_me:$LINENO: checking for pid_t" >&5
16184echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16185if test "${ac_cv_type_pid_t+set}" = set; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187else
16188 cat >conftest.$ac_ext <<_ACEOF
16189/* confdefs.h. */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h. */
16194$ac_includes_default
16195typedef pid_t ac__type_new_;
16196int
16197main ()
16198{
16199if ((ac__type_new_ *) 0)
16200 return 0;
16201if (sizeof (ac__type_new_))
16202 return 0;
16203 ;
16204 return 0;
16205}
16206_ACEOF
16207rm -f conftest.$ac_objext
16208if { (ac_try="$ac_compile"
16209case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16212esac
16213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214 (eval "$ac_compile") 2>conftest.er1
16215 ac_status=$?
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16222 { (case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16225esac
16226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_try") 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest.$ac_objext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_type_pid_t=yes
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016246 ac_cv_type_pid_t=no
16247fi
16248
16249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250fi
16251{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16252echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16253if test $ac_cv_type_pid_t = yes; then
16254 :
John Criswell7a73b802003-06-30 21:59:07 +000016255else
16256
16257cat >>confdefs.h <<_ACEOF
16258#define pid_t int
16259_ACEOF
16260
16261fi
16262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016263{ echo "$as_me:$LINENO: checking for size_t" >&5
16264echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16265if test "${ac_cv_type_size_t+set}" = set; then
16266 echo $ECHO_N "(cached) $ECHO_C" >&6
16267else
16268 cat >conftest.$ac_ext <<_ACEOF
16269/* confdefs.h. */
16270_ACEOF
16271cat confdefs.h >>conftest.$ac_ext
16272cat >>conftest.$ac_ext <<_ACEOF
16273/* end confdefs.h. */
16274$ac_includes_default
16275typedef size_t ac__type_new_;
16276int
16277main ()
16278{
16279if ((ac__type_new_ *) 0)
16280 return 0;
16281if (sizeof (ac__type_new_))
16282 return 0;
16283 ;
16284 return 0;
16285}
16286_ACEOF
16287rm -f conftest.$ac_objext
16288if { (ac_try="$ac_compile"
16289case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292esac
16293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_compile") 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16302 { (case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305esac
16306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_try") 2>&5
16308 ac_status=$?
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; } &&
16311 { ac_try='test -s conftest.$ac_objext'
16312 { (case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16315esac
16316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_try") 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16321 ac_cv_type_size_t=yes
16322else
16323 echo "$as_me: failed program was:" >&5
16324sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016326 ac_cv_type_size_t=no
16327fi
16328
16329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330fi
16331{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16332echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16333if test $ac_cv_type_size_t = yes; then
16334 :
John Criswell7a73b802003-06-30 21:59:07 +000016335else
16336
16337cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016338#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016339_ACEOF
16340
16341fi
16342
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016343
16344cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016345#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016346_ACEOF
16347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016348{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16349echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16350if test "${ac_cv_struct_tm+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016353 cat >conftest.$ac_ext <<_ACEOF
16354/* confdefs.h. */
16355_ACEOF
16356cat confdefs.h >>conftest.$ac_ext
16357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016358/* end confdefs.h. */
16359#include <sys/types.h>
16360#include <time.h>
16361
16362int
16363main ()
16364{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016365struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016366 ;
16367 return 0;
16368}
16369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016370rm -f conftest.$ac_objext
16371if { (ac_try="$ac_compile"
16372case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_compile") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16385 { (case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16388esac
16389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_try") 2>&5
16391 ac_status=$?
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; } &&
16394 { ac_try='test -s conftest.$ac_objext'
16395 { (case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16398esac
16399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_try") 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016404 ac_cv_struct_tm=time.h
16405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016406 echo "$as_me: failed program was:" >&5
16407sed 's/^/| /' conftest.$ac_ext >&5
16408
16409 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016411
Reid Spencera773bd52006-08-04 18:18:08 +000016412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016414{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16415echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016416if test $ac_cv_struct_tm = sys/time.h; then
16417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016418cat >>confdefs.h <<\_ACEOF
16419#define TM_IN_SYS_TIME 1
16420_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016421
16422fi
16423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016424{ echo "$as_me:$LINENO: checking for int64_t" >&5
16425echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16426if test "${ac_cv_type_int64_t+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16428else
16429 cat >conftest.$ac_ext <<_ACEOF
16430/* confdefs.h. */
16431_ACEOF
16432cat confdefs.h >>conftest.$ac_ext
16433cat >>conftest.$ac_ext <<_ACEOF
16434/* end confdefs.h. */
16435$ac_includes_default
16436typedef int64_t ac__type_new_;
16437int
16438main ()
16439{
16440if ((ac__type_new_ *) 0)
16441 return 0;
16442if (sizeof (ac__type_new_))
16443 return 0;
16444 ;
16445 return 0;
16446}
16447_ACEOF
16448rm -f conftest.$ac_objext
16449if { (ac_try="$ac_compile"
16450case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453esac
16454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_compile") 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
16462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16463 { (case "(($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_try") 2>&5
16469 ac_status=$?
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; } &&
16472 { ac_try='test -s conftest.$ac_objext'
16473 { (case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476esac
16477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_try") 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16482 ac_cv_type_int64_t=yes
16483else
16484 echo "$as_me: failed program was:" >&5
16485sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 ac_cv_type_int64_t=no
16488fi
16489
16490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491fi
16492{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16493echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16494if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016495
16496cat >>confdefs.h <<_ACEOF
16497#define HAVE_INT64_T 1
16498_ACEOF
16499
16500
16501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016502 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16503echo "$as_me: error: Type int64_t required but not found" >&2;}
16504 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016505fi
16506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016507{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16508echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16509if test "${ac_cv_type_uint64_t+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16511else
16512 cat >conftest.$ac_ext <<_ACEOF
16513/* confdefs.h. */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h. */
16518$ac_includes_default
16519typedef uint64_t ac__type_new_;
16520int
16521main ()
16522{
16523if ((ac__type_new_ *) 0)
16524 return 0;
16525if (sizeof (ac__type_new_))
16526 return 0;
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (ac_try="$ac_compile"
16533case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16536esac
16537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_compile") 2>conftest.er1
16539 ac_status=$?
16540 grep -v '^ *+' conftest.er1 >conftest.err
16541 rm -f conftest.er1
16542 cat conftest.err >&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
16545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549esac
16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest.$ac_objext'
16556 { (case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559esac
16560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_try") 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_type_uint64_t=yes
16566else
16567 echo "$as_me: failed program was:" >&5
16568sed 's/^/| /' conftest.$ac_ext >&5
16569
16570 ac_cv_type_uint64_t=no
16571fi
16572
16573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16574fi
16575{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16576echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16577if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016578
16579cat >>confdefs.h <<_ACEOF
16580#define HAVE_UINT64_T 1
16581_ACEOF
16582
16583
16584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016585 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16586echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16587if test "${ac_cv_type_u_int64_t+set}" = set; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16589else
16590 cat >conftest.$ac_ext <<_ACEOF
16591/* confdefs.h. */
16592_ACEOF
16593cat confdefs.h >>conftest.$ac_ext
16594cat >>conftest.$ac_ext <<_ACEOF
16595/* end confdefs.h. */
16596$ac_includes_default
16597typedef u_int64_t ac__type_new_;
16598int
16599main ()
16600{
16601if ((ac__type_new_ *) 0)
16602 return 0;
16603if (sizeof (ac__type_new_))
16604 return 0;
16605 ;
16606 return 0;
16607}
16608_ACEOF
16609rm -f conftest.$ac_objext
16610if { (ac_try="$ac_compile"
16611case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614esac
16615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_compile") 2>conftest.er1
16617 ac_status=$?
16618 grep -v '^ *+' conftest.er1 >conftest.err
16619 rm -f conftest.er1
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } &&
16623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16624 { (case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16627esac
16628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_try") 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest.$ac_objext'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_cv_type_u_int64_t=yes
16644else
16645 echo "$as_me: failed program was:" >&5
16646sed 's/^/| /' conftest.$ac_ext >&5
16647
16648 ac_cv_type_u_int64_t=no
16649fi
16650
16651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652fi
16653{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16654echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16655if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016656
16657cat >>confdefs.h <<_ACEOF
16658#define HAVE_U_INT64_T 1
16659_ACEOF
16660
16661
Misha Brukmanceca9042004-09-02 23:02:30 +000016662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016663 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16664echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16665 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016666fi
16667
John Criswell679ff312004-09-02 18:44:44 +000016668fi
16669
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016670
16671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016672
16673
16674
16675
16676
16677
16678
Reid Spencerdf3be822006-01-23 08:15:53 +000016679for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016680do
16681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16682{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16684if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16686else
16687 cat >conftest.$ac_ext <<_ACEOF
16688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
16693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16695#define $ac_func innocuous_$ac_func
16696
16697/* System header to define __stub macros and hopefully few prototypes,
16698 which can conflict with char $ac_func (); below.
16699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700 <limits.h> exists even on freestanding compilers. */
16701
16702#ifdef __STDC__
16703# include <limits.h>
16704#else
16705# include <assert.h>
16706#endif
16707
16708#undef $ac_func
16709
16710/* Override any GCC internal prototype to avoid an error.
16711 Use char because int might match the return type of a GCC
16712 builtin and then its argument prototype would still apply. */
16713#ifdef __cplusplus
16714extern "C"
16715#endif
16716char $ac_func ();
16717/* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
16720#if defined __stub_$ac_func || defined __stub___$ac_func
16721choke me
16722#endif
16723
16724int
16725main ()
16726{
16727return $ac_func ();
16728 ;
16729 return 0;
16730}
16731_ACEOF
16732rm -f conftest.$ac_objext conftest$ac_exeext
16733if { (ac_try="$ac_link"
16734case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737esac
16738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>conftest.er1
16740 ac_status=$?
16741 grep -v '^ *+' conftest.er1 >conftest.err
16742 rm -f conftest.er1
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760esac
16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 eval "$as_ac_var=yes"
16767else
16768 echo "$as_me: failed program was:" >&5
16769sed 's/^/| /' conftest.$ac_ext >&5
16770
16771 eval "$as_ac_var=no"
16772fi
16773
16774rm -f core conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16776fi
16777ac_res=`eval echo '${'$as_ac_var'}'`
16778 { echo "$as_me:$LINENO: result: $ac_res" >&5
16779echo "${ECHO_T}$ac_res" >&6; }
16780if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016781 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016783_ACEOF
16784
16785fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016786done
John Criswell7a73b802003-06-30 21:59:07 +000016787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016788
16789
16790
16791
Reid Spencer96cf5872007-07-13 10:05:30 +000016792for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016793do
16794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16795{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16797if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799else
16800 cat >conftest.$ac_ext <<_ACEOF
16801/* confdefs.h. */
16802_ACEOF
16803cat confdefs.h >>conftest.$ac_ext
16804cat >>conftest.$ac_ext <<_ACEOF
16805/* end confdefs.h. */
16806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16808#define $ac_func innocuous_$ac_func
16809
16810/* System header to define __stub macros and hopefully few prototypes,
16811 which can conflict with char $ac_func (); below.
16812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16813 <limits.h> exists even on freestanding compilers. */
16814
16815#ifdef __STDC__
16816# include <limits.h>
16817#else
16818# include <assert.h>
16819#endif
16820
16821#undef $ac_func
16822
16823/* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
16826#ifdef __cplusplus
16827extern "C"
16828#endif
16829char $ac_func ();
16830/* The GNU C library defines this for functions which it implements
16831 to always fail with ENOSYS. Some functions are actually named
16832 something starting with __ and the normal name is an alias. */
16833#if defined __stub_$ac_func || defined __stub___$ac_func
16834choke me
16835#endif
16836
16837int
16838main ()
16839{
16840return $ac_func ();
16841 ;
16842 return 0;
16843}
16844_ACEOF
16845rm -f conftest.$ac_objext conftest$ac_exeext
16846if { (ac_try="$ac_link"
16847case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16850esac
16851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_link") 2>conftest.er1
16853 ac_status=$?
16854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16860 { (case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863esac
16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_try") 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16873esac
16874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_try") 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879 eval "$as_ac_var=yes"
16880else
16881 echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
16884 eval "$as_ac_var=no"
16885fi
16886
16887rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16889fi
16890ac_res=`eval echo '${'$as_ac_var'}'`
16891 { echo "$as_me:$LINENO: result: $ac_res" >&5
16892echo "${ECHO_T}$ac_res" >&6; }
16893if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016894 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016896_ACEOF
16897
16898fi
16899done
16900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016901
16902
16903
16904
16905
Reid Spencerb90645c2007-02-16 19:17:20 +000016906for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016907do
16908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16909{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16913else
16914 cat >conftest.$ac_ext <<_ACEOF
16915/* confdefs.h. */
16916_ACEOF
16917cat confdefs.h >>conftest.$ac_ext
16918cat >>conftest.$ac_ext <<_ACEOF
16919/* end confdefs.h. */
16920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16922#define $ac_func innocuous_$ac_func
16923
16924/* System header to define __stub macros and hopefully few prototypes,
16925 which can conflict with char $ac_func (); below.
16926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16927 <limits.h> exists even on freestanding compilers. */
16928
16929#ifdef __STDC__
16930# include <limits.h>
16931#else
16932# include <assert.h>
16933#endif
16934
16935#undef $ac_func
16936
16937/* Override any GCC internal prototype to avoid an error.
16938 Use char because int might match the return type of a GCC
16939 builtin and then its argument prototype would still apply. */
16940#ifdef __cplusplus
16941extern "C"
16942#endif
16943char $ac_func ();
16944/* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
16947#if defined __stub_$ac_func || defined __stub___$ac_func
16948choke me
16949#endif
16950
16951int
16952main ()
16953{
16954return $ac_func ();
16955 ;
16956 return 0;
16957}
16958_ACEOF
16959rm -f conftest.$ac_objext conftest$ac_exeext
16960if { (ac_try="$ac_link"
16961case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16964esac
16965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_link") 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16974 { (case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16977esac
16978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_try") 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; } &&
16983 { ac_try='test -s conftest$ac_exeext'
16984 { (case "(($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_try") 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 eval "$as_ac_var=yes"
16994else
16995 echo "$as_me: failed program was:" >&5
16996sed 's/^/| /' conftest.$ac_ext >&5
16997
16998 eval "$as_ac_var=no"
16999fi
17000
17001rm -f core conftest.err conftest.$ac_objext \
17002 conftest$ac_exeext conftest.$ac_ext
17003fi
17004ac_res=`eval echo '${'$as_ac_var'}'`
17005 { echo "$as_me:$LINENO: result: $ac_res" >&5
17006echo "${ECHO_T}$ac_res" >&6; }
17007if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017008 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017010_ACEOF
17011
17012fi
17013done
17014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017015
17016
17017
Reid Spencerb90645c2007-02-16 19:17:20 +000017018for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017019do
17020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17021{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025else
17026 cat >conftest.$ac_ext <<_ACEOF
17027/* confdefs.h. */
17028_ACEOF
17029cat confdefs.h >>conftest.$ac_ext
17030cat >>conftest.$ac_ext <<_ACEOF
17031/* end confdefs.h. */
17032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17034#define $ac_func innocuous_$ac_func
17035
17036/* System header to define __stub macros and hopefully few prototypes,
17037 which can conflict with char $ac_func (); below.
17038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17039 <limits.h> exists even on freestanding compilers. */
17040
17041#ifdef __STDC__
17042# include <limits.h>
17043#else
17044# include <assert.h>
17045#endif
17046
17047#undef $ac_func
17048
17049/* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17052#ifdef __cplusplus
17053extern "C"
17054#endif
17055char $ac_func ();
17056/* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059#if defined __stub_$ac_func || defined __stub___$ac_func
17060choke me
17061#endif
17062
17063int
17064main ()
17065{
17066return $ac_func ();
17067 ;
17068 return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext conftest$ac_exeext
17072if { (ac_try="$ac_link"
17073case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076esac
17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 eval "$as_ac_var=yes"
17106else
17107 echo "$as_me: failed program was:" >&5
17108sed 's/^/| /' conftest.$ac_ext >&5
17109
17110 eval "$as_ac_var=no"
17111fi
17112
17113rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17115fi
17116ac_res=`eval echo '${'$as_ac_var'}'`
17117 { echo "$as_me:$LINENO: result: $ac_res" >&5
17118echo "${ECHO_T}$ac_res" >&6; }
17119if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017120 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017122_ACEOF
17123
17124fi
17125done
17126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017127
17128
17129
17130
17131
Eric Christophere4291822010-04-16 05:14:21 +000017132
17133for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017134do
17135as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17136{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17137echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17138if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140else
17141 cat >conftest.$ac_ext <<_ACEOF
17142/* confdefs.h. */
17143_ACEOF
17144cat confdefs.h >>conftest.$ac_ext
17145cat >>conftest.$ac_ext <<_ACEOF
17146/* end confdefs.h. */
17147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17149#define $ac_func innocuous_$ac_func
17150
17151/* System header to define __stub macros and hopefully few prototypes,
17152 which can conflict with char $ac_func (); below.
17153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17154 <limits.h> exists even on freestanding compilers. */
17155
17156#ifdef __STDC__
17157# include <limits.h>
17158#else
17159# include <assert.h>
17160#endif
17161
17162#undef $ac_func
17163
17164/* Override any GCC internal prototype to avoid an error.
17165 Use char because int might match the return type of a GCC
17166 builtin and then its argument prototype would still apply. */
17167#ifdef __cplusplus
17168extern "C"
17169#endif
17170char $ac_func ();
17171/* The GNU C library defines this for functions which it implements
17172 to always fail with ENOSYS. Some functions are actually named
17173 something starting with __ and the normal name is an alias. */
17174#if defined __stub_$ac_func || defined __stub___$ac_func
17175choke me
17176#endif
17177
17178int
17179main ()
17180{
17181return $ac_func ();
17182 ;
17183 return 0;
17184}
17185_ACEOF
17186rm -f conftest.$ac_objext conftest$ac_exeext
17187if { (ac_try="$ac_link"
17188case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17191esac
17192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_link") 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17204esac
17205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest$ac_exeext'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214esac
17215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 eval "$as_ac_var=yes"
17221else
17222 echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225 eval "$as_ac_var=no"
17226fi
17227
17228rm -f core conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17230fi
17231ac_res=`eval echo '${'$as_ac_var'}'`
17232 { echo "$as_me:$LINENO: result: $ac_res" >&5
17233echo "${ECHO_T}$ac_res" >&6; }
17234if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017235 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017237_ACEOF
17238
17239fi
17240done
Reid Spencerdf3be822006-01-23 08:15:53 +000017241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017242
17243
17244
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017245for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017246do
17247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17248{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17250if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252else
17253 cat >conftest.$ac_ext <<_ACEOF
17254/* confdefs.h. */
17255_ACEOF
17256cat confdefs.h >>conftest.$ac_ext
17257cat >>conftest.$ac_ext <<_ACEOF
17258/* end confdefs.h. */
17259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17261#define $ac_func innocuous_$ac_func
17262
17263/* System header to define __stub macros and hopefully few prototypes,
17264 which can conflict with char $ac_func (); below.
17265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17266 <limits.h> exists even on freestanding compilers. */
17267
17268#ifdef __STDC__
17269# include <limits.h>
17270#else
17271# include <assert.h>
17272#endif
17273
17274#undef $ac_func
17275
17276/* Override any GCC internal prototype to avoid an error.
17277 Use char because int might match the return type of a GCC
17278 builtin and then its argument prototype would still apply. */
17279#ifdef __cplusplus
17280extern "C"
17281#endif
17282char $ac_func ();
17283/* The GNU C library defines this for functions which it implements
17284 to always fail with ENOSYS. Some functions are actually named
17285 something starting with __ and the normal name is an alias. */
17286#if defined __stub_$ac_func || defined __stub___$ac_func
17287choke me
17288#endif
17289
17290int
17291main ()
17292{
17293return $ac_func ();
17294 ;
17295 return 0;
17296}
17297_ACEOF
17298rm -f conftest.$ac_objext conftest$ac_exeext
17299if { (ac_try="$ac_link"
17300case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17303esac
17304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17306 ac_status=$?
17307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17313 { (case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17316esac
17317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_try") 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest$ac_exeext'
17323 { (case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17326esac
17327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_try") 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 eval "$as_ac_var=yes"
17333else
17334 echo "$as_me: failed program was:" >&5
17335sed 's/^/| /' conftest.$ac_ext >&5
17336
17337 eval "$as_ac_var=no"
17338fi
17339
17340rm -f core conftest.err conftest.$ac_objext \
17341 conftest$ac_exeext conftest.$ac_ext
17342fi
17343ac_res=`eval echo '${'$as_ac_var'}'`
17344 { echo "$as_me:$LINENO: result: $ac_res" >&5
17345echo "${ECHO_T}$ac_res" >&6; }
17346if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017347 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017349_ACEOF
17350
17351fi
17352done
17353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017354
17355
17356
17357
Chris Lattner511f11d2005-11-14 07:25:50 +000017358for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017359do
17360as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17362echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17363if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17365else
17366 cat >conftest.$ac_ext <<_ACEOF
17367/* confdefs.h. */
17368_ACEOF
17369cat confdefs.h >>conftest.$ac_ext
17370cat >>conftest.$ac_ext <<_ACEOF
17371/* end confdefs.h. */
17372/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374#define $ac_func innocuous_$ac_func
17375
17376/* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char $ac_func (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17380
17381#ifdef __STDC__
17382# include <limits.h>
17383#else
17384# include <assert.h>
17385#endif
17386
17387#undef $ac_func
17388
17389/* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17392#ifdef __cplusplus
17393extern "C"
17394#endif
17395char $ac_func ();
17396/* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399#if defined __stub_$ac_func || defined __stub___$ac_func
17400choke me
17401#endif
17402
17403int
17404main ()
17405{
17406return $ac_func ();
17407 ;
17408 return 0;
17409}
17410_ACEOF
17411rm -f conftest.$ac_objext conftest$ac_exeext
17412if { (ac_try="$ac_link"
17413case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17416esac
17417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_link") 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17426 { (case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17429esac
17430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_try") 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439esac
17440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_try") 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 eval "$as_ac_var=yes"
17446else
17447 echo "$as_me: failed program was:" >&5
17448sed 's/^/| /' conftest.$ac_ext >&5
17449
17450 eval "$as_ac_var=no"
17451fi
17452
17453rm -f core conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17455fi
17456ac_res=`eval echo '${'$as_ac_var'}'`
17457 { echo "$as_me:$LINENO: result: $ac_res" >&5
17458echo "${ECHO_T}$ac_res" >&6; }
17459if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017460 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017462_ACEOF
17463
17464fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017465done
John Criswell7a73b802003-06-30 21:59:07 +000017466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017467
17468
17469
17470
Daniel Dunbar3e462932011-02-03 02:40:02 +000017471
17472for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017473do
17474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17475{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17479else
17480 cat >conftest.$ac_ext <<_ACEOF
17481/* confdefs.h. */
17482_ACEOF
17483cat confdefs.h >>conftest.$ac_ext
17484cat >>conftest.$ac_ext <<_ACEOF
17485/* end confdefs.h. */
17486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17488#define $ac_func innocuous_$ac_func
17489
17490/* System header to define __stub macros and hopefully few prototypes,
17491 which can conflict with char $ac_func (); below.
17492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17493 <limits.h> exists even on freestanding compilers. */
17494
17495#ifdef __STDC__
17496# include <limits.h>
17497#else
17498# include <assert.h>
17499#endif
17500
17501#undef $ac_func
17502
17503/* Override any GCC internal prototype to avoid an error.
17504 Use char because int might match the return type of a GCC
17505 builtin and then its argument prototype would still apply. */
17506#ifdef __cplusplus
17507extern "C"
17508#endif
17509char $ac_func ();
17510/* The GNU C library defines this for functions which it implements
17511 to always fail with ENOSYS. Some functions are actually named
17512 something starting with __ and the normal name is an alias. */
17513#if defined __stub_$ac_func || defined __stub___$ac_func
17514choke me
17515#endif
17516
17517int
17518main ()
17519{
17520return $ac_func ();
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext conftest$ac_exeext
17526if { (ac_try="$ac_link"
17527case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17530esac
17531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_link") 2>conftest.er1
17533 ac_status=$?
17534 grep -v '^ *+' conftest.er1 >conftest.err
17535 rm -f conftest.er1
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17540 { (case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17543esac
17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_try") 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest$ac_exeext'
17550 { (case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553esac
17554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_try") 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 eval "$as_ac_var=yes"
17560else
17561 echo "$as_me: failed program was:" >&5
17562sed 's/^/| /' conftest.$ac_ext >&5
17563
17564 eval "$as_ac_var=no"
17565fi
17566
17567rm -f core conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17569fi
17570ac_res=`eval echo '${'$as_ac_var'}'`
17571 { echo "$as_me:$LINENO: result: $ac_res" >&5
17572echo "${ECHO_T}$ac_res" >&6; }
17573if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017574 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017576_ACEOF
17577
17578fi
17579done
17580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017581{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17582echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17583if test "${llvm_cv_c_printf_a+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017585else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017586 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017587ac_cpp='$CPP $CPPFLAGS'
17588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17590ac_compiler_gnu=$ac_cv_c_compiler_gnu
17591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017592 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017593 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017594else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017595 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017597 /* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017602
John Criswella0137d32003-10-13 16:22:01 +000017603#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017604#include <stdlib.h>
17605
John Criswella0137d32003-10-13 16:22:01 +000017606int
17607main ()
17608{
17609
Reid Spencer2706f8c2004-09-19 23:53:36 +000017610volatile double A, B;
17611char Buffer[100];
17612A = 1;
17613A /= 10.0;
17614sprintf(Buffer, "%a", A);
17615B = atof(Buffer);
17616if (A != B)
17617 return (1);
17618if (A != 0x1.999999999999ap-4)
17619 return (1);
17620return (0);
John Criswella0137d32003-10-13 16:22:01 +000017621 ;
17622 return 0;
17623}
17624_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017625rm -f conftest$ac_exeext
17626if { (ac_try="$ac_link"
17627case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17630esac
17631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_link") 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017645 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017647 echo "$as_me: program exited with status $ac_status" >&5
17648echo "$as_me: failed program was:" >&5
17649sed 's/^/| /' conftest.$ac_ext >&5
17650
17651( exit $ac_status )
17652llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017654rm -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 +000017655fi
Reid Spencera773bd52006-08-04 18:18:08 +000017656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017657
Reid Spencer2706f8c2004-09-19 23:53:36 +000017658 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017659ac_cpp='$CPP $CPPFLAGS'
17660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017665{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17666echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017667 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017669cat >>confdefs.h <<\_ACEOF
17670#define HAVE_PRINTF_A 1
17671_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017672
Reid Spencer2706f8c2004-09-19 23:53:36 +000017673 fi
John Criswella0137d32003-10-13 16:22:01 +000017674
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017676{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17677echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17678if test "${ac_cv_func_rand48+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017680else
Reid Spencera773bd52006-08-04 18:18:08 +000017681 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017682ac_cpp='$CXXCPP $CPPFLAGS'
17683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017687 cat >conftest.$ac_ext <<_ACEOF
17688/* confdefs.h. */
17689_ACEOF
17690cat confdefs.h >>conftest.$ac_ext
17691cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017692/* end confdefs.h. */
17693#include <stdlib.h>
17694int
17695main ()
17696{
17697srand48(0);lrand48();drand48();
17698 ;
17699 return 0;
17700}
17701_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017702rm -f conftest.$ac_objext
17703if { (ac_try="$ac_compile"
17704case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17707esac
17708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_compile") 2>conftest.er1
17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720esac
17721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest.$ac_objext'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730esac
17731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017736 ac_cv_func_rand48=yes
17737else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017738 echo "$as_me: failed program was:" >&5
17739sed 's/^/| /' conftest.$ac_ext >&5
17740
17741 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017742fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017743
Reid Spencera773bd52006-08-04 18:18:08 +000017744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017745 ac_ext=c
17746ac_cpp='$CPP $CPPFLAGS'
17747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17749ac_compiler_gnu=$ac_cv_c_compiler_gnu
17750
17751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017752{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17753echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017754
17755if test "$ac_cv_func_rand48" = "yes" ; then
17756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017757cat >>confdefs.h <<\_ACEOF
17758#define HAVE_RAND48 1
17759_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017760
17761fi
John Criswell0021c312004-02-13 21:57:29 +000017762
17763
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017764{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17765echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17766if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768else
17769 cat >conftest.$ac_ext <<_ACEOF
17770/* confdefs.h. */
17771_ACEOF
17772cat confdefs.h >>conftest.$ac_ext
17773cat >>conftest.$ac_ext <<_ACEOF
17774/* end confdefs.h. */
17775$ac_includes_default
17776int
17777main ()
17778{
17779#ifndef strerror_s
17780 char *p = (char *) strerror_s;
17781 return !p;
17782#endif
17783
17784 ;
17785 return 0;
17786}
17787_ACEOF
17788rm -f conftest.$ac_objext
17789if { (ac_try="$ac_compile"
17790case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17793esac
17794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_compile") 2>conftest.er1
17796 ac_status=$?
17797 grep -v '^ *+' conftest.er1 >conftest.err
17798 rm -f conftest.er1
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17803 { (case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17806esac
17807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_try") 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest.$ac_objext'
17813 { (case "(($ac_try" in
17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815 *) ac_try_echo=$ac_try;;
17816esac
17817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818 (eval "$ac_try") 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_cv_have_decl_strerror_s=yes
17823else
17824 echo "$as_me: failed program was:" >&5
17825sed 's/^/| /' conftest.$ac_ext >&5
17826
17827 ac_cv_have_decl_strerror_s=no
17828fi
17829
17830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831fi
17832{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17833echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17834if test $ac_cv_have_decl_strerror_s = yes; then
17835
17836cat >>confdefs.h <<_ACEOF
17837#define HAVE_DECL_STRERROR_S 1
17838_ACEOF
17839
17840
17841else
17842 cat >>confdefs.h <<_ACEOF
17843#define HAVE_DECL_STRERROR_S 0
17844_ACEOF
17845
17846
17847fi
17848
17849
17850
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017851if test "$llvm_cv_os_type" = "MingW" ; then
17852 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17853echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17854if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856else
17857 ac_check_lib_save_LIBS=$LIBS
17858LIBS="-lgcc $LIBS"
17859cat >conftest.$ac_ext <<_ACEOF
17860/* confdefs.h. */
17861_ACEOF
17862cat confdefs.h >>conftest.$ac_ext
17863cat >>conftest.$ac_ext <<_ACEOF
17864/* end confdefs.h. */
17865
17866/* Override any GCC internal prototype to avoid an error.
17867 Use char because int might match the return type of a GCC
17868 builtin and then its argument prototype would still apply. */
17869#ifdef __cplusplus
17870extern "C"
17871#endif
17872char _alloca ();
17873int
17874main ()
17875{
17876return _alloca ();
17877 ;
17878 return 0;
17879}
17880_ACEOF
17881rm -f conftest.$ac_objext conftest$ac_exeext
17882if { (ac_try="$ac_link"
17883case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17886esac
17887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_link") 2>conftest.er1
17889 ac_status=$?
17890 grep -v '^ *+' conftest.er1 >conftest.err
17891 rm -f conftest.er1
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
17895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17896 { (case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17899esac
17900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_try") 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; } &&
17905 { ac_try='test -s conftest$ac_exeext'
17906 { (case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17909esac
17910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_try") 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_cv_lib_gcc__alloca=yes
17916else
17917 echo "$as_me: failed program was:" >&5
17918sed 's/^/| /' conftest.$ac_ext >&5
17919
17920 ac_cv_lib_gcc__alloca=no
17921fi
17922
17923rm -f core conftest.err conftest.$ac_objext \
17924 conftest$ac_exeext conftest.$ac_ext
17925LIBS=$ac_check_lib_save_LIBS
17926fi
17927{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17928echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17929if test $ac_cv_lib_gcc__alloca = yes; then
17930
17931cat >>confdefs.h <<\_ACEOF
17932#define HAVE__ALLOCA 1
17933_ACEOF
17934
17935fi
17936
17937 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17938echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17939if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17941else
17942 ac_check_lib_save_LIBS=$LIBS
17943LIBS="-lgcc $LIBS"
17944cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h. */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h. */
17950
17951/* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17954#ifdef __cplusplus
17955extern "C"
17956#endif
17957char __alloca ();
17958int
17959main ()
17960{
17961return __alloca ();
17962 ;
17963 return 0;
17964}
17965_ACEOF
17966rm -f conftest.$ac_objext conftest$ac_exeext
17967if { (ac_try="$ac_link"
17968case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17971esac
17972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_link") 2>conftest.er1
17974 ac_status=$?
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17981 { (case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17984esac
17985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_try") 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest$ac_exeext'
17991 { (case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17994esac
17995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_try") 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_lib_gcc___alloca=yes
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005 ac_cv_lib_gcc___alloca=no
18006fi
18007
18008rm -f core conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18010LIBS=$ac_check_lib_save_LIBS
18011fi
18012{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18013echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18014if test $ac_cv_lib_gcc___alloca = yes; then
18015
18016cat >>confdefs.h <<\_ACEOF
18017#define HAVE___ALLOCA 1
18018_ACEOF
18019
18020fi
18021
18022 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18023echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18024if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026else
18027 ac_check_lib_save_LIBS=$LIBS
18028LIBS="-lgcc $LIBS"
18029cat >conftest.$ac_ext <<_ACEOF
18030/* confdefs.h. */
18031_ACEOF
18032cat confdefs.h >>conftest.$ac_ext
18033cat >>conftest.$ac_ext <<_ACEOF
18034/* end confdefs.h. */
18035
18036/* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18039#ifdef __cplusplus
18040extern "C"
18041#endif
18042char __chkstk ();
18043int
18044main ()
18045{
18046return __chkstk ();
18047 ;
18048 return 0;
18049}
18050_ACEOF
18051rm -f conftest.$ac_objext conftest$ac_exeext
18052if { (ac_try="$ac_link"
18053case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056esac
18057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069esac
18070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest$ac_exeext'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18079esac
18080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 ac_cv_lib_gcc___chkstk=yes
18086else
18087 echo "$as_me: failed program was:" >&5
18088sed 's/^/| /' conftest.$ac_ext >&5
18089
18090 ac_cv_lib_gcc___chkstk=no
18091fi
18092
18093rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095LIBS=$ac_check_lib_save_LIBS
18096fi
18097{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18098echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18099if test $ac_cv_lib_gcc___chkstk = yes; then
18100
18101cat >>confdefs.h <<\_ACEOF
18102#define HAVE___CHKSTK 1
18103_ACEOF
18104
18105fi
18106
18107 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18108echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18109if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18111else
18112 ac_check_lib_save_LIBS=$LIBS
18113LIBS="-lgcc $LIBS"
18114cat >conftest.$ac_ext <<_ACEOF
18115/* confdefs.h. */
18116_ACEOF
18117cat confdefs.h >>conftest.$ac_ext
18118cat >>conftest.$ac_ext <<_ACEOF
18119/* end confdefs.h. */
18120
18121/* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
18124#ifdef __cplusplus
18125extern "C"
18126#endif
18127char ___chkstk ();
18128int
18129main ()
18130{
18131return ___chkstk ();
18132 ;
18133 return 0;
18134}
18135_ACEOF
18136rm -f conftest.$ac_objext conftest$ac_exeext
18137if { (ac_try="$ac_link"
18138case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18141esac
18142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18151 { (case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18154esac
18155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_try") 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest$ac_exeext'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164esac
18165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_cv_lib_gcc____chkstk=yes
18171else
18172 echo "$as_me: failed program was:" >&5
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
18175 ac_cv_lib_gcc____chkstk=no
18176fi
18177
18178rm -f core conftest.err conftest.$ac_objext \
18179 conftest$ac_exeext conftest.$ac_ext
18180LIBS=$ac_check_lib_save_LIBS
18181fi
18182{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18183echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18184if test $ac_cv_lib_gcc____chkstk = yes; then
18185
18186cat >>confdefs.h <<\_ACEOF
18187#define HAVE____CHKSTK 1
18188_ACEOF
18189
18190fi
18191
18192
18193 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18194echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18195if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197else
18198 ac_check_lib_save_LIBS=$LIBS
18199LIBS="-lgcc $LIBS"
18200cat >conftest.$ac_ext <<_ACEOF
18201/* confdefs.h. */
18202_ACEOF
18203cat confdefs.h >>conftest.$ac_ext
18204cat >>conftest.$ac_ext <<_ACEOF
18205/* end confdefs.h. */
18206
18207/* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18210#ifdef __cplusplus
18211extern "C"
18212#endif
18213char __ashldi3 ();
18214int
18215main ()
18216{
18217return __ashldi3 ();
18218 ;
18219 return 0;
18220}
18221_ACEOF
18222rm -f conftest.$ac_objext conftest$ac_exeext
18223if { (ac_try="$ac_link"
18224case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18227esac
18228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_link") 2>conftest.er1
18230 ac_status=$?
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18237 { (case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18240esac
18241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_try") 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest$ac_exeext'
18247 { (case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18250esac
18251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_try") 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ac_cv_lib_gcc___ashldi3=yes
18257else
18258 echo "$as_me: failed program was:" >&5
18259sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 ac_cv_lib_gcc___ashldi3=no
18262fi
18263
18264rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266LIBS=$ac_check_lib_save_LIBS
18267fi
18268{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18269echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18270if test $ac_cv_lib_gcc___ashldi3 = yes; then
18271
18272cat >>confdefs.h <<\_ACEOF
18273#define HAVE___ASHLDI3 1
18274_ACEOF
18275
18276fi
18277
18278 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18279echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18280if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18282else
18283 ac_check_lib_save_LIBS=$LIBS
18284LIBS="-lgcc $LIBS"
18285cat >conftest.$ac_ext <<_ACEOF
18286/* confdefs.h. */
18287_ACEOF
18288cat confdefs.h >>conftest.$ac_ext
18289cat >>conftest.$ac_ext <<_ACEOF
18290/* end confdefs.h. */
18291
18292/* Override any GCC internal prototype to avoid an error.
18293 Use char because int might match the return type of a GCC
18294 builtin and then its argument prototype would still apply. */
18295#ifdef __cplusplus
18296extern "C"
18297#endif
18298char __ashrdi3 ();
18299int
18300main ()
18301{
18302return __ashrdi3 ();
18303 ;
18304 return 0;
18305}
18306_ACEOF
18307rm -f conftest.$ac_objext conftest$ac_exeext
18308if { (ac_try="$ac_link"
18309case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18312esac
18313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_link") 2>conftest.er1
18315 ac_status=$?
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
18321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18322 { (case "(($ac_try" in
18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18325esac
18326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327 (eval "$ac_try") 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; } &&
18331 { ac_try='test -s conftest$ac_exeext'
18332 { (case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335esac
18336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_try") 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 ac_cv_lib_gcc___ashrdi3=yes
18342else
18343 echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346 ac_cv_lib_gcc___ashrdi3=no
18347fi
18348
18349rm -f core conftest.err conftest.$ac_objext \
18350 conftest$ac_exeext conftest.$ac_ext
18351LIBS=$ac_check_lib_save_LIBS
18352fi
18353{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18354echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18355if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18356
18357cat >>confdefs.h <<\_ACEOF
18358#define HAVE___ASHRDI3 1
18359_ACEOF
18360
18361fi
18362
18363 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18364echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18365if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18367else
18368 ac_check_lib_save_LIBS=$LIBS
18369LIBS="-lgcc $LIBS"
18370cat >conftest.$ac_ext <<_ACEOF
18371/* confdefs.h. */
18372_ACEOF
18373cat confdefs.h >>conftest.$ac_ext
18374cat >>conftest.$ac_ext <<_ACEOF
18375/* end confdefs.h. */
18376
18377/* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18380#ifdef __cplusplus
18381extern "C"
18382#endif
18383char __divdi3 ();
18384int
18385main ()
18386{
18387return __divdi3 ();
18388 ;
18389 return 0;
18390}
18391_ACEOF
18392rm -f conftest.$ac_objext conftest$ac_exeext
18393if { (ac_try="$ac_link"
18394case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18397esac
18398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399 (eval "$ac_link") 2>conftest.er1
18400 ac_status=$?
18401 grep -v '^ *+' conftest.er1 >conftest.err
18402 rm -f conftest.er1
18403 cat conftest.err >&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } &&
18406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407 { (case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18410esac
18411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_try") 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18420esac
18421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_try") 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
18426 ac_cv_lib_gcc___divdi3=yes
18427else
18428 echo "$as_me: failed program was:" >&5
18429sed 's/^/| /' conftest.$ac_ext >&5
18430
18431 ac_cv_lib_gcc___divdi3=no
18432fi
18433
18434rm -f core conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18436LIBS=$ac_check_lib_save_LIBS
18437fi
18438{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18439echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18440if test $ac_cv_lib_gcc___divdi3 = yes; then
18441
18442cat >>confdefs.h <<\_ACEOF
18443#define HAVE___DIVDI3 1
18444_ACEOF
18445
18446fi
18447
18448 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18449echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18450if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452else
18453 ac_check_lib_save_LIBS=$LIBS
18454LIBS="-lgcc $LIBS"
18455cat >conftest.$ac_ext <<_ACEOF
18456/* confdefs.h. */
18457_ACEOF
18458cat confdefs.h >>conftest.$ac_ext
18459cat >>conftest.$ac_ext <<_ACEOF
18460/* end confdefs.h. */
18461
18462/* Override any GCC internal prototype to avoid an error.
18463 Use char because int might match the return type of a GCC
18464 builtin and then its argument prototype would still apply. */
18465#ifdef __cplusplus
18466extern "C"
18467#endif
18468char __fixdfdi ();
18469int
18470main ()
18471{
18472return __fixdfdi ();
18473 ;
18474 return 0;
18475}
18476_ACEOF
18477rm -f conftest.$ac_objext conftest$ac_exeext
18478if { (ac_try="$ac_link"
18479case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18482esac
18483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_link") 2>conftest.er1
18485 ac_status=$?
18486 grep -v '^ *+' conftest.er1 >conftest.err
18487 rm -f conftest.er1
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492 { (case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18495esac
18496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_try") 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest$ac_exeext'
18502 { (case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18505esac
18506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_try") 2>&5
18508 ac_status=$?
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; }; then
18511 ac_cv_lib_gcc___fixdfdi=yes
18512else
18513 echo "$as_me: failed program was:" >&5
18514sed 's/^/| /' conftest.$ac_ext >&5
18515
18516 ac_cv_lib_gcc___fixdfdi=no
18517fi
18518
18519rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18521LIBS=$ac_check_lib_save_LIBS
18522fi
18523{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18524echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18525if test $ac_cv_lib_gcc___fixdfdi = yes; then
18526
18527cat >>confdefs.h <<\_ACEOF
18528#define HAVE___FIXDFDI 1
18529_ACEOF
18530
18531fi
18532
18533 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18534echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18535if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537else
18538 ac_check_lib_save_LIBS=$LIBS
18539LIBS="-lgcc $LIBS"
18540cat >conftest.$ac_ext <<_ACEOF
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546
18547/* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18550#ifdef __cplusplus
18551extern "C"
18552#endif
18553char __fixsfdi ();
18554int
18555main ()
18556{
18557return __fixsfdi ();
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562rm -f conftest.$ac_objext conftest$ac_exeext
18563if { (ac_try="$ac_link"
18564case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18567esac
18568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_link") 2>conftest.er1
18570 ac_status=$?
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18577 { (case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18580esac
18581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_try") 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } &&
18586 { ac_try='test -s conftest$ac_exeext'
18587 { (case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590esac
18591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_try") 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; }; then
18596 ac_cv_lib_gcc___fixsfdi=yes
18597else
18598 echo "$as_me: failed program was:" >&5
18599sed 's/^/| /' conftest.$ac_ext >&5
18600
18601 ac_cv_lib_gcc___fixsfdi=no
18602fi
18603
18604rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
18606LIBS=$ac_check_lib_save_LIBS
18607fi
18608{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18609echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18610if test $ac_cv_lib_gcc___fixsfdi = yes; then
18611
18612cat >>confdefs.h <<\_ACEOF
18613#define HAVE___FIXSFDI 1
18614_ACEOF
18615
18616fi
18617
18618 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18619echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18620if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18622else
18623 ac_check_lib_save_LIBS=$LIBS
18624LIBS="-lgcc $LIBS"
18625cat >conftest.$ac_ext <<_ACEOF
18626/* confdefs.h. */
18627_ACEOF
18628cat confdefs.h >>conftest.$ac_ext
18629cat >>conftest.$ac_ext <<_ACEOF
18630/* end confdefs.h. */
18631
18632/* Override any GCC internal prototype to avoid an error.
18633 Use char because int might match the return type of a GCC
18634 builtin and then its argument prototype would still apply. */
18635#ifdef __cplusplus
18636extern "C"
18637#endif
18638char __floatdidf ();
18639int
18640main ()
18641{
18642return __floatdidf ();
18643 ;
18644 return 0;
18645}
18646_ACEOF
18647rm -f conftest.$ac_objext conftest$ac_exeext
18648if { (ac_try="$ac_link"
18649case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18652esac
18653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_link") 2>conftest.er1
18655 ac_status=$?
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18665esac
18666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest$ac_exeext'
18672 { (case "(($ac_try" in
18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674 *) ac_try_echo=$ac_try;;
18675esac
18676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677 (eval "$ac_try") 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_lib_gcc___floatdidf=yes
18682else
18683 echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686 ac_cv_lib_gcc___floatdidf=no
18687fi
18688
18689rm -f core conftest.err conftest.$ac_objext \
18690 conftest$ac_exeext conftest.$ac_ext
18691LIBS=$ac_check_lib_save_LIBS
18692fi
18693{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18694echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18695if test $ac_cv_lib_gcc___floatdidf = yes; then
18696
18697cat >>confdefs.h <<\_ACEOF
18698#define HAVE___FLOATDIDF 1
18699_ACEOF
18700
18701fi
18702
18703 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18704echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18705if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18707else
18708 ac_check_lib_save_LIBS=$LIBS
18709LIBS="-lgcc $LIBS"
18710cat >conftest.$ac_ext <<_ACEOF
18711/* confdefs.h. */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
18715/* end confdefs.h. */
18716
18717/* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18720#ifdef __cplusplus
18721extern "C"
18722#endif
18723char __lshrdi3 ();
18724int
18725main ()
18726{
18727return __lshrdi3 ();
18728 ;
18729 return 0;
18730}
18731_ACEOF
18732rm -f conftest.$ac_objext conftest$ac_exeext
18733if { (ac_try="$ac_link"
18734case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18737esac
18738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_link") 2>conftest.er1
18740 ac_status=$?
18741 grep -v '^ *+' conftest.er1 >conftest.err
18742 rm -f conftest.er1
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
18746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18747 { (case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750esac
18751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_try") 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest$ac_exeext'
18757 { (case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18760esac
18761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_try") 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 ac_cv_lib_gcc___lshrdi3=yes
18767else
18768 echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 ac_cv_lib_gcc___lshrdi3=no
18772fi
18773
18774rm -f core conftest.err conftest.$ac_objext \
18775 conftest$ac_exeext conftest.$ac_ext
18776LIBS=$ac_check_lib_save_LIBS
18777fi
18778{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18779echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18780if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18781
18782cat >>confdefs.h <<\_ACEOF
18783#define HAVE___LSHRDI3 1
18784_ACEOF
18785
18786fi
18787
18788 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18789echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18790if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792else
18793 ac_check_lib_save_LIBS=$LIBS
18794LIBS="-lgcc $LIBS"
18795cat >conftest.$ac_ext <<_ACEOF
18796/* confdefs.h. */
18797_ACEOF
18798cat confdefs.h >>conftest.$ac_ext
18799cat >>conftest.$ac_ext <<_ACEOF
18800/* end confdefs.h. */
18801
18802/* Override any GCC internal prototype to avoid an error.
18803 Use char because int might match the return type of a GCC
18804 builtin and then its argument prototype would still apply. */
18805#ifdef __cplusplus
18806extern "C"
18807#endif
18808char __moddi3 ();
18809int
18810main ()
18811{
18812return __moddi3 ();
18813 ;
18814 return 0;
18815}
18816_ACEOF
18817rm -f conftest.$ac_objext conftest$ac_exeext
18818if { (ac_try="$ac_link"
18819case "(($ac_try" in
18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18822esac
18823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_link") 2>conftest.er1
18825 ac_status=$?
18826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } &&
18831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18832 { (case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835esac
18836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_try") 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest$ac_exeext'
18842 { (case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18845esac
18846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_try") 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_lib_gcc___moddi3=yes
18852else
18853 echo "$as_me: failed program was:" >&5
18854sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 ac_cv_lib_gcc___moddi3=no
18857fi
18858
18859rm -f core conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext conftest.$ac_ext
18861LIBS=$ac_check_lib_save_LIBS
18862fi
18863{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18864echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18865if test $ac_cv_lib_gcc___moddi3 = yes; then
18866
18867cat >>confdefs.h <<\_ACEOF
18868#define HAVE___MODDI3 1
18869_ACEOF
18870
18871fi
18872
18873 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18874echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18875if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877else
18878 ac_check_lib_save_LIBS=$LIBS
18879LIBS="-lgcc $LIBS"
18880cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886
18887/* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
18890#ifdef __cplusplus
18891extern "C"
18892#endif
18893char __udivdi3 ();
18894int
18895main ()
18896{
18897return __udivdi3 ();
18898 ;
18899 return 0;
18900}
18901_ACEOF
18902rm -f conftest.$ac_objext conftest$ac_exeext
18903if { (ac_try="$ac_link"
18904case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907esac
18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_link") 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920esac
18921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest$ac_exeext'
18927 { (case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18930esac
18931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_try") 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_lib_gcc___udivdi3=yes
18937else
18938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 ac_cv_lib_gcc___udivdi3=no
18942fi
18943
18944rm -f core conftest.err conftest.$ac_objext \
18945 conftest$ac_exeext conftest.$ac_ext
18946LIBS=$ac_check_lib_save_LIBS
18947fi
18948{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18949echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18950if test $ac_cv_lib_gcc___udivdi3 = yes; then
18951
18952cat >>confdefs.h <<\_ACEOF
18953#define HAVE___UDIVDI3 1
18954_ACEOF
18955
18956fi
18957
18958 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18959echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18960if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962else
18963 ac_check_lib_save_LIBS=$LIBS
18964LIBS="-lgcc $LIBS"
18965cat >conftest.$ac_ext <<_ACEOF
18966/* confdefs.h. */
18967_ACEOF
18968cat confdefs.h >>conftest.$ac_ext
18969cat >>conftest.$ac_ext <<_ACEOF
18970/* end confdefs.h. */
18971
18972/* Override any GCC internal prototype to avoid an error.
18973 Use char because int might match the return type of a GCC
18974 builtin and then its argument prototype would still apply. */
18975#ifdef __cplusplus
18976extern "C"
18977#endif
18978char __umoddi3 ();
18979int
18980main ()
18981{
18982return __umoddi3 ();
18983 ;
18984 return 0;
18985}
18986_ACEOF
18987rm -f conftest.$ac_objext conftest$ac_exeext
18988if { (ac_try="$ac_link"
18989case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18992esac
18993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_link") 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005esac
19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest$ac_exeext'
19012 { (case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19015esac
19016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_try") 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_gcc___umoddi3=yes
19022else
19023 echo "$as_me: failed program was:" >&5
19024sed 's/^/| /' conftest.$ac_ext >&5
19025
19026 ac_cv_lib_gcc___umoddi3=no
19027fi
19028
19029rm -f core conftest.err conftest.$ac_objext \
19030 conftest$ac_exeext conftest.$ac_ext
19031LIBS=$ac_check_lib_save_LIBS
19032fi
19033{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19034echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19035if test $ac_cv_lib_gcc___umoddi3 = yes; then
19036
19037cat >>confdefs.h <<\_ACEOF
19038#define HAVE___UMODDI3 1
19039_ACEOF
19040
19041fi
19042
19043
19044 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19045echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19046if test "${ac_cv_lib_gcc___main+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048else
19049 ac_check_lib_save_LIBS=$LIBS
19050LIBS="-lgcc $LIBS"
19051cat >conftest.$ac_ext <<_ACEOF
19052/* confdefs.h. */
19053_ACEOF
19054cat confdefs.h >>conftest.$ac_ext
19055cat >>conftest.$ac_ext <<_ACEOF
19056/* end confdefs.h. */
19057
19058/* Override any GCC internal prototype to avoid an error.
19059 Use char because int might match the return type of a GCC
19060 builtin and then its argument prototype would still apply. */
19061#ifdef __cplusplus
19062extern "C"
19063#endif
19064char __main ();
19065int
19066main ()
19067{
19068return __main ();
19069 ;
19070 return 0;
19071}
19072_ACEOF
19073rm -f conftest.$ac_objext conftest$ac_exeext
19074if { (ac_try="$ac_link"
19075case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19078esac
19079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_link") 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
19087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19088 { (case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19091esac
19092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_try") 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; } &&
19097 { ac_try='test -s conftest$ac_exeext'
19098 { (case "(($ac_try" in
19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100 *) ac_try_echo=$ac_try;;
19101esac
19102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103 (eval "$ac_try") 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_cv_lib_gcc___main=yes
19108else
19109 echo "$as_me: failed program was:" >&5
19110sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 ac_cv_lib_gcc___main=no
19113fi
19114
19115rm -f core conftest.err conftest.$ac_objext \
19116 conftest$ac_exeext conftest.$ac_ext
19117LIBS=$ac_check_lib_save_LIBS
19118fi
19119{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19120echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19121if test $ac_cv_lib_gcc___main = yes; then
19122
19123cat >>confdefs.h <<\_ACEOF
19124#define HAVE___MAIN 1
19125_ACEOF
19126
19127fi
19128
19129 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19130echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19131if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19133else
19134 ac_check_lib_save_LIBS=$LIBS
19135LIBS="-lgcc $LIBS"
19136cat >conftest.$ac_ext <<_ACEOF
19137/* confdefs.h. */
19138_ACEOF
19139cat confdefs.h >>conftest.$ac_ext
19140cat >>conftest.$ac_ext <<_ACEOF
19141/* end confdefs.h. */
19142
19143/* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19146#ifdef __cplusplus
19147extern "C"
19148#endif
19149char __cmpdi2 ();
19150int
19151main ()
19152{
19153return __cmpdi2 ();
19154 ;
19155 return 0;
19156}
19157_ACEOF
19158rm -f conftest.$ac_objext conftest$ac_exeext
19159if { (ac_try="$ac_link"
19160case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163esac
19164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_link") 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19173 { (case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176esac
19177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_try") 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19186esac
19187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_lib_gcc___cmpdi2=yes
19193else
19194 echo "$as_me: failed program was:" >&5
19195sed 's/^/| /' conftest.$ac_ext >&5
19196
19197 ac_cv_lib_gcc___cmpdi2=no
19198fi
19199
19200rm -f core conftest.err conftest.$ac_objext \
19201 conftest$ac_exeext conftest.$ac_ext
19202LIBS=$ac_check_lib_save_LIBS
19203fi
19204{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19205echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19206if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19207
19208cat >>confdefs.h <<\_ACEOF
19209#define HAVE___CMPDI2 1
19210_ACEOF
19211
19212fi
19213
19214fi
19215
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019216if test "$llvm_cv_os_type" = "MingW" ; then
19217 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19218echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19219 cat >conftest.$ac_ext <<_ACEOF
19220#include <windows.h>
19221#include <imagehlp.h>
19222extern void foo(PENUMLOADED_MODULES_CALLBACK);
19223extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19224_ACEOF
19225rm -f conftest.$ac_objext
19226if { (ac_try="$ac_compile"
19227case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230esac
19231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243esac
19244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; } &&
19249 { ac_try='test -s conftest.$ac_objext'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253esac
19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259
19260 { echo "$as_me:$LINENO: result: yes" >&5
19261echo "${ECHO_T}yes" >&6; }
19262 llvm_cv_win32_elmcb_pcstr="PCSTR"
19263
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268
19269 { echo "$as_me:$LINENO: result: no" >&5
19270echo "${ECHO_T}no" >&6; }
19271 llvm_cv_win32_elmcb_pcstr="PSTR"
19272
19273fi
19274
19275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276
19277cat >>confdefs.h <<_ACEOF
19278#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19279_ACEOF
19280
19281fi
19282
Torok Edwin871384f2010-01-26 08:50:50 +000019283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019284{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19285echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19286if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019288else
Reid Spencera773bd52006-08-04 18:18:08 +000019289 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019290ac_cpp='$CXXCPP $CPPFLAGS'
19291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019295 cat >conftest.$ac_ext <<_ACEOF
19296/* confdefs.h. */
19297_ACEOF
19298cat confdefs.h >>conftest.$ac_ext
19299cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019300/* end confdefs.h. */
19301#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019302int
19303main ()
19304{
19305float f; isnan(f);
19306 ;
19307 return 0;
19308}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019309_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019310rm -f conftest.$ac_objext
19311if { (ac_try="$ac_compile"
19312case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19315esac
19316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_compile") 2>conftest.er1
19318 ac_status=$?
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328esac
19329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest.$ac_objext'
19335 { (case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19338esac
19339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_try") 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019344 ac_cv_func_isnan_in_math_h=yes
19345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019346 echo "$as_me: failed program was:" >&5
19347sed 's/^/| /' conftest.$ac_ext >&5
19348
19349 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019351
Reid Spencera773bd52006-08-04 18:18:08 +000019352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019353 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019354ac_cpp='$CPP $CPPFLAGS'
19355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19357ac_compiler_gnu=$ac_cv_c_compiler_gnu
19358
19359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019360{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19361echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019362
19363
19364if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019366cat >>confdefs.h <<\_ACEOF
19367#define HAVE_ISNAN_IN_MATH_H 1
19368_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019369
Reid Spencerabec8f92004-10-27 23:03:44 +000019370fi
19371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019372{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19373echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19374if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019376else
Reid Spencera773bd52006-08-04 18:18:08 +000019377 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019378ac_cpp='$CXXCPP $CPPFLAGS'
19379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019383 cat >conftest.$ac_ext <<_ACEOF
19384/* confdefs.h. */
19385_ACEOF
19386cat confdefs.h >>conftest.$ac_ext
19387cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019388/* end confdefs.h. */
19389#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019390int
19391main ()
19392{
19393float f; isnan(f);
19394 ;
19395 return 0;
19396}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019397_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019398rm -f conftest.$ac_objext
19399if { (ac_try="$ac_compile"
19400case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403esac
19404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_compile") 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19413 { (case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416esac
19417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_try") 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426esac
19427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_try") 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019432 ac_cv_func_isnan_in_cmath=yes
19433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019434 echo "$as_me: failed program was:" >&5
19435sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019439
Reid Spencera773bd52006-08-04 18:18:08 +000019440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019441 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019442ac_cpp='$CPP $CPPFLAGS'
19443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446
19447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019448{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19449echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019450
19451if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019453cat >>confdefs.h <<\_ACEOF
19454#define HAVE_ISNAN_IN_CMATH 1
19455_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019456
Reid Spencerabec8f92004-10-27 23:03:44 +000019457fi
19458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019459{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19460echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19461if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019463else
Reid Spencera773bd52006-08-04 18:18:08 +000019464 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019465ac_cpp='$CXXCPP $CPPFLAGS'
19466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019470 cat >conftest.$ac_ext <<_ACEOF
19471/* confdefs.h. */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019475/* end confdefs.h. */
19476#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019477int
19478main ()
19479{
19480float f; std::isnan(f);
19481 ;
19482 return 0;
19483}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019484_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019485rm -f conftest.$ac_objext
19486if { (ac_try="$ac_compile"
19487case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490esac
19491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19500 { (case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503esac
19504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_try") 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest.$ac_objext'
19510 { (case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513esac
19514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_try") 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019519 ac_cv_func_std_isnan_in_cmath=yes
19520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019521 echo "$as_me: failed program was:" >&5
19522sed 's/^/| /' conftest.$ac_ext >&5
19523
19524 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019525fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019526
Reid Spencera773bd52006-08-04 18:18:08 +000019527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019528 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019529ac_cpp='$CPP $CPPFLAGS'
19530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19532ac_compiler_gnu=$ac_cv_c_compiler_gnu
19533
19534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019535{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19536echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019537
19538if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019540cat >>confdefs.h <<\_ACEOF
19541#define HAVE_STD_ISNAN_IN_CMATH 1
19542_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019543
Reid Spencerabec8f92004-10-27 23:03:44 +000019544fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019545
19546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019547{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19548echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19549if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019551else
Reid Spencera773bd52006-08-04 18:18:08 +000019552 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019553ac_cpp='$CXXCPP $CPPFLAGS'
19554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019558 cat >conftest.$ac_ext <<_ACEOF
19559/* confdefs.h. */
19560_ACEOF
19561cat confdefs.h >>conftest.$ac_ext
19562cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019563/* end confdefs.h. */
19564#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019565int
19566main ()
19567{
19568float f; isinf(f);
19569 ;
19570 return 0;
19571}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019573rm -f conftest.$ac_objext
19574if { (ac_try="$ac_compile"
19575case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19578esac
19579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_compile") 2>conftest.er1
19581 ac_status=$?
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591esac
19592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest.$ac_objext'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601esac
19602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019607 ac_cv_func_isinf_in_math_h=yes
19608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019609 echo "$as_me: failed program was:" >&5
19610sed 's/^/| /' conftest.$ac_ext >&5
19611
19612 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019614
Reid Spencera773bd52006-08-04 18:18:08 +000019615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019616 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019617ac_cpp='$CPP $CPPFLAGS'
19618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621
19622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19624echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019625
19626if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019628cat >>confdefs.h <<\_ACEOF
19629#define HAVE_ISINF_IN_MATH_H 1
19630_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019631
Reid Spencerabec8f92004-10-27 23:03:44 +000019632fi
19633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019634{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19635echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19636if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019638else
Reid Spencera773bd52006-08-04 18:18:08 +000019639 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019640ac_cpp='$CXXCPP $CPPFLAGS'
19641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019645 cat >conftest.$ac_ext <<_ACEOF
19646/* confdefs.h. */
19647_ACEOF
19648cat confdefs.h >>conftest.$ac_ext
19649cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019650/* end confdefs.h. */
19651#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019652int
19653main ()
19654{
19655float f; isinf(f);
19656 ;
19657 return 0;
19658}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019659_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019660rm -f conftest.$ac_objext
19661if { (ac_try="$ac_compile"
19662case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19665esac
19666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678esac
19679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
19685 { (case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19688esac
19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_try") 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019694 ac_cv_func_isinf_in_cmath=yes
19695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019696 echo "$as_me: failed program was:" >&5
19697sed 's/^/| /' conftest.$ac_ext >&5
19698
19699 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019701
Reid Spencera773bd52006-08-04 18:18:08 +000019702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019703 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019704ac_cpp='$CPP $CPPFLAGS'
19705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707ac_compiler_gnu=$ac_cv_c_compiler_gnu
19708
19709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019710{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19711echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019712
19713if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019715cat >>confdefs.h <<\_ACEOF
19716#define HAVE_ISINF_IN_CMATH 1
19717_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019718
Reid Spencerabec8f92004-10-27 23:03:44 +000019719fi
19720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019721{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19722echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19723if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019725else
Reid Spencera773bd52006-08-04 18:18:08 +000019726 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019727ac_cpp='$CXXCPP $CPPFLAGS'
19728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019732 cat >conftest.$ac_ext <<_ACEOF
19733/* confdefs.h. */
19734_ACEOF
19735cat confdefs.h >>conftest.$ac_ext
19736cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019737/* end confdefs.h. */
19738#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019739int
19740main ()
19741{
19742float f; std::isinf(f)}
19743 ;
19744 return 0;
19745}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019746_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019747rm -f conftest.$ac_objext
19748if { (ac_try="$ac_compile"
19749case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19752esac
19753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_compile") 2>conftest.er1
19755 ac_status=$?
19756 grep -v '^ *+' conftest.er1 >conftest.err
19757 rm -f conftest.er1
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } &&
19761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19762 { (case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19765esac
19766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_try") 2>&5
19768 ac_status=$?
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; } &&
19771 { ac_try='test -s conftest.$ac_objext'
19772 { (case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19775esac
19776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_try") 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019781 ac_cv_func_std_isinf_in_cmath=yes
19782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019783 echo "$as_me: failed program was:" >&5
19784sed 's/^/| /' conftest.$ac_ext >&5
19785
19786 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019788
Reid Spencera773bd52006-08-04 18:18:08 +000019789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019790 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019791ac_cpp='$CPP $CPPFLAGS'
19792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19794ac_compiler_gnu=$ac_cv_c_compiler_gnu
19795
19796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019797{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19798echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019799
19800if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019802cat >>confdefs.h <<\_ACEOF
19803#define HAVE_STD_ISINF_IN_CMATH 1
19804_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019805
Reid Spencerabec8f92004-10-27 23:03:44 +000019806fi
19807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019808{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19809echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19810if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019812else
Reid Spencera773bd52006-08-04 18:18:08 +000019813 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019814ac_cpp='$CXXCPP $CPPFLAGS'
19815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019819 cat >conftest.$ac_ext <<_ACEOF
19820/* confdefs.h. */
19821_ACEOF
19822cat confdefs.h >>conftest.$ac_ext
19823cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019824/* end confdefs.h. */
19825#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019826int
19827main ()
19828{
19829float f; finite(f);
19830 ;
19831 return 0;
19832}
Brian Gaeked59a6472004-07-21 03:33:58 +000019833_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019834rm -f conftest.$ac_objext
19835if { (ac_try="$ac_compile"
19836case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839esac
19840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_compile") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
19848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19849 { (case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19852esac
19853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_try") 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest.$ac_objext'
19859 { (case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19862esac
19863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_try") 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019868 ac_cv_func_finite_in_ieeefp_h=yes
19869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870 echo "$as_me: failed program was:" >&5
19871sed 's/^/| /' conftest.$ac_ext >&5
19872
19873 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019874fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019875
Reid Spencera773bd52006-08-04 18:18:08 +000019876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019877 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019878ac_cpp='$CPP $CPPFLAGS'
19879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881ac_compiler_gnu=$ac_cv_c_compiler_gnu
19882
19883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019884{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19885echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019886
Brian Gaeke6802b552004-10-28 05:06:45 +000019887if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019889cat >>confdefs.h <<\_ACEOF
19890#define HAVE_FINITE_IN_IEEEFP_H 1
19891_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019892
Reid Spencerabec8f92004-10-27 23:03:44 +000019893fi
19894
19895
19896
Reid Spencer30fe5262007-01-20 07:48:49 +000019897if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019898
19899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019900for ac_header in stdlib.h unistd.h
19901do
19902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19908fi
19909ac_res=`eval echo '${'$as_ac_Header'}'`
19910 { echo "$as_me:$LINENO: result: $ac_res" >&5
19911echo "${ECHO_T}$ac_res" >&6; }
19912else
19913 # Is the header compilable?
19914{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19916cat >conftest.$ac_ext <<_ACEOF
19917/* confdefs.h. */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h. */
19922$ac_includes_default
19923#include <$ac_header>
19924_ACEOF
19925rm -f conftest.$ac_objext
19926if { (ac_try="$ac_compile"
19927case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19930esac
19931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_compile") 2>conftest.er1
19933 ac_status=$?
19934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } &&
19939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19940 { (case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19943esac
19944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_try") 2>&5
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; } &&
19949 { ac_try='test -s conftest.$ac_objext'
19950 { (case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19953esac
19954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_try") 2>&5
19956 ac_status=$?
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 ac_header_compiler=yes
19960else
19961 echo "$as_me: failed program was:" >&5
19962sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019964 ac_header_compiler=no
19965fi
19966
19967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19969echo "${ECHO_T}$ac_header_compiler" >&6; }
19970
19971# Is the header present?
19972{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19974cat >conftest.$ac_ext <<_ACEOF
19975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980#include <$ac_header>
19981_ACEOF
19982if { (ac_try="$ac_cpp conftest.$ac_ext"
19983case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986esac
19987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } >/dev/null; then
19995 if test -s conftest.err; then
19996 ac_cpp_err=$ac_c_preproc_warn_flag
19997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19998 else
19999 ac_cpp_err=
20000 fi
20001else
20002 ac_cpp_err=yes
20003fi
20004if test -z "$ac_cpp_err"; then
20005 ac_header_preproc=yes
20006else
20007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010 ac_header_preproc=no
20011fi
20012
20013rm -f conftest.err conftest.$ac_ext
20014{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20015echo "${ECHO_T}$ac_header_preproc" >&6; }
20016
20017# So? What about this header?
20018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20019 yes:no: )
20020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20024 ac_header_preproc=yes
20025 ;;
20026 no:yes:* )
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20039 ( cat <<\_ASBOX
20040## ----------------------------------- ##
20041## Report this to llvmbugs@cs.uiuc.edu ##
20042## ----------------------------------- ##
20043_ASBOX
20044 ) | sed "s/^/$as_me: WARNING: /" >&2
20045 ;;
20046esac
20047{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051else
20052 eval "$as_ac_Header=\$ac_header_preproc"
20053fi
20054ac_res=`eval echo '${'$as_ac_Header'}'`
20055 { echo "$as_me:$LINENO: result: $ac_res" >&5
20056echo "${ECHO_T}$ac_res" >&6; }
20057
20058fi
20059if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020060 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020062_ACEOF
20063
20064fi
20065
20066done
20067
20068
20069for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070do
20071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20072{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20074if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076else
20077 cat >conftest.$ac_ext <<_ACEOF
20078/* confdefs.h. */
20079_ACEOF
20080cat confdefs.h >>conftest.$ac_ext
20081cat >>conftest.$ac_ext <<_ACEOF
20082/* end confdefs.h. */
20083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20085#define $ac_func innocuous_$ac_func
20086
20087/* System header to define __stub macros and hopefully few prototypes,
20088 which can conflict with char $ac_func (); below.
20089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20090 <limits.h> exists even on freestanding compilers. */
20091
20092#ifdef __STDC__
20093# include <limits.h>
20094#else
20095# include <assert.h>
20096#endif
20097
20098#undef $ac_func
20099
20100/* Override any GCC internal prototype to avoid an error.
20101 Use char because int might match the return type of a GCC
20102 builtin and then its argument prototype would still apply. */
20103#ifdef __cplusplus
20104extern "C"
20105#endif
20106char $ac_func ();
20107/* The GNU C library defines this for functions which it implements
20108 to always fail with ENOSYS. Some functions are actually named
20109 something starting with __ and the normal name is an alias. */
20110#if defined __stub_$ac_func || defined __stub___$ac_func
20111choke me
20112#endif
20113
20114int
20115main ()
20116{
20117return $ac_func ();
20118 ;
20119 return 0;
20120}
20121_ACEOF
20122rm -f conftest.$ac_objext conftest$ac_exeext
20123if { (ac_try="$ac_link"
20124case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20127esac
20128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_link") 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } &&
20136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20137 { (case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140esac
20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_try") 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; } &&
20146 { ac_try='test -s conftest$ac_exeext'
20147 { (case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20150esac
20151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_try") 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 eval "$as_ac_var=yes"
20157else
20158 echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161 eval "$as_ac_var=no"
20162fi
20163
20164rm -f core conftest.err conftest.$ac_objext \
20165 conftest$ac_exeext conftest.$ac_ext
20166fi
20167ac_res=`eval echo '${'$as_ac_var'}'`
20168 { echo "$as_me:$LINENO: result: $ac_res" >&5
20169echo "${ECHO_T}$ac_res" >&6; }
20170if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020171 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020173_ACEOF
20174
20175fi
20176done
20177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020178{ echo "$as_me:$LINENO: checking for working mmap" >&5
20179echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20180if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020182else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020183 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020184 ac_cv_func_mmap_fixed_mapped=no
20185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020186 cat >conftest.$ac_ext <<_ACEOF
20187/* confdefs.h. */
20188_ACEOF
20189cat confdefs.h >>conftest.$ac_ext
20190cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020192$ac_includes_default
20193/* malloc might have been renamed as rpl_malloc. */
20194#undef malloc
20195
20196/* Thanks to Mike Haertel and Jim Avera for this test.
20197 Here is a matrix of mmap possibilities:
20198 mmap private not fixed
20199 mmap private fixed at somewhere currently unmapped
20200 mmap private fixed at somewhere already mapped
20201 mmap shared not fixed
20202 mmap shared fixed at somewhere currently unmapped
20203 mmap shared fixed at somewhere already mapped
20204 For private mappings, we should verify that changes cannot be read()
20205 back from the file, nor mmap's back from the file at a different
20206 address. (There have been systems where private was not correctly
20207 implemented like the infamous i386 svr4.0, and systems where the
20208 VM page cache was not coherent with the file system buffer cache
20209 like early versions of FreeBSD and possibly contemporary NetBSD.)
20210 For shared mappings, we should conversely verify that changes get
20211 propagated back to all the places they're supposed to be.
20212
20213 Grep wants private fixed already mapped.
20214 The main things grep needs to know about mmap are:
20215 * does it exist and is it safe to write into the mmap'd area
20216 * how to use it (BSD variants) */
20217
20218#include <fcntl.h>
20219#include <sys/mman.h>
20220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020221#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020222char *malloc ();
20223#endif
20224
20225/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020226#if !HAVE_GETPAGESIZE
20227/* Assume that all systems that can run configure have sys/param.h. */
20228# if !HAVE_SYS_PARAM_H
20229# define HAVE_SYS_PARAM_H 1
20230# endif
20231
John Criswell7a73b802003-06-30 21:59:07 +000020232# ifdef _SC_PAGESIZE
20233# define getpagesize() sysconf(_SC_PAGESIZE)
20234# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020235# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020236# include <sys/param.h>
20237# ifdef EXEC_PAGESIZE
20238# define getpagesize() EXEC_PAGESIZE
20239# else /* no EXEC_PAGESIZE */
20240# ifdef NBPG
20241# define getpagesize() NBPG * CLSIZE
20242# ifndef CLSIZE
20243# define CLSIZE 1
20244# endif /* no CLSIZE */
20245# else /* no NBPG */
20246# ifdef NBPC
20247# define getpagesize() NBPC
20248# else /* no NBPC */
20249# ifdef PAGESIZE
20250# define getpagesize() PAGESIZE
20251# endif /* PAGESIZE */
20252# endif /* no NBPC */
20253# endif /* no NBPG */
20254# endif /* no EXEC_PAGESIZE */
20255# else /* no HAVE_SYS_PARAM_H */
20256# define getpagesize() 8192 /* punt totally */
20257# endif /* no HAVE_SYS_PARAM_H */
20258# endif /* no _SC_PAGESIZE */
20259
20260#endif /* no HAVE_GETPAGESIZE */
20261
20262int
20263main ()
20264{
20265 char *data, *data2, *data3;
20266 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020267 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020268
20269 pagesize = getpagesize ();
20270
20271 /* First, make a file with some known garbage in it. */
20272 data = (char *) malloc (pagesize);
20273 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020274 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020275 for (i = 0; i < pagesize; ++i)
20276 *(data + i) = rand ();
20277 umask (0);
20278 fd = creat ("conftest.mmap", 0600);
20279 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020280 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020281 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020282 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020283 close (fd);
20284
20285 /* Next, try to mmap the file at a fixed address which already has
20286 something else allocated at it. If we can, also make sure that
20287 we see the same garbage. */
20288 fd = open ("conftest.mmap", O_RDWR);
20289 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020290 return 1;
20291 data2 = (char *) malloc (2 * pagesize);
20292 if (!data2)
20293 return 1;
20294 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020295 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020296 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020297 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020298 for (i = 0; i < pagesize; ++i)
20299 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020300 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020301
20302 /* Finally, make sure that changes to the mapped area do not
20303 percolate back to the file as seen by read(). (This is a bug on
20304 some variants of i386 svr4.0.) */
20305 for (i = 0; i < pagesize; ++i)
20306 *(data2 + i) = *(data2 + i) + 1;
20307 data3 = (char *) malloc (pagesize);
20308 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020309 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020310 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020311 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020312 for (i = 0; i < pagesize; ++i)
20313 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020314 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020315 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020316 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020317}
20318_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020319rm -f conftest$ac_exeext
20320if { (ac_try="$ac_link"
20321case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20324esac
20325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_link") 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20330 { (case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333esac
20334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_try") 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020339 ac_cv_func_mmap_fixed_mapped=yes
20340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020341 echo "$as_me: program exited with status $ac_status" >&5
20342echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345( exit $ac_status )
20346ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020348rm -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 +000020349fi
Reid Spencera773bd52006-08-04 18:18:08 +000020350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020351
John Criswell7a73b802003-06-30 21:59:07 +000020352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020353{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20354echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020355if test $ac_cv_func_mmap_fixed_mapped = yes; then
20356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357cat >>confdefs.h <<\_ACEOF
20358#define HAVE_MMAP 1
20359_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020360
20361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020364 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20365echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20366if test "${ac_cv_func_mmap_file+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020368else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020369 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020370ac_cpp='$CPP $CPPFLAGS'
20371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20373ac_compiler_gnu=$ac_cv_c_compiler_gnu
20374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020375 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020376 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020377else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020378 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020380 /* confdefs.h. */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020385
John Criswell7a73b802003-06-30 21:59:07 +000020386#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020387#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020388#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020389
20390int
20391main ()
20392{
John Criswell7a73b802003-06-30 21:59:07 +000020393
20394 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020395 fd = creat ("foo",0777);
20396 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20397 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020398 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020399 ;
20400 return 0;
20401}
John Criswell7a73b802003-06-30 21:59:07 +000020402_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020403rm -f conftest$ac_exeext
20404if { (ac_try="$ac_link"
20405case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408esac
20409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_link") 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20414 { (case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417esac
20418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_try") 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020423 ac_cv_func_mmap_file=yes
20424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020425 echo "$as_me: program exited with status $ac_status" >&5
20426echo "$as_me: failed program was:" >&5
20427sed 's/^/| /' conftest.$ac_ext >&5
20428
20429( exit $ac_status )
20430ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020432rm -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 +000020433fi
Reid Spencera773bd52006-08-04 18:18:08 +000020434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020435
John Criswell7a73b802003-06-30 21:59:07 +000020436 ac_ext=c
20437ac_cpp='$CPP $CPPFLAGS'
20438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440ac_compiler_gnu=$ac_cv_c_compiler_gnu
20441
20442
20443fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020444{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20445echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020446if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020448cat >>confdefs.h <<\_ACEOF
20449#define HAVE_MMAP_FILE
20450_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020451
20452 MMAP_FILE=yes
20453
20454fi
20455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020456 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20457echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20458if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020460else
Reid Spencer582a23c2004-12-29 07:07:57 +000020461 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020462 ac_cv_need_dev_zero_for_mmap=yes
20463 else
20464 ac_cv_need_dev_zero_for_mmap=no
20465 fi
20466
20467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020468{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20469echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020470if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020472cat >>confdefs.h <<\_ACEOF
20473#define NEED_DEV_ZERO_FOR_MMAP 1
20474_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020475
20476fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020477
Reid Spencer30fe5262007-01-20 07:48:49 +000020478 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20479 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020480 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20481echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020482 fi
20483 if test "$ac_cv_func_mmap_file" = "no"
20484 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020485 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20486echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020487 fi
John Criswellb13092b2003-07-22 21:00:24 +000020488fi
John Criswell7a73b802003-06-30 21:59:07 +000020489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020490{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20491echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020492ac_ext=cpp
20493ac_cpp='$CXXCPP $CPPFLAGS'
20494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020498cat >conftest.$ac_ext <<_ACEOF
20499/* confdefs.h. */
20500_ACEOF
20501cat confdefs.h >>conftest.$ac_ext
20502cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020503/* end confdefs.h. */
20504int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020505 volatile unsigned long val = 1;
20506 __sync_synchronize();
20507 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020508 __sync_add_and_fetch(&val, 1);
20509 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020510 return 0;
20511 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020512
20513_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020514rm -f conftest.$ac_objext conftest$ac_exeext
20515if { (ac_try="$ac_link"
20516case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519esac
20520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_link") 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20529 { (case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20532esac
20533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_try") 2>&5
20535 ac_status=$?
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; } &&
20538 { ac_try='test -s conftest$ac_exeext'
20539 { (case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542esac
20543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_try") 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020548 ac_ext=c
20549ac_cpp='$CPP $CPPFLAGS'
20550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20552ac_compiler_gnu=$ac_cv_c_compiler_gnu
20553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020554 { echo "$as_me:$LINENO: result: yes" >&5
20555echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020557cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020558#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020559_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020560
Owen Andersond4b272b2009-05-18 23:58:51 +000020561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020562 echo "$as_me: failed program was:" >&5
20563sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020565 { echo "$as_me:$LINENO: result: no" >&5
20566echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020569#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020570_ACEOF
20571
20572 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20573echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020575
Owen Andersond4b272b2009-05-18 23:58:51 +000020576rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020577 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020578
John Criswell7a73b802003-06-30 21:59:07 +000020579
Nick Lewycky4372e692009-09-29 06:18:23 +000020580if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020581 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20582echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20583if test "${llvm_cv_linux_mixed+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020585else
20586 ac_ext=c
20587ac_cpp='$CPP $CPPFLAGS'
20588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590ac_compiler_gnu=$ac_cv_c_compiler_gnu
20591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592 cat >conftest.$ac_ext <<_ACEOF
20593/* confdefs.h. */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020597/* end confdefs.h. */
20598#ifndef __x86_64__
20599 error: Not x86-64 even if uname says so!
20600 #endif
20601
20602int
20603main ()
20604{
20605
20606 ;
20607 return 0;
20608}
20609_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020610rm -f conftest.$ac_objext
20611if { (ac_try="$ac_compile"
20612case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20615esac
20616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_compile") 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628esac
20629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_try") 2>&5
20631 ac_status=$?
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; } &&
20634 { ac_try='test -s conftest.$ac_objext'
20635 { (case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20638esac
20639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_try") 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020644 llvm_cv_linux_mixed=no
20645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020646 echo "$as_me: failed program was:" >&5
20647sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020651
Nick Lewycky4372e692009-09-29 06:18:23 +000020652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653 ac_ext=c
20654ac_cpp='$CPP $CPPFLAGS'
20655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657ac_compiler_gnu=$ac_cv_c_compiler_gnu
20658
20659
20660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020661{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20662echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020663
20664 if test "$llvm_cv_linux_mixed" = "yes"; then
20665 llvm_cv_target_arch="x86"
20666 ARCH="x86"
20667 fi
20668fi
20669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020670
Reid Spencer9372f152007-07-30 20:13:24 +000020671for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020672do
20673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20678else
20679 cat >conftest.$ac_ext <<_ACEOF
20680/* confdefs.h. */
20681_ACEOF
20682cat confdefs.h >>conftest.$ac_ext
20683cat >>conftest.$ac_ext <<_ACEOF
20684/* end confdefs.h. */
20685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20687#define $ac_func innocuous_$ac_func
20688
20689/* System header to define __stub macros and hopefully few prototypes,
20690 which can conflict with char $ac_func (); below.
20691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20692 <limits.h> exists even on freestanding compilers. */
20693
20694#ifdef __STDC__
20695# include <limits.h>
20696#else
20697# include <assert.h>
20698#endif
20699
20700#undef $ac_func
20701
20702/* Override any GCC internal prototype to avoid an error.
20703 Use char because int might match the return type of a GCC
20704 builtin and then its argument prototype would still apply. */
20705#ifdef __cplusplus
20706extern "C"
20707#endif
20708char $ac_func ();
20709/* The GNU C library defines this for functions which it implements
20710 to always fail with ENOSYS. Some functions are actually named
20711 something starting with __ and the normal name is an alias. */
20712#if defined __stub_$ac_func || defined __stub___$ac_func
20713choke me
20714#endif
20715
20716int
20717main ()
20718{
20719return $ac_func ();
20720 ;
20721 return 0;
20722}
20723_ACEOF
20724rm -f conftest.$ac_objext conftest$ac_exeext
20725if { (ac_try="$ac_link"
20726case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20729esac
20730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_link") 2>conftest.er1
20732 ac_status=$?
20733 grep -v '^ *+' conftest.er1 >conftest.err
20734 rm -f conftest.er1
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20739 { (case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742esac
20743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_try") 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; } &&
20748 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20758 eval "$as_ac_var=yes"
20759else
20760 echo "$as_me: failed program was:" >&5
20761sed 's/^/| /' conftest.$ac_ext >&5
20762
20763 eval "$as_ac_var=no"
20764fi
20765
20766rm -f core conftest.err conftest.$ac_objext \
20767 conftest$ac_exeext conftest.$ac_ext
20768fi
20769ac_res=`eval echo '${'$as_ac_var'}'`
20770 { echo "$as_me:$LINENO: result: $ac_res" >&5
20771echo "${ECHO_T}$ac_res" >&6; }
20772if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020773 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020775_ACEOF
20776
20777fi
20778done
20779
20780
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020781SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020782
20783
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020784SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20785
20786
Reid Spencere9de0912004-08-20 09:03:57 +000020787# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020788# information into substitutions that will end up in Makefile.config.in
20789# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020790if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020791 prefix="/usr/local"
20792fi
Reid Spencere9de0912004-08-20 09:03:57 +000020793eval LLVM_PREFIX="${prefix}";
20794eval LLVM_BINDIR="${prefix}/bin";
20795eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020796eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020797eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020798eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020799eval LLVM_INCLUDEDIR="${prefix}/include";
20800eval LLVM_INFODIR="${prefix}/info";
20801eval LLVM_MANDIR="${prefix}/man";
20802LLVM_CONFIGTIME=`date`
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020814# Place the various directores into the config.h file as #defines so that we
20815# can know about the installation paths within LLVM.
20816
Reid Spencere9de0912004-08-20 09:03:57 +000020817cat >>confdefs.h <<_ACEOF
20818#define LLVM_PREFIX "$LLVM_PREFIX"
20819_ACEOF
20820
20821
20822cat >>confdefs.h <<_ACEOF
20823#define LLVM_BINDIR "$LLVM_BINDIR"
20824_ACEOF
20825
20826
20827cat >>confdefs.h <<_ACEOF
20828#define LLVM_LIBDIR "$LLVM_LIBDIR"
20829_ACEOF
20830
20831
20832cat >>confdefs.h <<_ACEOF
20833#define LLVM_DATADIR "$LLVM_DATADIR"
20834_ACEOF
20835
20836
20837cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020838#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020839_ACEOF
20840
20841
20842cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020843#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020844_ACEOF
20845
20846
20847cat >>confdefs.h <<_ACEOF
20848#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20849_ACEOF
20850
20851
20852cat >>confdefs.h <<_ACEOF
20853#define LLVM_INFODIR "$LLVM_INFODIR"
20854_ACEOF
20855
20856
20857cat >>confdefs.h <<_ACEOF
20858#define LLVM_MANDIR "$LLVM_MANDIR"
20859_ACEOF
20860
20861
20862cat >>confdefs.h <<_ACEOF
20863#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20864_ACEOF
20865
20866
Eric Christopher790e11c2007-12-01 00:34:39 +000020867cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020868#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020869_ACEOF
20870
20871
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020872# Determine which bindings to build.
20873if test "$BINDINGS_TO_BUILD" = auto ; then
20874 BINDINGS_TO_BUILD=""
20875 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20876 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20877 fi
20878fi
20879BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20880
20881
20882# This isn't really configurey, but it avoids having to repeat the list in
20883# other files.
20884ALL_BINDINGS=ocaml
20885
20886
Gordon Henriksenf0915682007-10-02 16:42:22 +000020887# Do any work necessary to ensure that bindings have what they need.
20888binding_prereqs_failed=0
20889for a_binding in $BINDINGS_TO_BUILD ; do
20890 case "$a_binding" in
20891 ocaml)
20892 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020893 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20894echo "$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 +000020895 binding_prereqs_failed=1
20896 fi
20897 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20899echo "$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 +000020900 binding_prereqs_failed=1
20901 fi
20902 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020903 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20904echo "$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 +000020905 fi
20906 if test "x$with_ocaml_libdir" != xauto ; then
20907 OCAML_LIBDIR=$with_ocaml_libdir
20908
20909 else
20910 ocaml_stdlib="`"$OCAMLC" -where`"
20911 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20912 then
20913 # ocaml stdlib is beneath our prefix; use stdlib
20914 OCAML_LIBDIR=$ocaml_stdlib
20915
20916 else
20917 # ocaml stdlib is outside our prefix; use libdir/ocaml
20918 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20919
20920 fi
20921 fi
20922 ;;
20923 esac
20924done
20925if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020926 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20927echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20928 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020929fi
20930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020931{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20932echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20933if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020935else
20936 ac_ext=cpp
20937ac_cpp='$CXXCPP $CPPFLAGS'
20938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20941
20942 oldcxxflags="$CXXFLAGS"
20943 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020944 cat >conftest.$ac_ext <<_ACEOF
20945/* confdefs.h. */
20946_ACEOF
20947cat confdefs.h >>conftest.$ac_ext
20948cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020949/* end confdefs.h. */
20950
20951int
20952main ()
20953{
20954
20955 ;
20956 return 0;
20957}
20958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020959rm -f conftest.$ac_objext
20960if { (ac_try="$ac_compile"
20961case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20964esac
20965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20967 ac_status=$?
20968 grep -v '^ *+' conftest.er1 >conftest.err
20969 rm -f conftest.er1
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977esac
20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; } &&
20983 { ac_try='test -s conftest.$ac_objext'
20984 { (case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987esac
20988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_try") 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020993 llvm_cv_cxx_visibility_inlines_hidden=yes
20994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995 echo "$as_me: failed program was:" >&5
20996sed 's/^/| /' conftest.$ac_ext >&5
20997
20998 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021000
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 CXXFLAGS="$oldcxxflags"
21003 ac_ext=c
21004ac_cpp='$CPP $CPPFLAGS'
21005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007ac_compiler_gnu=$ac_cv_c_compiler_gnu
21008
21009
21010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021011{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21012echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021013if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21014 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21015
21016else
21017 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21018
21019fi
21020
Gordon Henriksenf0915682007-10-02 16:42:22 +000021021
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021022if test "$llvm_cv_link_use_r" = "yes" ; then
21023 RPATH="-Wl,-R"
21024else
21025 RPATH="-Wl,-rpath"
21026fi
21027
21028
21029if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21030 RDYNAMIC="-Wl,-export-dynamic"
21031else
21032 RDYNAMIC=""
21033fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021034
21035
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021036
Eric Christophera1cba682010-08-08 02:44:25 +000021037ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021038
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021039
21040
21041
21042
21043
Douglas Gregor1555a232009-06-16 20:12:29 +000021044ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21045
21046ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21047
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021048ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21049
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021050ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21051
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021052ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021053
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021054
Reid Spencera773bd52006-08-04 18:18:08 +000021055ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021056
Eric Christopher360fa9a2011-10-26 00:42:12 +000021057
Reid Spencerea949cf2006-08-16 00:45:38 +000021058ac_config_files="$ac_config_files llvm.spec"
21059
21060
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021061ac_config_files="$ac_config_files docs/doxygen.cfg"
21062
21063if test -f ${srcdir}/tools/clang/README.txt; then
21064 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21065
21066fi
21067
Daniel Dunbar1ad92132011-11-10 19:59:35 +000021068ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021069
Eric Christopher360fa9a2011-10-26 00:42:12 +000021070
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021071ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021072
Eric Christopher360fa9a2011-10-26 00:42:12 +000021073
Reid Spencera773bd52006-08-04 18:18:08 +000021074ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021075
Reid Spencera773bd52006-08-04 18:18:08 +000021076ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021077
21078
Reid Spencera773bd52006-08-04 18:18:08 +000021079ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021080
21081
Reid Spencera773bd52006-08-04 18:18:08 +000021082ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021083
21084
Reid Spencera773bd52006-08-04 18:18:08 +000021085ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021086
21087
Reid Spencer8b2e1412006-11-17 03:32:33 +000021088ac_config_commands="$ac_config_commands runtime/Makefile"
21089
21090
Reid Spencera773bd52006-08-04 18:18:08 +000021091ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021092
21093
Reid Spencera773bd52006-08-04 18:18:08 +000021094ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021095
21096
Bill Wendlingf24eb392009-01-04 23:12:30 +000021097ac_config_commands="$ac_config_commands unittests/Makefile"
21098
21099
Reid Spencera773bd52006-08-04 18:18:08 +000021100ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021101
21102
Reid Spencera773bd52006-08-04 18:18:08 +000021103ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021104
21105
Reid Spencera773bd52006-08-04 18:18:08 +000021106ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021107
21108
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021109ac_config_commands="$ac_config_commands bindings/Makefile"
21110
21111
21112ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21113
21114
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021115
John Criswell7a73b802003-06-30 21:59:07 +000021116cat >confcache <<\_ACEOF
21117# This file is a shell script that caches the results of configure
21118# tests run on this system so they can be shared between configure
21119# scripts and configure runs, see configure's option --config-cache.
21120# It is not useful on other systems. If it contains results you don't
21121# want to keep, you may remove or edit it.
21122#
21123# config.status only pays attention to the cache file if you give it
21124# the --recheck option to rerun configure.
21125#
John Criswell0c38eaf2003-09-10 15:17:25 +000021126# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021127# loading this file, other *unset* `ac_cv_foo' will be assigned the
21128# following values.
21129
21130_ACEOF
21131
21132# The following way of writing the cache mishandles newlines in values,
21133# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021134# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021135# Ultrix sh set writes to stderr and can't be redirected directly,
21136# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021137(
21138 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21139 eval ac_val=\$$ac_var
21140 case $ac_val in #(
21141 *${as_nl}*)
21142 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021143 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21144echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021145 esac
21146 case $ac_var in #(
21147 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021149 esac ;;
21150 esac
21151 done
21152
John Criswell7a73b802003-06-30 21:59:07 +000021153 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021154 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21155 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021156 # `set' does not quote correctly, so add quotes (double-quote
21157 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021158 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021159 "s/'/'\\\\''/g;
21160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021161 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021162 *)
21163 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021165 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021166 esac |
21167 sort
21168) |
John Criswell7a73b802003-06-30 21:59:07 +000021169 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021170 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021171 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021172 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21174 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21176 :end' >>confcache
21177if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21178 if test -w "$cache_file"; then
21179 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021180 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21181echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021182 cat confcache >$cache_file
21183 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21185echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021186 fi
21187fi
21188rm -f confcache
21189
21190test "x$prefix" = xNONE && prefix=$ac_default_prefix
21191# Let make expand exec_prefix.
21192test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21193
John Criswell7a73b802003-06-30 21:59:07 +000021194DEFS=-DHAVE_CONFIG_H
21195
John Criswell0c38eaf2003-09-10 15:17:25 +000021196ac_libobjs=
21197ac_ltlibobjs=
21198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21199 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021201 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21203 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021204 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21205 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021206done
21207LIBOBJS=$ac_libobjs
21208
21209LTLIBOBJS=$ac_ltlibobjs
21210
21211
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021212if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21214Usually this means the macro was only invoked conditionally." >&5
21215echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21216Usually this means the macro was only invoked conditionally." >&2;}
21217 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021218fi
21219if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021220 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21221Usually this means the macro was only invoked conditionally." >&5
21222echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21223Usually this means the macro was only invoked conditionally." >&2;}
21224 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021225fi
John Criswell7a73b802003-06-30 21:59:07 +000021226
21227: ${CONFIG_STATUS=./config.status}
21228ac_clean_files_save=$ac_clean_files
21229ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021230{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21231echo "$as_me: creating $CONFIG_STATUS" >&6;}
21232cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021233#! $SHELL
21234# Generated by $as_me.
21235# Run this file to recreate the current configuration.
21236# Compiler output produced by configure, useful for debugging
21237# configure, is in config.log if it exists.
21238
21239debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021240ac_cs_recheck=false
21241ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021242SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021243_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021245cat >>$CONFIG_STATUS <<\_ACEOF
21246## --------------------- ##
21247## M4sh Initialization. ##
21248## --------------------- ##
21249
21250# Be Bourne compatible
21251if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021252 emulate sh
21253 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021254 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021255 # is contrary to our usage. Disable this feature.
21256 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021257 setopt NO_GLOB_SUBST
21258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021259 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021261BIN_SH=xpg4; export BIN_SH # for Tru64
21262DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021263
John Criswell7a73b802003-06-30 21:59:07 +000021264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265# PATH needs CR
21266# Avoid depending upon Character Ranges.
21267as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21268as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21269as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21270as_cr_digits='0123456789'
21271as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021272
21273# The user is always right.
21274if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021275 echo "#! /bin/sh" >conf$$.sh
21276 echo "exit 0" >>conf$$.sh
21277 chmod +x conf$$.sh
21278 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21279 PATH_SEPARATOR=';'
21280 else
21281 PATH_SEPARATOR=:
21282 fi
21283 rm -f conf$$.sh
21284fi
21285
21286# Support unset when possible.
21287if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21288 as_unset=unset
21289else
21290 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021291fi
John Criswell7a73b802003-06-30 21:59:07 +000021292
Reid Spencera773bd52006-08-04 18:18:08 +000021293
21294# IFS
21295# We need space, tab and new line, in precisely that order. Quoting is
21296# there to prevent editors from complaining about space-tab.
21297# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21298# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021299as_nl='
21300'
Reid Spencera773bd52006-08-04 18:18:08 +000021301IFS=" "" $as_nl"
21302
21303# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021304case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021305 *[\\/]* ) as_myself=$0 ;;
21306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021307for as_dir in $PATH
21308do
21309 IFS=$as_save_IFS
21310 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21312done
Reid Spencera773bd52006-08-04 18:18:08 +000021313IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021314
Reid Spencera773bd52006-08-04 18:18:08 +000021315 ;;
21316esac
21317# We did not find ourselves, most probably we were run as `sh COMMAND'
21318# in which case we are not to be found in the path.
21319if test "x$as_myself" = x; then
21320 as_myself=$0
21321fi
21322if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021323 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21324 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021325fi
21326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021327# Work around bugs in pre-3.0 UWIN ksh.
21328for as_var in ENV MAIL MAILPATH
21329do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021330done
21331PS1='$ '
21332PS2='> '
21333PS4='+ '
21334
21335# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021336for as_var in \
21337 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21338 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21339 LC_TELEPHONE LC_TIME
21340do
21341 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21342 eval $as_var=C; export $as_var
21343 else
21344 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021345 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021346done
Torok Edwin871384f2010-01-26 08:50:50 +000021347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021348# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021349if expr a : '\(a\)' >/dev/null 2>&1 &&
21350 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21351 as_expr=expr
21352else
21353 as_expr=false
21354fi
21355
21356if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21357 as_basename=basename
21358else
21359 as_basename=false
21360fi
21361
21362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021363# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021364as_me=`$as_basename -- "$0" ||
21365$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21366 X"$0" : 'X\(//\)$' \| \
21367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021368echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021369 sed '/^.*\/\([^/][^/]*\)\/*$/{
21370 s//\1/
21371 q
21372 }
21373 /^X\/\(\/\/\)$/{
21374 s//\1/
21375 q
21376 }
21377 /^X\/\(\/\).*/{
21378 s//\1/
21379 q
21380 }
21381 s/.*/./; q'`
21382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383# CDPATH.
21384$as_unset CDPATH
21385
21386
21387
21388 as_lineno_1=$LINENO
21389 as_lineno_2=$LINENO
21390 test "x$as_lineno_1" != "x$as_lineno_2" &&
21391 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21392
21393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21394 # uniformly replaced by the line number. The first 'sed' inserts a
21395 # line-number line after each line using $LINENO; the second 'sed'
21396 # does the real work. The second script uses 'N' to pair each
21397 # line-number line with the line containing $LINENO, and appends
21398 # trailing '-' during substitution so that $LINENO is not a special
21399 # case at line end.
21400 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21401 # scripts with optimization help from Paolo Bonzini. Blame Lee
21402 # E. McMahon (1931-1989) for sed's syntax. :-)
21403 sed -n '
21404 p
21405 /[$]LINENO/=
21406 ' <$as_myself |
21407 sed '
21408 s/[$]LINENO.*/&-/
21409 t lineno
21410 b
21411 :lineno
21412 N
21413 :loop
21414 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21415 t loop
21416 s/-\n.*//
21417 ' >$as_me.lineno &&
21418 chmod +x "$as_me.lineno" ||
21419 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21420 { (exit 1); exit 1; }; }
21421
21422 # Don't try to exec as it changes $[0], causing all sort of problems
21423 # (the dirname of $[0] is not the place where we might find the
21424 # original and so on. Autoconf is especially sensitive to this).
21425 . "./$as_me.lineno"
21426 # Exit status is that of the last command.
21427 exit
21428}
21429
21430
21431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21432 as_dirname=dirname
21433else
21434 as_dirname=false
21435fi
Reid Spencera773bd52006-08-04 18:18:08 +000021436
21437ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021438case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021439-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021440 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021441 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021442 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021443 esac;;
21444*)
21445 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021446esac
21447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021448if expr a : '\(a\)' >/dev/null 2>&1 &&
21449 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21450 as_expr=expr
21451else
21452 as_expr=false
21453fi
21454
John Criswell7a73b802003-06-30 21:59:07 +000021455rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021456if test -d conf$$.dir; then
21457 rm -f conf$$.dir/conf$$.file
21458else
21459 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021460 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021462echo >conf$$.file
21463if ln -s conf$$.file conf$$ 2>/dev/null; then
21464 as_ln_s='ln -s'
21465 # ... but there are two gotchas:
21466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21468 # In both cases, we have to default to `cp -p'.
21469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021470 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021471elif ln conf$$.file conf$$ 2>/dev/null; then
21472 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021473else
21474 as_ln_s='cp -p'
21475fi
Reid Spencera773bd52006-08-04 18:18:08 +000021476rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21477rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021478
John Criswell0c38eaf2003-09-10 15:17:25 +000021479if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021480 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021481else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021482 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021483 as_mkdir_p=false
21484fi
21485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021486# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21487# systems may use methods other than mode bits to determine executability.
21488cat >conf$$.file <<_ASEOF
21489#! /bin/sh
21490exit 0
21491_ASEOF
21492chmod +x conf$$.file
21493if test -x conf$$.file >/dev/null 2>&1; then
21494 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021496 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021497fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021498rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021499
21500# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021501as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021502
21503# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021504as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021505
21506
John Criswell7a73b802003-06-30 21:59:07 +000021507exec 6>&1
21508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021509# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021510# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021511# values after options handling.
21512ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021513This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021515
21516 CONFIG_FILES = $CONFIG_FILES
21517 CONFIG_HEADERS = $CONFIG_HEADERS
21518 CONFIG_LINKS = $CONFIG_LINKS
21519 CONFIG_COMMANDS = $CONFIG_COMMANDS
21520 $ $0 $@
21521
Reid Spencera773bd52006-08-04 18:18:08 +000021522on `(hostname || uname -n) 2>/dev/null | sed 1q`
21523"
21524
John Criswell7a73b802003-06-30 21:59:07 +000021525_ACEOF
21526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021528# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021529config_files="$ac_config_files"
21530config_headers="$ac_config_headers"
21531config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021532
Reid Spencera773bd52006-08-04 18:18:08 +000021533_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021536ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021537\`$as_me' instantiates files from templates according to the
21538current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021541
21542 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021543 -V, --version print version number, then exit
21544 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021545 -d, --debug don't remove temporary files
21546 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547 --file=FILE[:TEMPLATE]
21548 instantiate the configuration file FILE
21549 --header=FILE[:TEMPLATE]
21550 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021551
21552Configuration files:
21553$config_files
21554
21555Configuration headers:
21556$config_headers
21557
John Criswellc764fbc2003-09-06 15:17:13 +000021558Configuration commands:
21559$config_commands
21560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021561Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021562
Reid Spencera773bd52006-08-04 18:18:08 +000021563_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021565ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021566llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021567configured by $0, generated by GNU Autoconf 2.60,
21568 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021570Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021571This config.status script is free software; the Free Software Foundation
21572gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021573
21574ac_pwd='$ac_pwd'
21575srcdir='$srcdir'
21576INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021577_ACEOF
21578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021579cat >>$CONFIG_STATUS <<\_ACEOF
21580# If no file are specified by the user, then we need to provide default
21581# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021582ac_need_defaults=:
21583while test $# != 0
21584do
21585 case $1 in
21586 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021587 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21588 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021589 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021590 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021591 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021592 ac_option=$1
21593 ac_optarg=$2
21594 ac_shift=shift
21595 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021596 esac
21597
John Criswell0c38eaf2003-09-10 15:17:25 +000021598 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021599 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21601 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021602 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021603 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021604 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021605 debug=: ;;
21606 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021607 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021609 ac_need_defaults=false;;
21610 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021611 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021613 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021614 --he | --h)
21615 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616 { echo "$as_me: error: ambiguous option: $1
21617Try \`$0 --help' for more information." >&2
21618 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021619 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21623 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021624
21625 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021626 -*) { echo "$as_me: error: unrecognized option: $1
21627Try \`$0 --help' for more information." >&2
21628 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021631 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021632
21633 esac
21634 shift
21635done
21636
John Criswell0c38eaf2003-09-10 15:17:25 +000021637ac_configure_extra_args=
21638
21639if $ac_cs_silent; then
21640 exec 6>/dev/null
21641 ac_configure_extra_args="$ac_configure_extra_args --silent"
21642fi
21643
21644_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021645cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021646if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21648 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021649 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021651fi
21652
John Criswell7a73b802003-06-30 21:59:07 +000021653_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021654cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021655exec 5>>config.log
21656{
21657 echo
21658 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21659## Running $as_me. ##
21660_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021661 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021662} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021663
Reid Spencera773bd52006-08-04 18:18:08 +000021664_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021665cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021666#
Reid Spencera773bd52006-08-04 18:18:08 +000021667# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021668#
Reid Spencerc0682832005-02-24 19:05:19 +000021669llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021670
21671_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021673cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021674
21675# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021676for ac_config_target in $ac_config_targets
21677do
Reid Spencera773bd52006-08-04 18:18:08 +000021678 case $ac_config_target in
21679 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021680 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021681 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21682 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021683 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021684 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021685 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021686 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021687 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021688 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21689 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021690 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021691 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021692 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21693 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21694 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21695 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21696 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021697 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021698 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21699 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021700 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021701 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21702 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21703 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021704 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21705 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021707 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21708echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21709 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021710 esac
21711done
21712
Reid Spencera773bd52006-08-04 18:18:08 +000021713
John Criswell7a73b802003-06-30 21:59:07 +000021714# If the user did not use the arguments to specify the items to instantiate,
21715# then the envvar interface is used. Set only those that are not.
21716# We use the long form for the default assignment because of an extremely
21717# bizarre bug on SunOS 4.1.3.
21718if $ac_need_defaults; then
21719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021722fi
21723
John Criswell0c38eaf2003-09-10 15:17:25 +000021724# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021725# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021726# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021727# Hook for its removal unless debugging.
21728# Note that there is a small window in which the directory will not be cleaned:
21729# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021730$debug ||
21731{
Reid Spencera773bd52006-08-04 18:18:08 +000021732 tmp=
21733 trap 'exit_status=$?
21734 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21735' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021736 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021737}
John Criswell7a73b802003-06-30 21:59:07 +000021738# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021739
John Criswell7a73b802003-06-30 21:59:07 +000021740{
Reid Spencera773bd52006-08-04 18:18:08 +000021741 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021742 test -n "$tmp" && test -d "$tmp"
21743} ||
21744{
Reid Spencera773bd52006-08-04 18:18:08 +000021745 tmp=./conf$$-$RANDOM
21746 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021747} ||
21748{
21749 echo "$me: cannot create a temporary directory in ." >&2
21750 { (exit 1); exit 1; }
21751}
John Criswell7a73b802003-06-30 21:59:07 +000021752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021753#
21754# Set up the sed scripts for CONFIG_FILES section.
21755#
21756
21757# No need to generate the scripts if there are no CONFIG_FILES.
21758# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021759if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021760
21761_ACEOF
21762
Reid Spencera773bd52006-08-04 18:18:08 +000021763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021764
Reid Spencera773bd52006-08-04 18:18:08 +000021765ac_delim='%!_!# '
21766for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021767 cat >conf$$subs.sed <<_ACEOF
21768SHELL!$SHELL$ac_delim
21769PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21770PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21771PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21772PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21773PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21774PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21775exec_prefix!$exec_prefix$ac_delim
21776prefix!$prefix$ac_delim
21777program_transform_name!$program_transform_name$ac_delim
21778bindir!$bindir$ac_delim
21779sbindir!$sbindir$ac_delim
21780libexecdir!$libexecdir$ac_delim
21781datarootdir!$datarootdir$ac_delim
21782datadir!$datadir$ac_delim
21783sysconfdir!$sysconfdir$ac_delim
21784sharedstatedir!$sharedstatedir$ac_delim
21785localstatedir!$localstatedir$ac_delim
21786includedir!$includedir$ac_delim
21787oldincludedir!$oldincludedir$ac_delim
21788docdir!$docdir$ac_delim
21789infodir!$infodir$ac_delim
21790htmldir!$htmldir$ac_delim
21791dvidir!$dvidir$ac_delim
21792pdfdir!$pdfdir$ac_delim
21793psdir!$psdir$ac_delim
21794libdir!$libdir$ac_delim
21795localedir!$localedir$ac_delim
21796mandir!$mandir$ac_delim
21797DEFS!$DEFS$ac_delim
21798ECHO_C!$ECHO_C$ac_delim
21799ECHO_N!$ECHO_N$ac_delim
21800ECHO_T!$ECHO_T$ac_delim
21801LIBS!$LIBS$ac_delim
21802build_alias!$build_alias$ac_delim
21803host_alias!$host_alias$ac_delim
21804target_alias!$target_alias$ac_delim
21805LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021806CC!$CC$ac_delim
21807CFLAGS!$CFLAGS$ac_delim
21808LDFLAGS!$LDFLAGS$ac_delim
21809CPPFLAGS!$CPPFLAGS$ac_delim
21810ac_ct_CC!$ac_ct_CC$ac_delim
21811EXEEXT!$EXEEXT$ac_delim
21812OBJEXT!$OBJEXT$ac_delim
21813CXX!$CXX$ac_delim
21814CXXFLAGS!$CXXFLAGS$ac_delim
21815ac_ct_CXX!$ac_ct_CXX$ac_delim
21816CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021817subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021818ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21819LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820build!$build$ac_delim
21821build_cpu!$build_cpu$ac_delim
21822build_vendor!$build_vendor$ac_delim
21823build_os!$build_os$ac_delim
21824host!$host$ac_delim
21825host_cpu!$host_cpu$ac_delim
21826host_vendor!$host_vendor$ac_delim
21827host_os!$host_os$ac_delim
21828target!$target$ac_delim
21829target_cpu!$target_cpu$ac_delim
21830target_vendor!$target_vendor$ac_delim
21831target_os!$target_os$ac_delim
21832OS!$OS$ac_delim
21833HOST_OS!$HOST_OS$ac_delim
21834TARGET_OS!$TARGET_OS$ac_delim
21835LINKALL!$LINKALL$ac_delim
21836NOLINKALL!$NOLINKALL$ac_delim
21837LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21838LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21839ARCH!$ARCH$ac_delim
21840ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841GREP!$GREP$ac_delim
21842EGREP!$EGREP$ac_delim
21843LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21844BUILD_CC!$BUILD_CC$ac_delim
21845BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21846BUILD_CXX!$BUILD_CXX$ac_delim
21847CVSBUILD!$CVSBUILD$ac_delim
21848ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21849ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21850DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21851ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21852EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21853DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21854DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21855JIT!$JIT$ac_delim
21856TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021857ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021858ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21859ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021860ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021861ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021862ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021863ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021864ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021865_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021867 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021868 break
21869 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21871echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21872 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021873 else
21874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021875 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021876done
21877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21879if test -n "$ac_eof"; then
21880 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21881 ac_eof=`expr $ac_eof + 1`
21882fi
21883
21884cat >>$CONFIG_STATUS <<_ACEOF
21885cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21886/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021887_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021888sed '
21889s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21890s/^/s,@/; s/!/@,|#_!!_#|/
21891:n
21892t n
21893s/'"$ac_delim"'$/,g/; t
21894s/$/\\/; p
21895N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21896' >>$CONFIG_STATUS <conf$$subs.sed
21897rm -f conf$$subs.sed
21898cat >>$CONFIG_STATUS <<_ACEOF
21899CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021900_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021901
21902
21903ac_delim='%!_!# '
21904for ac_last_try in false false false false false :; do
21905 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000021906TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21907LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21908LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021909LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021910LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021911ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021912OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021913EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021914EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021915CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021916BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021917NM!$NM$ac_delim
21918ifGNUmake!$ifGNUmake$ac_delim
21919LN_S!$LN_S$ac_delim
21920CMP!$CMP$ac_delim
21921CP!$CP$ac_delim
21922DATE!$DATE$ac_delim
21923FIND!$FIND$ac_delim
21924MKDIR!$MKDIR$ac_delim
21925MV!$MV$ac_delim
21926RANLIB!$RANLIB$ac_delim
21927AR!$AR$ac_delim
21928RM!$RM$ac_delim
21929SED!$SED$ac_delim
21930TAR!$TAR$ac_delim
21931BINPWD!$BINPWD$ac_delim
21932GRAPHVIZ!$GRAPHVIZ$ac_delim
21933DOT!$DOT$ac_delim
21934FDP!$FDP$ac_delim
21935NEATO!$NEATO$ac_delim
21936TWOPI!$TWOPI$ac_delim
21937CIRCO!$CIRCO$ac_delim
21938GV!$GV$ac_delim
21939DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021940XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021941PERL!$PERL$ac_delim
21942HAVE_PERL!$HAVE_PERL$ac_delim
21943INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21944INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21945INSTALL_DATA!$INSTALL_DATA$ac_delim
21946BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021947CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021948DOXYGEN!$DOXYGEN$ac_delim
21949GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021950GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951POD2HTML!$POD2HTML$ac_delim
21952POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021953PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021954RUNTEST!$RUNTEST$ac_delim
21955TCLSH!$TCLSH$ac_delim
21956ZIP!$ZIP$ac_delim
21957OCAMLC!$OCAMLC$ac_delim
21958OCAMLOPT!$OCAMLOPT$ac_delim
21959OCAMLDEP!$OCAMLDEP$ac_delim
21960OCAMLDOC!$OCAMLDOC$ac_delim
21961GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021962HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21964INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21965CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21966CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21967LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021968NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21969NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21970USE_UDIS86!$USE_UDIS86$ac_delim
21971USE_OPROFILE!$USE_OPROFILE$ac_delim
21972HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21973HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21974MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021976SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021977LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21978LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21979LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21980LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21981LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21982LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21983LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21984LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21985LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21986LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21987BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21988ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000021989OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21990ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21991RPATH!$RPATH$ac_delim
21992RDYNAMIC!$RDYNAMIC$ac_delim
21993LIBOBJS!$LIBOBJS$ac_delim
21994LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021995_ACEOF
21996
Charles Davis13460c92011-10-26 02:28:32 +000021997 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021998 break
21999 elif $ac_last_try; then
22000 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22001echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22002 { (exit 1); exit 1; }; }
22003 else
22004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22005 fi
22006done
22007
22008ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22009if test -n "$ac_eof"; then
22010 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22011 ac_eof=`expr $ac_eof + 1`
22012fi
22013
22014cat >>$CONFIG_STATUS <<_ACEOF
22015cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022016/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22017_ACEOF
22018sed '
22019s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22020s/^/s,@/; s/!/@,|#_!!_#|/
22021:n
22022t n
22023s/'"$ac_delim"'$/,g/; t
22024s/$/\\/; p
22025N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22026' >>$CONFIG_STATUS <conf$$subs.sed
22027rm -f conf$$subs.sed
22028cat >>$CONFIG_STATUS <<_ACEOF
22029:end
22030s/|#_!!_#|//g
22031CEOF$ac_eof
22032_ACEOF
22033
22034
Reid Spencera773bd52006-08-04 18:18:08 +000022035# VPATH may cause trouble with some makes, so we remove $(srcdir),
22036# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22037# trailing colons and then remove the whole line if VPATH becomes empty
22038# (actually we leave an empty line to preserve line numbers).
22039if test "x$srcdir" = x.; then
22040 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22041s/:*\$(srcdir):*/:/
22042s/:*\${srcdir}:*/:/
22043s/:*@srcdir@:*/:/
22044s/^\([^=]*=[ ]*\):*/\1/
22045s/:*$//
22046s/^[^=]*=[ ]*$//
22047}'
22048fi
22049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022050cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022051fi # test -n "$CONFIG_FILES"
22052
Reid Spencera773bd52006-08-04 18:18:08 +000022053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022054for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022055do
22056 case $ac_tag in
22057 :[FHLC]) ac_mode=$ac_tag; continue;;
22058 esac
22059 case $ac_mode$ac_tag in
22060 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022061 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22062echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22063 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022064 :[FH]-) ac_tag=-:-;;
22065 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22066 esac
22067 ac_save_IFS=$IFS
22068 IFS=:
22069 set x $ac_tag
22070 IFS=$ac_save_IFS
22071 shift
22072 ac_file=$1
22073 shift
22074
22075 case $ac_mode in
22076 :L) ac_source=$1;;
22077 :[FH])
22078 ac_file_inputs=
22079 for ac_f
22080 do
22081 case $ac_f in
22082 -) ac_f="$tmp/stdin";;
22083 *) # Look for the file first in the build tree, then in the source tree
22084 # (if the path is not absolute). The absolute path cannot be DOS-style,
22085 # because $ac_f cannot contain `:'.
22086 test -f "$ac_f" ||
22087 case $ac_f in
22088 [\\/$]*) false;;
22089 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22090 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022091 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22092echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22093 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022094 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022095 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022096 done
22097
22098 # Let's still pretend it is `configure' which instantiates (i.e., don't
22099 # use $as_me), people would be surprised to read:
22100 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022101 configure_input="Generated from "`IFS=:
22102 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022103 if test x"$ac_file" != x-; then
22104 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022105 { echo "$as_me:$LINENO: creating $ac_file" >&5
22106echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022107 fi
22108
22109 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022110 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022111 esac
22112 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022113 esac
22114
Reid Spencera773bd52006-08-04 18:18:08 +000022115 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022116$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022117 X"$ac_file" : 'X\(//\)[^/]' \| \
22118 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022120echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22122 s//\1/
22123 q
22124 }
22125 /^X\(\/\/\)[^/].*/{
22126 s//\1/
22127 q
22128 }
22129 /^X\(\/\/\)$/{
22130 s//\1/
22131 q
22132 }
22133 /^X\(\/\).*/{
22134 s//\1/
22135 q
22136 }
22137 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022138 { as_dir="$ac_dir"
22139 case $as_dir in #(
22140 -*) as_dir=./$as_dir;;
22141 esac
22142 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22143 as_dirs=
22144 while :; do
22145 case $as_dir in #(
22146 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22147 *) as_qdir=$as_dir;;
22148 esac
22149 as_dirs="'$as_qdir' $as_dirs"
22150 as_dir=`$as_dirname -- "$as_dir" ||
22151$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22152 X"$as_dir" : 'X\(//\)[^/]' \| \
22153 X"$as_dir" : 'X\(//\)$' \| \
22154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22155echo X"$as_dir" |
22156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22157 s//\1/
22158 q
22159 }
22160 /^X\(\/\/\)[^/].*/{
22161 s//\1/
22162 q
22163 }
22164 /^X\(\/\/\)$/{
22165 s//\1/
22166 q
22167 }
22168 /^X\(\/\).*/{
22169 s//\1/
22170 q
22171 }
22172 s/.*/./; q'`
22173 test -d "$as_dir" && break
22174 done
22175 test -z "$as_dirs" || eval "mkdir $as_dirs"
22176 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22177echo "$as_me: error: cannot create directory $as_dir" >&2;}
22178 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022179 ac_builddir=.
22180
Reid Spencera773bd52006-08-04 18:18:08 +000022181case "$ac_dir" in
22182.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22183*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022184 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022185 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022186 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022187 case $ac_top_builddir_sub in
22188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22190 esac ;;
22191esac
22192ac_abs_top_builddir=$ac_pwd
22193ac_abs_builddir=$ac_pwd$ac_dir_suffix
22194# for backward compatibility:
22195ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022196
22197case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022198 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022199 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022200 ac_top_srcdir=$ac_top_builddir_sub
22201 ac_abs_top_srcdir=$ac_pwd ;;
22202 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022203 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022204 ac_top_srcdir=$srcdir
22205 ac_abs_top_srcdir=$srcdir ;;
22206 *) # Relative name.
22207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22208 ac_top_srcdir=$ac_top_build_prefix$srcdir
22209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022210esac
Reid Spencera773bd52006-08-04 18:18:08 +000022211ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022212
John Criswell7a73b802003-06-30 21:59:07 +000022213
Reid Spencera773bd52006-08-04 18:18:08 +000022214 case $ac_mode in
22215 :F)
22216 #
22217 # CONFIG_FILE
22218 #
John Criswell7a73b802003-06-30 21:59:07 +000022219
22220 case $INSTALL in
22221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022222 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022223 esac
John Criswell7a73b802003-06-30 21:59:07 +000022224_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022226cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022227# If the template does not know about datarootdir, expand it.
22228# FIXME: This hack should be removed a few years after 2.60.
22229ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022230
22231case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022232 p
22233 q
22234}
22235/@datadir@/p
22236/@docdir@/p
22237/@infodir@/p
22238/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022239/@mandir@/p
22240' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022241*datarootdir*) ac_datarootdir_seen=yes;;
22242*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022243 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22244echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022245_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022246cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022247 ac_datarootdir_hack='
22248 s&@datadir@&$datadir&g
22249 s&@docdir@&$docdir&g
22250 s&@infodir@&$infodir&g
22251 s&@localedir@&$localedir&g
22252 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022253 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022254esac
22255_ACEOF
22256
22257# Neutralize VPATH when `$srcdir' = `.'.
22258# Shell code in configure.ac might set extrasub.
22259# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022260cat >>$CONFIG_STATUS <<_ACEOF
22261 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022262$extrasub
22263_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022264cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022265:t
22266/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022267s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022268s&@top_builddir@&$ac_top_builddir_sub&;t t
22269s&@srcdir@&$ac_srcdir&;t t
22270s&@abs_srcdir@&$ac_abs_srcdir&;t t
22271s&@top_srcdir@&$ac_top_srcdir&;t t
22272s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22273s&@builddir@&$ac_builddir&;t t
22274s&@abs_builddir@&$ac_abs_builddir&;t t
22275s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22276s&@INSTALL@&$ac_INSTALL&;t t
22277$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022278" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022279
Reid Spencera773bd52006-08-04 18:18:08 +000022280test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22281 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22282 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022283 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022284which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022285echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022286which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022287
Reid Spencera773bd52006-08-04 18:18:08 +000022288 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022289 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290 -) cat "$tmp/out"; rm -f "$tmp/out";;
22291 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22292 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022293 ;;
22294 :H)
22295 #
22296 # CONFIG_HEADER
22297 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298_ACEOF
22299
22300# Transform confdefs.h into a sed script `conftest.defines', that
22301# substitutes the proper values into config.h.in to produce config.h.
22302rm -f conftest.defines conftest.tail
22303# First, append a space to every undef/define line, to ease matching.
22304echo 's/$/ /' >conftest.defines
22305# Then, protect against being on the right side of a sed subst, or in
22306# an unquoted here document, in config.status. If some macros were
22307# called several times there might be several #defines for the same
22308# symbol, which is useless. But do not sort them, since the last
22309# AC_DEFINE must be honored.
22310ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22311# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22312# NAME is the cpp macro being defined, VALUE is the value it is being given.
22313# PARAMS is the parameter list in the macro definition--in most cases, it's
22314# just an empty string.
22315ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22316ac_dB='\\)[ (].*,\\1define\\2'
22317ac_dC=' '
22318ac_dD=' ,'
22319
22320uniq confdefs.h |
22321 sed -n '
22322 t rset
22323 :rset
22324 s/^[ ]*#[ ]*define[ ][ ]*//
22325 t ok
22326 d
22327 :ok
22328 s/[\\&,]/\\&/g
22329 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22330 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22331 ' >>conftest.defines
22332
22333# Remove the space that was appended to ease matching.
22334# Then replace #undef with comments. This is necessary, for
22335# example, in the case of _POSIX_SOURCE, which is predefined and required
22336# on some systems where configure will not decide to define it.
22337# (The regexp can be short, since the line contains either #define or #undef.)
22338echo 's/ $//
22339s,^[ #]*u.*,/* & */,' >>conftest.defines
22340
22341# Break up conftest.defines:
22342ac_max_sed_lines=50
22343
22344# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22345# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22346# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22347# et cetera.
22348ac_in='$ac_file_inputs'
22349ac_out='"$tmp/out1"'
22350ac_nxt='"$tmp/out2"'
22351
22352while :
22353do
22354 # Write a here document:
22355 cat >>$CONFIG_STATUS <<_ACEOF
22356 # First, check the format of the line:
22357 cat >"\$tmp/defines.sed" <<\\CEOF
22358/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22359/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22360b
22361:def
22362_ACEOF
22363 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22364 echo 'CEOF
22365 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22366 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22367 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22368 grep . conftest.tail >/dev/null || break
22369 rm -f conftest.defines
22370 mv conftest.tail conftest.defines
22371done
22372rm -f conftest.defines conftest.tail
22373
22374echo "ac_result=$ac_in" >>$CONFIG_STATUS
22375cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022376 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022377 echo "/* $configure_input */" >"$tmp/config.h"
22378 cat "$ac_result" >>"$tmp/config.h"
22379 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22380 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22381echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022382 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022383 rm -f $ac_file
22384 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022385 fi
22386 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022387 echo "/* $configure_input */"
22388 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022389 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022390 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022391 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022393 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22394echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022395 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022396 esac
John Criswell7a73b802003-06-30 21:59:07 +000022397
Reid Spencera773bd52006-08-04 18:18:08 +000022398
22399 case $ac_file$ac_mode in
22400 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022401 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022402 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022403 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022404 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022405 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022406 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022407 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022408 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022409 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022410 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022412 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022414 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022416 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022418 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022420 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022422 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022424 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022425 ${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 +000022426
22427 esac
22428done # for ac_tag
22429
John Criswell7a73b802003-06-30 21:59:07 +000022430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022431{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022432_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022433chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022434ac_clean_files=$ac_clean_files_save
22435
22436
22437# configure is writing to config.log, and then calls config.status.
22438# config.status does its own redirection, appending to config.log.
22439# Unfortunately, on DOS this fails, as config.log is still kept open
22440# by configure, so config.status won't be able to write to it; its
22441# output is simply discarded. So we exec the FD to /dev/null,
22442# effectively closing config.log, so it can be properly (re)opened and
22443# appended to by config.status. When coming back to configure, we
22444# need to make the FD available again.
22445if test "$no_create" != yes; then
22446 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022447 ac_config_status_args=
22448 test "$silent" = yes &&
22449 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022450 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022452 exec 5>>config.log
22453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22454 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022455 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022456fi
22457
John Criswell12399a12003-09-30 15:55:44 +000022458#
22459# CONFIG_SUBDIRS section.
22460#
22461if test "$no_recursion" != yes; then
22462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022463 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022464 ac_sub_configure_args=
22465 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022466 eval "set x $ac_configure_args"
22467 shift
22468 for ac_arg
22469 do
John Criswell12399a12003-09-30 15:55:44 +000022470 if test -n "$ac_prev"; then
22471 ac_prev=
22472 continue
22473 fi
22474 case $ac_arg in
22475 -cache-file | --cache-file | --cache-fil | --cache-fi \
22476 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22477 ac_prev=cache_file ;;
22478 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22479 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22480 | --c=*)
22481 ;;
22482 --config-cache | -C)
22483 ;;
22484 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22485 ac_prev=srcdir ;;
22486 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22487 ;;
22488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22489 ac_prev=prefix ;;
22490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22491 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022492 *)
22493 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022494 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022495 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022496 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022497 esac
22498 done
22499
22500 # Always prepend --prefix to ensure using the same prefix
22501 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022502 ac_arg="--prefix=$prefix"
22503 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022504 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022505 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022506 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022507
22508 ac_popdir=`pwd`
22509 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22510
22511 # Do not complain, so a configure script can configure whichever
22512 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022513 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022514
Reid Spencera773bd52006-08-04 18:18:08 +000022515 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516 echo "$as_me:$LINENO: $ac_msg" >&5
22517 echo "$ac_msg" >&6
22518 { as_dir="$ac_dir"
22519 case $as_dir in #(
22520 -*) as_dir=./$as_dir;;
22521 esac
22522 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22523 as_dirs=
22524 while :; do
22525 case $as_dir in #(
22526 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22527 *) as_qdir=$as_dir;;
22528 esac
22529 as_dirs="'$as_qdir' $as_dirs"
22530 as_dir=`$as_dirname -- "$as_dir" ||
22531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22532 X"$as_dir" : 'X\(//\)[^/]' \| \
22533 X"$as_dir" : 'X\(//\)$' \| \
22534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22535echo X"$as_dir" |
22536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22537 s//\1/
22538 q
22539 }
22540 /^X\(\/\/\)[^/].*/{
22541 s//\1/
22542 q
22543 }
22544 /^X\(\/\/\)$/{
22545 s//\1/
22546 q
22547 }
22548 /^X\(\/\).*/{
22549 s//\1/
22550 q
22551 }
22552 s/.*/./; q'`
22553 test -d "$as_dir" && break
22554 done
22555 test -z "$as_dirs" || eval "mkdir $as_dirs"
22556 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22557echo "$as_me: error: cannot create directory $as_dir" >&2;}
22558 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022559 ac_builddir=.
22560
Reid Spencera773bd52006-08-04 18:18:08 +000022561case "$ac_dir" in
22562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22563*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022565 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022566 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022567 case $ac_top_builddir_sub in
22568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22570 esac ;;
22571esac
22572ac_abs_top_builddir=$ac_pwd
22573ac_abs_builddir=$ac_pwd$ac_dir_suffix
22574# for backward compatibility:
22575ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022576
22577case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022578 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022579 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022580 ac_top_srcdir=$ac_top_builddir_sub
22581 ac_abs_top_srcdir=$ac_pwd ;;
22582 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022583 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022584 ac_top_srcdir=$srcdir
22585 ac_abs_top_srcdir=$srcdir ;;
22586 *) # Relative name.
22587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22588 ac_top_srcdir=$ac_top_build_prefix$srcdir
22589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022590esac
Reid Spencera773bd52006-08-04 18:18:08 +000022591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022592
22593
Reid Spencera773bd52006-08-04 18:18:08 +000022594 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022595
22596 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022597 if test -f "$ac_srcdir/configure.gnu"; then
22598 ac_sub_configure=$ac_srcdir/configure.gnu
22599 elif test -f "$ac_srcdir/configure"; then
22600 ac_sub_configure=$ac_srcdir/configure
22601 elif test -f "$ac_srcdir/configure.in"; then
22602 # This should be Cygnus configure.
22603 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022604 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022605 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22606echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022607 ac_sub_configure=
22608 fi
22609
22610 # The recursion is here.
22611 if test -n "$ac_sub_configure"; then
22612 # Make the cache file name correct relative to the subdirectory.
22613 case $cache_file in
22614 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022615 *) # Relative name.
22616 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022617 esac
22618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022619 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22620echo "$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 +000022621 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022622 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22623 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022624 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22625echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22626 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022627 fi
22628
Reid Spencera773bd52006-08-04 18:18:08 +000022629 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022630 done
22631fi
22632