blob: aa83c605d0871b7f089044f92ccfe662e6815ec9 [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
Eric Christopherf3a5ba52011-10-26 00:52:13 +0000724STRIP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000737XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000738PERL
739HAVE_PERL
740INSTALL_PROGRAM
741INSTALL_SCRIPT
742INSTALL_DATA
743BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000744CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745DOXYGEN
746GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000747GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748POD2HTML
749POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000750PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751RUNTEST
752TCLSH
753ZIP
754OCAMLC
755OCAMLOPT
756OCAMLDEP
757OCAMLDOC
758GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000759HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000760INSTALL_LTDL_TRUE
761INSTALL_LTDL_FALSE
762CONVENIENCE_LTDL_TRUE
763CONVENIENCE_LTDL_FALSE
764LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000765NO_VARIADIC_MACROS
766NO_MISSING_FIELD_INITIALIZERS
767USE_UDIS86
768USE_OPROFILE
769HAVE_PTHREAD
770HUGE_VAL_SANITY
771MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000773SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVM_PREFIX
775LLVM_BINDIR
776LLVM_LIBDIR
777LLVM_DATADIR
778LLVM_DOCSDIR
779LLVM_ETCDIR
780LLVM_INCLUDEDIR
781LLVM_INFODIR
782LLVM_MANDIR
783LLVM_CONFIGTIME
784BINDINGS_TO_BUILD
785ALL_BINDINGS
786OCAML_LIBDIR
787ENABLE_VISIBILITY_INLINES_HIDDEN
788RPATH
789RDYNAMIC
790LIBOBJS
791LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000792ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000800CXX
801CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000802CCC
803CPP'
John Criswell0157f502010-03-19 21:31:39 +0000804ac_subdirs_all='projects/llvm-gcc
805projects/test-suite
806projects/llvm-test
807projects/poolalloc
808projects/llvm-poolalloc
809projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000811projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-java
814projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000815projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000816projects/llvm-kernel
817tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000844# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000853includedir='${prefix}/include'
854oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000864
865ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000866ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000871 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000872 ac_prev=
873 continue
874 fi
875
Reid Spencera773bd52006-08-04 18:18:08 +0000876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
John Criswell7a73b802003-06-30 21:59:07 +0000880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
Reid Spencera773bd52006-08-04 18:18:08 +0000883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000908 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000910 datadir=$ac_optarg ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
John Criswell7a73b802003-06-30 21:59:07 +0000919 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000921 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000937
938 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000940 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
Reid Spencera773bd52006-08-04 18:18:08 +0000972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
John Criswell7a73b802003-06-30 21:59:07 +0000978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
Reid Spencera773bd52006-08-04 18:18:08 +00001002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
John Criswell7a73b802003-06-30 21:59:07 +00001007 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001008 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
Reid Spencera773bd52006-08-04 18:18:08 +00001076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
John Criswell7a73b802003-06-30 21:59:07 +00001086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001137 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001143
1144 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001182 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001200fi
1201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001207do
Reid Spencera773bd52006-08-04 18:18:08 +00001208 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001209 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001212 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
Reid Spencera773bd52006-08-04 18:18:08 +00001241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249
1250
John Criswell7a73b802003-06-30 21:59:07 +00001251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001254 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001279 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
Reid Spencera773bd52006-08-04 18:18:08 +00001285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
John Criswell7a73b802003-06-30 21:59:07 +00001311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001319\`configure' configures llvm 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
John Criswell7a73b802003-06-30 21:59:07 +00001339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001385 short | recursive ) echo "Configuration of llvm 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001392 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001393 --enable-optimized Compile with optimizations enabled (default is NO)
1394 --enable-profiling Compile with profiling enabled (default is NO)
1395 --enable-assertions Compile with assertion checks enabled (default is
1396 YES)
David Greenea696d242007-06-28 19:36:08 +00001397 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001398 Compile with expensive debug checks enabled (default
1399 is NO)
1400 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001402 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1403 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001404 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001405 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001406 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001407 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001408 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001409 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001410 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001411 --enable-shared Build a shared library and link tools against it
1412 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001413 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001414 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001415 --enable-timestamps Enable embedding timestamp information in build
1416 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001417 --enable-targets Build specific host targets: all or
1418 target1,target2,... Valid targets are: host, x86,
1419 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher360fa9a2011-10-26 00:42:12 +00001420 xcore, msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001425 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001426 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001427
1428Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001431 --with-optimize-option Select the compiler options to use for optimized
1432 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001433 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001434 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001437 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1440 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001441 --with-c-include-dirs Colon separated list of directories clang will
1442 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001443 --with-cxx-include-root Directory with the libstdc++ headers.
1444 --with-cxx-include-arch Architecture of the libstdc++ headers.
1445 --with-cxx-include-32bit-dir
1446 32 bit multilib dir.
1447 --with-cxx-include-64bit-dir
1448 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001449 --with-binutils-include Specify path to binutils/include/ containing
1450 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001451 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001452 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001453 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001454 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001459 CC C compiler command
1460 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001464 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001467 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations.
1471
1472Report bugs to <llvmbugs@cs.uiuc.edu>.
1473_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001474ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001475fi
1476
1477if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001480 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001481 ac_builddir=.
1482
Reid Spencera773bd52006-08-04 18:18:08 +00001483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001487 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001498
1499case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001500 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001501 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001512esac
Reid Spencera773bd52006-08-04 18:18:08 +00001513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001514
Reid Spencera773bd52006-08-04 18:18:08 +00001515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001523 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001527 done
1528fi
1529
Reid Spencera773bd52006-08-04 18:18:08 +00001530test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001531if $ac_init_version; then
1532 cat <<\_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001533llvm configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001536Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15372002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001540
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001541Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001543 exit
John Criswell7a73b802003-06-30 21:59:07 +00001544fi
Reid Spencera773bd52006-08-04 18:18:08 +00001545cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001546This file contains any messages produced by compilers while
1547running configure, to aid debugging if configure makes a mistake.
1548
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001549It was created by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001550generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001551
1552 $ $0 $@
1553
1554_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001555exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001556{
1557cat <<_ASUNAME
1558## --------- ##
1559## Platform. ##
1560## --------- ##
1561
1562hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570
1571/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001574/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001575/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1578
1579_ASUNAME
1580
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001586 echo "PATH: $as_dir"
1587done
Reid Spencera773bd52006-08-04 18:18:08 +00001588IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001589
1590} >&5
1591
1592cat >&5 <<_ACEOF
1593
1594
1595## ----------- ##
1596## Core tests. ##
1597## ----------- ##
1598
1599_ACEOF
1600
1601
1602# Keep a trace of the command line.
1603# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001604# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001605# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001606# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001607ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001608ac_configure_args0=
1609ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001610ac_must_keep_next=false
1611for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001612do
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 for ac_arg
1614 do
1615 case $ac_arg in
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1619 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001620 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 esac
1623 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001628 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001630 case $ac_arg in
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 esac
1638 ;;
1639 -* ) ac_must_keep_next=true ;;
1640 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ;;
1644 esac
1645 done
John Criswell7a73b802003-06-30 21:59:07 +00001646done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648$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 +00001649
1650# When interrupted or exit'd, cleanup temporary files, and complete
1651# config.log. We remove comments because anyway the quotes in there
1652# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001653# WARNING: Use '\'' to represent an apostrophe within the trap.
1654# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001655trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1657 {
1658 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001659
John Criswell7a73b802003-06-30 21:59:07 +00001660 cat <<\_ASBOX
1661## ---------------- ##
1662## Cache variables. ##
1663## ---------------- ##
1664_ASBOX
1665 echo
1666 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001667(
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1670 case $ac_val in #(
1671 *${as_nl}*)
1672 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001675 esac
1676 case $ac_var in #(
1677 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001678 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac ;;
1680 esac
1681 done
John Criswell7a73b802003-06-30 21:59:07 +00001682 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001685 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001689 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001692 esac |
1693 sort
1694)
John Criswell7a73b802003-06-30 21:59:07 +00001695 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001696
1697 cat <<\_ASBOX
1698## ----------------- ##
1699## Output variables. ##
1700## ----------------- ##
1701_ASBOX
1702 echo
1703 for ac_var in $ac_subst_vars
1704 do
Reid Spencera773bd52006-08-04 18:18:08 +00001705 eval ac_val=\$$ac_var
1706 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001708 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001709 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 done | sort
1711 echo
1712
1713 if test -n "$ac_subst_files"; then
1714 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001715## ------------------- ##
1716## File substitutions. ##
1717## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001718_ASBOX
1719 echo
1720 for ac_var in $ac_subst_files
1721 do
Reid Spencera773bd52006-08-04 18:18:08 +00001722 eval ac_val=\$$ac_var
1723 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001725 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001726 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 done | sort
1728 echo
1729 fi
1730
John Criswell7a73b802003-06-30 21:59:07 +00001731 if test -s confdefs.h; then
1732 cat <<\_ASBOX
1733## ----------- ##
1734## confdefs.h. ##
1735## ----------- ##
1736_ASBOX
1737 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001738 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001739 echo
1740 fi
1741 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001744 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001747 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001748' 0
John Criswell7a73b802003-06-30 21:59:07 +00001749for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001751done
1752ac_signal=0
1753
1754# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001755rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001756
1757# Predefined preprocessor variables.
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_NAME "$PACKAGE_NAME"
1761_ACEOF
1762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001763
John Criswell7a73b802003-06-30 21:59:07 +00001764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766_ACEOF
1767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001768
John Criswell7a73b802003-06-30 21:59:07 +00001769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_VERSION "$PACKAGE_VERSION"
1771_ACEOF
1772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773
John Criswell7a73b802003-06-30 21:59:07 +00001774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_STRING "$PACKAGE_STRING"
1776_ACEOF
1777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001778
John Criswell7a73b802003-06-30 21:59:07 +00001779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781_ACEOF
1782
1783
1784# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001786if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001788elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794shift
1795for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001796do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001800 sed 's/^/| /' "$ac_site_file" >&5
1801 . "$ac_site_file"
1802 fi
1803done
1804
1805if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001811 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001814 esac
1815 fi
1816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001819 >$cache_file
1820fi
1821
1822# Check that the precious variables saved in the cache have kept the same
1823# value.
1824ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001825for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001830 case $ac_old_set,$ac_new_set in
1831 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 ac_cache_corrupted=: ;;
1835 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,);;
1840 *)
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001849 fi;;
1850 esac
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1853 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001855 *) ac_arg=$ac_var=$ac_new_val ;;
1856 esac
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001860 esac
1861 fi
1862done
1863if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
Reid Spencera773bd52006-08-04 18:18:08 +00001894
John Criswell7a73b802003-06-30 21:59:07 +00001895ac_ext=c
1896ac_cpp='$CPP $CPPFLAGS'
1897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001903LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001904
1905
1906
1907
1908
1909
1910
John Criswell7a73b802003-06-30 21:59:07 +00001911ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001912for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001913 if test -f "$ac_dir/install-sh"; then
1914 ac_aux_dir=$ac_dir
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1916 break
1917 elif test -f "$ac_dir/install.sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1920 break
1921 elif test -f "$ac_dir/shtool"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1924 break
1925 fi
John Criswell7a73b802003-06-30 21:59:07 +00001926done
1927if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001931fi
Reid Spencera773bd52006-08-04 18:18:08 +00001932
1933# These three variables are undocumented and unsupported,
1934# and are intended to be withdrawn in a future Autoconf release.
1935# They can cause serious problems if a builder's source tree is in a directory
1936# whose full name contains unusual characters.
1937ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1940
John Criswell7a73b802003-06-30 21:59:07 +00001941
John Criswell392aaa32003-07-22 19:18:09 +00001942
Reid Spencer2706f8c2004-09-19 23:53:36 +00001943if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001944 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001945 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001948 fi
John Criswell93e1c722003-09-15 17:04:06 +00001949fi
1950
Nick Lewycky83fc4472009-09-29 05:48:51 +00001951ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001956if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001957 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001958 do
1959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001965else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001968else
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 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 +00001976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978 break 2
1979 fi
1980done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001981done
Reid Spencera773bd52006-08-04 18:18:08 +00001982IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001983
1984fi
1985fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001986CC=$ac_cv_prog_CC
1987if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988 { echo "$as_me:$LINENO: result: $CC" >&5
1989echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 { echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001993fi
1994
Reid Spencera773bd52006-08-04 18:18:08 +00001995
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001996 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00001997 done
1998fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001999if test -z "$CC"; then
2000 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002001 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002002do
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002009else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 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 +00002020 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002022 break 2
2023 fi
2024done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025done
Reid Spencera773bd52006-08-04 18:18:08 +00002026IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002027
2028fi
2029fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002037fi
2038
Reid Spencera773bd52006-08-04 18:18:08 +00002039
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002041done
John Criswell7a73b802003-06-30 21:59:07 +00002042
Reid Spencera773bd52006-08-04 18:18:08 +00002043 if test "x$ac_ct_CC" = x; then
2044 CC=""
2045 else
2046 case $cross_compiling:$ac_tool_warned in
2047yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002048{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049whose name does not start with the host triplet. If you think this
2050configuration is useful to you, please write to autoconf@gnu.org." >&5
2051echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2052whose name does not start with the host triplet. If you think this
2053configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002054ac_tool_warned=yes ;;
2055esac
2056 CC=$ac_ct_CC
2057 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058fi
2059
John Criswell7a73b802003-06-30 21:59:07 +00002060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: no acceptable C compiler found in \$PATH
2064See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066
John Criswell7a73b802003-06-30 21:59:07 +00002067# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068echo "$as_me:$LINENO: checking for C compiler version" >&5
2069ac_compiler=`set X $ac_compile; echo $2`
2070{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002071case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002077 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080{ (ac_try="$ac_compiler -v >&5"
2081case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084esac
2085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler -v >&5") 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090{ (ac_try="$ac_compiler -V >&5"
2091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
2095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -V >&5") 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002101cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h. */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002107
John Criswell7a73b802003-06-30 21:59:07 +00002108int
2109main ()
2110{
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002118# Try to create an executable without -o first, disregard a.out.
2119# It will help us diagnose broken compilers, and finding out an intuition
2120# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002121{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124#
2125# List of possible output files, starting from the most likely.
2126# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127# only as a last resort. b.out is created by i960 compilers.
2128ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2129#
2130# The IRIX 6 linker writes into existing files which may not be
2131# executable, retaining their permissions. Remove them first so a
2132# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002133ac_rmfiles=
2134for ac_file in $ac_files
2135do
2136 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2139 esac
2140done
2141rm -f $ac_rmfiles
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002144case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002149 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002150 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155# in a Makefile. We should not override ac_cv_exeext if it was cached,
2156# so that the user can short-circuit this test for compilers unknown to
2157# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002158for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002159do
2160 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002161 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002163 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002164 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002165 # We found the default executable, but exeext='' is most
2166 # certainly right.
2167 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002168 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002170 then :; else
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172 fi
2173 # We set ac_cv_exeext here because the later test for it is not
2174 # safe: cross compilers may not add the suffix if given an `-o'
2175 # argument, so we may need to know it at that point already.
2176 # Even if this section looks crufty: it has the advantage of
2177 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002178 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002179 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002180 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002181 esac
2182done
Reid Spencera773bd52006-08-04 18:18:08 +00002183test "$ac_cv_exeext" = no && ac_cv_exeext=
2184
John Criswell7a73b802003-06-30 21:59:07 +00002185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002187sed 's/^/| /' conftest.$ac_ext >&5
2188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190See \`config.log' for more details." >&5
2191echo "$as_me: error: C compiler cannot create executables
2192See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002194fi
John Criswell7a73b802003-06-30 21:59:07 +00002195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002196ac_exeext=$ac_cv_exeext
2197{ echo "$as_me:$LINENO: result: $ac_file" >&5
2198echo "${ECHO_T}$ac_file" >&6; }
2199
2200# Check that the compiler produces executables we can run. If not, either
2201# the compiler is broken, or we cross compile.
2202{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205# If not cross compiling, check that we can run a simple program.
2206if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211esac
2212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_try") 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 cross_compiling=no
2218 else
2219 if test "$cross_compiling" = maybe; then
2220 cross_compiling=yes
2221 else
2222 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223If you meant to cross compile, use \`--host'.
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2229 fi
2230 fi
2231fi
2232{ echo "$as_me:$LINENO: result: yes" >&5
2233echo "${ECHO_T}yes" >&6; }
2234
2235rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002236ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002237# Check that the compiler produces executables we can run. If not, either
2238# the compiler is broken, or we cross compile.
2239{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242echo "${ECHO_T}$cross_compiling" >&6; }
2243
2244{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002247case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002252 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002253 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258# work properly (i.e., refer to `conftest.exe'), while it won't with
2259# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002260for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002262 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002265 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002266 * ) break;;
2267 esac
2268done
2269else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002276
2277rm -f conftest$ac_cv_exeext
2278{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002280
2281rm -f conftest.$ac_ext
2282EXEEXT=$ac_cv_exeext
2283ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002284{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002289 cat >conftest.$ac_ext <<_ACEOF
2290/* confdefs.h. */
2291_ACEOF
2292cat confdefs.h >>conftest.$ac_ext
2293cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002295
John Criswell7a73b802003-06-30 21:59:07 +00002296int
2297main ()
2298{
2299
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002305if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002306case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002311 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002312 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002315 for ac_file in conftest.o conftest.obj conftest.*; do
2316 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002317 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320 break;;
2321 esac
2322done
2323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002325sed 's/^/| /' conftest.$ac_ext >&5
2326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333
John Criswell7a73b802003-06-30 21:59:07 +00002334rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002338OBJEXT=$ac_cv_objext
2339ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002340{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002344else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345 cat >conftest.$ac_ext <<_ACEOF
2346/* confdefs.h. */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002351
John Criswell7a73b802003-06-30 21:59:07 +00002352int
2353main ()
2354{
2355#ifndef __GNUC__
2356 choke me
2357#endif
2358
2359 ;
2360 return 0;
2361}
2362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363rm -f conftest.$ac_objext
2364if { (ac_try="$ac_compile"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>conftest.er1
2371 ac_status=$?
2372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378 { (case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381esac
2382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_try") 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002397 ac_compiler_gnu=yes
2398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002399 echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002404
Reid Spencera773bd52006-08-04 18:18:08 +00002405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002407
2408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412ac_test_CFLAGS=${CFLAGS+set}
2413ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002418else
Reid Spencera773bd52006-08-04 18:18:08 +00002419 ac_save_c_werror_flag=$ac_c_werror_flag
2420 ac_c_werror_flag=yes
2421 ac_cv_prog_cc_g=no
2422 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423 cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002429
John Criswell7a73b802003-06-30 21:59:07 +00002430int
2431main ()
2432{
2433
2434 ;
2435 return 0;
2436}
2437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002438rm -f conftest.$ac_objext
2439if { (ac_try="$ac_compile"
2440case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443esac
2444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453 { (case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_try") 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 CFLAGS=""
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002483/* end confdefs.h. */
2484
2485int
2486main ()
2487{
2488
2489 ;
2490 return 0;
2491}
2492_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002493rm -f conftest.$ac_objext
2494if { (ac_try="$ac_compile"
2495case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498esac
2499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compile") 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511esac
2512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_try") 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2527 :
Torok Edwin871384f2010-01-26 08:50:50 +00002528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002529 echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002533 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002534 cat >conftest.$ac_ext <<_ACEOF
2535/* confdefs.h. */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002539/* end confdefs.h. */
2540
2541int
2542main ()
2543{
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002549rm -f conftest.$ac_objext
2550if { (ac_try="$ac_compile"
2551case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554esac
2555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_try") 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002583 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002584else
2585 echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588
John Criswell7a73b802003-06-30 21:59:07 +00002589fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002590
Reid Spencera773bd52006-08-04 18:18:08 +00002591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593
Reid Spencera773bd52006-08-04 18:18:08 +00002594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596
Reid Spencera773bd52006-08-04 18:18:08 +00002597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_c_werror_flag=$ac_save_c_werror_flag
2599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602if test "$ac_test_CFLAGS" = set; then
2603 CFLAGS=$ac_save_CFLAGS
2604elif test $ac_cv_prog_cc_g = yes; then
2605 if test "$GCC" = yes; then
2606 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002607 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002609 fi
2610else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611 if test "$GCC" = yes; then
2612 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002613 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002615 fi
2616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002617{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619if test "${ac_cv_prog_cc_c89+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621else
Reid Spencera773bd52006-08-04 18:18:08 +00002622 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002624cat >conftest.$ac_ext <<_ACEOF
2625/* confdefs.h. */
2626_ACEOF
2627cat confdefs.h >>conftest.$ac_ext
2628cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629/* end confdefs.h. */
2630#include <stdarg.h>
2631#include <stdio.h>
2632#include <sys/types.h>
2633#include <sys/stat.h>
2634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635struct buf { int x; };
2636FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637static char *e (p, i)
2638 char **p;
2639 int i;
2640{
2641 return p[i];
2642}
2643static char *f (char * (*g) (char **, int), char **p, ...)
2644{
2645 char *s;
2646 va_list v;
2647 va_start (v,p);
2648 s = g (p, va_arg (v,int));
2649 va_end (v);
2650 return s;
2651}
2652
2653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654 function prototypes and stuff, but not '\xHH' hex character constants.
2655 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002656 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002659 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661
Reid Spencera773bd52006-08-04 18:18:08 +00002662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663 inside strings and character constants. */
2664#define FOO(x) 'x'
2665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667int test (int i, double x);
2668struct s1 {int (*f) (int a);};
2669struct s2 {int (*f) (double a);};
2670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2671int argc;
2672char **argv;
2673int
2674main ()
2675{
2676return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2677 ;
2678 return 0;
2679}
2680_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683do
2684 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002685 rm -f conftest.$ac_objext
2686if { (ac_try="$ac_compile"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_try") 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002719 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002720else
2721 echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002725fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002726
Reid Spencera773bd52006-08-04 18:18:08 +00002727rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002729done
Reid Spencera773bd52006-08-04 18:18:08 +00002730rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002731CC=$ac_save_CC
2732
2733fi
Reid Spencera773bd52006-08-04 18:18:08 +00002734# AC_CACHE_VAL
2735case "x$ac_cv_prog_cc_c89" in
2736 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737 { echo "$as_me:$LINENO: result: none needed" >&5
2738echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002739 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740 { echo "$as_me:$LINENO: result: unsupported" >&5
2741echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002742 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002743 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002746esac
2747
John Criswell0c38eaf2003-09-10 15:17:25 +00002748
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749ac_ext=c
2750ac_cpp='$CPP $CPPFLAGS'
2751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754
Eric Christopherffee5722011-09-16 20:36:25 +00002755ac_ext=cpp
2756ac_cpp='$CXXCPP $CPPFLAGS'
2757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760if test -z "$CXX"; then
2761 if test -n "$CCC"; then
2762 CXX=$CCC
2763 else
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang++ llvm-g++ g++
2766 do
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771if test "${ac_cv_prog_CXX+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773else
2774 if test -n "$CXX"; then
2775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794CXX=$ac_cv_prog_CXX
2795if test -n "$CXX"; then
2796 { echo "$as_me:$LINENO: result: $CXX" >&5
2797echo "${ECHO_T}$CXX" >&6; }
2798else
2799 { echo "$as_me:$LINENO: result: no" >&5
2800echo "${ECHO_T}no" >&6; }
2801fi
2802
2803
2804 test -n "$CXX" && break
2805 done
2806fi
2807if test -z "$CXX"; then
2808 ac_ct_CXX=$CXX
2809 for ac_prog in clang++ llvm-g++ g++
2810do
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812set dummy $ac_prog; ac_word=$2
2813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818 if test -n "$ac_ct_CXX"; then
2819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CXX="$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839if test -n "$ac_ct_CXX"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842else
2843 { echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6; }
2845fi
2846
2847
2848 test -n "$ac_ct_CXX" && break
2849done
2850
2851 if test "x$ac_ct_CXX" = x; then
2852 CXX="g++"
2853 else
2854 case $cross_compiling:$ac_tool_warned in
2855yes:)
2856{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857whose name does not start with the host triplet. If you think this
2858configuration is useful to you, please write to autoconf@gnu.org." >&5
2859echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860whose name does not start with the host triplet. If you think this
2861configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862ac_tool_warned=yes ;;
2863esac
2864 CXX=$ac_ct_CXX
2865 fi
2866fi
2867
2868 fi
2869fi
2870# Provide some information about the compiler.
2871echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872ac_compiler=`set X $ac_compile; echo $2`
2873{ (ac_try="$ac_compiler --version >&5"
2874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883{ (ac_try="$ac_compiler -v >&5"
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893{ (ac_try="$ac_compiler -V >&5"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903
2904{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915
2916int
2917main ()
2918{
2919#ifndef __GNUC__
2920 choke me
2921#endif
2922
2923 ;
2924 return 0;
2925}
2926_ACEOF
2927rm -f conftest.$ac_objext
2928if { (ac_try="$ac_compile"
2929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 ac_compiler_gnu=yes
2962else
2963 echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 ac_compiler_gnu=no
2967fi
2968
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2971
2972fi
2973{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975GXX=`test $ac_compiler_gnu = yes && echo yes`
2976ac_test_CXXFLAGS=${CXXFLAGS+set}
2977ac_save_CXXFLAGS=$CXXFLAGS
2978{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980if test "${ac_cv_prog_cxx_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984 ac_cxx_werror_flag=yes
2985 ac_cv_prog_cxx_g=no
2986 CXXFLAGS="-g"
2987 cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
2993
2994int
2995main ()
2996{
2997
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext
3003if { (ac_try="$ac_compile"
3004case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007esac
3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3010 ac_status=$?
3011 grep -v '^ *+' conftest.er1 >conftest.err
3012 rm -f conftest.er1
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_prog_cxx_g=yes
3037else
3038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 CXXFLAGS=""
3042 cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h. */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h. */
3048
3049int
3050main ()
3051{
3052
3053 ;
3054 return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext
3058if { (ac_try="$ac_compile"
3059case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 :
3092else
3093 echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097 CXXFLAGS="-g"
3098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104
3105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext
3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cxx_g=yes
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153fi
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163fi
3164{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166if test "$ac_test_CXXFLAGS" = set; then
3167 CXXFLAGS=$ac_save_CXXFLAGS
3168elif test $ac_cv_prog_cxx_g = yes; then
3169 if test "$GXX" = yes; then
3170 CXXFLAGS="-g -O2"
3171 else
3172 CXXFLAGS="-g"
3173 fi
3174else
3175 if test "$GXX" = yes; then
3176 CXXFLAGS="-O2"
3177 else
3178 CXXFLAGS=
3179 fi
3180fi
3181ac_ext=c
3182ac_cpp='$CPP $CPPFLAGS'
3183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003186
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003187ac_ext=c
3188ac_cpp='$CPP $CPPFLAGS'
3189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003192{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003194# On Suns, sometimes $CPP names a directory.
3195if test -n "$CPP" && test -d "$CPP"; then
3196 CPP=
3197fi
3198if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003199 if test "${ac_cv_prog_CPP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003201else
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204 do
3205 ac_preproc_ok=false
3206for ac_c_preproc_warn_flag in '' yes
3207do
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219/* end confdefs.h. */
3220#ifdef __STDC__
3221# include <limits.h>
3222#else
3223# include <assert.h>
3224#endif
3225 Syntax error
3226_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227if { (ac_try="$ac_cpp conftest.$ac_ext"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243 else
3244 ac_cpp_err=
3245 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003247 ac_cpp_err=yes
3248fi
3249if test -z "$ac_cpp_err"; then
3250 :
3251else
3252 echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255 # Broken: fails on valid input.
3256continue
3257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259rm -f conftest.err conftest.$ac_ext
3260
Reid Spencera773bd52006-08-04 18:18:08 +00003261 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003263 cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h. */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268/* end confdefs.h. */
3269#include <ac_nonexistent.h>
3270_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271if { (ac_try="$ac_cpp conftest.$ac_ext"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287 else
3288 ac_cpp_err=
3289 fi
3290else
3291 ac_cpp_err=yes
3292fi
3293if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294 # Broken: success on invalid input.
3295continue
3296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300 # Passes both tests.
3301ac_preproc_ok=:
3302break
3303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003304
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305rm -f conftest.err conftest.$ac_ext
3306
3307done
3308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003310if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311 break
3312fi
3313
3314 done
3315 ac_cv_prog_CPP=$CPP
3316
3317fi
3318 CPP=$ac_cv_prog_CPP
3319else
3320 ac_cv_prog_CPP=$CPP
3321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003322{ echo "$as_me:$LINENO: result: $CPP" >&5
3323echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324ac_preproc_ok=false
3325for ac_c_preproc_warn_flag in '' yes
3326do
3327 # Use a header file that comes with gcc, so configuring glibc
3328 # with a fresh cross-compiler works.
3329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330 # <limits.h> exists even on freestanding compilers.
3331 # On the NeXT, cc -E runs the code through the compiler's parser,
3332 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338/* end confdefs.h. */
3339#ifdef __STDC__
3340# include <limits.h>
3341#else
3342# include <assert.h>
3343#endif
3344 Syntax error
3345_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003346if { (ac_try="$ac_cpp conftest.$ac_ext"
3347case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
3351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 else
3363 ac_cpp_err=
3364 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003365else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003366 ac_cpp_err=yes
3367fi
3368if test -z "$ac_cpp_err"; then
3369 :
3370else
3371 echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374 # Broken: fails on valid input.
3375continue
3376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003377
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378rm -f conftest.err conftest.$ac_ext
3379
Reid Spencera773bd52006-08-04 18:18:08 +00003380 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387/* end confdefs.h. */
3388#include <ac_nonexistent.h>
3389_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003390if { (ac_try="$ac_cpp conftest.$ac_ext"
3391case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406 else
3407 ac_cpp_err=
3408 fi
3409else
3410 ac_cpp_err=yes
3411fi
3412if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003413 # Broken: success on invalid input.
3414continue
3415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003416 echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419 # Passes both tests.
3420ac_preproc_ok=:
3421break
3422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424rm -f conftest.err conftest.$ac_ext
3425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003429if $ac_preproc_ok; then
3430 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433See \`config.log' for more details." >&5
3434echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437fi
3438
John Criswell7a73b802003-06-30 21:59:07 +00003439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
John Criswell7a73b802003-06-30 21:59:07 +00003445
Eric Christopherffee5722011-09-16 20:36:25 +00003446
3447
3448if test -d ${srcdir}/projects/llvm-gcc ; then
3449 subdirs="$subdirs projects/llvm-gcc"
3450
3451fi
3452
3453if test -d ${srcdir}/projects/test-suite ; then
3454 subdirs="$subdirs projects/test-suite"
3455
3456fi
3457
3458if test -d ${srcdir}/projects/llvm-test ; then
3459 subdirs="$subdirs projects/llvm-test"
3460
3461fi
3462
3463if test -d ${srcdir}/projects/poolalloc ; then
3464 subdirs="$subdirs projects/poolalloc"
3465
3466fi
3467
3468if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469 subdirs="$subdirs projects/llvm-poolalloc"
3470
3471fi
3472
3473for i in `ls ${srcdir}/projects`
3474do
3475 if test -d ${srcdir}/projects/${i} ; then
3476 case ${i} in
3477 sample) subdirs="$subdirs projects/sample"
3478 ;;
3479 privbracket) subdirs="$subdirs projects/privbracket"
3480 ;;
3481 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3482 ;;
3483 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3484;;
3485 llvm-java) subdirs="$subdirs projects/llvm-java"
3486 ;;
3487 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3488 ;;
3489 safecode) subdirs="$subdirs projects/safecode"
3490 ;;
3491 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3492 ;;
3493 llvm-gcc) ;;
3494 test-suite) ;;
3495 llvm-test) ;;
3496 poolalloc) ;;
3497 llvm-poolalloc) ;;
3498 *)
3499 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3501 ;;
3502 esac
3503 fi
3504done
3505
3506# Check whether --enable-polly was given.
3507if test "${enable_polly+set}" = set; then
3508 enableval=$enable_polly;
3509else
3510 enableval=default
3511fi
3512
3513case "$enableval" in
3514 yes) ENABLE_POLLY=1
3515 ;;
3516 no) ENABLE_POLLY=0
3517 ;;
3518 default) ENABLE_POLLY=1
3519 ;;
3520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522 { (exit 1); exit 1; }; } ;;
3523esac
3524
3525
3526if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3527 LLVM_HAS_POLLY=1
3528
3529 subdirs="$subdirs tools/polly"
3530
3531fi
3532
3533
3534# Make sure we can run config.sub.
3535$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538 { (exit 1); exit 1; }; }
3539
3540{ echo "$as_me:$LINENO: checking build system type" >&5
3541echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542if test "${ac_cv_build+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545 ac_build_alias=$build_alias
3546test "x$ac_build_alias" = x &&
3547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548test "x$ac_build_alias" = x &&
3549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551 { (exit 1); exit 1; }; }
3552ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3556
3557fi
3558{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559echo "${ECHO_T}$ac_cv_build" >&6; }
3560case $ac_cv_build in
3561*-*-*) ;;
3562*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563echo "$as_me: error: invalid value of canonical build" >&2;}
3564 { (exit 1); exit 1; }; };;
3565esac
3566build=$ac_cv_build
3567ac_save_IFS=$IFS; IFS='-'
3568set x $ac_cv_build
3569shift
3570build_cpu=$1
3571build_vendor=$2
3572shift; shift
3573# Remember, the first character of IFS is used to create $*,
3574# except with old shells:
3575build_os=$*
3576IFS=$ac_save_IFS
3577case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3578
3579
3580{ echo "$as_me:$LINENO: checking host system type" >&5
3581echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582if test "${ac_cv_host+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585 if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3587else
3588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591 { (exit 1); exit 1; }; }
3592fi
3593
3594fi
3595{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596echo "${ECHO_T}$ac_cv_host" >&6; }
3597case $ac_cv_host in
3598*-*-*) ;;
3599*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600echo "$as_me: error: invalid value of canonical host" >&2;}
3601 { (exit 1); exit 1; }; };;
3602esac
3603host=$ac_cv_host
3604ac_save_IFS=$IFS; IFS='-'
3605set x $ac_cv_host
3606shift
3607host_cpu=$1
3608host_vendor=$2
3609shift; shift
3610# Remember, the first character of IFS is used to create $*,
3611# except with old shells:
3612host_os=$*
3613IFS=$ac_save_IFS
3614case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3615
3616
3617{ echo "$as_me:$LINENO: checking target system type" >&5
3618echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619if test "${ac_cv_target+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 if test "x$target_alias" = x; then
3623 ac_cv_target=$ac_cv_host
3624else
3625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628 { (exit 1); exit 1; }; }
3629fi
3630
3631fi
3632{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633echo "${ECHO_T}$ac_cv_target" >&6; }
3634case $ac_cv_target in
3635*-*-*) ;;
3636*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637echo "$as_me: error: invalid value of canonical target" >&2;}
3638 { (exit 1); exit 1; }; };;
3639esac
3640target=$ac_cv_target
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_target
3643shift
3644target_cpu=$1
3645target_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649target_os=$*
3650IFS=$ac_save_IFS
3651case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654# The aliases save the names the user supplied, while $host etc.
3655# will get canonicalized.
3656test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3658 NONENONEs,x,x, &&
3659 program_prefix=${target_alias}-
3660
3661{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663if test "${llvm_cv_os_type+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 case $host in
3667 *-*-aix*)
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="AIX"
3671 llvm_cv_platform_type="Unix" ;;
3672 *-*-irix*)
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="IRIX"
3676 llvm_cv_platform_type="Unix" ;;
3677 *-*-cygwin*)
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Cygwin"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-darwin*)
3683 llvm_cv_link_all_option="-Wl,-all_load"
3684 llvm_cv_no_link_all_option="-Wl,-noall_load"
3685 llvm_cv_os_type="Darwin"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-minix*)
3688 llvm_cv_link_all_option="-Wl,-all_load"
3689 llvm_cv_no_link_all_option="-Wl,-noall_load"
3690 llvm_cv_os_type="Minix"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-freebsd*)
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="FreeBSD"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-openbsd*)
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="OpenBSD"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-netbsd*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="NetBSD"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-dragonfly*)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="DragonFly"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-hpux*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="HP-UX"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-interix*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Interix"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-linux*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Linux"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-solaris*)
3728 llvm_cv_link_all_option="-Wl,-z,allextract"
3729 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730 llvm_cv_os_type="SunOS"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-auroraux*)
3733 llvm_cv_link_all_option="-Wl,-z,allextract"
3734 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735 llvm_cv_os_type="AuroraUX"
3736 llvm_cv_platform_type="Unix" ;;
3737 *-*-win32*)
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Win32"
3741 llvm_cv_platform_type="Win32" ;;
3742 *-*-mingw*)
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="MingW"
3746 llvm_cv_platform_type="Win32" ;;
3747 *-*-haiku*)
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Haiku"
3751 llvm_cv_platform_type="Unix" ;;
3752 *-unknown-eabi*)
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Freestanding"
3756 llvm_cv_platform_type="Unix" ;;
3757 *-unknown-elf*)
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Freestanding"
3761 llvm_cv_platform_type="Unix" ;;
3762 *)
3763 llvm_cv_link_all_option=""
3764 llvm_cv_no_link_all_option=""
3765 llvm_cv_os_type="Unknown"
3766 llvm_cv_platform_type="Unknown" ;;
3767esac
3768fi
3769{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3771
3772{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774if test "${llvm_cv_target_os_type+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 case $target in
3778 *-*-aix*)
3779 llvm_cv_target_os_type="AIX" ;;
3780 *-*-irix*)
3781 llvm_cv_target_os_type="IRIX" ;;
3782 *-*-cygwin*)
3783 llvm_cv_target_os_type="Cygwin" ;;
3784 *-*-darwin*)
3785 llvm_cv_target_os_type="Darwin" ;;
3786 *-*-minix*)
3787 llvm_cv_target_os_type="Minix" ;;
3788 *-*-freebsd*)
3789 llvm_cv_target_os_type="FreeBSD" ;;
3790 *-*-openbsd*)
3791 llvm_cv_target_os_type="OpenBSD" ;;
3792 *-*-netbsd*)
3793 llvm_cv_target_os_type="NetBSD" ;;
3794 *-*-dragonfly*)
3795 llvm_cv_target_os_type="DragonFly" ;;
3796 *-*-hpux*)
3797 llvm_cv_target_os_type="HP-UX" ;;
3798 *-*-interix*)
3799 llvm_cv_target_os_type="Interix" ;;
3800 *-*-linux*)
3801 llvm_cv_target_os_type="Linux" ;;
3802 *-*-solaris*)
3803 llvm_cv_target_os_type="SunOS" ;;
3804 *-*-auroraux*)
3805 llvm_cv_target_os_type="AuroraUX" ;;
3806 *-*-win32*)
3807 llvm_cv_target_os_type="Win32" ;;
3808 *-*-mingw*)
3809 llvm_cv_target_os_type="MingW" ;;
3810 *-*-haiku*)
3811 llvm_cv_target_os_type="Haiku" ;;
3812 *-*-rtems*)
3813 llvm_cv_target_os_type="RTEMS" ;;
3814 *-*-nacl*)
3815 llvm_cv_target_os_type="NativeClient" ;;
3816 *-unknown-eabi*)
3817 llvm_cv_target_os_type="Freestanding" ;;
3818 *)
3819 llvm_cv_target_os_type="Unknown" ;;
3820esac
3821fi
3822{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3824
3825if test "$llvm_cv_os_type" = "Unknown" ; then
3826 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828 { (exit 1); exit 1; }; }
3829fi
3830
3831OS=$llvm_cv_os_type
3832
3833HOST_OS=$llvm_cv_os_type
3834
3835TARGET_OS=$llvm_cv_target_os_type
3836
3837
3838LINKALL=$llvm_cv_link_all_option
3839
3840NOLINKALL=$llvm_cv_no_link_all_option
3841
3842
3843case $llvm_cv_platform_type in
3844 Unix)
3845
3846cat >>confdefs.h <<\_ACEOF
3847#define LLVM_ON_UNIX 1
3848_ACEOF
3849
3850 LLVM_ON_UNIX=1
3851
3852 LLVM_ON_WIN32=0
3853
3854 ;;
3855 Win32)
3856
3857cat >>confdefs.h <<\_ACEOF
3858#define LLVM_ON_WIN32 1
3859_ACEOF
3860
3861 LLVM_ON_UNIX=0
3862
3863 LLVM_ON_WIN32=1
3864
3865 ;;
3866esac
3867
3868{ echo "$as_me:$LINENO: checking target architecture" >&5
3869echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870if test "${llvm_cv_target_arch+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 case $target in
3874 i?86-*) llvm_cv_target_arch="x86" ;;
3875 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3876 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3877 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3878 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3886esac
3887fi
3888{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890
3891if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894fi
3895
3896# Determine the LLVM native architecture for the target
3897case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901esac
3902
3903ARCH=$llvm_cv_target_arch
3904
3905
3906
3907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003913 # Extract the first word of "grep ggrep" to use in msg output
3914if test -z "$GREP"; then
3915set dummy grep ggrep; ac_prog_name=$2
3916if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
Reid Spencera773bd52006-08-04 18:18:08 +00003919 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920# Loop through the user's path and test for each of PROGNAME-LIST
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003931 # Check for GNU $ac_path_GREP
3932case `"$ac_path_GREP" --version 2>&1` in
3933*GNU*)
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935*)
3936 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003938 while :
3939 do
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003943 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003951 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3954 done
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956esac
3957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958
3959 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003960 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961done
3962
3963done
Reid Spencera773bd52006-08-04 18:18:08 +00003964IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003965
3966
3967fi
3968
3969GREP="$ac_cv_path_GREP"
3970if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3974fi
3975
Reid Spencera773bd52006-08-04 18:18:08 +00003976else
3977 ac_cv_path_GREP=$GREP
3978fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980
Reid Spencera773bd52006-08-04 18:18:08 +00003981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003984 GREP="$ac_cv_path_GREP"
3985
3986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987{ echo "$as_me:$LINENO: checking for egrep" >&5
3988echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003991else
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3994 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995 # Extract the first word of "egrep" to use in msg output
3996if test -z "$EGREP"; then
3997set dummy egrep; ac_prog_name=$2
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
Reid Spencera773bd52006-08-04 18:18:08 +00004001 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002# Loop through the user's path and test for each of PROGNAME-LIST
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004013 # Check for GNU $ac_path_EGREP
4014case `"$ac_path_EGREP" --version 2>&1` in
4015*GNU*)
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017*)
4018 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004020 while :
4021 do
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004025 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4033 fi
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4036 done
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038esac
4039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004040
4041 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004042 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043done
4044
4045done
Reid Spencera773bd52006-08-04 18:18:08 +00004046IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047
4048
4049fi
4050
4051EGREP="$ac_cv_path_EGREP"
4052if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4056fi
4057
Reid Spencera773bd52006-08-04 18:18:08 +00004058else
4059 ac_cv_path_EGREP=$EGREP
4060fi
4061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062
Reid Spencera773bd52006-08-04 18:18:08 +00004063 fi
4064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004065{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004067 EGREP="$ac_cv_path_EGREP"
4068
4069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004081#include <stdlib.h>
4082#include <stdarg.h>
4083#include <string.h>
4084#include <float.h>
4085
John Criswell0c38eaf2003-09-10 15:17:25 +00004086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
John Criswell7a73b802003-06-30 21:59:07 +00004093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094rm -f conftest.$ac_objext
4095if { (ac_try="$ac_compile"
4096case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004128 ac_cv_header_stdc=yes
4129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004130 echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135
Reid Spencera773bd52006-08-04 18:18:08 +00004136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004137
4138if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004145/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004146#include <string.h>
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150 $EGREP "memchr" >/dev/null 2>&1; then
4151 :
John Criswell7a73b802003-06-30 21:59:07 +00004152else
4153 ac_cv_header_stdc=no
4154fi
4155rm -f conftest*
4156
4157fi
4158
4159if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004161 cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h. */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004167#include <stdlib.h>
4168
4169_ACEOF
4170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 $EGREP "free" >/dev/null 2>&1; then
4172 :
John Criswell7a73b802003-06-30 21:59:07 +00004173else
4174 ac_cv_header_stdc=no
4175fi
4176rm -f conftest*
4177
4178fi
4179
4180if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004182 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004183 :
4184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004191#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004192#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004193#if ((' ' & 0x0FF) == 0x020)
4194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004197# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202#endif
4203
4204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205int
4206main ()
4207{
4208 int i;
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004211 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004212 return 2;
4213 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004214}
4215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004216rm -f conftest$ac_exeext
4217if { (ac_try="$ac_link"
4218case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 :
John Criswell7a73b802003-06-30 21:59:07 +00004237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238 echo "$as_me: program exited with status $ac_status" >&5
4239echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242( exit $ac_status )
4243ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004246fi
4247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004248
John Criswell7a73b802003-06-30 21:59:07 +00004249fi
4250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004251{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004253if test $ac_cv_header_stdc = yes; then
4254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255cat >>confdefs.h <<\_ACEOF
4256#define STDC_HEADERS 1
4257_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004258
4259fi
4260
Reid Spencera773bd52006-08-04 18:18:08 +00004261# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004262
4263
4264
4265
4266
4267
4268
4269
4270
Reid Spencera773bd52006-08-04 18:18:08 +00004271for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273do
4274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h. */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h. */
4286$ac_includes_default
4287
4288#include <$ac_header>
4289_ACEOF
4290rm -f conftest.$ac_objext
4291if { (ac_try="$ac_compile"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4325else
4326 echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 eval "$as_ac_Header=no"
4330fi
4331
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336echo "${ECHO_T}$ac_res" >&6; }
4337if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004338 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004340_ACEOF
4341
4342fi
4343
4344done
4345
4346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352 # See if sys/param.h defines the BYTE_ORDER macro.
4353cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004358/* end confdefs.h. */
4359#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004361
4362int
4363main ()
4364{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4366 bogus endian macros
4367#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004368
4369 ;
4370 return 0;
4371}
4372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373rm -f conftest.$ac_objext
4374if { (ac_try="$ac_compile"
4375case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378esac
4379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004407 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004408cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004413/* end confdefs.h. */
4414#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004416
4417int
4418main ()
4419{
4420#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004421 not big endian
4422#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004423
4424 ;
4425 return 0;
4426}
4427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004428rm -f conftest.$ac_objext
4429if { (ac_try="$ac_compile"
4430case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004462 ac_cv_c_bigendian=yes
4463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467 ac_cv_c_bigendian=no
4468fi
4469
4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 # It does not; compile a test program.
4476if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
4485short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004491int
4492main ()
4493{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004495 ;
4496 return 0;
4497}
4498_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499rm -f conftest.$ac_objext
4500if { (ac_try="$ac_compile"
4501case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504esac
4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
4528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004534 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535fi
4536if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4539 else
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4542 fi
4543fi
Reid Spencera773bd52006-08-04 18:18:08 +00004544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545 echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548
Torok Edwin871384f2010-01-26 08:50:50 +00004549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550
Reid Spencera773bd52006-08-04 18:18:08 +00004551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 cat >conftest.$ac_ext <<_ACEOF
4554/* confdefs.h. */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004558/* end confdefs.h. */
4559$ac_includes_default
4560int
4561main ()
4562{
4563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 /* Are we little or big endian? From Harbison&Steele. */
4565 union
4566 {
4567 long int l;
4568 char c[sizeof (long int)];
4569 } u;
4570 u.l = 1;
4571 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004572
4573 ;
4574 return 0;
4575}
4576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577rm -f conftest$ac_exeext
4578if { (ac_try="$ac_link"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004597 ac_cv_c_bigendian=no
4598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599 echo "$as_me: program exited with status $ac_status" >&5
4600echo "$as_me: failed program was:" >&5
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
4603( exit $ac_status )
4604ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004607fi
4608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609
Reid Spencera773bd52006-08-04 18:18:08 +00004610fi
4611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613fi
4614{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616case $ac_cv_c_bigendian in
4617 yes)
4618 ENDIAN=big
4619 ;;
4620 no)
4621 ENDIAN=little
4622 ;;
4623 *)
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626echo "$as_me: error: unknown endianness
4627presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4629esac
Reid Spencera773bd52006-08-04 18:18:08 +00004630
4631
4632if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4634
4635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004636{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004640else
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4643else
4644 ac_build_prefix=${build_alias}-
4645
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004652else
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004665 break 2
4666 fi
4667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668done
Reid Spencera773bd52006-08-04 18:18:08 +00004669IFS=$as_save_IFS
4670
4671fi
4672fi
4673BUILD_CC=$ac_cv_prog_BUILD_CC
4674if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678 { echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004680fi
4681
4682
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004690else
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004701 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004703 break 2
4704 fi
4705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706done
Reid Spencera773bd52006-08-04 18:18:08 +00004707IFS=$as_save_IFS
4708
4709fi
4710fi
4711BUILD_CC=$ac_cv_prog_BUILD_CC
4712if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716 { echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004718fi
4719
4720
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004728else
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731else
4732 ac_prog_rejected=no
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4742 continue
4743 fi
4744 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004746 break 2
4747 fi
4748done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749done
Reid Spencera773bd52006-08-04 18:18:08 +00004750IFS=$as_save_IFS
4751
4752if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4755 shift
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4760 shift
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4762 fi
4763fi
4764fi
4765fi
4766BUILD_CC=$ac_cv_prog_BUILD_CC
4767if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004771 { echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004773fi
4774
4775
4776 fi
4777 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782 rm -f conftest*
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4784 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004786 (eval $ac_build_link) 2>&5
4787 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004790 for file in conftest.*; do
4791 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004792 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4794 esac
4795 done
4796 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004800 fi
4801 rm -f conftest*
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4803fi
4804fi
4805
4806BUILD_EXEEXT=""
4807test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004810ac_build_exeext=$BUILD_EXEEXT
4811
Jim Grosbach673612e2008-10-02 22:56:44 +00004812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004819else
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004832 break 2
4833 fi
4834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835done
Jim Grosbach673612e2008-10-02 22:56:44 +00004836IFS=$as_save_IFS
4837
4838fi
4839fi
4840BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845 { echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004847fi
4848
4849
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004857else
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004868 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004870 break 2
4871 fi
4872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873done
Jim Grosbach673612e2008-10-02 22:56:44 +00004874IFS=$as_save_IFS
4875
4876fi
4877fi
4878BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883 { echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004885fi
4886
4887
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004895else
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898else
4899 ac_prog_rejected=no
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4909 continue
4910 fi
4911 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004913 break 2
4914 fi
4915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004916done
Jim Grosbach673612e2008-10-02 22:56:44 +00004917IFS=$as_save_IFS
4918
4919if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4922 shift
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4927 shift
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4929 fi
4930fi
4931fi
4932fi
4933BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004938 { echo "$as_me:$LINENO: result: no" >&5
4939echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004940fi
4941
4942
4943 fi
4944 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004945else
4946 LLVM_CROSS_COMPILING=0
4947
4948fi
4949
Dan Gohman56fb5f92010-08-04 16:25:01 +00004950if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004951 cvsbuild="yes"
4952 optimize="no"
4953 CVSBUILD=CVSBUILD=1
4954
4955else
4956 cvsbuild="no"
4957 optimize="yes"
4958fi
4959
4960
4961# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004962if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004963 enableval=$enable_optimized;
4964else
4965 enableval=$optimize
4966fi
4967
4968if test ${enableval} = "no" ; then
4969 ENABLE_OPTIMIZED=
4970
4971else
4972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4973
4974fi
4975
David Greene2a5a12c2009-04-17 14:50:39 +00004976# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004977if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004978 enableval=$enable_profiling;
4979else
4980 enableval="no"
4981fi
4982
4983if test ${enableval} = "no" ; then
4984 ENABLE_PROFILING=
4985
4986else
4987 ENABLE_PROFILING=ENABLE_PROFILING=1
4988
4989fi
4990
Reid Spencera773bd52006-08-04 18:18:08 +00004991# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004992if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004993 enableval=$enable_assertions;
4994else
4995 enableval="yes"
4996fi
4997
4998if test ${enableval} = "yes" ; then
4999 DISABLE_ASSERTIONS=
5000
5001else
5002 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5003
5004fi
5005
David Greenea696d242007-06-28 19:36:08 +00005006# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005007if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005008 enableval=$enable_expensive_checks;
5009else
5010 enableval="no"
5011fi
5012
5013if test ${enableval} = "yes" ; then
5014 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5015
5016 EXPENSIVE_CHECKS=yes
5017
5018else
5019 ENABLE_EXPENSIVE_CHECKS=
5020
5021 EXPENSIVE_CHECKS=no
5022
5023fi
5024
Reid Spencer8b2e1412006-11-17 03:32:33 +00005025# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005026if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005027 enableval=$enable_debug_runtime;
5028else
5029 enableval=no
5030fi
5031
5032if test ${enableval} = "no" ; then
5033 DEBUG_RUNTIME=
5034
5035else
5036 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5037
5038fi
5039
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005040# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005041if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005042 enableval=$enable_debug_symbols;
5043else
5044 enableval=no
5045fi
5046
5047if test ${enableval} = "no" ; then
5048 DEBUG_SYMBOLS=
5049
5050else
5051 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5052
5053fi
5054
Reid Spencera773bd52006-08-04 18:18:08 +00005055# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005057 enableval=$enable_jit;
5058else
5059 enableval=default
5060fi
5061
5062if test ${enableval} = "no"
5063then
5064 JIT=
5065
5066else
5067 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005068 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005069 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005070 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005071 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005072 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005073 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005074 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005075 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00005076 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005077 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005078 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005079 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005080 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005081 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005082 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005083 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005084 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005085 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005086 MBlaze) TARGET_HAS_JIT=0
5087 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005088 PTX) TARGET_HAS_JIT=0
5089 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005090 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005091 ;;
5092 esac
5093fi
5094
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005095# Check whether --enable-docs was given.
5096if test "${enable_docs+set}" = set; then
5097 enableval=$enable_docs;
5098else
5099 enableval=default
5100fi
5101
5102case "$enableval" in
5103 yes) ENABLE_DOCS=1
5104 ;;
5105 no) ENABLE_DOCS=0
5106 ;;
5107 default) ENABLE_DOCS=1
5108 ;;
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5110echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5112esac
5113
Reid Spencera773bd52006-08-04 18:18:08 +00005114# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005115if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005116 enableval=$enable_doxygen;
5117else
5118 enableval=default
5119fi
5120
5121case "$enableval" in
5122 yes) ENABLE_DOXYGEN=1
5123 ;;
5124 no) ENABLE_DOXYGEN=0
5125 ;;
5126 default) ENABLE_DOXYGEN=0
5127 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5129echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005131esac
5132
5133# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005134if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005135 enableval=$enable_threads;
5136else
Reid Spencer65c5d752006-11-05 17:08:18 +00005137 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005138fi
5139
5140case "$enableval" in
5141 yes) ENABLE_THREADS=1
5142 ;;
5143 no) ENABLE_THREADS=0
5144 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005145 default) ENABLE_THREADS=1
5146 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5148echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005150esac
5151
Owen Andersona8603702009-05-19 22:18:56 +00005152cat >>confdefs.h <<_ACEOF
5153#define ENABLE_THREADS $ENABLE_THREADS
5154_ACEOF
5155
5156
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005157# Check whether --enable-pthreads was given.
5158if test "${enable_pthreads+set}" = set; then
5159 enableval=$enable_pthreads;
5160else
5161 enableval=default
5162fi
5163
5164case "$enableval" in
5165 yes) ENABLE_PTHREADS=1
5166 ;;
5167 no) ENABLE_PTHREADS=0
5168 ;;
5169 default) ENABLE_PTHREADS=1
5170 ;;
5171 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5172echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5173 { (exit 1); exit 1; }; } ;;
5174esac
5175
Reid Spencer89b0d992006-12-16 22:07:52 +00005176# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005177if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005178 enableval=$enable_pic;
5179else
5180 enableval=default
5181fi
5182
5183case "$enableval" in
5184 yes) ENABLE_PIC=1
5185 ;;
5186 no) ENABLE_PIC=0
5187 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005188 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005189 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5191echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005193esac
5194
5195cat >>confdefs.h <<_ACEOF
5196#define ENABLE_PIC $ENABLE_PIC
5197_ACEOF
5198
5199
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005200# Check whether --enable-shared was given.
5201if test "${enable_shared+set}" = set; then
5202 enableval=$enable_shared;
5203else
5204 enableval=default
5205fi
5206
5207case "$enableval" in
5208 yes) ENABLE_SHARED=1
5209 ;;
5210 no) ENABLE_SHARED=0
5211 ;;
5212 default) ENABLE_SHARED=0
5213 ;;
5214 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5215echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5216 { (exit 1); exit 1; }; } ;;
5217esac
5218
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005219# Check whether --enable-embed-stdcxx was given.
5220if test "${enable_embed_stdcxx+set}" = set; then
5221 enableval=$enable_embed_stdcxx;
5222else
5223 enableval=default
5224fi
5225
5226case "$enableval" in
5227 yes) ENABLE_EMBED_STDCXX=1
5228 ;;
5229 no) ENABLE_EMBED_STDCXX=0
5230 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005231 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005232 ;;
5233 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5234echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5235 { (exit 1); exit 1; }; } ;;
5236esac
5237
Daniel Dunbardd464df2010-05-10 20:11:56 +00005238# Check whether --enable-timestamps was given.
5239if test "${enable_timestamps+set}" = set; then
5240 enableval=$enable_timestamps;
5241else
5242 enableval=default
5243fi
5244
5245case "$enableval" in
5246 yes) ENABLE_TIMESTAMPS=1
5247 ;;
5248 no) ENABLE_TIMESTAMPS=0
5249 ;;
5250 default) ENABLE_TIMESTAMPS=1
5251 ;;
5252 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5253echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5255esac
5256
5257cat >>confdefs.h <<_ACEOF
5258#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5259_ACEOF
5260
5261
Reid Spencera773bd52006-08-04 18:18:08 +00005262TARGETS_TO_BUILD=""
5263# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005264if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005265 enableval=$enable_targets;
5266else
5267 enableval=all
5268fi
5269
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005270if test "$enableval" = host-only ; then
5271 enableval=host
5272fi
Reid Spencera773bd52006-08-04 18:18:08 +00005273case "$enableval" in
Dan Gohmanfef5ff02011-10-25 00:36:31 +00005274 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005275 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5276 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005277 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5279 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5280 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5281 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5282 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5283 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5284 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005285 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005287 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005288 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005289 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005290 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005291 host) case "$llvm_cv_target_arch" in
5292 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5294 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5295 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5296 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5297 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5298 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005299 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005300 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005301 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5302 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005303 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005304 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5305echo "$as_me: error: Can not set target to build" >&2;}
5306 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005307 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005308 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5309echo "$as_me: error: Unrecognized target $a_target" >&2;}
5310 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005311 esac
5312 done
5313 ;;
5314esac
Reid Spencera773bd52006-08-04 18:18:08 +00005315TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5316
5317
Douglas Gregor0711c302009-06-17 00:43:20 +00005318# Determine whether we are building LLVM support for the native architecture.
5319# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5320for a_target in $TARGETS_TO_BUILD; do
5321 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5322
5323cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005324#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5325_ACEOF
5326
5327 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5328 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005329 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005330 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005331 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5332 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5333 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005334
5335cat >>confdefs.h <<_ACEOF
5336#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005337_ACEOF
5338
5339
5340cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005341#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5342_ACEOF
5343
5344
5345cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005346#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005347_ACEOF
5348
5349
5350cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005351#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005352_ACEOF
5353
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005354 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005355
5356cat >>confdefs.h <<_ACEOF
5357#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5358_ACEOF
5359
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005360 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005361 fi
5362done
5363
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005364# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5365# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005366LLVM_ENUM_TARGETS=""
5367LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005368LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005369LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005370for target_to_build in $TARGETS_TO_BUILD; do
5371 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005372 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005373 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5374 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005375 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5376 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5377 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005378 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5379 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5380 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005381done
5382
5383
5384
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005385
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005386
Reid Spencer65c5d752006-11-05 17:08:18 +00005387# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005388if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005389 enableval=$enable_cbe_printf_a;
5390else
5391 enableval=default
5392fi
5393
5394case "$enableval" in
5395 yes) ENABLE_CBE_PRINTF_A=1
5396 ;;
5397 no) ENABLE_CBE_PRINTF_A=0
5398 ;;
5399 default) ENABLE_CBE_PRINTF_A=1
5400 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005401 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5402echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5403 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005404esac
5405
5406cat >>confdefs.h <<_ACEOF
5407#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5408_ACEOF
5409
5410
Reid Spencera773bd52006-08-04 18:18:08 +00005411
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005412# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005413if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005414 withval=$with_optimize_option;
5415else
5416 withval=default
5417fi
5418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005419{ echo "$as_me:$LINENO: checking optimization flags" >&5
5420echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005421case "$withval" in
5422 default)
5423 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005424 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005425 MingW) optimize_option=-O2 ;;
5426 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005427 esac ;;
5428 *) optimize_option="$withval" ;;
5429esac
5430OPTIMIZE_OPTION=$optimize_option
5431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005432{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5433echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005434
5435
Reid Spencera773bd52006-08-04 18:18:08 +00005436# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005437if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005438 withval=$with_extra_options;
5439else
5440 withval=default
5441fi
5442
5443case "$withval" in
5444 default) EXTRA_OPTIONS= ;;
5445 *) EXTRA_OPTIONS=$withval ;;
5446esac
5447EXTRA_OPTIONS=$EXTRA_OPTIONS
5448
5449
Daniel Dunbared344d22011-06-16 22:30:41 +00005450
5451# Check whether --with-extra-ld-options was given.
5452if test "${with_extra_ld_options+set}" = set; then
5453 withval=$with_extra_ld_options;
5454else
5455 withval=default
5456fi
5457
5458case "$withval" in
5459 default) EXTRA_LD_OPTIONS= ;;
5460 *) EXTRA_LD_OPTIONS=$withval ;;
5461esac
5462EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5463
5464
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005465# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005466if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005467 enableval=$enable_bindings;
5468else
5469 enableval=default
5470fi
5471
5472BINDINGS_TO_BUILD=""
5473case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005474 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005475 all ) BINDINGS_TO_BUILD="ocaml" ;;
5476 none | no) BINDINGS_TO_BUILD="" ;;
5477 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5478 case "$a_binding" in
5479 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005480 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5481echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5482 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005483 esac
5484 done
5485 ;;
5486esac
5487
Reid Spencera773bd52006-08-04 18:18:08 +00005488
Gordon Henriksenf0915682007-10-02 16:42:22 +00005489# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005490if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005491 withval=$with_ocaml_libdir;
5492else
5493 withval=auto
5494fi
5495
5496case "$withval" in
5497 auto) with_ocaml_libdir="$withval" ;;
5498 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005499 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5500echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5501 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005502esac
5503
5504
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005505# Check whether --with-clang-srcdir was given.
5506if test "${with_clang_srcdir+set}" = set; then
5507 withval=$with_clang_srcdir;
5508else
5509 withval="-"
5510fi
5511
5512case "$withval" in
5513 -) clang_src_root="" ;;
5514 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5515 *) clang_src_root="$ac_pwd/$withval" ;;
5516esac
5517CLANG_SRC_ROOT=$clang_src_root
5518
5519
5520
Chandler Carruth6b241162010-10-19 08:21:25 +00005521# Check whether --with-clang-resource-dir was given.
5522if test "${with_clang_resource_dir+set}" = set; then
5523 withval=$with_clang_resource_dir;
5524else
5525 withval=""
5526fi
5527
5528
5529cat >>confdefs.h <<_ACEOF
5530#define CLANG_RESOURCE_DIR "$withval"
5531_ACEOF
5532
5533
5534
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005535# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005536if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005537 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005538else
5539 withval=""
5540fi
5541
5542
5543cat >>confdefs.h <<_ACEOF
5544#define C_INCLUDE_DIRS "$withval"
5545_ACEOF
5546
5547
5548
Rafael Espindola420d23c2009-11-16 19:46:55 +00005549# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005550if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005551 withval=$with_cxx_include_root;
5552else
5553 withval=""
5554fi
5555
5556
5557cat >>confdefs.h <<_ACEOF
5558#define CXX_INCLUDE_ROOT "$withval"
5559_ACEOF
5560
5561
5562
5563# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005564if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005565 withval=$with_cxx_include_arch;
5566else
5567 withval=""
5568fi
5569
5570
5571cat >>confdefs.h <<_ACEOF
5572#define CXX_INCLUDE_ARCH "$withval"
5573_ACEOF
5574
5575
5576
5577# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005578if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005579 withval=$with_cxx_include_32bit_dir;
5580else
5581 withval=""
5582fi
5583
5584
5585cat >>confdefs.h <<_ACEOF
5586#define CXX_INCLUDE_32BIT_DIR "$withval"
5587_ACEOF
5588
5589
5590
5591# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005592if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005593 withval=$with_cxx_include_64bit_dir;
5594else
5595 withval=""
5596fi
5597
5598
5599cat >>confdefs.h <<_ACEOF
5600#define CXX_INCLUDE_64BIT_DIR "$withval"
5601_ACEOF
5602
5603
5604
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005605# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005606if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005607 withval=$with_binutils_include;
5608else
5609 withval=default
5610fi
5611
5612case "$withval" in
5613 default) WITH_BINUTILS_INCDIR=default ;;
5614 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005615 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5616echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5617 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005618esac
5619if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5620 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5621
5622 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5623 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005624 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5625echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5626 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005627 fi
5628fi
5629
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005630
5631# Check whether --with-bug-report-url was given.
5632if test "${with_bug_report_url+set}" = set; then
5633 withval=$with_bug_report_url;
5634else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005635 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005636fi
5637
5638
5639cat >>confdefs.h <<_ACEOF
5640#define BUG_REPORT_URL "$withval"
5641_ACEOF
5642
5643
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005644# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005645if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005646 enableval=$enable_libffi; case "$enableval" in
5647 yes) llvm_cv_enable_libffi="yes" ;;
5648 no) llvm_cv_enable_libffi="no" ;;
5649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005650echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5651 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005652 esac
5653else
5654 llvm_cv_enable_libffi=no
5655fi
5656
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005657
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005659{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5660echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5661if test "${lt_cv_path_NM+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005663else
5664 if test -n "$NM"; then
5665 # Let the user override the test.
5666 lt_cv_path_NM="$NM"
5667else
5668 lt_nm_to_check="${ac_tool_prefix}nm"
5669 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5670 lt_nm_to_check="$lt_nm_to_check nm"
5671 fi
5672 for lt_tmp_nm in $lt_nm_to_check; do
5673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5674 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5675 IFS="$lt_save_ifs"
5676 test -z "$ac_dir" && ac_dir=.
5677 tmp_nm="$ac_dir/$lt_tmp_nm"
5678 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5679 # Check to see if the nm accepts a BSD-compat flag.
5680 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5681 # nm: unknown option "B" ignored
5682 # Tru64's nm complains that /dev/null is an invalid object file
5683 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5684 */dev/null* | *'Invalid file or object type'*)
5685 lt_cv_path_NM="$tmp_nm -B"
5686 break
5687 ;;
5688 *)
5689 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5690 */dev/null*)
5691 lt_cv_path_NM="$tmp_nm -p"
5692 break
5693 ;;
5694 *)
5695 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696 continue # so that we can try to find one that supports BSD flags
5697 ;;
5698 esac
5699 ;;
5700 esac
5701 fi
5702 done
5703 IFS="$lt_save_ifs"
5704 done
5705 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5706fi
5707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5709echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005710NM="$lt_cv_path_NM"
5711
5712
5713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005714{ echo "$as_me:$LINENO: checking for GNU make" >&5
5715echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5716if test "${llvm_cv_gnu_make_command+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005718else
5719 llvm_cv_gnu_make_command=''
5720 for a in "$MAKE" make gmake gnumake ; do
5721 if test -z "$a" ; then continue ; fi ;
5722 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5723 then
5724 llvm_cv_gnu_make_command=$a ;
5725 break;
5726 fi
5727 done
5728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005729{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5730echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005731 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5732 ifGNUmake='' ;
5733 else
5734 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005735 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5736echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005737 fi
5738
5739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005740{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5741echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005742LN_S=$as_ln_s
5743if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744 { echo "$as_me:$LINENO: result: yes" >&5
5745echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5748echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005749fi
5750
5751# Extract the first word of "cmp", so it can be a program name with args.
5752set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755if test "${ac_cv_path_CMP+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005757else
5758 case $CMP in
5759 [\\/]* | ?:[\\/]*)
5760 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5761 ;;
5762 *)
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 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 +00005770 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005772 break 2
5773 fi
5774done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005775done
Reid Spencera773bd52006-08-04 18:18:08 +00005776IFS=$as_save_IFS
5777
5778 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5779 ;;
5780esac
5781fi
5782CMP=$ac_cv_path_CMP
5783if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784 { echo "$as_me:$LINENO: result: $CMP" >&5
5785echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787 { echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005789fi
5790
5791
5792# Extract the first word of "cp", so it can be a program name with args.
5793set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796if test "${ac_cv_path_CP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005798else
5799 case $CP in
5800 [\\/]* | ?:[\\/]*)
5801 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5802 ;;
5803 *)
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 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 +00005811 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005813 break 2
5814 fi
5815done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816done
Reid Spencera773bd52006-08-04 18:18:08 +00005817IFS=$as_save_IFS
5818
5819 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5820 ;;
5821esac
5822fi
5823CP=$ac_cv_path_CP
5824if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825 { echo "$as_me:$LINENO: result: $CP" >&5
5826echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 { echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005830fi
5831
5832
5833# Extract the first word of "date", so it can be a program name with args.
5834set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837if test "${ac_cv_path_DATE+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005839else
5840 case $DATE in
5841 [\\/]* | ?:[\\/]*)
5842 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5843 ;;
5844 *)
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 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 +00005852 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005854 break 2
5855 fi
5856done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857done
Reid Spencera773bd52006-08-04 18:18:08 +00005858IFS=$as_save_IFS
5859
5860 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5861 ;;
5862esac
5863fi
5864DATE=$ac_cv_path_DATE
5865if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866 { echo "$as_me:$LINENO: result: $DATE" >&5
5867echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869 { echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005871fi
5872
5873
5874# Extract the first word of "find", so it can be a program name with args.
5875set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878if test "${ac_cv_path_FIND+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005880else
5881 case $FIND in
5882 [\\/]* | ?:[\\/]*)
5883 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5884 ;;
5885 *)
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 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 +00005893 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005895 break 2
5896 fi
5897done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898done
Reid Spencera773bd52006-08-04 18:18:08 +00005899IFS=$as_save_IFS
5900
5901 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5902 ;;
5903esac
5904fi
5905FIND=$ac_cv_path_FIND
5906if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005907 { echo "$as_me:$LINENO: result: $FIND" >&5
5908echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910 { echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005912fi
5913
5914
5915# Extract the first word of "grep", so it can be a program name with args.
5916set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919if test "${ac_cv_path_GREP+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005921else
5922 case $GREP in
5923 [\\/]* | ?:[\\/]*)
5924 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5925 ;;
5926 *)
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 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 +00005934 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005936 break 2
5937 fi
5938done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005939done
Reid Spencera773bd52006-08-04 18:18:08 +00005940IFS=$as_save_IFS
5941
5942 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5943 ;;
5944esac
5945fi
5946GREP=$ac_cv_path_GREP
5947if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005948 { echo "$as_me:$LINENO: result: $GREP" >&5
5949echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951 { echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005953fi
5954
5955
5956# Extract the first word of "mkdir", so it can be a program name with args.
5957set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960if test "${ac_cv_path_MKDIR+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005962else
5963 case $MKDIR in
5964 [\\/]* | ?:[\\/]*)
5965 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5966 ;;
5967 *)
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 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 +00005975 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005977 break 2
5978 fi
5979done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980done
Reid Spencera773bd52006-08-04 18:18:08 +00005981IFS=$as_save_IFS
5982
5983 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5984 ;;
5985esac
5986fi
5987MKDIR=$ac_cv_path_MKDIR
5988if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005989 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5990echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005992 { echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005994fi
5995
5996
5997# Extract the first word of "mv", so it can be a program name with args.
5998set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001if test "${ac_cv_path_MV+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006003else
6004 case $MV in
6005 [\\/]* | ?:[\\/]*)
6006 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6007 ;;
6008 *)
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 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 +00006016 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006018 break 2
6019 fi
6020done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021done
Reid Spencera773bd52006-08-04 18:18:08 +00006022IFS=$as_save_IFS
6023
6024 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6025 ;;
6026esac
6027fi
6028MV=$ac_cv_path_MV
6029if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006030 { echo "$as_me:$LINENO: result: $MV" >&5
6031echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006033 { echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006035fi
6036
6037
6038if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6040set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043if test "${ac_cv_prog_RANLIB+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006045else
6046 if test -n "$RANLIB"; then
6047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 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 +00006056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006058 break 2
6059 fi
6060done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061done
Reid Spencera773bd52006-08-04 18:18:08 +00006062IFS=$as_save_IFS
6063
6064fi
6065fi
6066RANLIB=$ac_cv_prog_RANLIB
6067if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6069echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071 { echo "$as_me:$LINENO: result: no" >&5
6072echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006073fi
6074
6075
6076fi
6077if test -z "$ac_cv_prog_RANLIB"; then
6078 ac_ct_RANLIB=$RANLIB
6079 # Extract the first word of "ranlib", so it can be a program name with args.
6080set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006085else
6086 if test -n "$ac_ct_RANLIB"; then
6087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 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 +00006096 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006098 break 2
6099 fi
6100done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006101done
Reid Spencera773bd52006-08-04 18:18:08 +00006102IFS=$as_save_IFS
6103
6104fi
6105fi
6106ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6107if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6109echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111 { echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006113fi
6114
6115 if test "x$ac_ct_RANLIB" = x; then
6116 RANLIB=":"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006120{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121whose name does not start with the host triplet. If you think this
6122configuration is useful to you, please write to autoconf@gnu.org." >&5
6123echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124whose name does not start with the host triplet. If you think this
6125configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006126ac_tool_warned=yes ;;
6127esac
6128 RANLIB=$ac_ct_RANLIB
6129 fi
6130else
6131 RANLIB="$ac_cv_prog_RANLIB"
6132fi
6133
Torok Edwin871384f2010-01-26 08:50:50 +00006134if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6136set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139if test "${ac_cv_prog_AR+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006141else
6142 if test -n "$AR"; then
6143 ac_cv_prog_AR="$AR" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 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 +00006152 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006154 break 2
6155 fi
6156done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006157done
Torok Edwin871384f2010-01-26 08:50:50 +00006158IFS=$as_save_IFS
6159
6160fi
6161fi
6162AR=$ac_cv_prog_AR
6163if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164 { echo "$as_me:$LINENO: result: $AR" >&5
6165echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006166else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006169fi
6170
6171
6172fi
6173if test -z "$ac_cv_prog_AR"; then
6174 ac_ct_AR=$AR
6175 # Extract the first word of "ar", so it can be a program name with args.
6176set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006181else
6182 if test -n "$ac_ct_AR"; then
6183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 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 +00006192 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006194 break 2
6195 fi
6196done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006197done
Torok Edwin871384f2010-01-26 08:50:50 +00006198IFS=$as_save_IFS
6199
6200fi
6201fi
6202ac_ct_AR=$ac_cv_prog_ac_ct_AR
6203if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006204 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6205echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006207 { echo "$as_me:$LINENO: result: no" >&5
6208echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006209fi
6210
6211 if test "x$ac_ct_AR" = x; then
6212 AR="false"
6213 else
6214 case $cross_compiling:$ac_tool_warned in
6215yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217whose name does not start with the host triplet. If you think this
6218configuration is useful to you, please write to autoconf@gnu.org." >&5
6219echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220whose name does not start with the host triplet. If you think this
6221configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006222ac_tool_warned=yes ;;
6223esac
6224 AR=$ac_ct_AR
6225 fi
6226else
6227 AR="$ac_cv_prog_AR"
6228fi
6229
Eric Christopherf3a5ba52011-10-26 00:52:13 +00006230if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6232set dummy ${ac_tool_prefix}strip; ac_word=$2
6233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235if test "${ac_cv_prog_STRIP+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238 if test -n "$STRIP"; then
6239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252done
6253done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258STRIP=$ac_cv_prog_STRIP
6259if test -n "$STRIP"; then
6260 { echo "$as_me:$LINENO: result: $STRIP" >&5
6261echo "${ECHO_T}$STRIP" >&6; }
6262else
6263 { echo "$as_me:$LINENO: result: no" >&5
6264echo "${ECHO_T}no" >&6; }
6265fi
6266
6267
6268fi
6269if test -z "$ac_cv_prog_STRIP"; then
6270 ac_ct_STRIP=$STRIP
6271 # Extract the first word of "strip", so it can be a program name with args.
6272set dummy strip; ac_word=$2
6273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278 if test -n "$ac_ct_STRIP"; then
6279 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_ac_ct_STRIP="strip"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292done
6293done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6299if test -n "$ac_ct_STRIP"; then
6300 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6301echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6302else
6303 { echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6; }
6305fi
6306
6307 if test "x$ac_ct_STRIP" = x; then
6308 STRIP="false"
6309 else
6310 case $cross_compiling:$ac_tool_warned in
6311yes:)
6312{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6313whose name does not start with the host triplet. If you think this
6314configuration is useful to you, please write to autoconf@gnu.org." >&5
6315echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6316whose name does not start with the host triplet. If you think this
6317configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320 STRIP=$ac_ct_STRIP
6321 fi
6322else
6323 STRIP="$ac_cv_prog_STRIP"
6324fi
6325
Reid Spencera773bd52006-08-04 18:18:08 +00006326# Extract the first word of "rm", so it can be a program name with args.
6327set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330if test "${ac_cv_path_RM+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006332else
6333 case $RM in
6334 [\\/]* | ?:[\\/]*)
6335 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6336 ;;
6337 *)
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 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 +00006345 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006347 break 2
6348 fi
6349done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006350done
Reid Spencera773bd52006-08-04 18:18:08 +00006351IFS=$as_save_IFS
6352
6353 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6354 ;;
6355esac
6356fi
6357RM=$ac_cv_path_RM
6358if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006359 { echo "$as_me:$LINENO: result: $RM" >&5
6360echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362 { echo "$as_me:$LINENO: result: no" >&5
6363echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006364fi
6365
6366
6367# Extract the first word of "sed", so it can be a program name with args.
6368set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371if test "${ac_cv_path_SED+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006373else
6374 case $SED in
6375 [\\/]* | ?:[\\/]*)
6376 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6377 ;;
6378 *)
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 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 +00006386 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006388 break 2
6389 fi
6390done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006391done
Reid Spencera773bd52006-08-04 18:18:08 +00006392IFS=$as_save_IFS
6393
6394 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6395 ;;
6396esac
6397fi
6398SED=$ac_cv_path_SED
6399if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400 { echo "$as_me:$LINENO: result: $SED" >&5
6401echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006403 { echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006405fi
6406
6407
6408# Extract the first word of "tar", so it can be a program name with args.
6409set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6412if test "${ac_cv_path_TAR+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006414else
6415 case $TAR in
6416 [\\/]* | ?:[\\/]*)
6417 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6418 ;;
6419 *)
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 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 +00006427 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006429 break 2
6430 fi
6431done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006432done
Reid Spencera773bd52006-08-04 18:18:08 +00006433IFS=$as_save_IFS
6434
6435 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6436 ;;
6437esac
6438fi
6439TAR=$ac_cv_path_TAR
6440if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 { echo "$as_me:$LINENO: result: $TAR" >&5
6442echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006444 { echo "$as_me:$LINENO: result: no" >&5
6445echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006446fi
6447
6448
6449# Extract the first word of "pwd", so it can be a program name with args.
6450set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6453if test "${ac_cv_path_BINPWD+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006455else
6456 case $BINPWD in
6457 [\\/]* | ?:[\\/]*)
6458 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6459 ;;
6460 *)
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 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 +00006468 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006470 break 2
6471 fi
6472done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006473done
Reid Spencera773bd52006-08-04 18:18:08 +00006474IFS=$as_save_IFS
6475
6476 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6477 ;;
6478esac
6479fi
6480BINPWD=$ac_cv_path_BINPWD
6481if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006482 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6483echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006485 { echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006487fi
6488
6489
6490
6491# Extract the first word of "Graphviz", so it can be a program name with args.
6492set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6495if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006497else
6498 case $GRAPHVIZ in
6499 [\\/]* | ?:[\\/]*)
6500 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6501 ;;
6502 *)
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 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 +00006510 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006512 break 2
6513 fi
6514done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006515done
Reid Spencera773bd52006-08-04 18:18:08 +00006516IFS=$as_save_IFS
6517
6518 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6519 ;;
6520esac
6521fi
6522GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6523if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006524 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6525echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006527 { echo "$as_me:$LINENO: result: no" >&5
6528echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006529fi
6530
6531
6532if test "$GRAPHVIZ" != "echo Graphviz" ; then
6533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534cat >>confdefs.h <<\_ACEOF
6535#define HAVE_GRAPHVIZ 1
6536_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006537
Jeff Cohen28783c32007-01-12 18:22:38 +00006538 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006539 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6540 fi
6541
6542cat >>confdefs.h <<_ACEOF
6543#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6544_ACEOF
6545
6546fi
6547# Extract the first word of "dot", so it can be a program name with args.
6548set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551if test "${ac_cv_path_DOT+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006553else
6554 case $DOT in
6555 [\\/]* | ?:[\\/]*)
6556 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6557 ;;
6558 *)
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 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 +00006566 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006568 break 2
6569 fi
6570done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006571done
Reid Spencera773bd52006-08-04 18:18:08 +00006572IFS=$as_save_IFS
6573
6574 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6575 ;;
6576esac
6577fi
6578DOT=$ac_cv_path_DOT
6579if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006580 { echo "$as_me:$LINENO: result: $DOT" >&5
6581echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006583 { echo "$as_me:$LINENO: result: no" >&5
6584echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006585fi
6586
6587
6588if test "$DOT" != "echo dot" ; then
6589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590cat >>confdefs.h <<\_ACEOF
6591#define HAVE_DOT 1
6592_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006593
Jeff Cohen28783c32007-01-12 18:22:38 +00006594 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006595 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6596 fi
6597
6598cat >>confdefs.h <<_ACEOF
6599#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6600_ACEOF
6601
6602fi
David Greenef0b9eff2009-07-09 17:16:26 +00006603# Extract the first word of "fdp", so it can be a program name with args.
6604set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607if test "${ac_cv_path_FDP+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006609else
6610 case $FDP in
6611 [\\/]* | ?:[\\/]*)
6612 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6613 ;;
6614 *)
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 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 +00006622 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006624 break 2
6625 fi
6626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006627done
David Greenef0b9eff2009-07-09 17:16:26 +00006628IFS=$as_save_IFS
6629
6630 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6631 ;;
6632esac
6633fi
6634FDP=$ac_cv_path_FDP
6635if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006636 { echo "$as_me:$LINENO: result: $FDP" >&5
6637echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639 { echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006641fi
6642
6643
6644if test "$FDP" != "echo fdp" ; then
6645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646cat >>confdefs.h <<\_ACEOF
6647#define HAVE_FDP 1
6648_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006649
6650 if test "$llvm_cv_os_type" = "MingW" ; then
6651 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6652 fi
6653
6654cat >>confdefs.h <<_ACEOF
6655#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6656_ACEOF
6657
6658fi
6659# Extract the first word of "neato", so it can be a program name with args.
6660set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663if test "${ac_cv_path_NEATO+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006665else
6666 case $NEATO in
6667 [\\/]* | ?:[\\/]*)
6668 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6669 ;;
6670 *)
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 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 +00006678 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006680 break 2
6681 fi
6682done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006683done
David Greenef0b9eff2009-07-09 17:16:26 +00006684IFS=$as_save_IFS
6685
6686 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6687 ;;
6688esac
6689fi
6690NEATO=$ac_cv_path_NEATO
6691if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692 { echo "$as_me:$LINENO: result: $NEATO" >&5
6693echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006695 { echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006697fi
6698
6699
6700if test "$NEATO" != "echo neato" ; then
6701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702cat >>confdefs.h <<\_ACEOF
6703#define HAVE_NEATO 1
6704_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006705
6706 if test "$llvm_cv_os_type" = "MingW" ; then
6707 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6708 fi
6709
6710cat >>confdefs.h <<_ACEOF
6711#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6712_ACEOF
6713
6714fi
6715# Extract the first word of "twopi", so it can be a program name with args.
6716set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719if test "${ac_cv_path_TWOPI+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006721else
6722 case $TWOPI in
6723 [\\/]* | ?:[\\/]*)
6724 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6725 ;;
6726 *)
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 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 +00006734 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006736 break 2
6737 fi
6738done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006739done
David Greenef0b9eff2009-07-09 17:16:26 +00006740IFS=$as_save_IFS
6741
6742 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6743 ;;
6744esac
6745fi
6746TWOPI=$ac_cv_path_TWOPI
6747if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6749echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006751 { echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006753fi
6754
6755
6756if test "$TWOPI" != "echo twopi" ; then
6757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758cat >>confdefs.h <<\_ACEOF
6759#define HAVE_TWOPI 1
6760_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006761
6762 if test "$llvm_cv_os_type" = "MingW" ; then
6763 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6764 fi
6765
6766cat >>confdefs.h <<_ACEOF
6767#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6768_ACEOF
6769
6770fi
6771# Extract the first word of "circo", so it can be a program name with args.
6772set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775if test "${ac_cv_path_CIRCO+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006777else
6778 case $CIRCO in
6779 [\\/]* | ?:[\\/]*)
6780 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6781 ;;
6782 *)
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 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 +00006790 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006792 break 2
6793 fi
6794done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006795done
David Greenef0b9eff2009-07-09 17:16:26 +00006796IFS=$as_save_IFS
6797
6798 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6799 ;;
6800esac
6801fi
6802CIRCO=$ac_cv_path_CIRCO
6803if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6805echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807 { echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006809fi
6810
6811
6812if test "$CIRCO" != "echo circo" ; then
6813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814cat >>confdefs.h <<\_ACEOF
6815#define HAVE_CIRCO 1
6816_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006817
6818 if test "$llvm_cv_os_type" = "MingW" ; then
6819 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6820 fi
6821
6822cat >>confdefs.h <<_ACEOF
6823#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6824_ACEOF
6825
6826fi
Reid Spencera773bd52006-08-04 18:18:08 +00006827for ac_prog in gv gsview32
6828do
6829 # Extract the first word of "$ac_prog", so it can be a program name with args.
6830set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833if test "${ac_cv_path_GV+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006835else
6836 case $GV in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6839 ;;
6840 *)
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 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 +00006848 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006850 break 2
6851 fi
6852done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853done
Reid Spencera773bd52006-08-04 18:18:08 +00006854IFS=$as_save_IFS
6855
6856 ;;
6857esac
6858fi
6859GV=$ac_cv_path_GV
6860if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006861 { echo "$as_me:$LINENO: result: $GV" >&5
6862echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 { echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006866fi
6867
6868
6869 test -n "$GV" && break
6870done
6871test -n "$GV" || GV="echo gv"
6872
6873if test "$GV" != "echo gv" ; then
6874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875cat >>confdefs.h <<\_ACEOF
6876#define HAVE_GV 1
6877_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006878
Jeff Cohen28783c32007-01-12 18:22:38 +00006879 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006880 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6881 fi
6882
6883cat >>confdefs.h <<_ACEOF
6884#define LLVM_PATH_GV "$GV${EXEEXT}"
6885_ACEOF
6886
6887fi
6888# Extract the first word of "dotty", so it can be a program name with args.
6889set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_path_DOTTY+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006894else
6895 case $DOTTY in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6898 ;;
6899 *)
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 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 +00006907 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006909 break 2
6910 fi
6911done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912done
Reid Spencera773bd52006-08-04 18:18:08 +00006913IFS=$as_save_IFS
6914
6915 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6916 ;;
6917esac
6918fi
6919DOTTY=$ac_cv_path_DOTTY
6920if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6922echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924 { echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006926fi
6927
6928
6929if test "$DOTTY" != "echo dotty" ; then
6930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931cat >>confdefs.h <<\_ACEOF
6932#define HAVE_DOTTY 1
6933_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006934
Jeff Cohen28783c32007-01-12 18:22:38 +00006935 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006936 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6937 fi
6938
6939cat >>confdefs.h <<_ACEOF
6940#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6941_ACEOF
6942
6943fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006944# Extract the first word of "xdot.py", so it can be a program name with args.
6945set dummy xdot.py; ac_word=$2
6946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948if test "${ac_cv_path_XDOT_PY+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951 case $XDOT_PY in
6952 [\\/]* | ?:[\\/]*)
6953 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6954 ;;
6955 *)
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967done
6968done
6969IFS=$as_save_IFS
6970
6971 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6972 ;;
6973esac
6974fi
6975XDOT_PY=$ac_cv_path_XDOT_PY
6976if test -n "$XDOT_PY"; then
6977 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6978echo "${ECHO_T}$XDOT_PY" >&6; }
6979else
6980 { echo "$as_me:$LINENO: result: no" >&5
6981echo "${ECHO_T}no" >&6; }
6982fi
6983
6984
6985if test "$XDOT_PY" != "echo xdot.py" ; then
6986
6987cat >>confdefs.h <<\_ACEOF
6988#define HAVE_XDOT_PY 1
6989_ACEOF
6990
6991 if test "$llvm_cv_os_type" = "MingW" ; then
6992 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6993 fi
6994
6995cat >>confdefs.h <<_ACEOF
6996#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6997_ACEOF
6998
6999fi
Reid Spencera773bd52006-08-04 18:18:08 +00007000
7001
7002# Extract the first word of "perl", so it can be a program name with args.
7003set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006if test "${ac_cv_path_PERL+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007008else
7009 case $PERL in
7010 [\\/]* | ?:[\\/]*)
7011 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7012 ;;
7013 *)
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 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 +00007021 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007023 break 2
7024 fi
7025done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026done
Reid Spencera773bd52006-08-04 18:18:08 +00007027IFS=$as_save_IFS
7028
7029 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7030 ;;
7031esac
7032fi
7033PERL=$ac_cv_path_PERL
7034if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007035 { echo "$as_me:$LINENO: result: $PERL" >&5
7036echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007038 { echo "$as_me:$LINENO: result: no" >&5
7039echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007040fi
7041
7042
7043if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7045echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007046 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047 { echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007049 else
7050 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 { echo "$as_me:$LINENO: result: not found" >&5
7052echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007053 fi
7054fi
7055
7056
7057if test x"$PERL" = xnone; then
7058 HAVE_PERL=0
7059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7061echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7062 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007063else
7064 HAVE_PERL=1
7065
7066fi
7067
7068# Find a good install program. We prefer a C program (faster),
7069# so one script is as good as another. But avoid the broken or
7070# incompatible versions:
7071# SysV /etc/install, /usr/sbin/install
7072# SunOS /usr/etc/install
7073# IRIX /sbin/install
7074# AIX /bin/install
7075# AmigaOS /C/install, which installs bootblocks on floppy discs
7076# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7077# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7078# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7079# OS/2's system install, which has a completely different semantic
7080# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7082echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007083if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084if test "${ac_cv_path_install+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007086else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 # Account for people who put trailing slashes in PATH elements.
7093case $as_dir/ in
7094 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007095 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007096 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007097 /usr/ucb/* ) ;;
7098 *)
7099 # OSF1 and SCO ODT 3.0 have their own names for install.
7100 # Don't use installbsd from OSF since it installs stuff as root
7101 # by default.
7102 for ac_prog in ginstall scoinst install; do
7103 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007104 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 +00007105 if test $ac_prog = install &&
7106 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7107 # AIX install. It has an incompatible calling convention.
7108 :
7109 elif test $ac_prog = install &&
7110 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7111 # program-specific install script used by HP pwplus--don't use.
7112 :
7113 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7115 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007116 fi
7117 fi
7118 done
7119 done
7120 ;;
7121esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122done
Reid Spencera773bd52006-08-04 18:18:08 +00007123IFS=$as_save_IFS
7124
7125
7126fi
7127 if test "${ac_cv_path_install+set}" = set; then
7128 INSTALL=$ac_cv_path_install
7129 else
7130 # As a last resort, use the slow shell script. Don't cache a
7131 # value for INSTALL within a source directory, because that will
7132 # break other packages using the cache if that directory is
7133 # removed, or if the value is a relative name.
7134 INSTALL=$ac_install_sh
7135 fi
7136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7138echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007139
7140# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7141# It thinks the first close brace ends the variable substitution.
7142test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7143
7144test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7145
7146test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7147
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007148case "$INSTALL" in
7149 [\\/$]* | ?:[\\/]* ) ;;
7150 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7151esac
Reid Spencera773bd52006-08-04 18:18:08 +00007152
7153# Extract the first word of "bzip2", so it can be a program name with args.
7154set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007155{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157if test "${ac_cv_path_BZIP2+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007159else
7160 case $BZIP2 in
7161 [\\/]* | ?:[\\/]*)
7162 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7163 ;;
7164 *)
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 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 +00007172 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007174 break 2
7175 fi
7176done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177done
Reid Spencera773bd52006-08-04 18:18:08 +00007178IFS=$as_save_IFS
7179
Reid Spencera773bd52006-08-04 18:18:08 +00007180 ;;
7181esac
7182fi
7183BZIP2=$ac_cv_path_BZIP2
7184if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007185 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7186echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188 { echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007190fi
7191
7192
mike-m68cb3192010-05-06 23:45:43 +00007193# Extract the first word of "cat", so it can be a program name with args.
7194set dummy cat; ac_word=$2
7195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197if test "${ac_cv_path_CAT+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 case $CAT in
7201 [\\/]* | ?:[\\/]*)
7202 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7203 ;;
7204 *)
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216done
7217done
7218IFS=$as_save_IFS
7219
7220 ;;
7221esac
7222fi
7223CAT=$ac_cv_path_CAT
7224if test -n "$CAT"; then
7225 { echo "$as_me:$LINENO: result: $CAT" >&5
7226echo "${ECHO_T}$CAT" >&6; }
7227else
7228 { echo "$as_me:$LINENO: result: no" >&5
7229echo "${ECHO_T}no" >&6; }
7230fi
7231
7232
Reid Spencera773bd52006-08-04 18:18:08 +00007233# Extract the first word of "doxygen", so it can be a program name with args.
7234set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237if test "${ac_cv_path_DOXYGEN+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007239else
7240 case $DOXYGEN in
7241 [\\/]* | ?:[\\/]*)
7242 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7243 ;;
7244 *)
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 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 +00007252 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007254 break 2
7255 fi
7256done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007257done
Reid Spencera773bd52006-08-04 18:18:08 +00007258IFS=$as_save_IFS
7259
Reid Spencera773bd52006-08-04 18:18:08 +00007260 ;;
7261esac
7262fi
7263DOXYGEN=$ac_cv_path_DOXYGEN
7264if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007265 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7266echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007267else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268 { echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007270fi
7271
7272
Reid Spencera773bd52006-08-04 18:18:08 +00007273# Extract the first word of "groff", so it can be a program name with args.
7274set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7277if test "${ac_cv_path_GROFF+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007279else
7280 case $GROFF in
7281 [\\/]* | ?:[\\/]*)
7282 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7283 ;;
7284 *)
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 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 +00007292 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007294 break 2
7295 fi
7296done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297done
Reid Spencera773bd52006-08-04 18:18:08 +00007298IFS=$as_save_IFS
7299
Reid Spencera773bd52006-08-04 18:18:08 +00007300 ;;
7301esac
7302fi
7303GROFF=$ac_cv_path_GROFF
7304if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305 { echo "$as_me:$LINENO: result: $GROFF" >&5
7306echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007308 { echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007310fi
7311
7312
7313# Extract the first word of "gzip", so it can be a program name with args.
7314set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007317if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007319else
Eric Christopher031d3072010-12-10 01:31:51 +00007320 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007321 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007322 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007323 ;;
7324 *)
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 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 +00007332 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007334 break 2
7335 fi
7336done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007337done
Reid Spencera773bd52006-08-04 18:18:08 +00007338IFS=$as_save_IFS
7339
Reid Spencera773bd52006-08-04 18:18:08 +00007340 ;;
7341esac
7342fi
Eric Christopher031d3072010-12-10 01:31:51 +00007343GZIPBIN=$ac_cv_path_GZIPBIN
7344if test -n "$GZIPBIN"; then
7345 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7346echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007348 { echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007350fi
7351
7352
7353# Extract the first word of "pod2html", so it can be a program name with args.
7354set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357if test "${ac_cv_path_POD2HTML+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007359else
7360 case $POD2HTML in
7361 [\\/]* | ?:[\\/]*)
7362 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7363 ;;
7364 *)
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 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 +00007372 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007374 break 2
7375 fi
7376done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007377done
Reid Spencera773bd52006-08-04 18:18:08 +00007378IFS=$as_save_IFS
7379
Reid Spencera773bd52006-08-04 18:18:08 +00007380 ;;
7381esac
7382fi
7383POD2HTML=$ac_cv_path_POD2HTML
7384if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7386echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007387else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007390fi
7391
7392
7393# Extract the first word of "pod2man", so it can be a program name with args.
7394set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397if test "${ac_cv_path_POD2MAN+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007399else
7400 case $POD2MAN in
7401 [\\/]* | ?:[\\/]*)
7402 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7403 ;;
7404 *)
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 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 +00007412 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007414 break 2
7415 fi
7416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417done
Reid Spencera773bd52006-08-04 18:18:08 +00007418IFS=$as_save_IFS
7419
Reid Spencera773bd52006-08-04 18:18:08 +00007420 ;;
7421esac
7422fi
7423POD2MAN=$ac_cv_path_POD2MAN
7424if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007425 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7426echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007428 { echo "$as_me:$LINENO: result: no" >&5
7429echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007430fi
7431
7432
mike-m68cb3192010-05-06 23:45:43 +00007433# Extract the first word of "pdfroff", so it can be a program name with args.
7434set dummy pdfroff; ac_word=$2
7435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437if test "${ac_cv_path_PDFROFF+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440 case $PDFROFF in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7443 ;;
7444 *)
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456done
7457done
7458IFS=$as_save_IFS
7459
7460 ;;
7461esac
7462fi
7463PDFROFF=$ac_cv_path_PDFROFF
7464if test -n "$PDFROFF"; then
7465 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7466echo "${ECHO_T}$PDFROFF" >&6; }
7467else
7468 { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
7470fi
7471
7472
Reid Spencera773bd52006-08-04 18:18:08 +00007473# Extract the first word of "runtest", so it can be a program name with args.
7474set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7477if test "${ac_cv_path_RUNTEST+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007479else
7480 case $RUNTEST in
7481 [\\/]* | ?:[\\/]*)
7482 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7483 ;;
7484 *)
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 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 +00007492 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007494 break 2
7495 fi
7496done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497done
Reid Spencera773bd52006-08-04 18:18:08 +00007498IFS=$as_save_IFS
7499
Reid Spencera773bd52006-08-04 18:18:08 +00007500 ;;
7501esac
7502fi
7503RUNTEST=$ac_cv_path_RUNTEST
7504if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7506echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 { echo "$as_me:$LINENO: result: no" >&5
7509echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007510fi
7511
7512
7513
7514no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7516echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007517
7518# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007520 withval=$with_tclinclude; with_tclinclude=${withval}
7521else
7522 with_tclinclude=''
7523fi
7524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525if test "${ac_cv_path_tclsh+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007527else
7528
7529if test x"${with_tclinclude}" != x ; then
7530 if test -f ${with_tclinclude}/tclsh ; then
7531 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7532 elif test -f ${with_tclinclude}/src/tclsh ; then
7533 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7534 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007535 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7536echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7537 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007538 fi
7539fi
Torok Edwin871384f2010-01-26 08:50:50 +00007540fi
7541
Reid Spencera773bd52006-08-04 18:18:08 +00007542
7543if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 { echo "$as_me:$LINENO: result: none" >&5
7545echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007546 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
7547do
7548 # Extract the first word of "$ac_prog", so it can be a program name with args.
7549set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552if test "${ac_cv_path_TCLSH+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007554else
7555 case $TCLSH in
7556 [\\/]* | ?:[\\/]*)
7557 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7558 ;;
7559 *)
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 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 +00007567 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007569 break 2
7570 fi
7571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572done
Reid Spencera773bd52006-08-04 18:18:08 +00007573IFS=$as_save_IFS
7574
7575 ;;
7576esac
7577fi
7578TCLSH=$ac_cv_path_TCLSH
7579if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7581echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007583 { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007585fi
7586
7587
7588 test -n "$TCLSH" && break
7589done
7590
7591 if test x"${TCLSH}" = x ; then
7592 ac_cv_path_tclsh='';
7593 else
7594 ac_cv_path_tclsh="${TCLSH}";
7595 fi
7596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007597 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7598echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007599 TCLSH="${ac_cv_path_tclsh}"
7600
7601fi
7602
Reid Spencera773bd52006-08-04 18:18:08 +00007603# Extract the first word of "zip", so it can be a program name with args.
7604set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607if test "${ac_cv_path_ZIP+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007609else
7610 case $ZIP in
7611 [\\/]* | ?:[\\/]*)
7612 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7613 ;;
7614 *)
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 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 +00007622 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007624 break 2
7625 fi
7626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627done
Reid Spencera773bd52006-08-04 18:18:08 +00007628IFS=$as_save_IFS
7629
Reid Spencera773bd52006-08-04 18:18:08 +00007630 ;;
7631esac
7632fi
7633ZIP=$ac_cv_path_ZIP
7634if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635 { echo "$as_me:$LINENO: result: $ZIP" >&5
7636echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007638 { echo "$as_me:$LINENO: result: no" >&5
7639echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007640fi
7641
7642
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007643for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007644do
7645 # Extract the first word of "$ac_prog", so it can be a program name with args.
7646set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649if test "${ac_cv_path_OCAMLC+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007651else
7652 case $OCAMLC in
7653 [\\/]* | ?:[\\/]*)
7654 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7655 ;;
7656 *)
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 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 +00007664 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007666 break 2
7667 fi
7668done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007669done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007670IFS=$as_save_IFS
7671
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007672 ;;
7673esac
7674fi
7675OCAMLC=$ac_cv_path_OCAMLC
7676if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7678echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 { echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007682fi
7683
7684
Gordon Henriksene7072162008-03-07 18:20:01 +00007685 test -n "$OCAMLC" && break
7686done
7687
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007688for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007689do
7690 # Extract the first word of "$ac_prog", so it can be a program name with args.
7691set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007696else
7697 case $OCAMLOPT in
7698 [\\/]* | ?:[\\/]*)
7699 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7700 ;;
7701 *)
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703for as_dir in $PATH
7704do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 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 +00007709 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007711 break 2
7712 fi
7713done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007715IFS=$as_save_IFS
7716
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007717 ;;
7718esac
7719fi
7720OCAMLOPT=$ac_cv_path_OCAMLOPT
7721if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7723echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725 { echo "$as_me:$LINENO: result: no" >&5
7726echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007727fi
7728
7729
Gordon Henriksene7072162008-03-07 18:20:01 +00007730 test -n "$OCAMLOPT" && break
7731done
7732
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007733for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007734do
7735 # Extract the first word of "$ac_prog", so it can be a program name with args.
7736set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007741else
7742 case $OCAMLDEP in
7743 [\\/]* | ?:[\\/]*)
7744 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7745 ;;
7746 *)
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 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 +00007754 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007756 break 2
7757 fi
7758done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007759done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007760IFS=$as_save_IFS
7761
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007762 ;;
7763esac
7764fi
7765OCAMLDEP=$ac_cv_path_OCAMLDEP
7766if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007767 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7768echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007770 { echo "$as_me:$LINENO: result: no" >&5
7771echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007772fi
7773
7774
Gordon Henriksene7072162008-03-07 18:20:01 +00007775 test -n "$OCAMLDEP" && break
7776done
7777
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007778for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007779do
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007786else
7787 case $OCAMLDOC in
7788 [\\/]* | ?:[\\/]*)
7789 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7790 ;;
7791 *)
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 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 +00007799 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007801 break 2
7802 fi
7803done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007804done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007805IFS=$as_save_IFS
7806
7807 ;;
7808esac
7809fi
7810OCAMLDOC=$ac_cv_path_OCAMLDOC
7811if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007812 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7813echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007815 { echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007817fi
7818
7819
7820 test -n "$OCAMLDOC" && break
7821done
7822
Torok Edwincc499a42008-10-22 09:56:27 +00007823for ac_prog in gas as
7824do
7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
7826set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829if test "${ac_cv_path_GAS+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007831else
7832 case $GAS in
7833 [\\/]* | ?:[\\/]*)
7834 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7835 ;;
7836 *)
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 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 +00007844 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007846 break 2
7847 fi
7848done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007849done
Torok Edwincc499a42008-10-22 09:56:27 +00007850IFS=$as_save_IFS
7851
7852 ;;
7853esac
7854fi
7855GAS=$ac_cv_path_GAS
7856if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007857 { echo "$as_me:$LINENO: result: $GAS" >&5
7858echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007860 { echo "$as_me:$LINENO: result: no" >&5
7861echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007862fi
7863
7864
7865 test -n "$GAS" && break
7866done
7867
Reid Spencera773bd52006-08-04 18:18:08 +00007868
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007869{ echo "$as_me:$LINENO: checking for linker version" >&5
7870echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7871if test "${llvm_cv_link_version+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873else
7874
7875 version_string="$(ld -v 2>&1 | head -1)"
7876
7877 # Check for ld64.
7878 if (echo "$version_string" | grep -q "ld64"); then
7879 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7880 else
7881 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7882 fi
7883
7884fi
7885{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7886echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7887
7888cat >>confdefs.h <<_ACEOF
7889#define HOST_LINK_VERSION "$llvm_cv_link_version"
7890_ACEOF
7891
7892
7893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007894{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7895echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7896if test "${llvm_cv_link_use_r+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007898else
7899 ac_ext=c
7900ac_cpp='$CPP $CPPFLAGS'
7901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905 oldcflags="$CFLAGS"
7906 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007907 cat >conftest.$ac_ext <<_ACEOF
7908/* confdefs.h. */
7909_ACEOF
7910cat confdefs.h >>conftest.$ac_ext
7911cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007912/* end confdefs.h. */
7913
7914int
7915main ()
7916{
Dan Gohman39ed6782010-04-25 00:12:20 +00007917
Reid Spencera773bd52006-08-04 18:18:08 +00007918 ;
7919 return 0;
7920}
7921_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007922rm -f conftest.$ac_objext conftest$ac_exeext
7923if { (ac_try="$ac_link"
7924case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
7928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_link") 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7946 { ac_try='test -s conftest$ac_exeext'
7947 { (case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950esac
7951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_try") 2>&5
7953 ac_status=$?
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007956 llvm_cv_link_use_r=yes
7957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007958 echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
7961 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963
Bill Wendlingebcceee2009-04-18 11:20:33 +00007964rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007965 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007966 CFLAGS="$oldcflags"
7967 ac_ext=c
7968ac_cpp='$CPP $CPPFLAGS'
7969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972
7973
7974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007975{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7976echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007977if test "$llvm_cv_link_use_r" = yes ; then
7978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007979cat >>confdefs.h <<\_ACEOF
7980#define HAVE_LINK_R 1
7981_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007982
7983 fi
7984
7985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007986{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7987echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7988if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007990else
7991 ac_ext=c
7992ac_cpp='$CPP $CPPFLAGS'
7993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997 oldcflags="$CFLAGS"
7998 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007999 cat >conftest.$ac_ext <<_ACEOF
8000/* confdefs.h. */
8001_ACEOF
8002cat confdefs.h >>conftest.$ac_ext
8003cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008004/* end confdefs.h. */
8005
8006int
8007main ()
8008{
Dan Gohman39ed6782010-04-25 00:12:20 +00008009
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008010 ;
8011 return 0;
8012}
8013_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014rm -f conftest.$ac_objext conftest$ac_exeext
8015if { (ac_try="$ac_link"
8016case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019esac
8020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_link") 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029 { (case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032esac
8033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_try") 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; } &&
8038 { ac_try='test -s conftest$ac_exeext'
8039 { (case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042esac
8043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_try") 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008048 llvm_cv_link_use_export_dynamic=yes
8049else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008050 echo "$as_me: failed program was:" >&5
8051sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008054fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055
Bill Wendlingebcceee2009-04-18 11:20:33 +00008056rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008057 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008058 CFLAGS="$oldcflags"
8059 ac_ext=c
8060ac_cpp='$CPP $CPPFLAGS'
8061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8063ac_compiler_gnu=$ac_cv_c_compiler_gnu
8064
8065
8066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008067{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8068echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008069if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008071cat >>confdefs.h <<\_ACEOF
8072#define HAVE_LINK_EXPORT_DYNAMIC 1
8073_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008074
8075 fi
8076
8077
Dan Gohmanda612d62010-06-01 14:56:56 +00008078{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8079echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8080if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082else
8083 ac_ext=c
8084ac_cpp='$CPP $CPPFLAGS'
8085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088
8089 oldcflags="$CFLAGS"
8090
8091 # The following code is from the autoconf manual,
8092 # "11.13: Limitations of Usual Tools".
8093 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8094 # Use mktemp if possible; otherwise fall back on mkdir,
8095 # with $RANDOM to make collisions less likely.
8096 : ${TMPDIR=/tmp}
8097 {
8098 tmp=`
8099 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8100 ` &&
8101 test -n "$tmp" && test -d "$tmp"
8102 } || {
8103 tmp=$TMPDIR/foo$$-$RANDOM
8104 (umask 077 && mkdir "$tmp")
8105 } || exit $?
8106
Dan Gohmanda612d62010-06-01 14:56:56 +00008107 echo "{" > "$tmp/export.map"
8108 echo " global: main;" >> "$tmp/export.map"
8109 echo " local: *;" >> "$tmp/export.map"
8110 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008111
Dan Gohmanda612d62010-06-01 14:56:56 +00008112 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008113 cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
8119
8120int
8121main ()
8122{
Dan Gohman39ed6782010-04-25 00:12:20 +00008123
Dan Gohman391569c2010-04-16 22:59:06 +00008124 ;
8125 return 0;
8126}
8127_ACEOF
8128rm -f conftest.$ac_objext conftest$ac_exeext
8129if { (ac_try="$ac_link"
8130case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
8134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_link") 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8143 { (case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146esac
8147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_try") 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try='test -s conftest$ac_exeext'
8153 { (case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8156esac
8157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_try") 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008162 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008163else
8164 echo "$as_me: failed program was:" >&5
8165sed 's/^/| /' conftest.$ac_ext >&5
8166
Dan Gohman943005e2010-06-01 16:22:27 +00008167 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008168fi
8169
8170rm -f core conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008172 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008173 rmdir "$tmp"
8174 CFLAGS="$oldcflags"
8175 ac_ext=c
8176ac_cpp='$CPP $CPPFLAGS'
8177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181
8182fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008183{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8184echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8185if test "$llvm_cv_link_use_version_script" = yes ; then
8186 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008187
8188 fi
8189
8190
Reid Spencera773bd52006-08-04 18:18:08 +00008191
8192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008193{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8194echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8195if test "${ac_cv_c_const+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198 cat >conftest.$ac_ext <<_ACEOF
8199/* confdefs.h. */
8200_ACEOF
8201cat confdefs.h >>conftest.$ac_ext
8202cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008203/* end confdefs.h. */
8204
8205int
8206main ()
8207{
8208/* FIXME: Include the comments suggested by Paul. */
8209#ifndef __cplusplus
8210 /* Ultrix mips cc rejects this. */
8211 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008213 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214 char const *const *ccp;
8215 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008216 /* NEC SVR4.0.2 mips cc rejects this. */
8217 struct point {int x, y;};
8218 static struct point const zero = {0,0};
8219 /* AIX XL C 1.02.0.0 rejects this.
8220 It does not let you subtract one const X* pointer from another in
8221 an arm of an if-expression whose if-part is not a constant
8222 expression */
8223 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008224 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008225 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008226 ++ccp;
8227 p = (char**) ccp;
8228 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008229 { /* SCO 3.2v4 cc rejects this. */
8230 char *t;
8231 char const *s = 0 ? (char *) 0 : (char const *) 0;
8232
8233 *t++ = 0;
8234 if (s) return 0;
8235 }
8236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8237 int x[] = {25, 17};
8238 const int *foo = &x[0];
8239 ++foo;
8240 }
8241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8242 typedef const int *iptr;
8243 iptr p = 0;
8244 ++p;
8245 }
8246 { /* AIX XL C 1.02.0.0 rejects this saying
8247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8248 struct s { int j; const int *ap[3]; };
8249 struct s *b; b->j = 5;
8250 }
8251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8252 const int foo = 10;
8253 if (!foo) return 0;
8254 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008255 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008256#endif
8257
8258 ;
8259 return 0;
8260}
8261_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008262rm -f conftest.$ac_objext
8263if { (ac_try="$ac_compile"
8264case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8277 { (case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_try") 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; } &&
8286 { ac_try='test -s conftest.$ac_objext'
8287 { (case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290esac
8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_try") 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008296 ac_cv_c_const=yes
8297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298 echo "$as_me: failed program was:" >&5
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303
Reid Spencera773bd52006-08-04 18:18:08 +00008304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008306{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8307echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008308if test $ac_cv_c_const = no; then
8309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310cat >>confdefs.h <<\_ACEOF
8311#define const
8312_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008313
8314fi
8315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008316
8317
8318
8319
8320
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008321ac_header_dirent=no
8322for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8324{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8325echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 cat >conftest.$ac_ext <<_ACEOF
8330/* confdefs.h. */
8331_ACEOF
8332cat confdefs.h >>conftest.$ac_ext
8333cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008334/* end confdefs.h. */
8335#include <sys/types.h>
8336#include <$ac_hdr>
8337
8338int
8339main ()
8340{
8341if ((DIR *) 0)
8342return 0;
8343 ;
8344 return 0;
8345}
8346_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347rm -f conftest.$ac_objext
8348if { (ac_try="$ac_compile"
8349case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352esac
8353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_try") 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest.$ac_objext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008381 eval "$as_ac_Header=yes"
8382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008383 echo "$as_me: failed program was:" >&5
8384sed 's/^/| /' conftest.$ac_ext >&5
8385
8386 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008388
Reid Spencera773bd52006-08-04 18:18:08 +00008389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008391ac_res=`eval echo '${'$as_ac_Header'}'`
8392 { echo "$as_me:$LINENO: result: $ac_res" >&5
8393echo "${ECHO_T}$ac_res" >&6; }
8394if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008395 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008396#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008397_ACEOF
8398
8399ac_header_dirent=$ac_hdr; break
8400fi
8401
8402done
8403# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8404if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8406echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8407if test "${ac_cv_search_opendir+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008409else
8410 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008411cat >conftest.$ac_ext <<_ACEOF
8412/* confdefs.h. */
8413_ACEOF
8414cat confdefs.h >>conftest.$ac_ext
8415cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008416/* end confdefs.h. */
8417
Reid Spencera773bd52006-08-04 18:18:08 +00008418/* Override any GCC internal prototype to avoid an error.
8419 Use char because int might match the return type of a GCC
8420 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008421#ifdef __cplusplus
8422extern "C"
8423#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008424char opendir ();
8425int
8426main ()
8427{
Reid Spencera773bd52006-08-04 18:18:08 +00008428return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008429 ;
8430 return 0;
8431}
8432_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008433for ac_lib in '' dir; do
8434 if test -z "$ac_lib"; then
8435 ac_res="none required"
8436 else
8437 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008439 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008440 rm -f conftest.$ac_objext conftest$ac_exeext
8441if { (ac_try="$ac_link"
8442case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445esac
8446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_link") 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455 { (case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458esac
8459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_try") 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8468esac
8469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_try") 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008474 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008475else
8476 echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
8478
8479
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008481
Bill Wendlingebcceee2009-04-18 11:20:33 +00008482rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483 conftest$ac_exeext
8484 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008485 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008486fi
John Criswell7a73b802003-06-30 21:59:07 +00008487done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008488if test "${ac_cv_search_opendir+set}" = set; then
8489 :
Reid Spencera773bd52006-08-04 18:18:08 +00008490else
8491 ac_cv_search_opendir=no
8492fi
8493rm conftest.$ac_ext
8494LIBS=$ac_func_search_save_LIBS
8495fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008496{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8497echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008498ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008499if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008501
Reid Spencera773bd52006-08-04 18:18:08 +00008502fi
8503
8504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008505 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8506echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8507if test "${ac_cv_search_opendir+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008509else
8510 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008511cat >conftest.$ac_ext <<_ACEOF
8512/* confdefs.h. */
8513_ACEOF
8514cat confdefs.h >>conftest.$ac_ext
8515cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008516/* end confdefs.h. */
8517
8518/* Override any GCC internal prototype to avoid an error.
8519 Use char because int might match the return type of a GCC
8520 builtin and then its argument prototype would still apply. */
8521#ifdef __cplusplus
8522extern "C"
8523#endif
8524char opendir ();
8525int
8526main ()
8527{
8528return opendir ();
8529 ;
8530 return 0;
8531}
8532_ACEOF
8533for ac_lib in '' x; do
8534 if test -z "$ac_lib"; then
8535 ac_res="none required"
8536 else
8537 ac_res=-l$ac_lib
8538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8539 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008540 rm -f conftest.$ac_objext conftest$ac_exeext
8541if { (ac_try="$ac_link"
8542case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545esac
8546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_link") 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568esac
8569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_try") 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008574 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008575else
8576 echo "$as_me: failed program was:" >&5
8577sed 's/^/| /' conftest.$ac_ext >&5
8578
8579
Reid Spencera773bd52006-08-04 18:18:08 +00008580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008581
Bill Wendlingebcceee2009-04-18 11:20:33 +00008582rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008583 conftest$ac_exeext
8584 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008585 break
8586fi
8587done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588if test "${ac_cv_search_opendir+set}" = set; then
8589 :
Reid Spencera773bd52006-08-04 18:18:08 +00008590else
8591 ac_cv_search_opendir=no
8592fi
8593rm conftest.$ac_ext
8594LIBS=$ac_func_search_save_LIBS
8595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008596{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8597echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008598ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008599if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8601
8602fi
8603
8604fi
John Criswell7a73b802003-06-30 21:59:07 +00008605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008606
John Criswell7a73b802003-06-30 21:59:07 +00008607for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008608do
8609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8615fi
8616ac_res=`eval echo '${'$as_ac_Header'}'`
8617 { echo "$as_me:$LINENO: result: $ac_res" >&5
8618echo "${ECHO_T}$ac_res" >&6; }
8619else
8620 # Is the header compilable?
8621{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8623cat >conftest.$ac_ext <<_ACEOF
8624/* confdefs.h. */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
8628/* end confdefs.h. */
8629$ac_includes_default
8630#include <$ac_header>
8631_ACEOF
8632rm -f conftest.$ac_objext
8633if { (ac_try="$ac_compile"
8634case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8637esac
8638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650esac
8651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660esac
8661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_try") 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_header_compiler=yes
8667else
8668 echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_header_compiler=no
8672fi
8673
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8676echo "${ECHO_T}$ac_header_compiler" >&6; }
8677
8678# Is the header present?
8679{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8680echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8681cat >conftest.$ac_ext <<_ACEOF
8682/* confdefs.h. */
8683_ACEOF
8684cat confdefs.h >>conftest.$ac_ext
8685cat >>conftest.$ac_ext <<_ACEOF
8686/* end confdefs.h. */
8687#include <$ac_header>
8688_ACEOF
8689if { (ac_try="$ac_cpp conftest.$ac_ext"
8690case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8693esac
8694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } >/dev/null; then
8702 if test -s conftest.err; then
8703 ac_cpp_err=$ac_c_preproc_warn_flag
8704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8705 else
8706 ac_cpp_err=
8707 fi
8708else
8709 ac_cpp_err=yes
8710fi
8711if test -z "$ac_cpp_err"; then
8712 ac_header_preproc=yes
8713else
8714 echo "$as_me: failed program was:" >&5
8715sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 ac_header_preproc=no
8718fi
8719
8720rm -f conftest.err conftest.$ac_ext
8721{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8722echo "${ECHO_T}$ac_header_preproc" >&6; }
8723
8724# So? What about this header?
8725case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8726 yes:no: )
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8728echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8730echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8731 ac_header_preproc=yes
8732 ;;
8733 no:yes:* )
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8737echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8739echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8741echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8743echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8745echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8746 ( cat <<\_ASBOX
8747## ----------------------------------- ##
8748## Report this to llvmbugs@cs.uiuc.edu ##
8749## ----------------------------------- ##
8750_ASBOX
8751 ) | sed "s/^/$as_me: WARNING: /" >&2
8752 ;;
8753esac
8754{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758else
8759 eval "$as_ac_Header=\$ac_header_preproc"
8760fi
8761ac_res=`eval echo '${'$as_ac_Header'}'`
8762 { echo "$as_me:$LINENO: result: $ac_res" >&5
8763echo "${ECHO_T}$ac_res" >&6; }
8764
8765fi
8766if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008767 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008769_ACEOF
8770
8771fi
8772
8773done
8774
Reid Spencera773bd52006-08-04 18:18:08 +00008775# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008776if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008777 enableval=$enable_ltdl_install;
8778fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008779
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008781
8782
8783if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008784 INSTALL_LTDL_TRUE=
8785 INSTALL_LTDL_FALSE='#'
8786else
8787 INSTALL_LTDL_TRUE='#'
8788 INSTALL_LTDL_FALSE=
8789fi
8790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008791
8792
8793if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008794 CONVENIENCE_LTDL_TRUE=
8795 CONVENIENCE_LTDL_FALSE='#'
8796else
8797 CONVENIENCE_LTDL_TRUE='#'
8798 CONVENIENCE_LTDL_FALSE=
8799fi
8800
8801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008802{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8803echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008804library_names_spec=
8805libname_spec='lib$name'
8806soname_spec=
8807shrext_cmds=".so"
8808postinstall_cmds=
8809postuninstall_cmds=
8810finish_cmds=
8811finish_eval=
8812shlibpath_var=
8813shlibpath_overrides_runpath=unknown
8814version_type=none
8815dynamic_linker="$host_os ld.so"
8816sys_lib_dlsearch_path_spec="/lib /usr/lib"
8817if test "$GCC" = yes; then
8818 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8819 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8820 # if the path contains ";" then we assume it to be the separator
8821 # otherwise default to the standard path separator (i.e. ":") - it is
8822 # assumed that no part of a normal pathname contains ";" but that should
8823 # okay in the real world where ";" in dirpaths is itself problematic.
8824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8825 else
8826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8827 fi
8828else
8829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8830fi
8831need_lib_prefix=unknown
8832hardcode_into_libs=no
8833
8834# when you set need_version to no, make sure it does not cause -set_version
8835# flags to be left without arguments
8836need_version=unknown
8837
8838case $host_os in
8839aix3*)
8840 version_type=linux
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8842 shlibpath_var=LIBPATH
8843
8844 # AIX 3 has no versioning support, so we append a major version to the name.
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 ;;
8847
8848aix4* | aix5*)
8849 version_type=linux
8850 need_lib_prefix=no
8851 need_version=no
8852 hardcode_into_libs=yes
8853 if test "$host_cpu" = ia64; then
8854 # AIX 5 supports IA64
8855 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8856 shlibpath_var=LD_LIBRARY_PATH
8857 else
8858 # With GCC up to 2.95.x, collect2 would create an import file
8859 # for dependence libraries. The import file would start with
8860 # the line `#! .'. This would cause the generated library to
8861 # depend on `.', always an invalid library. This was fixed in
8862 # development snapshots of GCC prior to 3.0.
8863 case $host_os in
8864 aix4 | aix4.[01] | aix4.[01].*)
8865 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8866 echo ' yes '
8867 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8868 :
8869 else
8870 can_build_shared=no
8871 fi
8872 ;;
8873 esac
8874 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8875 # soname into executable. Probably we can add versioning support to
8876 # collect2, so additional links can be useful in future.
8877 if test "$aix_use_runtimelinking" = yes; then
8878 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8879 # instead of lib<name>.a to let people know that these are not
8880 # typical AIX shared libraries.
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882 else
8883 # We preserve .a as extension for shared libraries through AIX4.2
8884 # and later when we are not doing run time linking.
8885 library_names_spec='${libname}${release}.a $libname.a'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 fi
8888 shlibpath_var=LIBPATH
8889 fi
8890 ;;
8891
8892amigaos*)
8893 library_names_spec='$libname.ixlibrary $libname.a'
8894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8895 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'
8896 ;;
8897
8898beos*)
8899 library_names_spec='${libname}${shared_ext}'
8900 dynamic_linker="$host_os ld.so"
8901 shlibpath_var=LIBRARY_PATH
8902 ;;
8903
8904bsdi[45]*)
8905 version_type=linux
8906 need_version=no
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8910 shlibpath_var=LD_LIBRARY_PATH
8911 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8912 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8913 # the default ld.so.conf also contains /usr/contrib/lib and
8914 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8915 # libtool to hard-code these into programs
8916 ;;
8917
8918cygwin* | mingw* | pw32*)
8919 version_type=windows
8920 shrext_cmds=".dll"
8921 need_version=no
8922 need_lib_prefix=no
8923
8924 case $GCC,$host_os in
8925 yes,cygwin* | yes,mingw* | yes,pw32*)
8926 library_names_spec='$libname.dll.a'
8927 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8928 postinstall_cmds='base_file=`basename \${file}`~
8929 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8930 dldir=$destdir/`dirname \$dlpath`~
8931 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008932 $install_prog $dir/$dlname \$dldir/$dlname~
8933 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8935 dlpath=$dir/\$dldll~
8936 $rm \$dlpath'
8937 shlibpath_overrides_runpath=yes
8938
8939 case $host_os in
8940 cygwin*)
8941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8942 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8943 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8944 ;;
8945 mingw*)
8946 # MinGW DLLs use traditional 'lib' prefix
8947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8949 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8950 # It is most probably a Windows format PATH printed by
8951 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8952 # path with ; separators, and with drive letters. We can handle the
8953 # drive letters (cygwin fileutils understands them), so leave them,
8954 # especially as we might pass files found there to a mingw objdump,
8955 # which wouldn't understand a cygwinified path. Ahh.
8956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8957 else
8958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8959 fi
8960 ;;
8961 pw32*)
8962 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008963 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 +00008964 ;;
8965 esac
8966 ;;
8967
8968 *)
8969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8970 ;;
8971 esac
8972 dynamic_linker='Win32 ld.exe'
8973 # FIXME: first we should search . and the directory the executable is in
8974 shlibpath_var=PATH
8975 ;;
8976
8977darwin* | rhapsody*)
8978 dynamic_linker="$host_os dyld"
8979 version_type=darwin
8980 need_lib_prefix=no
8981 need_version=no
8982 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8983 soname_spec='${libname}${release}${major}$shared_ext'
8984 shlibpath_overrides_runpath=yes
8985 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008986 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008987 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8988 if test "$GCC" = yes; then
8989 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"`
8990 else
8991 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8992 fi
8993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8994 ;;
8995
8996dgux*)
8997 version_type=linux
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 ;;
9004
Eric Christopher360fa9a2011-10-26 00:42:12 +00009005freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009006 dynamic_linker=no
9007 ;;
9008
9009kfreebsd*-gnu)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=no
9017 hardcode_into_libs=yes
9018 dynamic_linker='GNU ld.so'
9019 ;;
9020
Reid Spencera773bd52006-08-04 18:18:08 +00009021freebsd* | dragonfly*)
9022 # DragonFly does not have aout. When/if they implement a new
9023 # versioning mechanism, adjust this.
9024 if test -x /usr/bin/objformat; then
9025 objformat=`/usr/bin/objformat`
9026 else
9027 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00009028 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009029 *) objformat=elf ;;
9030 esac
9031 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009032 version_type=freebsd-$objformat
9033 case $version_type in
9034 freebsd-elf*)
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9036 need_version=no
9037 need_lib_prefix=no
9038 ;;
9039 freebsd-*)
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9041 need_version=yes
9042 ;;
9043 esac
9044 shlibpath_var=LD_LIBRARY_PATH
9045 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00009046 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009047 shlibpath_overrides_runpath=yes
9048 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009049 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009050 shlibpath_overrides_runpath=yes
9051 hardcode_into_libs=yes
9052 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009055 shlibpath_overrides_runpath=no
9056 hardcode_into_libs=yes
9057 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009058 freebsd*) # from 4.6 on
9059 shlibpath_overrides_runpath=yes
9060 hardcode_into_libs=yes
9061 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009062 esac
9063 ;;
9064
9065gnu*)
9066 version_type=linux
9067 need_lib_prefix=no
9068 need_version=no
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 hardcode_into_libs=yes
9073 ;;
9074
9075hpux9* | hpux10* | hpux11*)
9076 # Give a soname corresponding to the major version so that dld.sl refuses to
9077 # link against other versions.
9078 version_type=sunos
9079 need_lib_prefix=no
9080 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009081 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009082 ia64*)
9083 shrext_cmds='.so'
9084 hardcode_into_libs=yes
9085 dynamic_linker="$host_os dld.so"
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 if test "X$HPUX_IA64_MODE" = X32; then
9091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9092 else
9093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9094 fi
9095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9096 ;;
9097 hppa*64*)
9098 shrext_cmds='.sl'
9099 hardcode_into_libs=yes
9100 dynamic_linker="$host_os dld.sl"
9101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9107 ;;
9108 *)
9109 shrext_cmds='.sl'
9110 dynamic_linker="$host_os dld.sl"
9111 shlibpath_var=SHLIB_PATH
9112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 ;;
9116 esac
9117 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9118 postinstall_cmds='chmod 555 $lib'
9119 ;;
9120
Reid Spencera773bd52006-08-04 18:18:08 +00009121interix3*)
9122 version_type=linux
9123 need_lib_prefix=no
9124 need_version=no
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=no
9130 hardcode_into_libs=yes
9131 ;;
9132
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009133irix5* | irix6* | nonstopux*)
9134 case $host_os in
9135 nonstopux*) version_type=nonstopux ;;
9136 *)
9137 if test "$lt_cv_prog_gnu_ld" = yes; then
9138 version_type=linux
9139 else
9140 version_type=irix
9141 fi ;;
9142 esac
9143 need_lib_prefix=no
9144 need_version=no
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9147 case $host_os in
9148 irix5* | nonstopux*)
9149 libsuff= shlibsuff=
9150 ;;
9151 *)
9152 case $LD in # libtool.m4 will add one of these switches to LD
9153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9154 libsuff= shlibsuff= libmagic=32-bit;;
9155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9156 libsuff=32 shlibsuff=N32 libmagic=N32;;
9157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9159 *) libsuff= shlibsuff= libmagic=never-match;;
9160 esac
9161 ;;
9162 esac
9163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9164 shlibpath_overrides_runpath=no
9165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9167 hardcode_into_libs=yes
9168 ;;
9169
9170# No shared lib support for Linux oldld, aout, or coff.
9171linux*oldld* | linux*aout* | linux*coff*)
9172 dynamic_linker=no
9173 ;;
9174
9175# This must be Linux ELF.
9176linux*)
9177 version_type=linux
9178 need_lib_prefix=no
9179 need_version=no
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 shlibpath_overrides_runpath=no
9185 # This implies no fast_install, which is unacceptable.
9186 # Some rework will be needed to allow for fast_install
9187 # before this can be enabled.
9188 hardcode_into_libs=yes
9189
9190 # Append ld.so.conf contents to the search path
9191 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009192 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 +00009193 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9194 fi
9195
9196 # We used to test for /lib/ld.so.1 and disable shared libraries on
9197 # powerpc, because MkLinux only supported shared libraries with the
9198 # GNU dynamic linker. Since this was broken with cross compilers,
9199 # most powerpc-linux boxes support dynamic linking these days and
9200 # people can always --disable-shared, the test was removed, and we
9201 # assume the GNU/Linux dynamic linker is in use.
9202 dynamic_linker='GNU/Linux ld.so'
9203 ;;
9204
9205knetbsd*-gnu)
9206 version_type=linux
9207 need_lib_prefix=no
9208 need_version=no
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=no
9213 hardcode_into_libs=yes
9214 dynamic_linker='GNU ld.so'
9215 ;;
9216
9217netbsd*)
9218 version_type=sunos
9219 need_lib_prefix=no
9220 need_version=no
9221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9224 dynamic_linker='NetBSD (a.out) ld.so'
9225 else
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 dynamic_linker='NetBSD ld.elf_so'
9229 fi
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=yes
9232 hardcode_into_libs=yes
9233 ;;
9234
9235newsos6)
9236 version_type=linux
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9240 ;;
9241
9242nto-qnx*)
9243 version_type=linux
9244 need_lib_prefix=no
9245 need_version=no
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=yes
9250 ;;
9251
9252openbsd*)
9253 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009254 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009255 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009256 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9257 case $host_os in
9258 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9259 *) need_version=no ;;
9260 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9265 case $host_os in
9266 openbsd2.[89] | openbsd2.[89].*)
9267 shlibpath_overrides_runpath=no
9268 ;;
9269 *)
9270 shlibpath_overrides_runpath=yes
9271 ;;
9272 esac
9273 else
9274 shlibpath_overrides_runpath=yes
9275 fi
9276 ;;
9277
9278os2*)
9279 libname_spec='$name'
9280 shrext_cmds=".dll"
9281 need_lib_prefix=no
9282 library_names_spec='$libname${shared_ext} $libname.a'
9283 dynamic_linker='OS/2 ld.exe'
9284 shlibpath_var=LIBPATH
9285 ;;
9286
9287osf3* | osf4* | osf5*)
9288 version_type=osf
9289 need_lib_prefix=no
9290 need_version=no
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9295 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9296 ;;
9297
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009298solaris*)
9299 version_type=linux
9300 need_lib_prefix=no
9301 need_version=no
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 # ldd complains unless libraries are executable
9308 postinstall_cmds='chmod +x $lib'
9309 ;;
9310
9311sunos4*)
9312 version_type=sunos
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes
9317 if test "$with_gnu_ld" = yes; then
9318 need_lib_prefix=no
9319 fi
9320 need_version=yes
9321 ;;
9322
Reid Spencera773bd52006-08-04 18:18:08 +00009323sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009324 version_type=linux
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 case $host_vendor in
9329 sni)
9330 shlibpath_overrides_runpath=no
9331 need_lib_prefix=no
9332 export_dynamic_flag_spec='${wl}-Blargedynsym'
9333 runpath_var=LD_RUN_PATH
9334 ;;
9335 siemens)
9336 need_lib_prefix=no
9337 ;;
9338 motorola)
9339 need_lib_prefix=no
9340 need_version=no
9341 shlibpath_overrides_runpath=no
9342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9343 ;;
9344 esac
9345 ;;
9346
9347sysv4*MP*)
9348 if test -d /usr/nec ;then
9349 version_type=linux
9350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9351 soname_spec='$libname${shared_ext}.$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 fi
9354 ;;
9355
Reid Spencera773bd52006-08-04 18:18:08 +00009356sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9357 version_type=freebsd-elf
9358 need_lib_prefix=no
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 hardcode_into_libs=yes
9364 if test "$with_gnu_ld" = yes; then
9365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9366 shlibpath_overrides_runpath=no
9367 else
9368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9369 shlibpath_overrides_runpath=yes
9370 case $host_os in
9371 sco3.2v5*)
9372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9373 ;;
9374 esac
9375 fi
9376 sys_lib_dlsearch_path_spec='/usr/lib'
9377 ;;
9378
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379uts4*)
9380 version_type=linux
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 ;;
9385
9386*)
9387 dynamic_linker=no
9388 ;;
9389esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009390{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9391echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009392test "$dynamic_linker" = no && can_build_shared=no
9393
Reid Spencera773bd52006-08-04 18:18:08 +00009394variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9395if test "$GCC" = yes; then
9396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9397fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398
Reid Spencera773bd52006-08-04 18:18:08 +00009399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009400{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9401echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9402if test "${libltdl_cv_shlibext+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009404else
9405
9406module=yes
9407eval libltdl_cv_shlibext=$shrext_cmds
9408
9409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009410{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9411echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009412if test -n "$libltdl_cv_shlibext"; then
9413
9414cat >>confdefs.h <<_ACEOF
9415#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9416_ACEOF
9417
9418fi
9419
9420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009421{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9422echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9423if test "${libltdl_cv_shlibpath_var+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425else
9426 libltdl_cv_shlibpath_var="$shlibpath_var"
9427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009428{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9429echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430if test -n "$libltdl_cv_shlibpath_var"; then
9431
9432cat >>confdefs.h <<_ACEOF
9433#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9434_ACEOF
9435
9436fi
9437
9438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009439{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9440echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9441if test "${libltdl_cv_sys_search_path+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009443else
9444 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009446{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9447echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009448if test -n "$libltdl_cv_sys_search_path"; then
9449 sys_search_path=
9450 for dir in $libltdl_cv_sys_search_path; do
9451 if test -z "$sys_search_path"; then
9452 sys_search_path="$dir"
9453 else
9454 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9455 fi
9456 done
9457
9458cat >>confdefs.h <<_ACEOF
9459#define LTDL_SYSSEARCHPATH "$sys_search_path"
9460_ACEOF
9461
9462fi
9463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009464{ echo "$as_me:$LINENO: checking for objdir" >&5
9465echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9466if test "${libltdl_cv_objdir+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468else
9469 libltdl_cv_objdir="$objdir"
9470 if test -n "$objdir"; then
9471 :
9472 else
9473 rm -f .libs 2>/dev/null
9474 mkdir .libs 2>/dev/null
9475 if test -d .libs; then
9476 libltdl_cv_objdir=.libs
9477 else
9478 # MS-DOS does not allow filenames that begin with a dot.
9479 libltdl_cv_objdir=_libs
9480 fi
9481 rmdir .libs 2>/dev/null
9482 fi
9483
9484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9486echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487
9488cat >>confdefs.h <<_ACEOF
9489#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9490_ACEOF
9491
9492
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493
9494
9495
9496
9497# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009498{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9499echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9500if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502else
9503
9504# These are sane defaults that work on at least a few old systems.
9505# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9506
9507# Character class describing NM global symbol codes.
9508symcode='[BCDEGRST]'
9509
9510# Regexp to match symbols that can be accessed directly from C.
9511sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9512
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513# Transform an extracted symbol line into a proper C declaration
9514lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9515
9516# Transform an extracted symbol line into symbol name and symbol address
9517lt_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'"
9518
9519# Define system-specific variables.
9520case $host_os in
9521aix*)
9522 symcode='[BCDT]'
9523 ;;
9524cygwin* | mingw* | pw32*)
9525 symcode='[ABCDGISTW]'
9526 ;;
9527hpux*) # Its linker distinguishes data from code symbols
9528 if test "$host_cpu" = ia64; then
9529 symcode='[ABCDEGRST]'
9530 fi
9531 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9532 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'"
9533 ;;
9534linux*)
9535 if test "$host_cpu" = ia64; then
9536 symcode='[ABCDGIRSTW]'
9537 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9538 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'"
9539 fi
9540 ;;
9541irix* | nonstopux*)
9542 symcode='[BCDEGRST]'
9543 ;;
9544osf*)
9545 symcode='[BCDEGQRST]'
9546 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009547solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548 symcode='[BDRT]'
9549 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009550sco3.2v5*)
9551 symcode='[DT]'
9552 ;;
9553sysv4.2uw2*)
9554 symcode='[DT]'
9555 ;;
9556sysv5* | sco5v6* | unixware* | OpenUNIX*)
9557 symcode='[ABDT]'
9558 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559sysv4)
9560 symcode='[DFNSTU]'
9561 ;;
9562esac
9563
9564# Handle CRLF in mingw tool chain
9565opt_cr=
9566case $build_os in
9567mingw*)
9568 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9569 ;;
9570esac
9571
9572# If we're using GNU nm, then use its standard symbol codes.
9573case `$NM -V 2>&1` in
9574*GNU* | *'with BFD'*)
9575 symcode='[ABCDGIRSTW]' ;;
9576esac
9577
9578# Try without a prefix undercore, then with it.
9579for ac_symprfx in "" "_"; do
9580
Reid Spencera773bd52006-08-04 18:18:08 +00009581 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9582 symxfrm="\\1 $ac_symprfx\\2 \\2"
9583
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009584 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009585 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 +00009586
9587 # Check to see that the pipe works correctly.
9588 pipe_works=no
9589
9590 rm -f conftest*
9591 cat > conftest.$ac_ext <<EOF
9592#ifdef __cplusplus
9593extern "C" {
9594#endif
9595char nm_test_var;
9596void nm_test_func(){}
9597#ifdef __cplusplus
9598}
9599#endif
9600int main(){nm_test_var='a';nm_test_func();return(0);}
9601EOF
9602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604 (eval $ac_compile) 2>&5
9605 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608 # Now try to grab the symbols.
9609 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610 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 +00009611 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9612 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009615 # Try sorting and uniquifying the output.
9616 if sort "$nlist" | uniq > "$nlist"T; then
9617 mv -f "$nlist"T "$nlist"
9618 else
9619 rm -f "$nlist"T
9620 fi
9621
9622 # Make sure that we snagged all the symbols we need.
9623 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9624 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9625 cat <<EOF > conftest.$ac_ext
9626#ifdef __cplusplus
9627extern "C" {
9628#endif
9629
9630EOF
9631 # Now generate the symbol file.
9632 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9633
9634 cat <<EOF >> conftest.$ac_ext
9635#if defined (__STDC__) && __STDC__
9636# define lt_ptr_t void *
9637#else
9638# define lt_ptr_t char *
9639# define const
9640#endif
9641
9642/* The mapping between symbol names and symbols. */
9643const struct {
9644 const char *name;
9645 lt_ptr_t address;
9646}
9647lt_preloaded_symbols[] =
9648{
9649EOF
9650 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9651 cat <<\EOF >> conftest.$ac_ext
9652 {0, (lt_ptr_t) 0}
9653};
9654
9655#ifdef __cplusplus
9656}
9657#endif
9658EOF
9659 # Now try linking the two files.
9660 mv conftest.$ac_objext conftstm.$ac_objext
9661 lt_save_LIBS="$LIBS"
9662 lt_save_CFLAGS="$CFLAGS"
9663 LIBS="conftstm.$ac_objext"
9664 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666 (eval $ac_link) 2>&5
9667 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670 pipe_works=yes
9671 fi
9672 LIBS="$lt_save_LIBS"
9673 CFLAGS="$lt_save_CFLAGS"
9674 else
9675 echo "cannot find nm_test_func in $nlist" >&5
9676 fi
9677 else
9678 echo "cannot find nm_test_var in $nlist" >&5
9679 fi
9680 else
9681 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9682 fi
9683 else
9684 echo "$progname: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9686 fi
9687 rm -f conftest* conftst*
9688
9689 # Do not use the global_symbol_pipe unless it works.
9690 if test "$pipe_works" = yes; then
9691 break
9692 else
9693 lt_cv_sys_global_symbol_pipe=
9694 fi
9695done
9696
9697fi
9698
9699if test -z "$lt_cv_sys_global_symbol_pipe"; then
9700 lt_cv_sys_global_symbol_to_cdecl=
9701fi
9702if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009703 { echo "$as_me:$LINENO: result: failed" >&5
9704echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009706 { echo "$as_me:$LINENO: result: ok" >&5
9707echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009708fi
9709
9710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009711{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9712echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9713if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715else
9716 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9717 libltdl_cv_preloaded_symbols=yes
9718 else
9719 libltdl_cv_preloaded_symbols=no
9720 fi
9721
9722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009723{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9724echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009727cat >>confdefs.h <<\_ACEOF
9728#define HAVE_PRELOADED_SYMBOLS 1
9729_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009730
9731fi
9732
9733LIBADD_DL=
9734
9735ac_ext=c
9736ac_cpp='$CPP $CPPFLAGS'
9737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9739ac_compiler_gnu=$ac_cv_c_compiler_gnu
9740
9741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009742{ echo "$as_me:$LINENO: checking for shl_load" >&5
9743echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9744if test "${ac_cv_func_shl_load+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747 cat >conftest.$ac_ext <<_ACEOF
9748/* confdefs.h. */
9749_ACEOF
9750cat confdefs.h >>conftest.$ac_ext
9751cat >>conftest.$ac_ext <<_ACEOF
9752/* end confdefs.h. */
9753/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9755#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009757/* System header to define __stub macros and hopefully few prototypes,
9758 which can conflict with char shl_load (); below.
9759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9760 <limits.h> exists even on freestanding compilers. */
9761
9762#ifdef __STDC__
9763# include <limits.h>
9764#else
9765# include <assert.h>
9766#endif
9767
9768#undef shl_load
9769
9770/* Override any GCC internal prototype to avoid an error.
9771 Use char because int might match the return type of a GCC
9772 builtin and then its argument prototype would still apply. */
9773#ifdef __cplusplus
9774extern "C"
9775#endif
9776char shl_load ();
9777/* The GNU C library defines this for functions which it implements
9778 to always fail with ENOSYS. Some functions are actually named
9779 something starting with __ and the normal name is an alias. */
9780#if defined __stub_shl_load || defined __stub___shl_load
9781choke me
9782#endif
9783
9784int
9785main ()
9786{
9787return shl_load ();
9788 ;
9789 return 0;
9790}
9791_ACEOF
9792rm -f conftest.$ac_objext conftest$ac_exeext
9793if { (ac_try="$ac_link"
9794case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797esac
9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_link") 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820esac
9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_try") 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 ac_cv_func_shl_load=yes
9827else
9828 echo "$as_me: failed program was:" >&5
9829sed 's/^/| /' conftest.$ac_ext >&5
9830
9831 ac_cv_func_shl_load=no
9832fi
9833
9834rm -f core conftest.err conftest.$ac_objext \
9835 conftest$ac_exeext conftest.$ac_ext
9836fi
9837{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9838echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9839if test $ac_cv_func_shl_load = yes; then
9840
9841cat >>confdefs.h <<\_ACEOF
9842#define HAVE_SHL_LOAD 1
9843_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844
9845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009846 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9847echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9848if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850else
9851 ac_check_lib_save_LIBS=$LIBS
9852LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009853cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h. */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858/* end confdefs.h. */
9859
Reid Spencera773bd52006-08-04 18:18:08 +00009860/* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863#ifdef __cplusplus
9864extern "C"
9865#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866char shl_load ();
9867int
9868main ()
9869{
Reid Spencera773bd52006-08-04 18:18:08 +00009870return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871 ;
9872 return 0;
9873}
9874_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009875rm -f conftest.$ac_objext conftest$ac_exeext
9876if { (ac_try="$ac_link"
9877case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest$ac_exeext'
9900 { (case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9903esac
9904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_try") 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909 ac_cv_lib_dld_shl_load=yes
9910else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009911 echo "$as_me: failed program was:" >&5
9912sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009916
Bill Wendlingebcceee2009-04-18 11:20:33 +00009917rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009918 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919LIBS=$ac_check_lib_save_LIBS
9920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009921{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9922echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9923if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009925cat >>confdefs.h <<\_ACEOF
9926#define HAVE_SHL_LOAD 1
9927_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928
9929 LIBADD_DL="$LIBADD_DL -ldld"
9930else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009931 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9932echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9933if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935else
9936 ac_check_lib_save_LIBS=$LIBS
9937LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009938cat >conftest.$ac_ext <<_ACEOF
9939/* confdefs.h. */
9940_ACEOF
9941cat confdefs.h >>conftest.$ac_ext
9942cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943/* end confdefs.h. */
9944
Reid Spencera773bd52006-08-04 18:18:08 +00009945/* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009948#ifdef __cplusplus
9949extern "C"
9950#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951char dlopen ();
9952int
9953main ()
9954{
Reid Spencera773bd52006-08-04 18:18:08 +00009955return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009956 ;
9957 return 0;
9958}
9959_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009960rm -f conftest.$ac_objext conftest$ac_exeext
9961if { (ac_try="$ac_link"
9962case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_link") 2>conftest.er1
9968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; } &&
9984 { ac_try='test -s conftest$ac_exeext'
9985 { (case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988esac
9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_try") 2>&5
9991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994 ac_cv_lib_dl_dlopen=yes
9995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009996 echo "$as_me: failed program was:" >&5
9997sed 's/^/| /' conftest.$ac_ext >&5
9998
9999 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010001
Bill Wendlingebcceee2009-04-18 11:20:33 +000010002rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010003 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004LIBS=$ac_check_lib_save_LIBS
10005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010006{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10007echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10008if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010010cat >>confdefs.h <<\_ACEOF
10011#define HAVE_LIBDL 1
10012_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013
10014 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10015else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010016 cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021/* end confdefs.h. */
10022#if HAVE_DLFCN_H
10023# include <dlfcn.h>
10024#endif
10025
10026int
10027main ()
10028{
10029dlopen(0, 0);
10030 ;
10031 return 0;
10032}
10033_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010034rm -f conftest.$ac_objext conftest$ac_exeext
10035if { (ac_try="$ac_link"
10036case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039esac
10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_link") 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049 { (case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052esac
10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_try") 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062esac
10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010069cat >>confdefs.h <<\_ACEOF
10070#define HAVE_LIBDL 1
10071_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072 libltdl_cv_func_dlopen="yes"
10073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010074 echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10078echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10079if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081else
10082 ac_check_lib_save_LIBS=$LIBS
10083LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010084cat >conftest.$ac_ext <<_ACEOF
10085/* confdefs.h. */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089/* end confdefs.h. */
10090
Reid Spencera773bd52006-08-04 18:18:08 +000010091/* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094#ifdef __cplusplus
10095extern "C"
10096#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097char dlopen ();
10098int
10099main ()
10100{
Reid Spencera773bd52006-08-04 18:18:08 +000010101return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010102 ;
10103 return 0;
10104}
10105_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010106rm -f conftest.$ac_objext conftest$ac_exeext
10107if { (ac_try="$ac_link"
10108case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
10114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121 { (case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_try") 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010140 ac_cv_lib_svld_dlopen=yes
10141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010142 echo "$as_me: failed program was:" >&5
10143sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010147
Bill Wendlingebcceee2009-04-18 11:20:33 +000010148rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010149 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150LIBS=$ac_check_lib_save_LIBS
10151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010152{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10153echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10154if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010156cat >>confdefs.h <<\_ACEOF
10157#define HAVE_LIBDL 1
10158_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010159
10160 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10161else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010162 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10163echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10164if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166else
10167 ac_check_lib_save_LIBS=$LIBS
10168LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010169cat >conftest.$ac_ext <<_ACEOF
10170/* confdefs.h. */
10171_ACEOF
10172cat confdefs.h >>conftest.$ac_ext
10173cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174/* end confdefs.h. */
10175
Reid Spencera773bd52006-08-04 18:18:08 +000010176/* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010179#ifdef __cplusplus
10180extern "C"
10181#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182char dld_link ();
10183int
10184main ()
10185{
Reid Spencera773bd52006-08-04 18:18:08 +000010186return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 ;
10188 return 0;
10189}
10190_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010191rm -f conftest.$ac_objext conftest$ac_exeext
10192if { (ac_try="$ac_link"
10193case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196esac
10197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_link") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206 { (case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_try") 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219esac
10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225 ac_cv_lib_dld_dld_link=yes
10226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010227 echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010232
Bill Wendlingebcceee2009-04-18 11:20:33 +000010233rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010234 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235LIBS=$ac_check_lib_save_LIBS
10236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010237{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10238echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10239if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010241cat >>confdefs.h <<\_ACEOF
10242#define HAVE_DLD 1
10243_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244
10245 LIBADD_DL="$LIBADD_DL -ldld"
10246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010247 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10248echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10249if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252 cat >conftest.$ac_ext <<_ACEOF
10253/* confdefs.h. */
10254_ACEOF
10255cat confdefs.h >>conftest.$ac_ext
10256cat >>conftest.$ac_ext <<_ACEOF
10257/* end confdefs.h. */
10258/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10260#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010262/* System header to define __stub macros and hopefully few prototypes,
10263 which can conflict with char _dyld_func_lookup (); below.
10264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10265 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010267#ifdef __STDC__
10268# include <limits.h>
10269#else
10270# include <assert.h>
10271#endif
10272
10273#undef _dyld_func_lookup
10274
10275/* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
10278#ifdef __cplusplus
10279extern "C"
10280#endif
10281char _dyld_func_lookup ();
10282/* The GNU C library defines this for functions which it implements
10283 to always fail with ENOSYS. Some functions are actually named
10284 something starting with __ and the normal name is an alias. */
10285#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10286choke me
10287#endif
10288
10289int
10290main ()
10291{
10292return _dyld_func_lookup ();
10293 ;
10294 return 0;
10295}
10296_ACEOF
10297rm -f conftest.$ac_objext conftest$ac_exeext
10298if { (ac_try="$ac_link"
10299case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302esac
10303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_link") 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10312 { (case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315esac
10316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_try") 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325esac
10326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_try") 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_cv_func__dyld_func_lookup=yes
10332else
10333 echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010337fi
Reid Spencera773bd52006-08-04 18:18:08 +000010338
Bill Wendlingebcceee2009-04-18 11:20:33 +000010339rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010340 conftest$ac_exeext conftest.$ac_ext
10341fi
10342{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10343echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10344if test $ac_cv_func__dyld_func_lookup = yes; then
10345
10346cat >>confdefs.h <<\_ACEOF
10347#define HAVE_DYLD 1
10348_ACEOF
10349
10350fi
10351
10352
10353fi
10354
10355
10356fi
10357
10358
10359fi
10360
10361rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363
10364fi
10365
10366
10367fi
10368
10369
10370fi
10371
10372
10373if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10374then
10375 lt_save_LIBS="$LIBS"
10376 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010377
10378for ac_func in dlerror
10379do
10380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385else
10386 cat >conftest.$ac_ext <<_ACEOF
10387/* confdefs.h. */
10388_ACEOF
10389cat confdefs.h >>conftest.$ac_ext
10390cat >>conftest.$ac_ext <<_ACEOF
10391/* end confdefs.h. */
10392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10394#define $ac_func innocuous_$ac_func
10395
10396/* System header to define __stub macros and hopefully few prototypes,
10397 which can conflict with char $ac_func (); below.
10398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10399 <limits.h> exists even on freestanding compilers. */
10400
10401#ifdef __STDC__
10402# include <limits.h>
10403#else
10404# include <assert.h>
10405#endif
10406
10407#undef $ac_func
10408
10409/* Override any GCC internal prototype to avoid an error.
10410 Use char because int might match the return type of a GCC
10411 builtin and then its argument prototype would still apply. */
10412#ifdef __cplusplus
10413extern "C"
10414#endif
10415char $ac_func ();
10416/* The GNU C library defines this for functions which it implements
10417 to always fail with ENOSYS. Some functions are actually named
10418 something starting with __ and the normal name is an alias. */
10419#if defined __stub_$ac_func || defined __stub___$ac_func
10420choke me
10421#endif
10422
10423int
10424main ()
10425{
10426return $ac_func ();
10427 ;
10428 return 0;
10429}
10430_ACEOF
10431rm -f conftest.$ac_objext conftest$ac_exeext
10432if { (ac_try="$ac_link"
10433case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436esac
10437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_link") 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446 { (case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449esac
10450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_try") 2>&5
10452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; } &&
10455 { ac_try='test -s conftest$ac_exeext'
10456 { (case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459esac
10460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_try") 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 eval "$as_ac_var=yes"
10466else
10467 echo "$as_me: failed program was:" >&5
10468sed 's/^/| /' conftest.$ac_ext >&5
10469
10470 eval "$as_ac_var=no"
10471fi
10472
10473rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475fi
10476ac_res=`eval echo '${'$as_ac_var'}'`
10477 { echo "$as_me:$LINENO: result: $ac_res" >&5
10478echo "${ECHO_T}$ac_res" >&6; }
10479if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010480 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482_ACEOF
10483
10484fi
10485done
10486
10487 LIBS="$lt_save_LIBS"
10488fi
10489ac_ext=c
10490ac_cpp='$CPP $CPPFLAGS'
10491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10493ac_compiler_gnu=$ac_cv_c_compiler_gnu
10494
10495
10496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010497{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10498echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10499if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501else
10502 ac_cv_sys_symbol_underscore=no
10503 cat > conftest.$ac_ext <<EOF
10504void nm_test_func(){}
10505int main(){nm_test_func;return 0;}
10506EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508 (eval $ac_compile) 2>&5
10509 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512 # Now try to grab the symbols.
10513 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010514 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 +000010515 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10516 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519 # See whether the symbols have a leading underscore.
10520 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10521 ac_cv_sys_symbol_underscore=yes
10522 else
10523 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10524 :
10525 else
10526 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10527 fi
10528 fi
10529 else
10530 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10531 fi
10532 else
10533 echo "configure: failed program was:" >&5
10534 cat conftest.c >&5
10535 fi
10536 rm -rf conftest*
10537
10538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010539{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10540echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541
10542
10543if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10544 if test x"$libltdl_cv_func_dlopen" = xyes ||
10545 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010546 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10547echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10548if test "${libltdl_cv_need_uscore+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550else
10551 libltdl_cv_need_uscore=unknown
10552 save_LIBS="$LIBS"
10553 LIBS="$LIBS $LIBADD_DL"
10554 if test "$cross_compiling" = yes; then :
10555 libltdl_cv_need_uscore=cross
10556else
10557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10558 lt_status=$lt_dlunknown
10559 cat > conftest.$ac_ext <<EOF
Eric Christopherf3a5ba52011-10-26 00:52:13 +000010560#line 10560 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561#include "confdefs.h"
10562
10563#if HAVE_DLFCN_H
10564#include <dlfcn.h>
10565#endif
10566
10567#include <stdio.h>
10568
10569#ifdef RTLD_GLOBAL
10570# define LT_DLGLOBAL RTLD_GLOBAL
10571#else
10572# ifdef DL_GLOBAL
10573# define LT_DLGLOBAL DL_GLOBAL
10574# else
10575# define LT_DLGLOBAL 0
10576# endif
10577#endif
10578
10579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10580 find out it does not work in some platform. */
10581#ifndef LT_DLLAZY_OR_NOW
10582# ifdef RTLD_LAZY
10583# define LT_DLLAZY_OR_NOW RTLD_LAZY
10584# else
10585# ifdef DL_LAZY
10586# define LT_DLLAZY_OR_NOW DL_LAZY
10587# else
10588# ifdef RTLD_NOW
10589# define LT_DLLAZY_OR_NOW RTLD_NOW
10590# else
10591# ifdef DL_NOW
10592# define LT_DLLAZY_OR_NOW DL_NOW
10593# else
10594# define LT_DLLAZY_OR_NOW 0
10595# endif
10596# endif
10597# endif
10598# endif
10599#endif
10600
10601#ifdef __cplusplus
10602extern "C" void exit (int);
10603#endif
10604
10605void fnord() { int i=42;}
10606int main ()
10607{
10608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10609 int status = $lt_dlunknown;
10610
10611 if (self)
10612 {
10613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10615 /* dlclose (self); */
10616 }
Reid Spencera773bd52006-08-04 18:18:08 +000010617 else
10618 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619
10620 exit (status);
10621}
10622EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624 (eval $ac_link) 2>&5
10625 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010628 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010629 lt_status=$?
10630 case x$lt_status in
10631 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10632 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010633 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634 esac
10635 else :
10636 # compilation failed
10637
10638 fi
10639fi
10640rm -fr conftest*
10641
10642 LIBS="$save_LIBS"
10643
10644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010645{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10646echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647 fi
10648fi
10649
10650if test x"$libltdl_cv_need_uscore" = xyes; then
10651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010652cat >>confdefs.h <<\_ACEOF
10653#define NEED_USCORE 1
10654_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010655
10656fi
10657
10658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010659{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10660echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10661if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010663else
10664 # PORTME does your system automatically load deplibs for dlopen?
10665 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10666 # For now, we just catch OSes we know something about -- in the
10667 # future, we'll try test this programmatically.
10668 libltdl_cv_sys_dlopen_deplibs=unknown
10669 case "$host_os" in
10670 aix3*|aix4.1.*|aix4.2.*)
10671 # Unknown whether this is true for these versions of AIX, but
10672 # we want this `case' here to explicitly catch those versions.
10673 libltdl_cv_sys_dlopen_deplibs=unknown
10674 ;;
10675 aix[45]*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10677 ;;
10678 darwin*)
10679 # Assuming the user has installed a libdl from somewhere, this is true
10680 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10681 libltdl_cv_sys_dlopen_deplibs=yes
10682 ;;
10683 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10684 # GNU and its variants, using gnu ld.so (Glibc)
10685 libltdl_cv_sys_dlopen_deplibs=yes
10686 ;;
10687 hpux10*|hpux11*)
10688 libltdl_cv_sys_dlopen_deplibs=yes
10689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010690 interix*)
10691 libltdl_cv_sys_dlopen_deplibs=yes
10692 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010693 irix[12345]*|irix6.[01]*)
10694 # Catch all versions of IRIX before 6.2, and indicate that we don't
10695 # know how it worked for any of those versions.
10696 libltdl_cv_sys_dlopen_deplibs=unknown
10697 ;;
10698 irix*)
10699 # The case above catches anything before 6.2, and it's known that
10700 # at 6.2 and later dlopen does load deplibs.
10701 libltdl_cv_sys_dlopen_deplibs=yes
10702 ;;
10703 netbsd*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10705 ;;
10706 openbsd*)
10707 libltdl_cv_sys_dlopen_deplibs=yes
10708 ;;
10709 osf[1234]*)
10710 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10711 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010712 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713 libltdl_cv_sys_dlopen_deplibs=no
10714 ;;
10715 osf5.0|osf5.0a|osf5.1)
10716 # dlopen *does* load deplibs and with the right loader patch applied
10717 # it even uses RPATH in a shared library to search for shared objects
10718 # that the library depends on, but there's no easy way to know if that
10719 # patch is installed. Since this is the case, all we can really
10720 # say is unknown -- it depends on the patch being installed. If
10721 # it is, this changes to `yes'. Without it, it would be `no'.
10722 libltdl_cv_sys_dlopen_deplibs=unknown
10723 ;;
10724 osf*)
10725 # the two cases above should catch all versions of osf <= 5.1. Read
10726 # the comments above for what we know about them.
10727 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10728 # is used to find them so we can finally say `yes'.
10729 libltdl_cv_sys_dlopen_deplibs=yes
10730 ;;
10731 solaris*)
10732 libltdl_cv_sys_dlopen_deplibs=yes
10733 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10735 libltdl_cv_sys_dlopen_deplibs=yes
10736 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010737 esac
10738
10739fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010740{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10741echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010742if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010744cat >>confdefs.h <<\_ACEOF
10745#define LTDL_DLOPEN_DEPLIBS 1
10746_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010747
10748fi
10749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010750
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010752do
10753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759fi
10760ac_res=`eval echo '${'$as_ac_Header'}'`
10761 { echo "$as_me:$LINENO: result: $ac_res" >&5
10762echo "${ECHO_T}$ac_res" >&6; }
10763else
10764 # Is the header compilable?
10765{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10767cat >conftest.$ac_ext <<_ACEOF
10768/* confdefs.h. */
10769_ACEOF
10770cat confdefs.h >>conftest.$ac_ext
10771cat >>conftest.$ac_ext <<_ACEOF
10772/* end confdefs.h. */
10773$ac_includes_default
10774#include <$ac_header>
10775_ACEOF
10776rm -f conftest.$ac_objext
10777if { (ac_try="$ac_compile"
10778case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781esac
10782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794esac
10795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_header_compiler=yes
10811else
10812 echo "$as_me: failed program was:" >&5
10813sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 ac_header_compiler=no
10816fi
10817
10818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10820echo "${ECHO_T}$ac_header_compiler" >&6; }
10821
10822# Is the header present?
10823{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10825cat >conftest.$ac_ext <<_ACEOF
10826/* confdefs.h. */
10827_ACEOF
10828cat confdefs.h >>conftest.$ac_ext
10829cat >>conftest.$ac_ext <<_ACEOF
10830/* end confdefs.h. */
10831#include <$ac_header>
10832_ACEOF
10833if { (ac_try="$ac_cpp conftest.$ac_ext"
10834case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10837esac
10838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } >/dev/null; then
10846 if test -s conftest.err; then
10847 ac_cpp_err=$ac_c_preproc_warn_flag
10848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10849 else
10850 ac_cpp_err=
10851 fi
10852else
10853 ac_cpp_err=yes
10854fi
10855if test -z "$ac_cpp_err"; then
10856 ac_header_preproc=yes
10857else
10858 echo "$as_me: failed program was:" >&5
10859sed 's/^/| /' conftest.$ac_ext >&5
10860
10861 ac_header_preproc=no
10862fi
10863
10864rm -f conftest.err conftest.$ac_ext
10865{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10866echo "${ECHO_T}$ac_header_preproc" >&6; }
10867
10868# So? What about this header?
10869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10870 yes:no: )
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10875 ac_header_preproc=yes
10876 ;;
10877 no:yes:* )
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10890 ( cat <<\_ASBOX
10891## ----------------------------------- ##
10892## Report this to llvmbugs@cs.uiuc.edu ##
10893## ----------------------------------- ##
10894_ASBOX
10895 ) | sed "s/^/$as_me: WARNING: /" >&2
10896 ;;
10897esac
10898{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10902else
10903 eval "$as_ac_Header=\$ac_header_preproc"
10904fi
10905ac_res=`eval echo '${'$as_ac_Header'}'`
10906 { echo "$as_me:$LINENO: result: $ac_res" >&5
10907echo "${ECHO_T}$ac_res" >&6; }
10908
10909fi
10910if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913_ACEOF
10914
10915fi
10916
10917done
10918
10919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010920{ echo "$as_me:$LINENO: checking for error_t" >&5
10921echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10922if test "${ac_cv_type_error_t+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924else
10925 cat >conftest.$ac_ext <<_ACEOF
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
10931#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932# include <argz.h>
10933#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010934
10935typedef error_t ac__type_new_;
10936int
10937main ()
10938{
10939if ((ac__type_new_ *) 0)
10940 return 0;
10941if (sizeof (ac__type_new_))
10942 return 0;
10943 ;
10944 return 0;
10945}
10946_ACEOF
10947rm -f conftest.$ac_objext
10948if { (ac_try="$ac_compile"
10949case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10952esac
10953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_compile") 2>conftest.er1
10955 ac_status=$?
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10962 { (case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965esac
10966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_try") 2>&5
10968 ac_status=$?
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; } &&
10971 { ac_try='test -s conftest.$ac_objext'
10972 { (case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975esac
10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_try") 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_cv_type_error_t=yes
10982else
10983 echo "$as_me: failed program was:" >&5
10984sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 ac_cv_type_error_t=no
10987fi
10988
10989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990fi
10991{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10992echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10993if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994
10995cat >>confdefs.h <<_ACEOF
10996#define HAVE_ERROR_T 1
10997_ACEOF
10998
10999
11000else
11001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011002cat >>confdefs.h <<\_ACEOF
11003#define error_t int
11004_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011005
11006fi
11007
11008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011009
11010
11011
11012
11013
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011015do
11016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11017{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11019if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021else
11022 cat >conftest.$ac_ext <<_ACEOF
11023/* confdefs.h. */
11024_ACEOF
11025cat confdefs.h >>conftest.$ac_ext
11026cat >>conftest.$ac_ext <<_ACEOF
11027/* end confdefs.h. */
11028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11030#define $ac_func innocuous_$ac_func
11031
11032/* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char $ac_func (); below.
11034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035 <limits.h> exists even on freestanding compilers. */
11036
11037#ifdef __STDC__
11038# include <limits.h>
11039#else
11040# include <assert.h>
11041#endif
11042
11043#undef $ac_func
11044
11045/* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048#ifdef __cplusplus
11049extern "C"
11050#endif
11051char $ac_func ();
11052/* The GNU C library defines this for functions which it implements
11053 to always fail with ENOSYS. Some functions are actually named
11054 something starting with __ and the normal name is an alias. */
11055#if defined __stub_$ac_func || defined __stub___$ac_func
11056choke me
11057#endif
11058
11059int
11060main ()
11061{
11062return $ac_func ();
11063 ;
11064 return 0;
11065}
11066_ACEOF
11067rm -f conftest.$ac_objext conftest$ac_exeext
11068if { (ac_try="$ac_link"
11069case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072esac
11073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_link") 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082 { (case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_try") 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095esac
11096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_try") 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 eval "$as_ac_var=yes"
11102else
11103 echo "$as_me: failed program was:" >&5
11104sed 's/^/| /' conftest.$ac_ext >&5
11105
11106 eval "$as_ac_var=no"
11107fi
11108
11109rm -f core conftest.err conftest.$ac_objext \
11110 conftest$ac_exeext conftest.$ac_ext
11111fi
11112ac_res=`eval echo '${'$as_ac_var'}'`
11113 { echo "$as_me:$LINENO: result: $ac_res" >&5
11114echo "${ECHO_T}$ac_res" >&6; }
11115if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011116 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118_ACEOF
11119
11120fi
11121done
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011142
11143
11144
11145
11146
11147
11148
11149
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11151 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011152do
11153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159fi
11160ac_res=`eval echo '${'$as_ac_Header'}'`
11161 { echo "$as_me:$LINENO: result: $ac_res" >&5
11162echo "${ECHO_T}$ac_res" >&6; }
11163else
11164 # Is the header compilable?
11165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11167cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
11173$ac_includes_default
11174#include <$ac_header>
11175_ACEOF
11176rm -f conftest.$ac_objext
11177if { (ac_try="$ac_compile"
11178case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181esac
11182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_compile") 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191 { (case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194esac
11195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_try") 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest.$ac_objext'
11201 { (case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204esac
11205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_try") 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_header_compiler=yes
11211else
11212 echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_header_compiler=no
11216fi
11217
11218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220echo "${ECHO_T}$ac_header_compiler" >&6; }
11221
11222# Is the header present?
11223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11225cat >conftest.$ac_ext <<_ACEOF
11226/* confdefs.h. */
11227_ACEOF
11228cat confdefs.h >>conftest.$ac_ext
11229cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h. */
11231#include <$ac_header>
11232_ACEOF
11233if { (ac_try="$ac_cpp conftest.$ac_ext"
11234case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11237esac
11238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } >/dev/null; then
11246 if test -s conftest.err; then
11247 ac_cpp_err=$ac_c_preproc_warn_flag
11248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11249 else
11250 ac_cpp_err=
11251 fi
11252else
11253 ac_cpp_err=yes
11254fi
11255if test -z "$ac_cpp_err"; then
11256 ac_header_preproc=yes
11257else
11258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261 ac_header_preproc=no
11262fi
11263
11264rm -f conftest.err conftest.$ac_ext
11265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266echo "${ECHO_T}$ac_header_preproc" >&6; }
11267
11268# So? What about this header?
11269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11270 yes:no: )
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275 ac_header_preproc=yes
11276 ;;
11277 no:yes:* )
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11290 ( cat <<\_ASBOX
11291## ----------------------------------- ##
11292## Report this to llvmbugs@cs.uiuc.edu ##
11293## ----------------------------------- ##
11294_ASBOX
11295 ) | sed "s/^/$as_me: WARNING: /" >&2
11296 ;;
11297esac
11298{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303 eval "$as_ac_Header=\$ac_header_preproc"
11304fi
11305ac_res=`eval echo '${'$as_ac_Header'}'`
11306 { echo "$as_me:$LINENO: result: $ac_res" >&5
11307echo "${ECHO_T}$ac_res" >&6; }
11308
11309fi
11310if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011313_ACEOF
11314
11315fi
11316
11317done
11318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011319
11320
11321
11322
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011324do
11325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331fi
11332ac_res=`eval echo '${'$as_ac_Header'}'`
11333 { echo "$as_me:$LINENO: result: $ac_res" >&5
11334echo "${ECHO_T}$ac_res" >&6; }
11335else
11336 # Is the header compilable?
11337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11339cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
11345$ac_includes_default
11346#include <$ac_header>
11347_ACEOF
11348rm -f conftest.$ac_objext
11349if { (ac_try="$ac_compile"
11350case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353esac
11354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_compile") 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11363 { (case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366esac
11367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_try") 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try='test -s conftest.$ac_objext'
11373 { (case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376esac
11377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_try") 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_header_compiler=yes
11383else
11384 echo "$as_me: failed program was:" >&5
11385sed 's/^/| /' conftest.$ac_ext >&5
11386
11387 ac_header_compiler=no
11388fi
11389
11390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11392echo "${ECHO_T}$ac_header_compiler" >&6; }
11393
11394# Is the header present?
11395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11397cat >conftest.$ac_ext <<_ACEOF
11398/* confdefs.h. */
11399_ACEOF
11400cat confdefs.h >>conftest.$ac_ext
11401cat >>conftest.$ac_ext <<_ACEOF
11402/* end confdefs.h. */
11403#include <$ac_header>
11404_ACEOF
11405if { (ac_try="$ac_cpp conftest.$ac_ext"
11406case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409esac
11410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } >/dev/null; then
11418 if test -s conftest.err; then
11419 ac_cpp_err=$ac_c_preproc_warn_flag
11420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11421 else
11422 ac_cpp_err=
11423 fi
11424else
11425 ac_cpp_err=yes
11426fi
11427if test -z "$ac_cpp_err"; then
11428 ac_header_preproc=yes
11429else
11430 echo "$as_me: failed program was:" >&5
11431sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_header_preproc=no
11434fi
11435
11436rm -f conftest.err conftest.$ac_ext
11437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438echo "${ECHO_T}$ac_header_preproc" >&6; }
11439
11440# So? What about this header?
11441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 yes:no: )
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11447 ac_header_preproc=yes
11448 ;;
11449 no:yes:* )
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11462 ( cat <<\_ASBOX
11463## ----------------------------------- ##
11464## Report this to llvmbugs@cs.uiuc.edu ##
11465## ----------------------------------- ##
11466_ASBOX
11467 ) | sed "s/^/$as_me: WARNING: /" >&2
11468 ;;
11469esac
11470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474else
11475 eval "$as_ac_Header=\$ac_header_preproc"
11476fi
11477ac_res=`eval echo '${'$as_ac_Header'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479echo "${ECHO_T}$ac_res" >&6; }
11480
11481fi
11482if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485_ACEOF
11486
11487fi
11488
11489done
11490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011491
11492
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011494do
11495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501fi
11502ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504echo "${ECHO_T}$ac_res" >&6; }
11505else
11506 # Is the header compilable?
11507{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509cat >conftest.$ac_ext <<_ACEOF
11510/* confdefs.h. */
11511_ACEOF
11512cat confdefs.h >>conftest.$ac_ext
11513cat >>conftest.$ac_ext <<_ACEOF
11514/* end confdefs.h. */
11515$ac_includes_default
11516#include <$ac_header>
11517_ACEOF
11518rm -f conftest.$ac_objext
11519if { (ac_try="$ac_compile"
11520case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536esac
11537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546esac
11547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 ac_header_compiler=yes
11553else
11554 echo "$as_me: failed program was:" >&5
11555sed 's/^/| /' conftest.$ac_ext >&5
11556
11557 ac_header_compiler=no
11558fi
11559
11560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562echo "${ECHO_T}$ac_header_compiler" >&6; }
11563
11564# Is the header present?
11565{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11567cat >conftest.$ac_ext <<_ACEOF
11568/* confdefs.h. */
11569_ACEOF
11570cat confdefs.h >>conftest.$ac_ext
11571cat >>conftest.$ac_ext <<_ACEOF
11572/* end confdefs.h. */
11573#include <$ac_header>
11574_ACEOF
11575if { (ac_try="$ac_cpp conftest.$ac_ext"
11576case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579esac
11580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } >/dev/null; then
11588 if test -s conftest.err; then
11589 ac_cpp_err=$ac_c_preproc_warn_flag
11590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11591 else
11592 ac_cpp_err=
11593 fi
11594else
11595 ac_cpp_err=yes
11596fi
11597if test -z "$ac_cpp_err"; then
11598 ac_header_preproc=yes
11599else
11600 echo "$as_me: failed program was:" >&5
11601sed 's/^/| /' conftest.$ac_ext >&5
11602
11603 ac_header_preproc=no
11604fi
11605
11606rm -f conftest.err conftest.$ac_ext
11607{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608echo "${ECHO_T}$ac_header_preproc" >&6; }
11609
11610# So? What about this header?
11611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 yes:no: )
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11618 ;;
11619 no:yes:* )
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632 ( cat <<\_ASBOX
11633## ----------------------------------- ##
11634## Report this to llvmbugs@cs.uiuc.edu ##
11635## ----------------------------------- ##
11636_ASBOX
11637 ) | sed "s/^/$as_me: WARNING: /" >&2
11638 ;;
11639esac
11640{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645 eval "$as_ac_Header=\$ac_header_preproc"
11646fi
11647ac_res=`eval echo '${'$as_ac_Header'}'`
11648 { echo "$as_me:$LINENO: result: $ac_res" >&5
11649echo "${ECHO_T}$ac_res" >&6; }
11650
11651fi
11652if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011655_ACEOF
11656 break
11657fi
11658
11659done
11660
11661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011662
11663
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011665do
11666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11667{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11669if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
11678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11680#define $ac_func innocuous_$ac_func
11681
11682/* System header to define __stub macros and hopefully few prototypes,
11683 which can conflict with char $ac_func (); below.
11684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11685 <limits.h> exists even on freestanding compilers. */
11686
11687#ifdef __STDC__
11688# include <limits.h>
11689#else
11690# include <assert.h>
11691#endif
11692
11693#undef $ac_func
11694
11695/* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11698#ifdef __cplusplus
11699extern "C"
11700#endif
11701char $ac_func ();
11702/* The GNU C library defines this for functions which it implements
11703 to always fail with ENOSYS. Some functions are actually named
11704 something starting with __ and the normal name is an alias. */
11705#if defined __stub_$ac_func || defined __stub___$ac_func
11706choke me
11707#endif
11708
11709int
11710main ()
11711{
11712return $ac_func ();
11713 ;
11714 return 0;
11715}
11716_ACEOF
11717rm -f conftest.$ac_objext conftest$ac_exeext
11718if { (ac_try="$ac_link"
11719case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722esac
11723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_link") 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11732 { (case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11735esac
11736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_try") 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest$ac_exeext'
11742 { (case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11745esac
11746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_try") 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 eval "$as_ac_var=yes"
11752else
11753 echo "$as_me: failed program was:" >&5
11754sed 's/^/| /' conftest.$ac_ext >&5
11755
11756 eval "$as_ac_var=no"
11757fi
11758
11759rm -f core conftest.err conftest.$ac_objext \
11760 conftest$ac_exeext conftest.$ac_ext
11761fi
11762ac_res=`eval echo '${'$as_ac_var'}'`
11763 { echo "$as_me:$LINENO: result: $ac_res" >&5
11764echo "${ECHO_T}$ac_res" >&6; }
11765if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011766 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011768_ACEOF
11769 break
11770fi
11771done
11772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011773
11774
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011776do
11777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11778{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11780if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783 cat >conftest.$ac_ext <<_ACEOF
11784/* confdefs.h. */
11785_ACEOF
11786cat confdefs.h >>conftest.$ac_ext
11787cat >>conftest.$ac_ext <<_ACEOF
11788/* end confdefs.h. */
11789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11791#define $ac_func innocuous_$ac_func
11792
11793/* System header to define __stub macros and hopefully few prototypes,
11794 which can conflict with char $ac_func (); below.
11795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11796 <limits.h> exists even on freestanding compilers. */
11797
11798#ifdef __STDC__
11799# include <limits.h>
11800#else
11801# include <assert.h>
11802#endif
11803
11804#undef $ac_func
11805
11806/* Override any GCC internal prototype to avoid an error.
11807 Use char because int might match the return type of a GCC
11808 builtin and then its argument prototype would still apply. */
11809#ifdef __cplusplus
11810extern "C"
11811#endif
11812char $ac_func ();
11813/* The GNU C library defines this for functions which it implements
11814 to always fail with ENOSYS. Some functions are actually named
11815 something starting with __ and the normal name is an alias. */
11816#if defined __stub_$ac_func || defined __stub___$ac_func
11817choke me
11818#endif
11819
11820int
11821main ()
11822{
11823return $ac_func ();
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext conftest$ac_exeext
11829if { (ac_try="$ac_link"
11830case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833esac
11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11843 { (case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_try") 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest$ac_exeext'
11853 { (case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11856esac
11857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_try") 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 eval "$as_ac_var=yes"
11863else
11864 echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
11866
11867 eval "$as_ac_var=no"
11868fi
11869
11870rm -f core conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11872fi
11873ac_res=`eval echo '${'$as_ac_var'}'`
11874 { echo "$as_me:$LINENO: result: $ac_res" >&5
11875echo "${ECHO_T}$ac_res" >&6; }
11876if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011877 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011879_ACEOF
11880 break
11881fi
11882done
11883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011884
11885
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011886for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011887do
11888as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11889{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11890echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11891if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893else
11894 cat >conftest.$ac_ext <<_ACEOF
11895/* confdefs.h. */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */
11900/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11902#define $ac_func innocuous_$ac_func
11903
11904/* System header to define __stub macros and hopefully few prototypes,
11905 which can conflict with char $ac_func (); below.
11906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11907 <limits.h> exists even on freestanding compilers. */
11908
11909#ifdef __STDC__
11910# include <limits.h>
11911#else
11912# include <assert.h>
11913#endif
11914
11915#undef $ac_func
11916
11917/* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920#ifdef __cplusplus
11921extern "C"
11922#endif
11923char $ac_func ();
11924/* The GNU C library defines this for functions which it implements
11925 to always fail with ENOSYS. Some functions are actually named
11926 something starting with __ and the normal name is an alias. */
11927#if defined __stub_$ac_func || defined __stub___$ac_func
11928choke me
11929#endif
11930
11931int
11932main ()
11933{
11934return $ac_func ();
11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext conftest$ac_exeext
11940if { (ac_try="$ac_link"
11941case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944esac
11945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_link") 2>conftest.er1
11947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11954 { (case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957esac
11958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_try") 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; } &&
11963 { ac_try='test -s conftest$ac_exeext'
11964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967esac
11968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 eval "$as_ac_var=yes"
11974else
11975 echo "$as_me: failed program was:" >&5
11976sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 eval "$as_ac_var=no"
11979fi
11980
11981rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983fi
11984ac_res=`eval echo '${'$as_ac_var'}'`
11985 { echo "$as_me:$LINENO: result: $ac_res" >&5
11986echo "${ECHO_T}$ac_res" >&6; }
11987if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011988 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011990_ACEOF
11991 break
11992fi
11993done
11994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011995
11996
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011997for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011998do
11999as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12000{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12001echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12002if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12004else
12005 cat >conftest.$ac_ext <<_ACEOF
12006/* confdefs.h. */
12007_ACEOF
12008cat confdefs.h >>conftest.$ac_ext
12009cat >>conftest.$ac_ext <<_ACEOF
12010/* end confdefs.h. */
12011/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12013#define $ac_func innocuous_$ac_func
12014
12015/* System header to define __stub macros and hopefully few prototypes,
12016 which can conflict with char $ac_func (); below.
12017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12018 <limits.h> exists even on freestanding compilers. */
12019
12020#ifdef __STDC__
12021# include <limits.h>
12022#else
12023# include <assert.h>
12024#endif
12025
12026#undef $ac_func
12027
12028/* Override any GCC internal prototype to avoid an error.
12029 Use char because int might match the return type of a GCC
12030 builtin and then its argument prototype would still apply. */
12031#ifdef __cplusplus
12032extern "C"
12033#endif
12034char $ac_func ();
12035/* The GNU C library defines this for functions which it implements
12036 to always fail with ENOSYS. Some functions are actually named
12037 something starting with __ and the normal name is an alias. */
12038#if defined __stub_$ac_func || defined __stub___$ac_func
12039choke me
12040#endif
12041
12042int
12043main ()
12044{
12045return $ac_func ();
12046 ;
12047 return 0;
12048}
12049_ACEOF
12050rm -f conftest.$ac_objext conftest$ac_exeext
12051if { (ac_try="$ac_link"
12052case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055esac
12056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_link") 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12065 { (case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12068esac
12069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_try") 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; } &&
12074 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12084 eval "$as_ac_var=yes"
12085else
12086 echo "$as_me: failed program was:" >&5
12087sed 's/^/| /' conftest.$ac_ext >&5
12088
12089 eval "$as_ac_var=no"
12090fi
12091
12092rm -f core conftest.err conftest.$ac_objext \
12093 conftest$ac_exeext conftest.$ac_ext
12094fi
12095ac_res=`eval echo '${'$as_ac_var'}'`
12096 { echo "$as_me:$LINENO: result: $ac_res" >&5
12097echo "${ECHO_T}$ac_res" >&6; }
12098if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012099 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101_ACEOF
12102
12103fi
12104done
12105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012106
12107
12108
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012109for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012110do
12111as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12112{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12113echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12114if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116else
12117 cat >conftest.$ac_ext <<_ACEOF
12118/* confdefs.h. */
12119_ACEOF
12120cat confdefs.h >>conftest.$ac_ext
12121cat >>conftest.$ac_ext <<_ACEOF
12122/* end confdefs.h. */
12123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12125#define $ac_func innocuous_$ac_func
12126
12127/* System header to define __stub macros and hopefully few prototypes,
12128 which can conflict with char $ac_func (); below.
12129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130 <limits.h> exists even on freestanding compilers. */
12131
12132#ifdef __STDC__
12133# include <limits.h>
12134#else
12135# include <assert.h>
12136#endif
12137
12138#undef $ac_func
12139
12140/* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143#ifdef __cplusplus
12144extern "C"
12145#endif
12146char $ac_func ();
12147/* The GNU C library defines this for functions which it implements
12148 to always fail with ENOSYS. Some functions are actually named
12149 something starting with __ and the normal name is an alias. */
12150#if defined __stub_$ac_func || defined __stub___$ac_func
12151choke me
12152#endif
12153
12154int
12155main ()
12156{
12157return $ac_func ();
12158 ;
12159 return 0;
12160}
12161_ACEOF
12162rm -f conftest.$ac_objext conftest$ac_exeext
12163if { (ac_try="$ac_link"
12164case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_link") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
12176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12177 { (case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180esac
12181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_try") 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest$ac_exeext'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190esac
12191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12196 eval "$as_ac_var=yes"
12197else
12198 echo "$as_me: failed program was:" >&5
12199sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 eval "$as_ac_var=no"
12202fi
12203
12204rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206fi
12207ac_res=`eval echo '${'$as_ac_var'}'`
12208 { echo "$as_me:$LINENO: result: $ac_res" >&5
12209echo "${ECHO_T}$ac_res" >&6; }
12210if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213_ACEOF
12214
12215fi
12216done
12217
12218
Douglas Gregor01746742009-05-11 18:05:52 +000012219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012220{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12221echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012222
Reid Spencer86901802004-12-08 23:07:27 +000012223ICC=no
12224IXX=no
12225case $CC in
12226 icc*|icpc*)
12227 ICC=yes
12228 IXX=yes
12229 ;;
12230 *)
12231 ;;
12232esac
12233
Duraid Madina937c60a2006-02-15 07:57:42 +000012234if test "$GCC" != "yes" && test "$ICC" != "yes"
12235then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012236 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12237echo "$as_me: error: gcc|icc required but not found" >&2;}
12238 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012239fi
12240
12241if test "$GXX" != "yes" && test "$IXX" != "yes"
12242then
Eric Christopher73e36da2010-12-08 02:02:14 +000012243 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12244echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012245 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012246fi
12247
Reid Spencer86901802004-12-08 23:07:27 +000012248if test "$GCC" = "yes"
12249then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012251#if !defined(__GNUC__) || __GNUC__ < 3
12252#error Unsupported GCC version
12253#endif
12254
12255_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012256rm -f conftest.$ac_objext
12257if { (ac_try="$ac_compile"
12258case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_compile") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12271 { (case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274esac
12275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_try") 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } &&
12280 { ac_try='test -s conftest.$ac_objext'
12281 { (case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_try") 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012292 echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12296echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12297 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012299
Chris Lattner399c7c72008-02-05 19:43:53 +000012300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012301fi
12302
12303if test -z "$llvm_cv_gnu_make_command"
12304then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012305 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12306echo "$as_me: error: GNU Make required but not found" >&2;}
12307 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012308fi
12309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012310{ echo "$as_me:$LINENO: result: ok" >&5
12311echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012313{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12314echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012315NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12316
12317NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012319{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12320echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012321
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012323
12324{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12325echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12326if test "${ac_cv_lib_m_sin+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012328else
12329 ac_check_lib_save_LIBS=$LIBS
12330LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012331cat >conftest.$ac_ext <<_ACEOF
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012336/* end confdefs.h. */
12337
Reid Spencera773bd52006-08-04 18:18:08 +000012338/* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012341#ifdef __cplusplus
12342extern "C"
12343#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012344char sin ();
12345int
12346main ()
12347{
Reid Spencera773bd52006-08-04 18:18:08 +000012348return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012349 ;
12350 return 0;
12351}
12352_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012353rm -f conftest.$ac_objext conftest$ac_exeext
12354if { (ac_try="$ac_link"
12355case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358esac
12359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_link") 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12368 { (case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12371esac
12372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_try") 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest$ac_exeext'
12378 { (case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_try") 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012387 ac_cv_lib_m_sin=yes
12388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012389 echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012394
Bill Wendlingebcceee2009-04-18 11:20:33 +000012395rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012396 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012397LIBS=$ac_check_lib_save_LIBS
12398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012399{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12400echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12401if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012402 cat >>confdefs.h <<_ACEOF
12403#define HAVE_LIBM 1
12404_ACEOF
12405
12406 LIBS="-lm $LIBS"
12407
12408fi
12409
Jeff Cohen28783c32007-01-12 18:22:38 +000012410if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012411
12412{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12413echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12414if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012416else
12417 ac_check_lib_save_LIBS=$LIBS
12418LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012419cat >conftest.$ac_ext <<_ACEOF
12420/* confdefs.h. */
12421_ACEOF
12422cat confdefs.h >>conftest.$ac_ext
12423cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012424/* end confdefs.h. */
12425
Reid Spencer48fdf912006-06-01 19:03:21 +000012426
Reid Spencer484fc8e2006-06-01 16:55:59 +000012427int
12428main ()
12429{
Reid Spencera773bd52006-08-04 18:18:08 +000012430return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012431 ;
12432 return 0;
12433}
12434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435rm -f conftest.$ac_objext conftest$ac_exeext
12436if { (ac_try="$ac_link"
12437case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440esac
12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_link") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453esac
12454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463esac
12464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012469 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012471 echo "$as_me: failed program was:" >&5
12472sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012476
Bill Wendlingebcceee2009-04-18 11:20:33 +000012477rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012478 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012479LIBS=$ac_check_lib_save_LIBS
12480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012481{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12482echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12483if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012484 cat >>confdefs.h <<_ACEOF
12485#define HAVE_LIBIMAGEHLP 1
12486_ACEOF
12487
12488 LIBS="-limagehlp $LIBS"
12489
12490fi
12491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012492
12493{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12494echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12495if test "${ac_cv_lib_psapi_main+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012497else
12498 ac_check_lib_save_LIBS=$LIBS
12499LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012500cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h. */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012505/* end confdefs.h. */
12506
Reid Spencer48fdf912006-06-01 19:03:21 +000012507
Reid Spencer484fc8e2006-06-01 16:55:59 +000012508int
12509main ()
12510{
Reid Spencera773bd52006-08-04 18:18:08 +000012511return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012512 ;
12513 return 0;
12514}
12515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012516rm -f conftest.$ac_objext conftest$ac_exeext
12517if { (ac_try="$ac_link"
12518case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521esac
12522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_link") 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012550 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012552 echo "$as_me: failed program was:" >&5
12553sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012557
Bill Wendlingebcceee2009-04-18 11:20:33 +000012558rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012559 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012560LIBS=$ac_check_lib_save_LIBS
12561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012562{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12563echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12564if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012565 cat >>confdefs.h <<_ACEOF
12566#define HAVE_LIBPSAPI 1
12567_ACEOF
12568
12569 LIBS="-lpsapi $LIBS"
12570
12571fi
12572
12573fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12576echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12577if test "${ac_cv_search_dlopen+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012579else
12580 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012581cat >conftest.$ac_ext <<_ACEOF
12582/* confdefs.h. */
12583_ACEOF
12584cat confdefs.h >>conftest.$ac_ext
12585cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012587
Reid Spencera773bd52006-08-04 18:18:08 +000012588/* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012591#ifdef __cplusplus
12592extern "C"
12593#endif
John Criswell7a73b802003-06-30 21:59:07 +000012594char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012595int
12596main ()
12597{
Reid Spencera773bd52006-08-04 18:18:08 +000012598return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012599 ;
12600 return 0;
12601}
12602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012603for ac_lib in '' dl; do
12604 if test -z "$ac_lib"; then
12605 ac_res="none required"
12606 else
12607 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012609 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012610 rm -f conftest.$ac_objext conftest$ac_exeext
12611if { (ac_try="$ac_link"
12612case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615esac
12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12625 { (case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12628esac
12629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_try") 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest$ac_exeext'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638esac
12639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012644 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649
John Criswell7a73b802003-06-30 21:59:07 +000012650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012651
Bill Wendlingebcceee2009-04-18 11:20:33 +000012652rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012653 conftest$ac_exeext
12654 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012655 break
John Criswell7a73b802003-06-30 21:59:07 +000012656fi
Reid Spencera773bd52006-08-04 18:18:08 +000012657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012658if test "${ac_cv_search_dlopen+set}" = set; then
12659 :
Reid Spencera773bd52006-08-04 18:18:08 +000012660else
12661 ac_cv_search_dlopen=no
12662fi
12663rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012664LIBS=$ac_func_search_save_LIBS
12665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012666{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12667echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012668ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012669if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012672cat >>confdefs.h <<\_ACEOF
12673#define HAVE_DLOPEN 1
12674_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012675
12676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012677 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12678echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012679fi
12680
12681
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012682if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012683 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12684echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12685if test "${ac_cv_search_ffi_call+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012687else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012688 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012689cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012694/* end confdefs.h. */
12695
12696/* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12699#ifdef __cplusplus
12700extern "C"
12701#endif
12702char ffi_call ();
12703int
12704main ()
12705{
12706return ffi_call ();
12707 ;
12708 return 0;
12709}
12710_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012711for ac_lib in '' ffi; do
12712 if test -z "$ac_lib"; then
12713 ac_res="none required"
12714 else
12715 ac_res=-l$ac_lib
12716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12717 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012718 rm -f conftest.$ac_objext conftest$ac_exeext
12719if { (ac_try="$ac_link"
12720case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12723esac
12724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_link") 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest$ac_exeext'
12743 { (case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12746esac
12747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_try") 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012752 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012753else
12754 echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012759
Bill Wendlingebcceee2009-04-18 11:20:33 +000012760rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012761 conftest$ac_exeext
12762 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012763 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012764fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012765done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012766if test "${ac_cv_search_ffi_call+set}" = set; then
12767 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012768else
12769 ac_cv_search_ffi_call=no
12770fi
12771rm conftest.$ac_ext
12772LIBS=$ac_func_search_save_LIBS
12773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012774{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12775echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012776ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012780cat >>confdefs.h <<\_ACEOF
12781#define HAVE_FFI_CALL 1
12782_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012783
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012784else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012785 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12786echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12787 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012788fi
12789
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012790fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012792{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12793echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12794if test "${ac_cv_search_mallinfo+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012796else
12797 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012798cat >conftest.$ac_ext <<_ACEOF
12799/* confdefs.h. */
12800_ACEOF
12801cat confdefs.h >>conftest.$ac_ext
12802cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012803/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012804
Reid Spencera773bd52006-08-04 18:18:08 +000012805/* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012808#ifdef __cplusplus
12809extern "C"
12810#endif
John Criswell7a73b802003-06-30 21:59:07 +000012811char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012812int
12813main ()
12814{
Reid Spencera773bd52006-08-04 18:18:08 +000012815return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012816 ;
12817 return 0;
12818}
12819_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012820for ac_lib in '' malloc; do
12821 if test -z "$ac_lib"; then
12822 ac_res="none required"
12823 else
12824 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012826 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012827 rm -f conftest.$ac_objext conftest$ac_exeext
12828if { (ac_try="$ac_link"
12829case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832esac
12833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_link") 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845esac
12846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_try") 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012861 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012862else
12863 echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
12866
John Criswell7a73b802003-06-30 21:59:07 +000012867fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012868
Bill Wendlingebcceee2009-04-18 11:20:33 +000012869rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012870 conftest$ac_exeext
12871 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012872 break
John Criswell7a73b802003-06-30 21:59:07 +000012873fi
Reid Spencera773bd52006-08-04 18:18:08 +000012874done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012875if test "${ac_cv_search_mallinfo+set}" = set; then
12876 :
Reid Spencera773bd52006-08-04 18:18:08 +000012877else
12878 ac_cv_search_mallinfo=no
12879fi
12880rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012881LIBS=$ac_func_search_save_LIBS
12882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012883{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12884echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012885ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012886if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012889cat >>confdefs.h <<\_ACEOF
12890#define HAVE_MALLINFO 1
12891_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012892
12893fi
12894
12895
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012896if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012897
12898{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12899echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12900if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012902else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012903 ac_check_lib_save_LIBS=$LIBS
12904LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012905cat >conftest.$ac_ext <<_ACEOF
12906/* confdefs.h. */
12907_ACEOF
12908cat confdefs.h >>conftest.$ac_ext
12909cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012910/* end confdefs.h. */
12911
Reid Spencera773bd52006-08-04 18:18:08 +000012912/* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012915#ifdef __cplusplus
12916extern "C"
12917#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012918char pthread_mutex_init ();
12919int
12920main ()
12921{
Reid Spencera773bd52006-08-04 18:18:08 +000012922return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012923 ;
12924 return 0;
12925}
12926_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927rm -f conftest.$ac_objext conftest$ac_exeext
12928if { (ac_try="$ac_link"
12929case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
12952 { (case "(($ac_try" in
12953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12955esac
12956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_try") 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012961 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963 echo "$as_me: failed program was:" >&5
12964sed 's/^/| /' conftest.$ac_ext >&5
12965
12966 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012967fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012968
Bill Wendlingebcceee2009-04-18 11:20:33 +000012969rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012970 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012971LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012973{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12974echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12975if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012976 cat >>confdefs.h <<_ACEOF
12977#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012978_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012979
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012980 LIBS="-lpthread $LIBS"
12981
Reid Spencer22177fe2005-07-12 15:24:20 +000012982fi
12983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12985echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12986if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012988else
12989 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012990cat >conftest.$ac_ext <<_ACEOF
12991/* confdefs.h. */
12992_ACEOF
12993cat confdefs.h >>conftest.$ac_ext
12994cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012995/* end confdefs.h. */
12996
Reid Spencera773bd52006-08-04 18:18:08 +000012997/* Override any GCC internal prototype to avoid an error.
12998 Use char because int might match the return type of a GCC
12999 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013000#ifdef __cplusplus
13001extern "C"
13002#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013003char pthread_mutex_lock ();
13004int
13005main ()
13006{
Reid Spencera773bd52006-08-04 18:18:08 +000013007return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013008 ;
13009 return 0;
13010}
13011_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013012for ac_lib in '' pthread; do
13013 if test -z "$ac_lib"; then
13014 ac_res="none required"
13015 else
13016 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013018 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013019 rm -f conftest.$ac_objext conftest$ac_exeext
13020if { (ac_try="$ac_link"
13021case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024esac
13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_link") 2>conftest.er1
13027 ac_status=$?
13028 grep -v '^ *+' conftest.er1 >conftest.err
13029 rm -f conftest.er1
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034 { (case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037esac
13038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_try") 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047esac
13048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013053 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013054else
13055 echo "$as_me: failed program was:" >&5
13056sed 's/^/| /' conftest.$ac_ext >&5
13057
13058
Brian Gaeke5f268f72003-12-05 19:29:01 +000013059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013060
Bill Wendlingebcceee2009-04-18 11:20:33 +000013061rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013062 conftest$ac_exeext
13063 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013064 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013065fi
Reid Spencera773bd52006-08-04 18:18:08 +000013066done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13068 :
Reid Spencera773bd52006-08-04 18:18:08 +000013069else
13070 ac_cv_search_pthread_mutex_lock=no
13071fi
13072rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013073LIBS=$ac_func_search_save_LIBS
13074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013075{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13076echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013077ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013078if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013081cat >>confdefs.h <<\_ACEOF
13082#define HAVE_PTHREAD_MUTEX_LOCK 1
13083_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013084
13085fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013087 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13088echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13089if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013091else
13092 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013093cat >conftest.$ac_ext <<_ACEOF
13094/* confdefs.h. */
13095_ACEOF
13096cat confdefs.h >>conftest.$ac_ext
13097cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013098/* end confdefs.h. */
13099
13100/* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13103#ifdef __cplusplus
13104extern "C"
13105#endif
13106char pthread_rwlock_init ();
13107int
13108main ()
13109{
13110return pthread_rwlock_init ();
13111 ;
13112 return 0;
13113}
13114_ACEOF
13115for ac_lib in '' pthread; do
13116 if test -z "$ac_lib"; then
13117 ac_res="none required"
13118 else
13119 ac_res=-l$ac_lib
13120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13121 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013122 rm -f conftest.$ac_objext conftest$ac_exeext
13123if { (ac_try="$ac_link"
13124case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_link") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13140esac
13141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142 (eval "$ac_try") 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150esac
13151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013156 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013157else
13158 echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
13160
13161
Owen Andersonde8aed22009-06-16 18:20:20 +000013162fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163
Owen Andersonde8aed22009-06-16 18:20:20 +000013164rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013165 conftest$ac_exeext
13166 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013167 break
13168fi
13169done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013170if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13171 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013172else
13173 ac_cv_search_pthread_rwlock_init=no
13174fi
13175rm conftest.$ac_ext
13176LIBS=$ac_func_search_save_LIBS
13177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013178{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13179echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013180ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013181if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013184cat >>confdefs.h <<\_ACEOF
13185#define HAVE_PTHREAD_RWLOCK_INIT 1
13186_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013187
13188fi
13189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13191echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13192if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013194else
13195 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013196cat >conftest.$ac_ext <<_ACEOF
13197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013201/* end confdefs.h. */
13202
13203/* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13206#ifdef __cplusplus
13207extern "C"
13208#endif
13209char pthread_getspecific ();
13210int
13211main ()
13212{
13213return pthread_getspecific ();
13214 ;
13215 return 0;
13216}
13217_ACEOF
13218for ac_lib in '' pthread; do
13219 if test -z "$ac_lib"; then
13220 ac_res="none required"
13221 else
13222 ac_res=-l$ac_lib
13223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13224 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013225 rm -f conftest.$ac_objext conftest$ac_exeext
13226if { (ac_try="$ac_link"
13227case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230esac
13231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_link") 2>conftest.er1
13233 ac_status=$?
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } &&
13239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13243esac
13244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; } &&
13249 { ac_try='test -s conftest$ac_exeext'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253esac
13254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013259 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264
Owen Anderson27fcfe12009-06-25 23:10:26 +000013265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266
Owen Anderson27fcfe12009-06-25 23:10:26 +000013267rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268 conftest$ac_exeext
13269 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013270 break
13271fi
13272done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013273if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13274 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013275else
13276 ac_cv_search_pthread_getspecific=no
13277fi
13278rm conftest.$ac_ext
13279LIBS=$ac_func_search_save_LIBS
13280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013281{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13282echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013283ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013287cat >>confdefs.h <<\_ACEOF
13288#define HAVE_PTHREAD_GETSPECIFIC 1
13289_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013290
13291fi
13292
Reid Spencer0a262ba2005-08-24 10:07:20 +000013293fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013294
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013295
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013296# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013297if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013298 withval=$with_udis86;
13299 USE_UDIS86=1
13300
13301 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013302 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013303 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13304 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013305
13306{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13307echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13308if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013310else
13311 ac_check_lib_save_LIBS=$LIBS
13312LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013313cat >conftest.$ac_ext <<_ACEOF
13314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013318/* end confdefs.h. */
13319
13320/* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13323#ifdef __cplusplus
13324extern "C"
13325#endif
13326char ud_init ();
13327int
13328main ()
13329{
13330return ud_init ();
13331 ;
13332 return 0;
13333}
13334_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013335rm -f conftest.$ac_objext conftest$ac_exeext
13336if { (ac_try="$ac_link"
13337case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340esac
13341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_link") 2>conftest.er1
13343 ac_status=$?
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest$ac_exeext'
13360 { (case "(($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_try") 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013369 ac_cv_lib_udis86_ud_init=yes
13370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013371 echo "$as_me: failed program was:" >&5
13372sed 's/^/| /' conftest.$ac_ext >&5
13373
13374 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013376
Bill Wendlingebcceee2009-04-18 11:20:33 +000013377rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013378 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013379LIBS=$ac_check_lib_save_LIBS
13380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013381{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13382echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13383if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013384 cat >>confdefs.h <<_ACEOF
13385#define HAVE_LIBUDIS86 1
13386_ACEOF
13387
13388 LIBS="-ludis86 $LIBS"
13389
13390else
13391
13392 echo "Error! You need to have libudis86 around."
13393 exit -1
13394
13395fi
13396
13397
13398else
13399 USE_UDIS86=0
13400
13401fi
13402
13403
13404cat >>confdefs.h <<_ACEOF
13405#define USE_UDIS86 $USE_UDIS86
13406_ACEOF
13407
13408
13409
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013410# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013411if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013412 withval=$with_oprofile;
13413 USE_OPROFILE=1
13414
13415 case "$withval" in
13416 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013417 no) llvm_cv_oppath=
13418 USE_OPROFILE=0
13419 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013420 *) llvm_cv_oppath="${withval}/lib/oprofile"
13421 CPPFLAGS="-I${withval}/include";;
13422 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013423 if test -n "$llvm_cv_oppath" ; then
13424 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013425 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13426echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13427if test "${ac_cv_search_bfd_init+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013429else
13430 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013431cat >conftest.$ac_ext <<_ACEOF
13432/* confdefs.h. */
13433_ACEOF
13434cat confdefs.h >>conftest.$ac_ext
13435cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013436/* end confdefs.h. */
13437
13438/* Override any GCC internal prototype to avoid an error.
13439 Use char because int might match the return type of a GCC
13440 builtin and then its argument prototype would still apply. */
13441#ifdef __cplusplus
13442extern "C"
13443#endif
13444char bfd_init ();
13445int
13446main ()
13447{
13448return bfd_init ();
13449 ;
13450 return 0;
13451}
13452_ACEOF
13453for ac_lib in '' bfd; do
13454 if test -z "$ac_lib"; then
13455 ac_res="none required"
13456 else
13457 ac_res=-l$ac_lib
13458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13459 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013460 rm -f conftest.$ac_objext conftest$ac_exeext
13461if { (ac_try="$ac_link"
13462case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_link") 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13475 { (case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478esac
13479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_try") 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest$ac_exeext'
13485 { (case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13488esac
13489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_try") 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013494 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013495else
13496 echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
13499
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013501
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013502rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503 conftest$ac_exeext
13504 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013505 break
13506fi
13507done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013508if test "${ac_cv_search_bfd_init+set}" = set; then
13509 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013510else
13511 ac_cv_search_bfd_init=no
13512fi
13513rm conftest.$ac_ext
13514LIBS=$ac_func_search_save_LIBS
13515fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13517echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013518ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013519if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13521
13522fi
13523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013524 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13525echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13526if test "${ac_cv_search_op_open_agent+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013528else
13529 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013530cat >conftest.$ac_ext <<_ACEOF
13531/* confdefs.h. */
13532_ACEOF
13533cat confdefs.h >>conftest.$ac_ext
13534cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013535/* end confdefs.h. */
13536
13537/* Override any GCC internal prototype to avoid an error.
13538 Use char because int might match the return type of a GCC
13539 builtin and then its argument prototype would still apply. */
13540#ifdef __cplusplus
13541extern "C"
13542#endif
13543char op_open_agent ();
13544int
13545main ()
13546{
13547return op_open_agent ();
13548 ;
13549 return 0;
13550}
13551_ACEOF
13552for ac_lib in '' opagent; do
13553 if test -z "$ac_lib"; then
13554 ac_res="none required"
13555 else
13556 ac_res=-l$ac_lib
13557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13558 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013559 rm -f conftest.$ac_objext conftest$ac_exeext
13560if { (ac_try="$ac_link"
13561case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13564esac
13565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_link") 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13574 { (case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577esac
13578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_try") 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest$ac_exeext'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587esac
13588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_try") 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013593 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013594else
13595 echo "$as_me: failed program was:" >&5
13596sed 's/^/| /' conftest.$ac_ext >&5
13597
13598
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013600
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013601rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013602 conftest$ac_exeext
13603 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013604 break
13605fi
13606done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013607if test "${ac_cv_search_op_open_agent+set}" = set; then
13608 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013609else
13610 ac_cv_search_op_open_agent=no
13611fi
13612rm conftest.$ac_ext
13613LIBS=$ac_func_search_save_LIBS
13614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013615{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13616echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013617ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013618if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13620
13621else
13622
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013623 echo "Error! You need to have libopagent around."
13624 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013625
13626fi
13627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013628 if test "${ac_cv_header_opagent_h+set}" = set; then
13629 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13630echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13631if test "${ac_cv_header_opagent_h+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633fi
13634{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13635echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13636else
13637 # Is the header compilable?
13638{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13639echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13640cat >conftest.$ac_ext <<_ACEOF
13641/* confdefs.h. */
13642_ACEOF
13643cat confdefs.h >>conftest.$ac_ext
13644cat >>conftest.$ac_ext <<_ACEOF
13645/* end confdefs.h. */
13646$ac_includes_default
13647#include <opagent.h>
13648_ACEOF
13649rm -f conftest.$ac_objext
13650if { (ac_try="$ac_compile"
13651case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13654esac
13655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_compile") 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13664 { (case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13667esac
13668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_try") 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try='test -s conftest.$ac_objext'
13674 { (case "(($ac_try" in
13675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676 *) ac_try_echo=$ac_try;;
13677esac
13678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679 (eval "$ac_try") 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_header_compiler=yes
13684else
13685 echo "$as_me: failed program was:" >&5
13686sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013688 ac_header_compiler=no
13689fi
13690
13691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13693echo "${ECHO_T}$ac_header_compiler" >&6; }
13694
13695# Is the header present?
13696{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13697echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13698cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704#include <opagent.h>
13705_ACEOF
13706if { (ac_try="$ac_cpp conftest.$ac_ext"
13707case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710esac
13711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13713 ac_status=$?
13714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } >/dev/null; then
13719 if test -s conftest.err; then
13720 ac_cpp_err=$ac_c_preproc_warn_flag
13721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13722 else
13723 ac_cpp_err=
13724 fi
13725else
13726 ac_cpp_err=yes
13727fi
13728if test -z "$ac_cpp_err"; then
13729 ac_header_preproc=yes
13730else
13731 echo "$as_me: failed program was:" >&5
13732sed 's/^/| /' conftest.$ac_ext >&5
13733
13734 ac_header_preproc=no
13735fi
13736
13737rm -f conftest.err conftest.$ac_ext
13738{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739echo "${ECHO_T}$ac_header_preproc" >&6; }
13740
13741# So? What about this header?
13742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13743 yes:no: )
13744 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13745echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13747echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13748 ac_header_preproc=yes
13749 ;;
13750 no:yes:* )
13751 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13752echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13754echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13756echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13758echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13760echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13762echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13763 ( cat <<\_ASBOX
13764## ----------------------------------- ##
13765## Report this to llvmbugs@cs.uiuc.edu ##
13766## ----------------------------------- ##
13767_ASBOX
13768 ) | sed "s/^/$as_me: WARNING: /" >&2
13769 ;;
13770esac
13771{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13772echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13773if test "${ac_cv_header_opagent_h+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775else
13776 ac_cv_header_opagent_h=$ac_header_preproc
13777fi
13778{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13779echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13780
13781fi
13782if test $ac_cv_header_opagent_h = yes; then
13783 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013784else
13785
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013786 echo "Error! You need to have opagent.h around."
13787 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013788
13789fi
13790
13791
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013792 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013793
13794else
13795
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013796 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013797
13798
13799fi
13800
13801
13802cat >>confdefs.h <<_ACEOF
13803#define USE_OPROFILE $USE_OPROFILE
13804_ACEOF
13805
13806
13807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013808
13809
13810
13811
13812
Reid Spencer59473af2004-12-25 07:31:29 +000013813ac_header_dirent=no
13814for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013815 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13816{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13817echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013821 cat >conftest.$ac_ext <<_ACEOF
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013826/* end confdefs.h. */
13827#include <sys/types.h>
13828#include <$ac_hdr>
13829
13830int
13831main ()
13832{
13833if ((DIR *) 0)
13834return 0;
13835 ;
13836 return 0;
13837}
13838_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013839rm -f conftest.$ac_objext
13840if { (ac_try="$ac_compile"
13841case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844esac
13845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854 { (case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13857esac
13858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_try") 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } &&
13863 { ac_try='test -s conftest.$ac_objext'
13864 { (case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867esac
13868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_try") 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013873 eval "$as_ac_Header=yes"
13874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013875 echo "$as_me: failed program was:" >&5
13876sed 's/^/| /' conftest.$ac_ext >&5
13877
13878 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013880
Reid Spencera773bd52006-08-04 18:18:08 +000013881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013883ac_res=`eval echo '${'$as_ac_Header'}'`
13884 { echo "$as_me:$LINENO: result: $ac_res" >&5
13885echo "${ECHO_T}$ac_res" >&6; }
13886if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013887 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013888#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013889_ACEOF
13890
13891ac_header_dirent=$ac_hdr; break
13892fi
13893
13894done
13895# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13896if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13898echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13899if test "${ac_cv_search_opendir+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013901else
13902 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013908/* end confdefs.h. */
13909
Reid Spencera773bd52006-08-04 18:18:08 +000013910/* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013913#ifdef __cplusplus
13914extern "C"
13915#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013916char opendir ();
13917int
13918main ()
13919{
Reid Spencera773bd52006-08-04 18:18:08 +000013920return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013921 ;
13922 return 0;
13923}
13924_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013925for ac_lib in '' dir; do
13926 if test -z "$ac_lib"; then
13927 ac_res="none required"
13928 else
13929 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013931 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013932 rm -f conftest.$ac_objext conftest$ac_exeext
13933if { (ac_try="$ac_link"
13934case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937esac
13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_link") 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950esac
13951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest$ac_exeext'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013966 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013967else
13968 echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
13971
Reid Spencer59473af2004-12-25 07:31:29 +000013972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013973
Bill Wendlingebcceee2009-04-18 11:20:33 +000013974rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013975 conftest$ac_exeext
13976 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013977 break
Reid Spencer59473af2004-12-25 07:31:29 +000013978fi
Reid Spencera773bd52006-08-04 18:18:08 +000013979done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013980if test "${ac_cv_search_opendir+set}" = set; then
13981 :
Reid Spencera773bd52006-08-04 18:18:08 +000013982else
13983 ac_cv_search_opendir=no
13984fi
13985rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013986LIBS=$ac_func_search_save_LIBS
13987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013988{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13989echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013990ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013991if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013993
13994fi
13995
13996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013997 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13998echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13999if test "${ac_cv_search_opendir+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014001else
14002 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014003cat >conftest.$ac_ext <<_ACEOF
14004/* confdefs.h. */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014008/* end confdefs.h. */
14009
Reid Spencera773bd52006-08-04 18:18:08 +000014010/* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014013#ifdef __cplusplus
14014extern "C"
14015#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014016char opendir ();
14017int
14018main ()
14019{
Reid Spencera773bd52006-08-04 18:18:08 +000014020return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014021 ;
14022 return 0;
14023}
14024_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014025for ac_lib in '' x; do
14026 if test -z "$ac_lib"; then
14027 ac_res="none required"
14028 else
14029 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014031 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014032 rm -f conftest.$ac_objext conftest$ac_exeext
14033if { (ac_try="$ac_link"
14034case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037esac
14038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_link") 2>conftest.er1
14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050esac
14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060esac
14061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014066 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014067else
14068 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5
14070
14071
Reid Spencer59473af2004-12-25 07:31:29 +000014072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014073
Bill Wendlingebcceee2009-04-18 11:20:33 +000014074rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014075 conftest$ac_exeext
14076 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014077 break
Reid Spencer59473af2004-12-25 07:31:29 +000014078fi
Reid Spencera773bd52006-08-04 18:18:08 +000014079done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014080if test "${ac_cv_search_opendir+set}" = set; then
14081 :
Reid Spencera773bd52006-08-04 18:18:08 +000014082else
14083 ac_cv_search_opendir=no
14084fi
14085rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014086LIBS=$ac_func_search_save_LIBS
14087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014088{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14089echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014090ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014091if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014093
14094fi
14095
14096fi
14097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014098{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14099echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14100if test "${ac_cv_header_mmap_anon+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014102else
14103 ac_ext=c
14104ac_cpp='$CPP $CPPFLAGS'
14105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14107ac_compiler_gnu=$ac_cv_c_compiler_gnu
14108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014109 cat >conftest.$ac_ext <<_ACEOF
14110/* confdefs.h. */
14111_ACEOF
14112cat confdefs.h >>conftest.$ac_ext
14113cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014114/* end confdefs.h. */
14115#include <sys/mman.h>
14116#include <unistd.h>
14117#include <fcntl.h>
14118int
14119main ()
14120{
14121mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14122 ;
14123 return 0;
14124}
14125_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126rm -f conftest.$ac_objext
14127if { (ac_try="$ac_compile"
14128case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131esac
14132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_compile") 2>conftest.er1
14134 ac_status=$?
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
14140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14141 { (case "(($ac_try" in
14142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143 *) ac_try_echo=$ac_try;;
14144esac
14145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146 (eval "$ac_try") 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest.$ac_objext'
14151 { (case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154esac
14155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_try") 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014160 ac_cv_header_mmap_anon=yes
14161else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162 echo "$as_me: failed program was:" >&5
14163sed 's/^/| /' conftest.$ac_ext >&5
14164
14165 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014167
Reid Spencera773bd52006-08-04 18:18:08 +000014168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014169 ac_ext=c
14170ac_cpp='$CPP $CPPFLAGS'
14171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173ac_compiler_gnu=$ac_cv_c_compiler_gnu
14174
14175
14176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014177{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14178echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014179if test "$ac_cv_header_mmap_anon" = yes; then
14180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014181cat >>confdefs.h <<\_ACEOF
14182#define HAVE_MMAP_ANONYMOUS 1
14183_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014184
14185fi
14186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014187{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14188echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14189if test "${ac_cv_header_stat_broken+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014192 cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014197/* end confdefs.h. */
14198#include <sys/types.h>
14199#include <sys/stat.h>
14200
Reid Spencera773bd52006-08-04 18:18:08 +000014201#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014202# if S_ISBLK (S_IFDIR)
14203You lose.
14204# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014205#endif
14206
Reid Spencera773bd52006-08-04 18:18:08 +000014207#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014208# if S_ISBLK (S_IFCHR)
14209You lose.
14210# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014211#endif
14212
Reid Spencera773bd52006-08-04 18:18:08 +000014213#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014214# if S_ISLNK (S_IFREG)
14215You lose.
14216# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014217#endif
14218
Reid Spencera773bd52006-08-04 18:18:08 +000014219#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220# if S_ISSOCK (S_IFREG)
14221You lose.
14222# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014223#endif
14224
14225_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14227 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014228 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229else
14230 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232rm -f conftest*
14233
Reid Spencer59473af2004-12-25 07:31:29 +000014234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14236echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014237if test $ac_cv_header_stat_broken = yes; then
14238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014239cat >>confdefs.h <<\_ACEOF
14240#define STAT_MACROS_BROKEN 1
14241_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014242
14243fi
14244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14246echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14247if test "${ac_cv_header_sys_wait_h+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014250 cat >conftest.$ac_ext <<_ACEOF
14251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014256#include <sys/types.h>
14257#include <sys/wait.h>
14258#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014259# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014260#endif
14261#ifndef WIFEXITED
14262# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14263#endif
14264
John Criswell7a73b802003-06-30 21:59:07 +000014265int
14266main ()
14267{
14268 int s;
14269 wait (&s);
14270 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14271 ;
14272 return 0;
14273}
14274_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014275rm -f conftest.$ac_objext
14276if { (ac_try="$ac_compile"
14277case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_compile") 2>conftest.er1
14283 ac_status=$?
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293esac
14294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014309 ac_cv_header_sys_wait_h=yes
14310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014311 echo "$as_me: failed program was:" >&5
14312sed 's/^/| /' conftest.$ac_ext >&5
14313
14314 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014316
Reid Spencera773bd52006-08-04 18:18:08 +000014317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014319{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14320echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014321if test $ac_cv_header_sys_wait_h = yes; then
14322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014323cat >>confdefs.h <<\_ACEOF
14324#define HAVE_SYS_WAIT_H 1
14325_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014326
14327fi
14328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014329{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14330echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14331if test "${ac_cv_header_time+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334 cat >conftest.$ac_ext <<_ACEOF
14335/* confdefs.h. */
14336_ACEOF
14337cat confdefs.h >>conftest.$ac_ext
14338cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014339/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014340#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014341#include <sys/time.h>
14342#include <time.h>
14343
14344int
14345main ()
14346{
14347if ((struct tm *) 0)
14348return 0;
14349 ;
14350 return 0;
14351}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014352_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014353rm -f conftest.$ac_objext
14354if { (ac_try="$ac_compile"
14355case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358esac
14359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_compile") 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
14367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371esac
14372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_try") 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14381esac
14382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_try") 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014387 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014389 echo "$as_me: failed program was:" >&5
14390sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014394
Reid Spencera773bd52006-08-04 18:18:08 +000014395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14398echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014399if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014401cat >>confdefs.h <<\_ACEOF
14402#define TIME_WITH_SYS_TIME 1
14403_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014404
14405fi
14406
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014408
14409
14410
14411
14412
14413
Reid Spencer59473af2004-12-25 07:31:29 +000014414for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014415do
14416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422fi
14423ac_res=`eval echo '${'$as_ac_Header'}'`
14424 { echo "$as_me:$LINENO: result: $ac_res" >&5
14425echo "${ECHO_T}$ac_res" >&6; }
14426else
14427 # Is the header compilable?
14428{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14430cat >conftest.$ac_ext <<_ACEOF
14431/* confdefs.h. */
14432_ACEOF
14433cat confdefs.h >>conftest.$ac_ext
14434cat >>conftest.$ac_ext <<_ACEOF
14435/* end confdefs.h. */
14436$ac_includes_default
14437#include <$ac_header>
14438_ACEOF
14439rm -f conftest.$ac_objext
14440if { (ac_try="$ac_compile"
14441case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444esac
14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_compile") 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } &&
14453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14454 { (case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14457esac
14458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459 (eval "$ac_try") 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; } &&
14463 { ac_try='test -s conftest.$ac_objext'
14464 { (case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467esac
14468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_try") 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_header_compiler=yes
14474else
14475 echo "$as_me: failed program was:" >&5
14476sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 ac_header_compiler=no
14479fi
14480
14481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14483echo "${ECHO_T}$ac_header_compiler" >&6; }
14484
14485# Is the header present?
14486{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14488cat >conftest.$ac_ext <<_ACEOF
14489/* confdefs.h. */
14490_ACEOF
14491cat confdefs.h >>conftest.$ac_ext
14492cat >>conftest.$ac_ext <<_ACEOF
14493/* end confdefs.h. */
14494#include <$ac_header>
14495_ACEOF
14496if { (ac_try="$ac_cpp conftest.$ac_ext"
14497case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14500esac
14501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } >/dev/null; then
14509 if test -s conftest.err; then
14510 ac_cpp_err=$ac_c_preproc_warn_flag
14511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14512 else
14513 ac_cpp_err=
14514 fi
14515else
14516 ac_cpp_err=yes
14517fi
14518if test -z "$ac_cpp_err"; then
14519 ac_header_preproc=yes
14520else
14521 echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
14524 ac_header_preproc=no
14525fi
14526
14527rm -f conftest.err conftest.$ac_ext
14528{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14529echo "${ECHO_T}$ac_header_preproc" >&6; }
14530
14531# So? What about this header?
14532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14533 yes:no: )
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14538 ac_header_preproc=yes
14539 ;;
14540 no:yes:* )
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14544echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14548echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14553 ( cat <<\_ASBOX
14554## ----------------------------------- ##
14555## Report this to llvmbugs@cs.uiuc.edu ##
14556## ----------------------------------- ##
14557_ASBOX
14558 ) | sed "s/^/$as_me: WARNING: /" >&2
14559 ;;
14560esac
14561{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565else
14566 eval "$as_ac_Header=\$ac_header_preproc"
14567fi
14568ac_res=`eval echo '${'$as_ac_Header'}'`
14569 { echo "$as_me:$LINENO: result: $ac_res" >&5
14570echo "${ECHO_T}$ac_res" >&6; }
14571
14572fi
14573if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014574 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014576_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014577
14578fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014579
Reid Spencer59473af2004-12-25 07:31:29 +000014580done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014582
14583
14584
14585
14586
14587
Douglas Gregor071d73d2009-05-18 17:21:34 +000014588for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014589do
14590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596fi
14597ac_res=`eval echo '${'$as_ac_Header'}'`
14598 { echo "$as_me:$LINENO: result: $ac_res" >&5
14599echo "${ECHO_T}$ac_res" >&6; }
14600else
14601 # Is the header compilable?
14602{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14604cat >conftest.$ac_ext <<_ACEOF
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
14609/* end confdefs.h. */
14610$ac_includes_default
14611#include <$ac_header>
14612_ACEOF
14613rm -f conftest.$ac_objext
14614if { (ac_try="$ac_compile"
14615case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618esac
14619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_compile") 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641esac
14642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_header_compiler=yes
14648else
14649 echo "$as_me: failed program was:" >&5
14650sed 's/^/| /' conftest.$ac_ext >&5
14651
14652 ac_header_compiler=no
14653fi
14654
14655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657echo "${ECHO_T}$ac_header_compiler" >&6; }
14658
14659# Is the header present?
14660{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14662cat >conftest.$ac_ext <<_ACEOF
14663/* confdefs.h. */
14664_ACEOF
14665cat confdefs.h >>conftest.$ac_ext
14666cat >>conftest.$ac_ext <<_ACEOF
14667/* end confdefs.h. */
14668#include <$ac_header>
14669_ACEOF
14670if { (ac_try="$ac_cpp conftest.$ac_ext"
14671case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674esac
14675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } >/dev/null; then
14683 if test -s conftest.err; then
14684 ac_cpp_err=$ac_c_preproc_warn_flag
14685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14686 else
14687 ac_cpp_err=
14688 fi
14689else
14690 ac_cpp_err=yes
14691fi
14692if test -z "$ac_cpp_err"; then
14693 ac_header_preproc=yes
14694else
14695 echo "$as_me: failed program was:" >&5
14696sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_header_preproc=no
14699fi
14700
14701rm -f conftest.err conftest.$ac_ext
14702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14703echo "${ECHO_T}$ac_header_preproc" >&6; }
14704
14705# So? What about this header?
14706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14707 yes:no: )
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14712 ac_header_preproc=yes
14713 ;;
14714 no:yes:* )
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14727 ( cat <<\_ASBOX
14728## ----------------------------------- ##
14729## Report this to llvmbugs@cs.uiuc.edu ##
14730## ----------------------------------- ##
14731_ASBOX
14732 ) | sed "s/^/$as_me: WARNING: /" >&2
14733 ;;
14734esac
14735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739else
14740 eval "$as_ac_Header=\$ac_header_preproc"
14741fi
14742ac_res=`eval echo '${'$as_ac_Header'}'`
14743 { echo "$as_me:$LINENO: result: $ac_res" >&5
14744echo "${ECHO_T}$ac_res" >&6; }
14745
14746fi
14747if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014748 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014750_ACEOF
14751
14752fi
14753
14754done
14755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014756
14757
Douglas Gregor071d73d2009-05-18 17:21:34 +000014758for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014759do
14760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766fi
14767ac_res=`eval echo '${'$as_ac_Header'}'`
14768 { echo "$as_me:$LINENO: result: $ac_res" >&5
14769echo "${ECHO_T}$ac_res" >&6; }
14770else
14771 # Is the header compilable?
14772{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14774cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h. */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h. */
14780$ac_includes_default
14781#include <$ac_header>
14782_ACEOF
14783rm -f conftest.$ac_objext
14784if { (ac_try="$ac_compile"
14785case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788esac
14789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_compile") 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14798 { (case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801esac
14802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_try") 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811esac
14812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_header_compiler=yes
14818else
14819 echo "$as_me: failed program was:" >&5
14820sed 's/^/| /' conftest.$ac_ext >&5
14821
14822 ac_header_compiler=no
14823fi
14824
14825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14827echo "${ECHO_T}$ac_header_compiler" >&6; }
14828
14829# Is the header present?
14830{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14832cat >conftest.$ac_ext <<_ACEOF
14833/* confdefs.h. */
14834_ACEOF
14835cat confdefs.h >>conftest.$ac_ext
14836cat >>conftest.$ac_ext <<_ACEOF
14837/* end confdefs.h. */
14838#include <$ac_header>
14839_ACEOF
14840if { (ac_try="$ac_cpp conftest.$ac_ext"
14841case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14844esac
14845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14847 ac_status=$?
14848 grep -v '^ *+' conftest.er1 >conftest.err
14849 rm -f conftest.er1
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } >/dev/null; then
14853 if test -s conftest.err; then
14854 ac_cpp_err=$ac_c_preproc_warn_flag
14855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14856 else
14857 ac_cpp_err=
14858 fi
14859else
14860 ac_cpp_err=yes
14861fi
14862if test -z "$ac_cpp_err"; then
14863 ac_header_preproc=yes
14864else
14865 echo "$as_me: failed program was:" >&5
14866sed 's/^/| /' conftest.$ac_ext >&5
14867
14868 ac_header_preproc=no
14869fi
14870
14871rm -f conftest.err conftest.$ac_ext
14872{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14873echo "${ECHO_T}$ac_header_preproc" >&6; }
14874
14875# So? What about this header?
14876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14877 yes:no: )
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14882 ac_header_preproc=yes
14883 ;;
14884 no:yes:* )
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14892echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14897 ( cat <<\_ASBOX
14898## ----------------------------------- ##
14899## Report this to llvmbugs@cs.uiuc.edu ##
14900## ----------------------------------- ##
14901_ASBOX
14902 ) | sed "s/^/$as_me: WARNING: /" >&2
14903 ;;
14904esac
14905{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14909else
14910 eval "$as_ac_Header=\$ac_header_preproc"
14911fi
14912ac_res=`eval echo '${'$as_ac_Header'}'`
14913 { echo "$as_me:$LINENO: result: $ac_res" >&5
14914echo "${ECHO_T}$ac_res" >&6; }
14915
14916fi
14917if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014918 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014920_ACEOF
14921
14922fi
14923
14924done
Reid Spencer59473af2004-12-25 07:31:29 +000014925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014926
14927
14928
14929
Daniel Dunbar3e462932011-02-03 02:40:02 +000014930
14931for 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 +000014932do
14933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14939fi
14940ac_res=`eval echo '${'$as_ac_Header'}'`
14941 { echo "$as_me:$LINENO: result: $ac_res" >&5
14942echo "${ECHO_T}$ac_res" >&6; }
14943else
14944 # Is the header compilable?
14945{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14947cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
14952/* end confdefs.h. */
14953$ac_includes_default
14954#include <$ac_header>
14955_ACEOF
14956rm -f conftest.$ac_objext
14957if { (ac_try="$ac_compile"
14958case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14961esac
14962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963 (eval "$ac_compile") 2>conftest.er1
14964 ac_status=$?
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
14970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14971 { (case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14974esac
14975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_try") 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } &&
14980 { ac_try='test -s conftest.$ac_objext'
14981 { (case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984esac
14985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_try") 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 ac_header_compiler=yes
14991else
14992 echo "$as_me: failed program was:" >&5
14993sed 's/^/| /' conftest.$ac_ext >&5
14994
14995 ac_header_compiler=no
14996fi
14997
14998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15000echo "${ECHO_T}$ac_header_compiler" >&6; }
15001
15002# Is the header present?
15003{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15005cat >conftest.$ac_ext <<_ACEOF
15006/* confdefs.h. */
15007_ACEOF
15008cat confdefs.h >>conftest.$ac_ext
15009cat >>conftest.$ac_ext <<_ACEOF
15010/* end confdefs.h. */
15011#include <$ac_header>
15012_ACEOF
15013if { (ac_try="$ac_cpp conftest.$ac_ext"
15014case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017esac
15018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } >/dev/null; then
15026 if test -s conftest.err; then
15027 ac_cpp_err=$ac_c_preproc_warn_flag
15028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15029 else
15030 ac_cpp_err=
15031 fi
15032else
15033 ac_cpp_err=yes
15034fi
15035if test -z "$ac_cpp_err"; then
15036 ac_header_preproc=yes
15037else
15038 echo "$as_me: failed program was:" >&5
15039sed 's/^/| /' conftest.$ac_ext >&5
15040
15041 ac_header_preproc=no
15042fi
15043
15044rm -f conftest.err conftest.$ac_ext
15045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15046echo "${ECHO_T}$ac_header_preproc" >&6; }
15047
15048# So? What about this header?
15049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15050 yes:no: )
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15055 ac_header_preproc=yes
15056 ;;
15057 no:yes:* )
15058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15070 ( cat <<\_ASBOX
15071## ----------------------------------- ##
15072## Report this to llvmbugs@cs.uiuc.edu ##
15073## ----------------------------------- ##
15074_ASBOX
15075 ) | sed "s/^/$as_me: WARNING: /" >&2
15076 ;;
15077esac
15078{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
15083 eval "$as_ac_Header=\$ac_header_preproc"
15084fi
15085ac_res=`eval echo '${'$as_ac_Header'}'`
15086 { echo "$as_me:$LINENO: result: $ac_res" >&5
15087echo "${ECHO_T}$ac_res" >&6; }
15088
15089fi
15090if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015091 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015093_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015094
15095fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015096
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015097done
15098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015099
15100
15101
15102
Douglas Gregor01746742009-05-11 18:05:52 +000015103for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015104do
15105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15111fi
15112ac_res=`eval echo '${'$as_ac_Header'}'`
15113 { echo "$as_me:$LINENO: result: $ac_res" >&5
15114echo "${ECHO_T}$ac_res" >&6; }
15115else
15116 # Is the header compilable?
15117{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15119cat >conftest.$ac_ext <<_ACEOF
15120/* confdefs.h. */
15121_ACEOF
15122cat confdefs.h >>conftest.$ac_ext
15123cat >>conftest.$ac_ext <<_ACEOF
15124/* end confdefs.h. */
15125$ac_includes_default
15126#include <$ac_header>
15127_ACEOF
15128rm -f conftest.$ac_objext
15129if { (ac_try="$ac_compile"
15130case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133esac
15134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_compile") 2>conftest.er1
15136 ac_status=$?
15137 grep -v '^ *+' conftest.er1 >conftest.err
15138 rm -f conftest.er1
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } &&
15142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15143 { (case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146esac
15147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_try") 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; } &&
15152 { ac_try='test -s conftest.$ac_objext'
15153 { (case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15156esac
15157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_try") 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 ac_header_compiler=yes
15163else
15164 echo "$as_me: failed program was:" >&5
15165sed 's/^/| /' conftest.$ac_ext >&5
15166
15167 ac_header_compiler=no
15168fi
15169
15170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15172echo "${ECHO_T}$ac_header_compiler" >&6; }
15173
15174# Is the header present?
15175{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15177cat >conftest.$ac_ext <<_ACEOF
15178/* confdefs.h. */
15179_ACEOF
15180cat confdefs.h >>conftest.$ac_ext
15181cat >>conftest.$ac_ext <<_ACEOF
15182/* end confdefs.h. */
15183#include <$ac_header>
15184_ACEOF
15185if { (ac_try="$ac_cpp conftest.$ac_ext"
15186case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15189esac
15190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15192 ac_status=$?
15193 grep -v '^ *+' conftest.er1 >conftest.err
15194 rm -f conftest.er1
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } >/dev/null; then
15198 if test -s conftest.err; then
15199 ac_cpp_err=$ac_c_preproc_warn_flag
15200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15201 else
15202 ac_cpp_err=
15203 fi
15204else
15205 ac_cpp_err=yes
15206fi
15207if test -z "$ac_cpp_err"; then
15208 ac_header_preproc=yes
15209else
15210 echo "$as_me: failed program was:" >&5
15211sed 's/^/| /' conftest.$ac_ext >&5
15212
15213 ac_header_preproc=no
15214fi
15215
15216rm -f conftest.err conftest.$ac_ext
15217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15218echo "${ECHO_T}$ac_header_preproc" >&6; }
15219
15220# So? What about this header?
15221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15222 yes:no: )
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15227 ac_header_preproc=yes
15228 ;;
15229 no:yes:* )
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15233echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15237echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15242 ( cat <<\_ASBOX
15243## ----------------------------------- ##
15244## Report this to llvmbugs@cs.uiuc.edu ##
15245## ----------------------------------- ##
15246_ASBOX
15247 ) | sed "s/^/$as_me: WARNING: /" >&2
15248 ;;
15249esac
15250{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254else
15255 eval "$as_ac_Header=\$ac_header_preproc"
15256fi
15257ac_res=`eval echo '${'$as_ac_Header'}'`
15258 { echo "$as_me:$LINENO: result: $ac_res" >&5
15259echo "${ECHO_T}$ac_res" >&6; }
15260
15261fi
15262if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015263 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015265_ACEOF
15266
15267fi
15268
15269done
15270
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015271
15272for ac_header in valgrind/valgrind.h
15273do
15274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280fi
15281ac_res=`eval echo '${'$as_ac_Header'}'`
15282 { echo "$as_me:$LINENO: result: $ac_res" >&5
15283echo "${ECHO_T}$ac_res" >&6; }
15284else
15285 # Is the header compilable?
15286{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15287echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15288cat >conftest.$ac_ext <<_ACEOF
15289/* confdefs.h. */
15290_ACEOF
15291cat confdefs.h >>conftest.$ac_ext
15292cat >>conftest.$ac_ext <<_ACEOF
15293/* end confdefs.h. */
15294$ac_includes_default
15295#include <$ac_header>
15296_ACEOF
15297rm -f conftest.$ac_objext
15298if { (ac_try="$ac_compile"
15299case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302esac
15303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_compile") 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312 { (case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315esac
15316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_try") 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325esac
15326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_header_compiler=yes
15332else
15333 echo "$as_me: failed program was:" >&5
15334sed 's/^/| /' conftest.$ac_ext >&5
15335
15336 ac_header_compiler=no
15337fi
15338
15339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15341echo "${ECHO_T}$ac_header_compiler" >&6; }
15342
15343# Is the header present?
15344{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15346cat >conftest.$ac_ext <<_ACEOF
15347/* confdefs.h. */
15348_ACEOF
15349cat confdefs.h >>conftest.$ac_ext
15350cat >>conftest.$ac_ext <<_ACEOF
15351/* end confdefs.h. */
15352#include <$ac_header>
15353_ACEOF
15354if { (ac_try="$ac_cpp conftest.$ac_ext"
15355case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358esac
15359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } >/dev/null; then
15367 if test -s conftest.err; then
15368 ac_cpp_err=$ac_c_preproc_warn_flag
15369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15370 else
15371 ac_cpp_err=
15372 fi
15373else
15374 ac_cpp_err=yes
15375fi
15376if test -z "$ac_cpp_err"; then
15377 ac_header_preproc=yes
15378else
15379 echo "$as_me: failed program was:" >&5
15380sed 's/^/| /' conftest.$ac_ext >&5
15381
15382 ac_header_preproc=no
15383fi
15384
15385rm -f conftest.err conftest.$ac_ext
15386{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15387echo "${ECHO_T}$ac_header_preproc" >&6; }
15388
15389# So? What about this header?
15390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15391 yes:no: )
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15393echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15395echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15396 ac_header_preproc=yes
15397 ;;
15398 no:yes:* )
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15400echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15402echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15404echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15406echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15410echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15411 ( cat <<\_ASBOX
15412## ----------------------------------- ##
15413## Report this to llvmbugs@cs.uiuc.edu ##
15414## ----------------------------------- ##
15415_ASBOX
15416 ) | sed "s/^/$as_me: WARNING: /" >&2
15417 ;;
15418esac
15419{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15423else
15424 eval "$as_ac_Header=\$ac_header_preproc"
15425fi
15426ac_res=`eval echo '${'$as_ac_Header'}'`
15427 { echo "$as_me:$LINENO: result: $ac_res" >&5
15428echo "${ECHO_T}$ac_res" >&6; }
15429
15430fi
15431if test `eval echo '${'$as_ac_Header'}'` = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15434_ACEOF
15435
15436fi
15437
15438done
15439
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015440
15441for ac_header in fenv.h
15442do
15443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449fi
15450ac_res=`eval echo '${'$as_ac_Header'}'`
15451 { echo "$as_me:$LINENO: result: $ac_res" >&5
15452echo "${ECHO_T}$ac_res" >&6; }
15453else
15454 # Is the header compilable?
15455{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15457cat >conftest.$ac_ext <<_ACEOF
15458/* confdefs.h. */
15459_ACEOF
15460cat confdefs.h >>conftest.$ac_ext
15461cat >>conftest.$ac_ext <<_ACEOF
15462/* end confdefs.h. */
15463$ac_includes_default
15464#include <$ac_header>
15465_ACEOF
15466rm -f conftest.$ac_objext
15467if { (ac_try="$ac_compile"
15468case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15471esac
15472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_compile") 2>conftest.er1
15474 ac_status=$?
15475 grep -v '^ *+' conftest.er1 >conftest.err
15476 rm -f conftest.er1
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15481 { (case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15484esac
15485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_try") 2>&5
15487 ac_status=$?
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest.$ac_objext'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494esac
15495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_header_compiler=yes
15501else
15502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505 ac_header_compiler=no
15506fi
15507
15508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510echo "${ECHO_T}$ac_header_compiler" >&6; }
15511
15512# Is the header present?
15513{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15515cat >conftest.$ac_ext <<_ACEOF
15516/* confdefs.h. */
15517_ACEOF
15518cat confdefs.h >>conftest.$ac_ext
15519cat >>conftest.$ac_ext <<_ACEOF
15520/* end confdefs.h. */
15521#include <$ac_header>
15522_ACEOF
15523if { (ac_try="$ac_cpp conftest.$ac_ext"
15524case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527esac
15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } >/dev/null; then
15536 if test -s conftest.err; then
15537 ac_cpp_err=$ac_c_preproc_warn_flag
15538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15539 else
15540 ac_cpp_err=
15541 fi
15542else
15543 ac_cpp_err=yes
15544fi
15545if test -z "$ac_cpp_err"; then
15546 ac_header_preproc=yes
15547else
15548 echo "$as_me: failed program was:" >&5
15549sed 's/^/| /' conftest.$ac_ext >&5
15550
15551 ac_header_preproc=no
15552fi
15553
15554rm -f conftest.err conftest.$ac_ext
15555{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15556echo "${ECHO_T}$ac_header_preproc" >&6; }
15557
15558# So? What about this header?
15559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15560 yes:no: )
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15565 ac_header_preproc=yes
15566 ;;
15567 no:yes:* )
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15580 ( cat <<\_ASBOX
15581## ----------------------------------- ##
15582## Report this to llvmbugs@cs.uiuc.edu ##
15583## ----------------------------------- ##
15584_ASBOX
15585 ) | sed "s/^/$as_me: WARNING: /" >&2
15586 ;;
15587esac
15588{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592else
15593 eval "$as_ac_Header=\$ac_header_preproc"
15594fi
15595ac_res=`eval echo '${'$as_ac_Header'}'`
15596 { echo "$as_me:$LINENO: result: $ac_res" >&5
15597echo "${ECHO_T}$ac_res" >&6; }
15598
15599fi
15600if test `eval echo '${'$as_ac_Header'}'` = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15603_ACEOF
15604
15605fi
15606
15607done
15608
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015609if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015610
15611for ac_header in pthread.h
15612do
15613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15619fi
15620ac_res=`eval echo '${'$as_ac_Header'}'`
15621 { echo "$as_me:$LINENO: result: $ac_res" >&5
15622echo "${ECHO_T}$ac_res" >&6; }
15623else
15624 # Is the header compilable?
15625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15627cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
15633$ac_includes_default
15634#include <$ac_header>
15635_ACEOF
15636rm -f conftest.$ac_objext
15637if { (ac_try="$ac_compile"
15638case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15641esac
15642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_compile") 2>conftest.er1
15644 ac_status=$?
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15651 { (case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15654esac
15655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656 (eval "$ac_try") 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try='test -s conftest.$ac_objext'
15661 { (case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15664esac
15665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_try") 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_header_compiler=yes
15671else
15672 echo "$as_me: failed program was:" >&5
15673sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 ac_header_compiler=no
15676fi
15677
15678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15680echo "${ECHO_T}$ac_header_compiler" >&6; }
15681
15682# Is the header present?
15683{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15685cat >conftest.$ac_ext <<_ACEOF
15686/* confdefs.h. */
15687_ACEOF
15688cat confdefs.h >>conftest.$ac_ext
15689cat >>conftest.$ac_ext <<_ACEOF
15690/* end confdefs.h. */
15691#include <$ac_header>
15692_ACEOF
15693if { (ac_try="$ac_cpp conftest.$ac_ext"
15694case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697esac
15698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15700 ac_status=$?
15701 grep -v '^ *+' conftest.er1 >conftest.err
15702 rm -f conftest.er1
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } >/dev/null; then
15706 if test -s conftest.err; then
15707 ac_cpp_err=$ac_c_preproc_warn_flag
15708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15709 else
15710 ac_cpp_err=
15711 fi
15712else
15713 ac_cpp_err=yes
15714fi
15715if test -z "$ac_cpp_err"; then
15716 ac_header_preproc=yes
15717else
15718 echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 ac_header_preproc=no
15722fi
15723
15724rm -f conftest.err conftest.$ac_ext
15725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726echo "${ECHO_T}$ac_header_preproc" >&6; }
15727
15728# So? What about this header?
15729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15730 yes:no: )
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15735 ac_header_preproc=yes
15736 ;;
15737 no:yes:* )
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15750 ( cat <<\_ASBOX
15751## ----------------------------------- ##
15752## Report this to llvmbugs@cs.uiuc.edu ##
15753## ----------------------------------- ##
15754_ASBOX
15755 ) | sed "s/^/$as_me: WARNING: /" >&2
15756 ;;
15757esac
15758{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15762else
15763 eval "$as_ac_Header=\$ac_header_preproc"
15764fi
15765ac_res=`eval echo '${'$as_ac_Header'}'`
15766 { echo "$as_me:$LINENO: result: $ac_res" >&5
15767echo "${ECHO_T}$ac_res" >&6; }
15768
15769fi
15770if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015771 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015773_ACEOF
15774 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015775
15776else
15777 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015778
15779fi
15780
Reid Spencerbe3e4192007-08-17 05:45:26 +000015781done
Reid Spencer1000b732006-12-01 00:37:14 +000015782
15783else
15784 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015785
15786fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015787
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015788if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015789
15790
15791for ac_header in ffi.h ffi/ffi.h
15792do
15793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15799fi
15800ac_res=`eval echo '${'$as_ac_Header'}'`
15801 { echo "$as_me:$LINENO: result: $ac_res" >&5
15802echo "${ECHO_T}$ac_res" >&6; }
15803else
15804 # Is the header compilable?
15805{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15807cat >conftest.$ac_ext <<_ACEOF
15808/* confdefs.h. */
15809_ACEOF
15810cat confdefs.h >>conftest.$ac_ext
15811cat >>conftest.$ac_ext <<_ACEOF
15812/* end confdefs.h. */
15813$ac_includes_default
15814#include <$ac_header>
15815_ACEOF
15816rm -f conftest.$ac_objext
15817if { (ac_try="$ac_compile"
15818case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15821esac
15822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_compile") 2>conftest.er1
15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15831 { (case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15834esac
15835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_try") 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; } &&
15840 { ac_try='test -s conftest.$ac_objext'
15841 { (case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15844esac
15845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_try") 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850 ac_header_compiler=yes
15851else
15852 echo "$as_me: failed program was:" >&5
15853sed 's/^/| /' conftest.$ac_ext >&5
15854
15855 ac_header_compiler=no
15856fi
15857
15858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15860echo "${ECHO_T}$ac_header_compiler" >&6; }
15861
15862# Is the header present?
15863{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15865cat >conftest.$ac_ext <<_ACEOF
15866/* confdefs.h. */
15867_ACEOF
15868cat confdefs.h >>conftest.$ac_ext
15869cat >>conftest.$ac_ext <<_ACEOF
15870/* end confdefs.h. */
15871#include <$ac_header>
15872_ACEOF
15873if { (ac_try="$ac_cpp conftest.$ac_ext"
15874case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15877esac
15878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } >/dev/null; then
15886 if test -s conftest.err; then
15887 ac_cpp_err=$ac_c_preproc_warn_flag
15888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15889 else
15890 ac_cpp_err=
15891 fi
15892else
15893 ac_cpp_err=yes
15894fi
15895if test -z "$ac_cpp_err"; then
15896 ac_header_preproc=yes
15897else
15898 echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901 ac_header_preproc=no
15902fi
15903
15904rm -f conftest.err conftest.$ac_ext
15905{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15906echo "${ECHO_T}$ac_header_preproc" >&6; }
15907
15908# So? What about this header?
15909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15910 yes:no: )
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15915 ac_header_preproc=yes
15916 ;;
15917 no:yes:* )
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15930 ( cat <<\_ASBOX
15931## ----------------------------------- ##
15932## Report this to llvmbugs@cs.uiuc.edu ##
15933## ----------------------------------- ##
15934_ASBOX
15935 ) | sed "s/^/$as_me: WARNING: /" >&2
15936 ;;
15937esac
15938{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15942else
15943 eval "$as_ac_Header=\$ac_header_preproc"
15944fi
15945ac_res=`eval echo '${'$as_ac_Header'}'`
15946 { echo "$as_me:$LINENO: result: $ac_res" >&5
15947echo "${ECHO_T}$ac_res" >&6; }
15948
15949fi
15950if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015951 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015953_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015954
15955fi
15956
15957done
15958
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015959fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015960
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015961
Eric Christopher654dee42010-06-22 21:01:04 +000015962for ac_header in CrashReporterClient.h
15963do
15964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15970fi
15971ac_res=`eval echo '${'$as_ac_Header'}'`
15972 { echo "$as_me:$LINENO: result: $ac_res" >&5
15973echo "${ECHO_T}$ac_res" >&6; }
15974else
15975 # Is the header compilable?
15976{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15977echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15978cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984$ac_includes_default
15985#include <$ac_header>
15986_ACEOF
15987rm -f conftest.$ac_objext
15988if { (ac_try="$ac_compile"
15989case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15992esac
15993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15994 (eval "$ac_compile") 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005esac
16006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest.$ac_objext'
16012 { (case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16015esac
16016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_try") 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_header_compiler=yes
16022else
16023 echo "$as_me: failed program was:" >&5
16024sed 's/^/| /' conftest.$ac_ext >&5
16025
16026 ac_header_compiler=no
16027fi
16028
16029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16031echo "${ECHO_T}$ac_header_compiler" >&6; }
16032
16033# Is the header present?
16034{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16035echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16036cat >conftest.$ac_ext <<_ACEOF
16037/* confdefs.h. */
16038_ACEOF
16039cat confdefs.h >>conftest.$ac_ext
16040cat >>conftest.$ac_ext <<_ACEOF
16041/* end confdefs.h. */
16042#include <$ac_header>
16043_ACEOF
16044if { (ac_try="$ac_cpp conftest.$ac_ext"
16045case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16048esac
16049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16051 ac_status=$?
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } >/dev/null; then
16057 if test -s conftest.err; then
16058 ac_cpp_err=$ac_c_preproc_warn_flag
16059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16060 else
16061 ac_cpp_err=
16062 fi
16063else
16064 ac_cpp_err=yes
16065fi
16066if test -z "$ac_cpp_err"; then
16067 ac_header_preproc=yes
16068else
16069 echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 ac_header_preproc=no
16073fi
16074
16075rm -f conftest.err conftest.$ac_ext
16076{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16077echo "${ECHO_T}$ac_header_preproc" >&6; }
16078
16079# So? What about this header?
16080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16081 yes:no: )
16082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16086 ac_header_preproc=yes
16087 ;;
16088 no:yes:* )
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16101 ( cat <<\_ASBOX
16102## ----------------------------------- ##
16103## Report this to llvmbugs@cs.uiuc.edu ##
16104## ----------------------------------- ##
16105_ASBOX
16106 ) | sed "s/^/$as_me: WARNING: /" >&2
16107 ;;
16108esac
16109{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113else
16114 eval "$as_ac_Header=\$ac_header_preproc"
16115fi
16116ac_res=`eval echo '${'$as_ac_Header'}'`
16117 { echo "$as_me:$LINENO: result: $ac_res" >&5
16118echo "${ECHO_T}$ac_res" >&6; }
16119
16120fi
16121if test `eval echo '${'$as_ac_Header'}'` = yes; then
16122 cat >>confdefs.h <<_ACEOF
16123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16124_ACEOF
16125
16126fi
16127
16128done
16129
16130
Eric Christopher51e57132010-12-07 02:05:42 +000016131{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16132echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016133cat >conftest.$ac_ext <<_ACEOF
16134/* confdefs.h. */
16135_ACEOF
16136cat confdefs.h >>conftest.$ac_ext
16137cat >>conftest.$ac_ext <<_ACEOF
16138/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016139extern const char *__crashreporter_info__;
16140 int main() {
16141 __crashreporter_info__ = "test";
16142 return 0;
16143 }
Eric Christopher481d4022010-12-03 07:45:22 +000016144
Eric Christopher481d4022010-12-03 07:45:22 +000016145_ACEOF
16146rm -f conftest.$ac_objext conftest$ac_exeext
16147if { (ac_try="$ac_link"
16148case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16151esac
16152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_link") 2>conftest.er1
16154 ac_status=$?
16155 grep -v '^ *+' conftest.er1 >conftest.err
16156 rm -f conftest.er1
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16161 { (case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16164esac
16165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_try") 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; } &&
16170 { ac_try='test -s conftest$ac_exeext'
16171 { (case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16174esac
16175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_try") 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016180 { echo "$as_me:$LINENO: result: yes" >&5
16181echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016182
16183cat >>confdefs.h <<\_ACEOF
16184#define HAVE_CRASHREPORTER_INFO 1
16185_ACEOF
16186
Eric Christopher51e57132010-12-07 02:05:42 +000016187else
16188 echo "$as_me: failed program was:" >&5
16189sed 's/^/| /' conftest.$ac_ext >&5
16190
16191 { echo "$as_me:$LINENO: result: no" >&5
16192echo "${ECHO_T}no" >&6; }
16193
16194cat >>confdefs.h <<\_ACEOF
16195#define HAVE_CRASHREPORTER_INFO 0
16196_ACEOF
16197
Eric Christopher481d4022010-12-03 07:45:22 +000016198fi
Eric Christopher654dee42010-06-22 21:01:04 +000016199
Eric Christopher51e57132010-12-07 02:05:42 +000016200rm -f core conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16202
16203
Reid Spencer8085cff2005-01-16 02:58:39 +000016204
Torok Edwin871384f2010-01-26 08:50:50 +000016205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016206 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16207echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16208if test "${ac_cv_huge_val_sanity+set}" = set; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016210else
16211
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016212 ac_ext=cpp
16213ac_cpp='$CXXCPP $CPPFLAGS'
16214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016217
Eric Christopherc7718502010-03-02 05:06:54 +000016218 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016219 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016220 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016221 ac_cv_huge_val_sanity=yes
16222else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016223 cat >conftest.$ac_ext <<_ACEOF
16224/* confdefs.h. */
16225_ACEOF
16226cat confdefs.h >>conftest.$ac_ext
16227cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016228/* end confdefs.h. */
16229#include <math.h>
16230int
16231main ()
16232{
16233double x = HUGE_VAL; return x != x;
16234 ;
16235 return 0;
16236}
16237_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016238rm -f conftest$ac_exeext
16239if { (ac_try="$ac_link"
16240case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16243esac
16244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_link") 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16249 { (case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16252esac
16253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_try") 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016258 ac_cv_huge_val_sanity=yes
16259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016260 echo "$as_me: program exited with status $ac_status" >&5
16261echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264( exit $ac_status )
16265ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016267rm -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 +000016268fi
16269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016270
Eric Christopherc7718502010-03-02 05:06:54 +000016271 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016272 ac_ext=c
16273ac_cpp='$CPP $CPPFLAGS'
16274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16276ac_compiler_gnu=$ac_cv_c_compiler_gnu
16277
16278
16279fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016280{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16281echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016282 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16283
16284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016285{ echo "$as_me:$LINENO: checking for pid_t" >&5
16286echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16287if test "${ac_cv_type_pid_t+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16289else
16290 cat >conftest.$ac_ext <<_ACEOF
16291/* confdefs.h. */
16292_ACEOF
16293cat confdefs.h >>conftest.$ac_ext
16294cat >>conftest.$ac_ext <<_ACEOF
16295/* end confdefs.h. */
16296$ac_includes_default
16297typedef pid_t ac__type_new_;
16298int
16299main ()
16300{
16301if ((ac__type_new_ *) 0)
16302 return 0;
16303if (sizeof (ac__type_new_))
16304 return 0;
16305 ;
16306 return 0;
16307}
16308_ACEOF
16309rm -f conftest.$ac_objext
16310if { (ac_try="$ac_compile"
16311case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16314esac
16315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_compile") 2>conftest.er1
16317 ac_status=$?
16318 grep -v '^ *+' conftest.er1 >conftest.err
16319 rm -f conftest.er1
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16324 { (case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16327esac
16328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_try") 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; } &&
16333 { ac_try='test -s conftest.$ac_objext'
16334 { (case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16337esac
16338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_try") 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 ac_cv_type_pid_t=yes
16344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016348 ac_cv_type_pid_t=no
16349fi
16350
16351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352fi
16353{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16354echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16355if test $ac_cv_type_pid_t = yes; then
16356 :
John Criswell7a73b802003-06-30 21:59:07 +000016357else
16358
16359cat >>confdefs.h <<_ACEOF
16360#define pid_t int
16361_ACEOF
16362
16363fi
16364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016365{ echo "$as_me:$LINENO: checking for size_t" >&5
16366echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16367if test "${ac_cv_type_size_t+set}" = set; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16369else
16370 cat >conftest.$ac_ext <<_ACEOF
16371/* confdefs.h. */
16372_ACEOF
16373cat confdefs.h >>conftest.$ac_ext
16374cat >>conftest.$ac_ext <<_ACEOF
16375/* end confdefs.h. */
16376$ac_includes_default
16377typedef size_t ac__type_new_;
16378int
16379main ()
16380{
16381if ((ac__type_new_ *) 0)
16382 return 0;
16383if (sizeof (ac__type_new_))
16384 return 0;
16385 ;
16386 return 0;
16387}
16388_ACEOF
16389rm -f conftest.$ac_objext
16390if { (ac_try="$ac_compile"
16391case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394esac
16395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_compile") 2>conftest.er1
16397 ac_status=$?
16398 grep -v '^ *+' conftest.er1 >conftest.err
16399 rm -f conftest.er1
16400 cat conftest.err >&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } &&
16403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16404 { (case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407esac
16408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_try") 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; } &&
16413 { ac_try='test -s conftest.$ac_objext'
16414 { (case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417esac
16418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_try") 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_cv_type_size_t=yes
16424else
16425 echo "$as_me: failed program was:" >&5
16426sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016428 ac_cv_type_size_t=no
16429fi
16430
16431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432fi
16433{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16434echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16435if test $ac_cv_type_size_t = yes; then
16436 :
John Criswell7a73b802003-06-30 21:59:07 +000016437else
16438
16439cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016440#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016441_ACEOF
16442
16443fi
16444
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016445
16446cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016447#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016448_ACEOF
16449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016450{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16451echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16452if test "${ac_cv_struct_tm+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016455 cat >conftest.$ac_ext <<_ACEOF
16456/* confdefs.h. */
16457_ACEOF
16458cat confdefs.h >>conftest.$ac_ext
16459cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016460/* end confdefs.h. */
16461#include <sys/types.h>
16462#include <time.h>
16463
16464int
16465main ()
16466{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016467struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016468 ;
16469 return 0;
16470}
16471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016472rm -f conftest.$ac_objext
16473if { (ac_try="$ac_compile"
16474case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477esac
16478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_compile") 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16487 { (case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16490esac
16491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_try") 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
16497 { (case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16500esac
16501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_try") 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016506 ac_cv_struct_tm=time.h
16507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016508 echo "$as_me: failed program was:" >&5
16509sed 's/^/| /' conftest.$ac_ext >&5
16510
16511 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016512fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016513
Reid Spencera773bd52006-08-04 18:18:08 +000016514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016515fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016516{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16517echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016518if test $ac_cv_struct_tm = sys/time.h; then
16519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016520cat >>confdefs.h <<\_ACEOF
16521#define TM_IN_SYS_TIME 1
16522_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016523
16524fi
16525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016526{ echo "$as_me:$LINENO: checking for int64_t" >&5
16527echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16528if test "${ac_cv_type_int64_t+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16530else
16531 cat >conftest.$ac_ext <<_ACEOF
16532/* confdefs.h. */
16533_ACEOF
16534cat confdefs.h >>conftest.$ac_ext
16535cat >>conftest.$ac_ext <<_ACEOF
16536/* end confdefs.h. */
16537$ac_includes_default
16538typedef int64_t ac__type_new_;
16539int
16540main ()
16541{
16542if ((ac__type_new_ *) 0)
16543 return 0;
16544if (sizeof (ac__type_new_))
16545 return 0;
16546 ;
16547 return 0;
16548}
16549_ACEOF
16550rm -f conftest.$ac_objext
16551if { (ac_try="$ac_compile"
16552case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16555esac
16556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_compile") 2>conftest.er1
16558 ac_status=$?
16559 grep -v '^ *+' conftest.er1 >conftest.err
16560 rm -f conftest.er1
16561 cat conftest.err >&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
16564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16565 { (case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568esac
16569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_try") 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16578esac
16579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_try") 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 ac_cv_type_int64_t=yes
16585else
16586 echo "$as_me: failed program was:" >&5
16587sed 's/^/| /' conftest.$ac_ext >&5
16588
16589 ac_cv_type_int64_t=no
16590fi
16591
16592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593fi
16594{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16595echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16596if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016597
16598cat >>confdefs.h <<_ACEOF
16599#define HAVE_INT64_T 1
16600_ACEOF
16601
16602
16603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016604 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16605echo "$as_me: error: Type int64_t required but not found" >&2;}
16606 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016607fi
16608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016609{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16610echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16611if test "${ac_cv_type_uint64_t+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613else
16614 cat >conftest.$ac_ext <<_ACEOF
16615/* confdefs.h. */
16616_ACEOF
16617cat confdefs.h >>conftest.$ac_ext
16618cat >>conftest.$ac_ext <<_ACEOF
16619/* end confdefs.h. */
16620$ac_includes_default
16621typedef uint64_t ac__type_new_;
16622int
16623main ()
16624{
16625if ((ac__type_new_ *) 0)
16626 return 0;
16627if (sizeof (ac__type_new_))
16628 return 0;
16629 ;
16630 return 0;
16631}
16632_ACEOF
16633rm -f conftest.$ac_objext
16634if { (ac_try="$ac_compile"
16635case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_compile") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651esac
16652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest.$ac_objext'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661esac
16662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_cv_type_uint64_t=yes
16668else
16669 echo "$as_me: failed program was:" >&5
16670sed 's/^/| /' conftest.$ac_ext >&5
16671
16672 ac_cv_type_uint64_t=no
16673fi
16674
16675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676fi
16677{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16678echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16679if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016680
16681cat >>confdefs.h <<_ACEOF
16682#define HAVE_UINT64_T 1
16683_ACEOF
16684
16685
16686else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016687 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16688echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16689if test "${ac_cv_type_u_int64_t+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691else
16692 cat >conftest.$ac_ext <<_ACEOF
16693/* confdefs.h. */
16694_ACEOF
16695cat confdefs.h >>conftest.$ac_ext
16696cat >>conftest.$ac_ext <<_ACEOF
16697/* end confdefs.h. */
16698$ac_includes_default
16699typedef u_int64_t ac__type_new_;
16700int
16701main ()
16702{
16703if ((ac__type_new_ *) 0)
16704 return 0;
16705if (sizeof (ac__type_new_))
16706 return 0;
16707 ;
16708 return 0;
16709}
16710_ACEOF
16711rm -f conftest.$ac_objext
16712if { (ac_try="$ac_compile"
16713case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16716esac
16717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718 (eval "$ac_compile") 2>conftest.er1
16719 ac_status=$?
16720 grep -v '^ *+' conftest.er1 >conftest.err
16721 rm -f conftest.er1
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16726 { (case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16729esac
16730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_try") 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try='test -s conftest.$ac_objext'
16736 { (case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16739esac
16740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_try") 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16745 ac_cv_type_u_int64_t=yes
16746else
16747 echo "$as_me: failed program was:" >&5
16748sed 's/^/| /' conftest.$ac_ext >&5
16749
16750 ac_cv_type_u_int64_t=no
16751fi
16752
16753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754fi
16755{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16756echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16757if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016758
16759cat >>confdefs.h <<_ACEOF
16760#define HAVE_U_INT64_T 1
16761_ACEOF
16762
16763
Misha Brukmanceca9042004-09-02 23:02:30 +000016764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016765 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16766echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16767 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016768fi
16769
John Criswell679ff312004-09-02 18:44:44 +000016770fi
16771
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016772
16773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016774
16775
16776
16777
16778
16779
16780
Reid Spencerdf3be822006-01-23 08:15:53 +000016781for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016782do
16783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16784{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16786if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788else
16789 cat >conftest.$ac_ext <<_ACEOF
16790/* confdefs.h. */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h. */
16795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16797#define $ac_func innocuous_$ac_func
16798
16799/* System header to define __stub macros and hopefully few prototypes,
16800 which can conflict with char $ac_func (); below.
16801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16802 <limits.h> exists even on freestanding compilers. */
16803
16804#ifdef __STDC__
16805# include <limits.h>
16806#else
16807# include <assert.h>
16808#endif
16809
16810#undef $ac_func
16811
16812/* Override any GCC internal prototype to avoid an error.
16813 Use char because int might match the return type of a GCC
16814 builtin and then its argument prototype would still apply. */
16815#ifdef __cplusplus
16816extern "C"
16817#endif
16818char $ac_func ();
16819/* The GNU C library defines this for functions which it implements
16820 to always fail with ENOSYS. Some functions are actually named
16821 something starting with __ and the normal name is an alias. */
16822#if defined __stub_$ac_func || defined __stub___$ac_func
16823choke me
16824#endif
16825
16826int
16827main ()
16828{
16829return $ac_func ();
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834rm -f conftest.$ac_objext conftest$ac_exeext
16835if { (ac_try="$ac_link"
16836case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_link") 2>conftest.er1
16842 ac_status=$?
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16849 { (case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16852esac
16853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854 (eval "$ac_try") 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest$ac_exeext'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862esac
16863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 eval "$as_ac_var=yes"
16869else
16870 echo "$as_me: failed program was:" >&5
16871sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 eval "$as_ac_var=no"
16874fi
16875
16876rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
16878fi
16879ac_res=`eval echo '${'$as_ac_var'}'`
16880 { echo "$as_me:$LINENO: result: $ac_res" >&5
16881echo "${ECHO_T}$ac_res" >&6; }
16882if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016883 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016885_ACEOF
16886
16887fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016888done
John Criswell7a73b802003-06-30 21:59:07 +000016889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016890
16891
16892
16893
Reid Spencer96cf5872007-07-13 10:05:30 +000016894for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016895do
16896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16897{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16899if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901else
16902 cat >conftest.$ac_ext <<_ACEOF
16903/* confdefs.h. */
16904_ACEOF
16905cat confdefs.h >>conftest.$ac_ext
16906cat >>conftest.$ac_ext <<_ACEOF
16907/* end confdefs.h. */
16908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16910#define $ac_func innocuous_$ac_func
16911
16912/* System header to define __stub macros and hopefully few prototypes,
16913 which can conflict with char $ac_func (); below.
16914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915 <limits.h> exists even on freestanding compilers. */
16916
16917#ifdef __STDC__
16918# include <limits.h>
16919#else
16920# include <assert.h>
16921#endif
16922
16923#undef $ac_func
16924
16925/* Override any GCC internal prototype to avoid an error.
16926 Use char because int might match the return type of a GCC
16927 builtin and then its argument prototype would still apply. */
16928#ifdef __cplusplus
16929extern "C"
16930#endif
16931char $ac_func ();
16932/* The GNU C library defines this for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935#if defined __stub_$ac_func || defined __stub___$ac_func
16936choke me
16937#endif
16938
16939int
16940main ()
16941{
16942return $ac_func ();
16943 ;
16944 return 0;
16945}
16946_ACEOF
16947rm -f conftest.$ac_objext conftest$ac_exeext
16948if { (ac_try="$ac_link"
16949case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16952esac
16953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_link") 2>conftest.er1
16955 ac_status=$?
16956 grep -v '^ *+' conftest.er1 >conftest.err
16957 rm -f conftest.er1
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16962 { (case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16965esac
16966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_try") 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; } &&
16971 { ac_try='test -s conftest$ac_exeext'
16972 { (case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_try") 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; }; then
16981 eval "$as_ac_var=yes"
16982else
16983 echo "$as_me: failed program was:" >&5
16984sed 's/^/| /' conftest.$ac_ext >&5
16985
16986 eval "$as_ac_var=no"
16987fi
16988
16989rm -f core conftest.err conftest.$ac_objext \
16990 conftest$ac_exeext conftest.$ac_ext
16991fi
16992ac_res=`eval echo '${'$as_ac_var'}'`
16993 { echo "$as_me:$LINENO: result: $ac_res" >&5
16994echo "${ECHO_T}$ac_res" >&6; }
16995if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016996 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016998_ACEOF
16999
17000fi
17001done
17002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017003
17004
17005
17006
17007
Reid Spencerb90645c2007-02-16 19:17:20 +000017008for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017009do
17010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17011{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015else
17016 cat >conftest.$ac_ext <<_ACEOF
17017/* confdefs.h. */
17018_ACEOF
17019cat confdefs.h >>conftest.$ac_ext
17020cat >>conftest.$ac_ext <<_ACEOF
17021/* end confdefs.h. */
17022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17024#define $ac_func innocuous_$ac_func
17025
17026/* System header to define __stub macros and hopefully few prototypes,
17027 which can conflict with char $ac_func (); below.
17028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17029 <limits.h> exists even on freestanding compilers. */
17030
17031#ifdef __STDC__
17032# include <limits.h>
17033#else
17034# include <assert.h>
17035#endif
17036
17037#undef $ac_func
17038
17039/* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17042#ifdef __cplusplus
17043extern "C"
17044#endif
17045char $ac_func ();
17046/* The GNU C library defines this for functions which it implements
17047 to always fail with ENOSYS. Some functions are actually named
17048 something starting with __ and the normal name is an alias. */
17049#if defined __stub_$ac_func || defined __stub___$ac_func
17050choke me
17051#endif
17052
17053int
17054main ()
17055{
17056return $ac_func ();
17057 ;
17058 return 0;
17059}
17060_ACEOF
17061rm -f conftest.$ac_objext conftest$ac_exeext
17062if { (ac_try="$ac_link"
17063case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066esac
17067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17079esac
17080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17095 eval "$as_ac_var=yes"
17096else
17097 echo "$as_me: failed program was:" >&5
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
17100 eval "$as_ac_var=no"
17101fi
17102
17103rm -f core conftest.err conftest.$ac_objext \
17104 conftest$ac_exeext conftest.$ac_ext
17105fi
17106ac_res=`eval echo '${'$as_ac_var'}'`
17107 { echo "$as_me:$LINENO: result: $ac_res" >&5
17108echo "${ECHO_T}$ac_res" >&6; }
17109if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017110 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017112_ACEOF
17113
17114fi
17115done
17116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017117
17118
17119
Reid Spencerb90645c2007-02-16 19:17:20 +000017120for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017121do
17122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17123{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17125if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128 cat >conftest.$ac_ext <<_ACEOF
17129/* confdefs.h. */
17130_ACEOF
17131cat confdefs.h >>conftest.$ac_ext
17132cat >>conftest.$ac_ext <<_ACEOF
17133/* end confdefs.h. */
17134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17136#define $ac_func innocuous_$ac_func
17137
17138/* System header to define __stub macros and hopefully few prototypes,
17139 which can conflict with char $ac_func (); below.
17140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141 <limits.h> exists even on freestanding compilers. */
17142
17143#ifdef __STDC__
17144# include <limits.h>
17145#else
17146# include <assert.h>
17147#endif
17148
17149#undef $ac_func
17150
17151/* Override any GCC internal prototype to avoid an error.
17152 Use char because int might match the return type of a GCC
17153 builtin and then its argument prototype would still apply. */
17154#ifdef __cplusplus
17155extern "C"
17156#endif
17157char $ac_func ();
17158/* The GNU C library defines this for functions which it implements
17159 to always fail with ENOSYS. Some functions are actually named
17160 something starting with __ and the normal name is an alias. */
17161#if defined __stub_$ac_func || defined __stub___$ac_func
17162choke me
17163#endif
17164
17165int
17166main ()
17167{
17168return $ac_func ();
17169 ;
17170 return 0;
17171}
17172_ACEOF
17173rm -f conftest.$ac_objext conftest$ac_exeext
17174if { (ac_try="$ac_link"
17175case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_link") 2>conftest.er1
17181 ac_status=$?
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17188 { (case "(($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_try") 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; } &&
17197 { ac_try='test -s conftest$ac_exeext'
17198 { (case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201esac
17202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_try") 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 eval "$as_ac_var=yes"
17208else
17209 echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
17212 eval "$as_ac_var=no"
17213fi
17214
17215rm -f core conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17217fi
17218ac_res=`eval echo '${'$as_ac_var'}'`
17219 { echo "$as_me:$LINENO: result: $ac_res" >&5
17220echo "${ECHO_T}$ac_res" >&6; }
17221if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017222 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017224_ACEOF
17225
17226fi
17227done
17228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017229
17230
17231
17232
17233
Eric Christophere4291822010-04-16 05:14:21 +000017234
17235for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017236do
17237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17238{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17240if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17242else
17243 cat >conftest.$ac_ext <<_ACEOF
17244/* confdefs.h. */
17245_ACEOF
17246cat confdefs.h >>conftest.$ac_ext
17247cat >>conftest.$ac_ext <<_ACEOF
17248/* end confdefs.h. */
17249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17251#define $ac_func innocuous_$ac_func
17252
17253/* System header to define __stub macros and hopefully few prototypes,
17254 which can conflict with char $ac_func (); below.
17255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17256 <limits.h> exists even on freestanding compilers. */
17257
17258#ifdef __STDC__
17259# include <limits.h>
17260#else
17261# include <assert.h>
17262#endif
17263
17264#undef $ac_func
17265
17266/* Override any GCC internal prototype to avoid an error.
17267 Use char because int might match the return type of a GCC
17268 builtin and then its argument prototype would still apply. */
17269#ifdef __cplusplus
17270extern "C"
17271#endif
17272char $ac_func ();
17273/* The GNU C library defines this for functions which it implements
17274 to always fail with ENOSYS. Some functions are actually named
17275 something starting with __ and the normal name is an alias. */
17276#if defined __stub_$ac_func || defined __stub___$ac_func
17277choke me
17278#endif
17279
17280int
17281main ()
17282{
17283return $ac_func ();
17284 ;
17285 return 0;
17286}
17287_ACEOF
17288rm -f conftest.$ac_objext conftest$ac_exeext
17289if { (ac_try="$ac_link"
17290case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293esac
17294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_link") 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17303 { (case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17306esac
17307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_try") 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17322 eval "$as_ac_var=yes"
17323else
17324 echo "$as_me: failed program was:" >&5
17325sed 's/^/| /' conftest.$ac_ext >&5
17326
17327 eval "$as_ac_var=no"
17328fi
17329
17330rm -f core conftest.err conftest.$ac_objext \
17331 conftest$ac_exeext conftest.$ac_ext
17332fi
17333ac_res=`eval echo '${'$as_ac_var'}'`
17334 { echo "$as_me:$LINENO: result: $ac_res" >&5
17335echo "${ECHO_T}$ac_res" >&6; }
17336if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017337 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017339_ACEOF
17340
17341fi
17342done
Reid Spencerdf3be822006-01-23 08:15:53 +000017343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017344
17345
17346
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017347for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017348do
17349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17350{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17354else
17355 cat >conftest.$ac_ext <<_ACEOF
17356/* confdefs.h. */
17357_ACEOF
17358cat confdefs.h >>conftest.$ac_ext
17359cat >>conftest.$ac_ext <<_ACEOF
17360/* end confdefs.h. */
17361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17363#define $ac_func innocuous_$ac_func
17364
17365/* System header to define __stub macros and hopefully few prototypes,
17366 which can conflict with char $ac_func (); below.
17367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17368 <limits.h> exists even on freestanding compilers. */
17369
17370#ifdef __STDC__
17371# include <limits.h>
17372#else
17373# include <assert.h>
17374#endif
17375
17376#undef $ac_func
17377
17378/* Override any GCC internal prototype to avoid an error.
17379 Use char because int might match the return type of a GCC
17380 builtin and then its argument prototype would still apply. */
17381#ifdef __cplusplus
17382extern "C"
17383#endif
17384char $ac_func ();
17385/* The GNU C library defines this for functions which it implements
17386 to always fail with ENOSYS. Some functions are actually named
17387 something starting with __ and the normal name is an alias. */
17388#if defined __stub_$ac_func || defined __stub___$ac_func
17389choke me
17390#endif
17391
17392int
17393main ()
17394{
17395return $ac_func ();
17396 ;
17397 return 0;
17398}
17399_ACEOF
17400rm -f conftest.$ac_objext conftest$ac_exeext
17401if { (ac_try="$ac_link"
17402case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17405esac
17406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_link") 2>conftest.er1
17408 ac_status=$?
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } &&
17414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17415 { (case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418esac
17419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_try") 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; } &&
17424 { ac_try='test -s conftest$ac_exeext'
17425 { (case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17428esac
17429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_try") 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 eval "$as_ac_var=yes"
17435else
17436 echo "$as_me: failed program was:" >&5
17437sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 eval "$as_ac_var=no"
17440fi
17441
17442rm -f core conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17444fi
17445ac_res=`eval echo '${'$as_ac_var'}'`
17446 { echo "$as_me:$LINENO: result: $ac_res" >&5
17447echo "${ECHO_T}$ac_res" >&6; }
17448if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017449 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017451_ACEOF
17452
17453fi
17454done
17455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017456
17457
17458
17459
Chris Lattner511f11d2005-11-14 07:25:50 +000017460for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017461do
17462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17463{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17465if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17467else
17468 cat >conftest.$ac_ext <<_ACEOF
17469/* confdefs.h. */
17470_ACEOF
17471cat confdefs.h >>conftest.$ac_ext
17472cat >>conftest.$ac_ext <<_ACEOF
17473/* end confdefs.h. */
17474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17476#define $ac_func innocuous_$ac_func
17477
17478/* System header to define __stub macros and hopefully few prototypes,
17479 which can conflict with char $ac_func (); below.
17480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481 <limits.h> exists even on freestanding compilers. */
17482
17483#ifdef __STDC__
17484# include <limits.h>
17485#else
17486# include <assert.h>
17487#endif
17488
17489#undef $ac_func
17490
17491/* Override any GCC internal prototype to avoid an error.
17492 Use char because int might match the return type of a GCC
17493 builtin and then its argument prototype would still apply. */
17494#ifdef __cplusplus
17495extern "C"
17496#endif
17497char $ac_func ();
17498/* The GNU C library defines this for functions which it implements
17499 to always fail with ENOSYS. Some functions are actually named
17500 something starting with __ and the normal name is an alias. */
17501#if defined __stub_$ac_func || defined __stub___$ac_func
17502choke me
17503#endif
17504
17505int
17506main ()
17507{
17508return $ac_func ();
17509 ;
17510 return 0;
17511}
17512_ACEOF
17513rm -f conftest.$ac_objext conftest$ac_exeext
17514if { (ac_try="$ac_link"
17515case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17518esac
17519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_link") 2>conftest.er1
17521 ac_status=$?
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17528 { (case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17531esac
17532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533 (eval "$ac_try") 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; } &&
17537 { ac_try='test -s conftest$ac_exeext'
17538 { (case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541esac
17542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_try") 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 eval "$as_ac_var=yes"
17548else
17549 echo "$as_me: failed program was:" >&5
17550sed 's/^/| /' conftest.$ac_ext >&5
17551
17552 eval "$as_ac_var=no"
17553fi
17554
17555rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557fi
17558ac_res=`eval echo '${'$as_ac_var'}'`
17559 { echo "$as_me:$LINENO: result: $ac_res" >&5
17560echo "${ECHO_T}$ac_res" >&6; }
17561if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017562 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017564_ACEOF
17565
17566fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017567done
John Criswell7a73b802003-06-30 21:59:07 +000017568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017569
17570
17571
17572
Daniel Dunbar3e462932011-02-03 02:40:02 +000017573
17574for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017575do
17576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17577{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17579if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17581else
17582 cat >conftest.$ac_ext <<_ACEOF
17583/* confdefs.h. */
17584_ACEOF
17585cat confdefs.h >>conftest.$ac_ext
17586cat >>conftest.$ac_ext <<_ACEOF
17587/* end confdefs.h. */
17588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17590#define $ac_func innocuous_$ac_func
17591
17592/* System header to define __stub macros and hopefully few prototypes,
17593 which can conflict with char $ac_func (); below.
17594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17595 <limits.h> exists even on freestanding compilers. */
17596
17597#ifdef __STDC__
17598# include <limits.h>
17599#else
17600# include <assert.h>
17601#endif
17602
17603#undef $ac_func
17604
17605/* Override any GCC internal prototype to avoid an error.
17606 Use char because int might match the return type of a GCC
17607 builtin and then its argument prototype would still apply. */
17608#ifdef __cplusplus
17609extern "C"
17610#endif
17611char $ac_func ();
17612/* The GNU C library defines this for functions which it implements
17613 to always fail with ENOSYS. Some functions are actually named
17614 something starting with __ and the normal name is an alias. */
17615#if defined __stub_$ac_func || defined __stub___$ac_func
17616choke me
17617#endif
17618
17619int
17620main ()
17621{
17622return $ac_func ();
17623 ;
17624 return 0;
17625}
17626_ACEOF
17627rm -f conftest.$ac_objext conftest$ac_exeext
17628if { (ac_try="$ac_link"
17629case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17632esac
17633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_link") 2>conftest.er1
17635 ac_status=$?
17636 grep -v '^ *+' conftest.er1 >conftest.err
17637 rm -f conftest.er1
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } &&
17641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17642 { (case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17645esac
17646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_try") 2>&5
17648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest$ac_exeext'
17652 { (case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655esac
17656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_try") 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 eval "$as_ac_var=yes"
17662else
17663 echo "$as_me: failed program was:" >&5
17664sed 's/^/| /' conftest.$ac_ext >&5
17665
17666 eval "$as_ac_var=no"
17667fi
17668
17669rm -f core conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17671fi
17672ac_res=`eval echo '${'$as_ac_var'}'`
17673 { echo "$as_me:$LINENO: result: $ac_res" >&5
17674echo "${ECHO_T}$ac_res" >&6; }
17675if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017676 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017678_ACEOF
17679
17680fi
17681done
17682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017683{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17684echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17685if test "${llvm_cv_c_printf_a+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017687else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017688 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017689ac_cpp='$CPP $CPPFLAGS'
17690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692ac_compiler_gnu=$ac_cv_c_compiler_gnu
17693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017694 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017695 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017697 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017699 /* confdefs.h. */
17700_ACEOF
17701cat confdefs.h >>conftest.$ac_ext
17702cat >>conftest.$ac_ext <<_ACEOF
17703/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017704
John Criswella0137d32003-10-13 16:22:01 +000017705#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017706#include <stdlib.h>
17707
John Criswella0137d32003-10-13 16:22:01 +000017708int
17709main ()
17710{
17711
Reid Spencer2706f8c2004-09-19 23:53:36 +000017712volatile double A, B;
17713char Buffer[100];
17714A = 1;
17715A /= 10.0;
17716sprintf(Buffer, "%a", A);
17717B = atof(Buffer);
17718if (A != B)
17719 return (1);
17720if (A != 0x1.999999999999ap-4)
17721 return (1);
17722return (0);
John Criswella0137d32003-10-13 16:22:01 +000017723 ;
17724 return 0;
17725}
17726_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017727rm -f conftest$ac_exeext
17728if { (ac_try="$ac_link"
17729case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732esac
17733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_link") 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741esac
17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017747 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017749 echo "$as_me: program exited with status $ac_status" >&5
17750echo "$as_me: failed program was:" >&5
17751sed 's/^/| /' conftest.$ac_ext >&5
17752
17753( exit $ac_status )
17754llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017756rm -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 +000017757fi
Reid Spencera773bd52006-08-04 18:18:08 +000017758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017759
Reid Spencer2706f8c2004-09-19 23:53:36 +000017760 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017761ac_cpp='$CPP $CPPFLAGS'
17762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17764ac_compiler_gnu=$ac_cv_c_compiler_gnu
17765
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017767{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17768echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017769 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017771cat >>confdefs.h <<\_ACEOF
17772#define HAVE_PRINTF_A 1
17773_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017774
Reid Spencer2706f8c2004-09-19 23:53:36 +000017775 fi
John Criswella0137d32003-10-13 16:22:01 +000017776
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017778{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17779echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17780if test "${ac_cv_func_rand48+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017782else
Reid Spencera773bd52006-08-04 18:18:08 +000017783 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017784ac_cpp='$CXXCPP $CPPFLAGS'
17785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017789 cat >conftest.$ac_ext <<_ACEOF
17790/* confdefs.h. */
17791_ACEOF
17792cat confdefs.h >>conftest.$ac_ext
17793cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017794/* end confdefs.h. */
17795#include <stdlib.h>
17796int
17797main ()
17798{
17799srand48(0);lrand48();drand48();
17800 ;
17801 return 0;
17802}
17803_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017804rm -f conftest.$ac_objext
17805if { (ac_try="$ac_compile"
17806case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809esac
17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17819 { (case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822esac
17823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_try") 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832esac
17833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017838 ac_cv_func_rand48=yes
17839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017840 echo "$as_me: failed program was:" >&5
17841sed 's/^/| /' conftest.$ac_ext >&5
17842
17843 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017845
Reid Spencera773bd52006-08-04 18:18:08 +000017846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017847 ac_ext=c
17848ac_cpp='$CPP $CPPFLAGS'
17849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17851ac_compiler_gnu=$ac_cv_c_compiler_gnu
17852
17853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017854{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17855echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017856
17857if test "$ac_cv_func_rand48" = "yes" ; then
17858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017859cat >>confdefs.h <<\_ACEOF
17860#define HAVE_RAND48 1
17861_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017862
17863fi
John Criswell0021c312004-02-13 21:57:29 +000017864
17865
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017866{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17867echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17868if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17870else
17871 cat >conftest.$ac_ext <<_ACEOF
17872/* confdefs.h. */
17873_ACEOF
17874cat confdefs.h >>conftest.$ac_ext
17875cat >>conftest.$ac_ext <<_ACEOF
17876/* end confdefs.h. */
17877$ac_includes_default
17878int
17879main ()
17880{
17881#ifndef strerror_s
17882 char *p = (char *) strerror_s;
17883 return !p;
17884#endif
17885
17886 ;
17887 return 0;
17888}
17889_ACEOF
17890rm -f conftest.$ac_objext
17891if { (ac_try="$ac_compile"
17892case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17895esac
17896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_compile") 2>conftest.er1
17898 ac_status=$?
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905 { (case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17908esac
17909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_try") 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest.$ac_objext'
17915 { (case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918esac
17919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_try") 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_have_decl_strerror_s=yes
17925else
17926 echo "$as_me: failed program was:" >&5
17927sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_cv_have_decl_strerror_s=no
17930fi
17931
17932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933fi
17934{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17935echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17936if test $ac_cv_have_decl_strerror_s = yes; then
17937
17938cat >>confdefs.h <<_ACEOF
17939#define HAVE_DECL_STRERROR_S 1
17940_ACEOF
17941
17942
17943else
17944 cat >>confdefs.h <<_ACEOF
17945#define HAVE_DECL_STRERROR_S 0
17946_ACEOF
17947
17948
17949fi
17950
17951
17952
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017953if test "$llvm_cv_os_type" = "MingW" ; then
17954 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17955echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17956if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958else
17959 ac_check_lib_save_LIBS=$LIBS
17960LIBS="-lgcc $LIBS"
17961cat >conftest.$ac_ext <<_ACEOF
17962/* confdefs.h. */
17963_ACEOF
17964cat confdefs.h >>conftest.$ac_ext
17965cat >>conftest.$ac_ext <<_ACEOF
17966/* end confdefs.h. */
17967
17968/* Override any GCC internal prototype to avoid an error.
17969 Use char because int might match the return type of a GCC
17970 builtin and then its argument prototype would still apply. */
17971#ifdef __cplusplus
17972extern "C"
17973#endif
17974char _alloca ();
17975int
17976main ()
17977{
17978return _alloca ();
17979 ;
17980 return 0;
17981}
17982_ACEOF
17983rm -f conftest.$ac_objext conftest$ac_exeext
17984if { (ac_try="$ac_link"
17985case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988esac
17989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_link") 2>conftest.er1
17991 ac_status=$?
17992 grep -v '^ *+' conftest.er1 >conftest.err
17993 rm -f conftest.er1
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17998 { (case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001esac
18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_try") 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest$ac_exeext'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18011esac
18012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_lib_gcc__alloca=yes
18018else
18019 echo "$as_me: failed program was:" >&5
18020sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_cv_lib_gcc__alloca=no
18023fi
18024
18025rm -f core conftest.err conftest.$ac_objext \
18026 conftest$ac_exeext conftest.$ac_ext
18027LIBS=$ac_check_lib_save_LIBS
18028fi
18029{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18030echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18031if test $ac_cv_lib_gcc__alloca = yes; then
18032
18033cat >>confdefs.h <<\_ACEOF
18034#define HAVE__ALLOCA 1
18035_ACEOF
18036
18037fi
18038
18039 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18040echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18041if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18043else
18044 ac_check_lib_save_LIBS=$LIBS
18045LIBS="-lgcc $LIBS"
18046cat >conftest.$ac_ext <<_ACEOF
18047/* confdefs.h. */
18048_ACEOF
18049cat confdefs.h >>conftest.$ac_ext
18050cat >>conftest.$ac_ext <<_ACEOF
18051/* end confdefs.h. */
18052
18053/* Override any GCC internal prototype to avoid an error.
18054 Use char because int might match the return type of a GCC
18055 builtin and then its argument prototype would still apply. */
18056#ifdef __cplusplus
18057extern "C"
18058#endif
18059char __alloca ();
18060int
18061main ()
18062{
18063return __alloca ();
18064 ;
18065 return 0;
18066}
18067_ACEOF
18068rm -f conftest.$ac_objext conftest$ac_exeext
18069if { (ac_try="$ac_link"
18070case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073esac
18074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_link") 2>conftest.er1
18076 ac_status=$?
18077 grep -v '^ *+' conftest.er1 >conftest.err
18078 rm -f conftest.er1
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
18082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18083 { (case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18086esac
18087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_try") 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest$ac_exeext'
18093 { (case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18096esac
18097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_try") 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_lib_gcc___alloca=yes
18103else
18104 echo "$as_me: failed program was:" >&5
18105sed 's/^/| /' conftest.$ac_ext >&5
18106
18107 ac_cv_lib_gcc___alloca=no
18108fi
18109
18110rm -f core conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18112LIBS=$ac_check_lib_save_LIBS
18113fi
18114{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18115echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18116if test $ac_cv_lib_gcc___alloca = yes; then
18117
18118cat >>confdefs.h <<\_ACEOF
18119#define HAVE___ALLOCA 1
18120_ACEOF
18121
18122fi
18123
18124 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18125echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18126if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18127 echo $ECHO_N "(cached) $ECHO_C" >&6
18128else
18129 ac_check_lib_save_LIBS=$LIBS
18130LIBS="-lgcc $LIBS"
18131cat >conftest.$ac_ext <<_ACEOF
18132/* confdefs.h. */
18133_ACEOF
18134cat confdefs.h >>conftest.$ac_ext
18135cat >>conftest.$ac_ext <<_ACEOF
18136/* end confdefs.h. */
18137
18138/* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18141#ifdef __cplusplus
18142extern "C"
18143#endif
18144char __chkstk ();
18145int
18146main ()
18147{
18148return __chkstk ();
18149 ;
18150 return 0;
18151}
18152_ACEOF
18153rm -f conftest.$ac_objext conftest$ac_exeext
18154if { (ac_try="$ac_link"
18155case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18158esac
18159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_link") 2>conftest.er1
18161 ac_status=$?
18162 grep -v '^ *+' conftest.er1 >conftest.err
18163 rm -f conftest.er1
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18168 { (case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18171esac
18172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_try") 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest$ac_exeext'
18178 { (case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18181esac
18182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_try") 2>&5
18184 ac_status=$?
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; }; then
18187 ac_cv_lib_gcc___chkstk=yes
18188else
18189 echo "$as_me: failed program was:" >&5
18190sed 's/^/| /' conftest.$ac_ext >&5
18191
18192 ac_cv_lib_gcc___chkstk=no
18193fi
18194
18195rm -f core conftest.err conftest.$ac_objext \
18196 conftest$ac_exeext conftest.$ac_ext
18197LIBS=$ac_check_lib_save_LIBS
18198fi
18199{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18200echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18201if test $ac_cv_lib_gcc___chkstk = yes; then
18202
18203cat >>confdefs.h <<\_ACEOF
18204#define HAVE___CHKSTK 1
18205_ACEOF
18206
18207fi
18208
18209 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18210echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18211if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213else
18214 ac_check_lib_save_LIBS=$LIBS
18215LIBS="-lgcc $LIBS"
18216cat >conftest.$ac_ext <<_ACEOF
18217/* confdefs.h. */
18218_ACEOF
18219cat confdefs.h >>conftest.$ac_ext
18220cat >>conftest.$ac_ext <<_ACEOF
18221/* end confdefs.h. */
18222
18223/* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18226#ifdef __cplusplus
18227extern "C"
18228#endif
18229char ___chkstk ();
18230int
18231main ()
18232{
18233return ___chkstk ();
18234 ;
18235 return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext conftest$ac_exeext
18239if { (ac_try="$ac_link"
18240case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243esac
18244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256esac
18257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266esac
18267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 ac_cv_lib_gcc____chkstk=yes
18273else
18274 echo "$as_me: failed program was:" >&5
18275sed 's/^/| /' conftest.$ac_ext >&5
18276
18277 ac_cv_lib_gcc____chkstk=no
18278fi
18279
18280rm -f core conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18282LIBS=$ac_check_lib_save_LIBS
18283fi
18284{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18285echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18286if test $ac_cv_lib_gcc____chkstk = yes; then
18287
18288cat >>confdefs.h <<\_ACEOF
18289#define HAVE____CHKSTK 1
18290_ACEOF
18291
18292fi
18293
18294
18295 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18296echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18297if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18298 echo $ECHO_N "(cached) $ECHO_C" >&6
18299else
18300 ac_check_lib_save_LIBS=$LIBS
18301LIBS="-lgcc $LIBS"
18302cat >conftest.$ac_ext <<_ACEOF
18303/* confdefs.h. */
18304_ACEOF
18305cat confdefs.h >>conftest.$ac_ext
18306cat >>conftest.$ac_ext <<_ACEOF
18307/* end confdefs.h. */
18308
18309/* Override any GCC internal prototype to avoid an error.
18310 Use char because int might match the return type of a GCC
18311 builtin and then its argument prototype would still apply. */
18312#ifdef __cplusplus
18313extern "C"
18314#endif
18315char __ashldi3 ();
18316int
18317main ()
18318{
18319return __ashldi3 ();
18320 ;
18321 return 0;
18322}
18323_ACEOF
18324rm -f conftest.$ac_objext conftest$ac_exeext
18325if { (ac_try="$ac_link"
18326case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329esac
18330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_link") 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18339 { (case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18342esac
18343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_try") 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest$ac_exeext'
18349 { (case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18352esac
18353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_try") 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358 ac_cv_lib_gcc___ashldi3=yes
18359else
18360 echo "$as_me: failed program was:" >&5
18361sed 's/^/| /' conftest.$ac_ext >&5
18362
18363 ac_cv_lib_gcc___ashldi3=no
18364fi
18365
18366rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368LIBS=$ac_check_lib_save_LIBS
18369fi
18370{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18371echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18372if test $ac_cv_lib_gcc___ashldi3 = yes; then
18373
18374cat >>confdefs.h <<\_ACEOF
18375#define HAVE___ASHLDI3 1
18376_ACEOF
18377
18378fi
18379
18380 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18381echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18382if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18384else
18385 ac_check_lib_save_LIBS=$LIBS
18386LIBS="-lgcc $LIBS"
18387cat >conftest.$ac_ext <<_ACEOF
18388/* confdefs.h. */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h. */
18393
18394/* Override any GCC internal prototype to avoid an error.
18395 Use char because int might match the return type of a GCC
18396 builtin and then its argument prototype would still apply. */
18397#ifdef __cplusplus
18398extern "C"
18399#endif
18400char __ashrdi3 ();
18401int
18402main ()
18403{
18404return __ashrdi3 ();
18405 ;
18406 return 0;
18407}
18408_ACEOF
18409rm -f conftest.$ac_objext conftest$ac_exeext
18410if { (ac_try="$ac_link"
18411case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18414esac
18415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_link") 2>conftest.er1
18417 ac_status=$?
18418 grep -v '^ *+' conftest.er1 >conftest.err
18419 rm -f conftest.er1
18420 cat conftest.err >&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18424 { (case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427esac
18428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_try") 2>&5
18430 ac_status=$?
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest$ac_exeext'
18434 { (case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437esac
18438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_try") 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_lib_gcc___ashrdi3=yes
18444else
18445 echo "$as_me: failed program was:" >&5
18446sed 's/^/| /' conftest.$ac_ext >&5
18447
18448 ac_cv_lib_gcc___ashrdi3=no
18449fi
18450
18451rm -f core conftest.err conftest.$ac_objext \
18452 conftest$ac_exeext conftest.$ac_ext
18453LIBS=$ac_check_lib_save_LIBS
18454fi
18455{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18456echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18457if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18458
18459cat >>confdefs.h <<\_ACEOF
18460#define HAVE___ASHRDI3 1
18461_ACEOF
18462
18463fi
18464
18465 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18466echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18467if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18469else
18470 ac_check_lib_save_LIBS=$LIBS
18471LIBS="-lgcc $LIBS"
18472cat >conftest.$ac_ext <<_ACEOF
18473/* confdefs.h. */
18474_ACEOF
18475cat confdefs.h >>conftest.$ac_ext
18476cat >>conftest.$ac_ext <<_ACEOF
18477/* end confdefs.h. */
18478
18479/* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18482#ifdef __cplusplus
18483extern "C"
18484#endif
18485char __divdi3 ();
18486int
18487main ()
18488{
18489return __divdi3 ();
18490 ;
18491 return 0;
18492}
18493_ACEOF
18494rm -f conftest.$ac_objext conftest$ac_exeext
18495if { (ac_try="$ac_link"
18496case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499esac
18500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522esac
18523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_lib_gcc___divdi3=yes
18529else
18530 echo "$as_me: failed program was:" >&5
18531sed 's/^/| /' conftest.$ac_ext >&5
18532
18533 ac_cv_lib_gcc___divdi3=no
18534fi
18535
18536rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
18538LIBS=$ac_check_lib_save_LIBS
18539fi
18540{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18541echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18542if test $ac_cv_lib_gcc___divdi3 = yes; then
18543
18544cat >>confdefs.h <<\_ACEOF
18545#define HAVE___DIVDI3 1
18546_ACEOF
18547
18548fi
18549
18550 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18551echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18552if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554else
18555 ac_check_lib_save_LIBS=$LIBS
18556LIBS="-lgcc $LIBS"
18557cat >conftest.$ac_ext <<_ACEOF
18558/* confdefs.h. */
18559_ACEOF
18560cat confdefs.h >>conftest.$ac_ext
18561cat >>conftest.$ac_ext <<_ACEOF
18562/* end confdefs.h. */
18563
18564/* Override any GCC internal prototype to avoid an error.
18565 Use char because int might match the return type of a GCC
18566 builtin and then its argument prototype would still apply. */
18567#ifdef __cplusplus
18568extern "C"
18569#endif
18570char __fixdfdi ();
18571int
18572main ()
18573{
18574return __fixdfdi ();
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext conftest$ac_exeext
18580if { (ac_try="$ac_link"
18581case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18584esac
18585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_link") 2>conftest.er1
18587 ac_status=$?
18588 grep -v '^ *+' conftest.er1 >conftest.err
18589 rm -f conftest.er1
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
18593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597esac
18598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest$ac_exeext'
18604 { (case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607esac
18608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_try") 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 ac_cv_lib_gcc___fixdfdi=yes
18614else
18615 echo "$as_me: failed program was:" >&5
18616sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 ac_cv_lib_gcc___fixdfdi=no
18619fi
18620
18621rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18623LIBS=$ac_check_lib_save_LIBS
18624fi
18625{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18626echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18627if test $ac_cv_lib_gcc___fixdfdi = yes; then
18628
18629cat >>confdefs.h <<\_ACEOF
18630#define HAVE___FIXDFDI 1
18631_ACEOF
18632
18633fi
18634
18635 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18636echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18637if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640 ac_check_lib_save_LIBS=$LIBS
18641LIBS="-lgcc $LIBS"
18642cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
18648
18649/* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18652#ifdef __cplusplus
18653extern "C"
18654#endif
18655char __fixsfdi ();
18656int
18657main ()
18658{
18659return __fixsfdi ();
18660 ;
18661 return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (ac_try="$ac_link"
18666case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18669esac
18670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679 { (case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18682esac
18683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_try") 2>&5
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692esac
18693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_cv_lib_gcc___fixsfdi=yes
18699else
18700 echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703 ac_cv_lib_gcc___fixsfdi=no
18704fi
18705
18706rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18708LIBS=$ac_check_lib_save_LIBS
18709fi
18710{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18711echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18712if test $ac_cv_lib_gcc___fixsfdi = yes; then
18713
18714cat >>confdefs.h <<\_ACEOF
18715#define HAVE___FIXSFDI 1
18716_ACEOF
18717
18718fi
18719
18720 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18721echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18722if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18724else
18725 ac_check_lib_save_LIBS=$LIBS
18726LIBS="-lgcc $LIBS"
18727cat >conftest.$ac_ext <<_ACEOF
18728/* confdefs.h. */
18729_ACEOF
18730cat confdefs.h >>conftest.$ac_ext
18731cat >>conftest.$ac_ext <<_ACEOF
18732/* end confdefs.h. */
18733
18734/* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18737#ifdef __cplusplus
18738extern "C"
18739#endif
18740char __floatdidf ();
18741int
18742main ()
18743{
18744return __floatdidf ();
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest.$ac_objext conftest$ac_exeext
18750if { (ac_try="$ac_link"
18751case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754esac
18755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_link") 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18764 { (case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767esac
18768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_try") 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest$ac_exeext'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18777esac
18778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_lib_gcc___floatdidf=yes
18784else
18785 echo "$as_me: failed program was:" >&5
18786sed 's/^/| /' conftest.$ac_ext >&5
18787
18788 ac_cv_lib_gcc___floatdidf=no
18789fi
18790
18791rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793LIBS=$ac_check_lib_save_LIBS
18794fi
18795{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18796echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18797if test $ac_cv_lib_gcc___floatdidf = yes; then
18798
18799cat >>confdefs.h <<\_ACEOF
18800#define HAVE___FLOATDIDF 1
18801_ACEOF
18802
18803fi
18804
18805 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18806echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18807if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809else
18810 ac_check_lib_save_LIBS=$LIBS
18811LIBS="-lgcc $LIBS"
18812cat >conftest.$ac_ext <<_ACEOF
18813/* confdefs.h. */
18814_ACEOF
18815cat confdefs.h >>conftest.$ac_ext
18816cat >>conftest.$ac_ext <<_ACEOF
18817/* end confdefs.h. */
18818
18819/* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18822#ifdef __cplusplus
18823extern "C"
18824#endif
18825char __lshrdi3 ();
18826int
18827main ()
18828{
18829return __lshrdi3 ();
18830 ;
18831 return 0;
18832}
18833_ACEOF
18834rm -f conftest.$ac_objext conftest$ac_exeext
18835if { (ac_try="$ac_link"
18836case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839esac
18840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852esac
18853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862esac
18863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 ac_cv_lib_gcc___lshrdi3=yes
18869else
18870 echo "$as_me: failed program was:" >&5
18871sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 ac_cv_lib_gcc___lshrdi3=no
18874fi
18875
18876rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878LIBS=$ac_check_lib_save_LIBS
18879fi
18880{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18881echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18882if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18883
18884cat >>confdefs.h <<\_ACEOF
18885#define HAVE___LSHRDI3 1
18886_ACEOF
18887
18888fi
18889
18890 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18891echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18892if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894else
18895 ac_check_lib_save_LIBS=$LIBS
18896LIBS="-lgcc $LIBS"
18897cat >conftest.$ac_ext <<_ACEOF
18898/* confdefs.h. */
18899_ACEOF
18900cat confdefs.h >>conftest.$ac_ext
18901cat >>conftest.$ac_ext <<_ACEOF
18902/* end confdefs.h. */
18903
18904/* Override any GCC internal prototype to avoid an error.
18905 Use char because int might match the return type of a GCC
18906 builtin and then its argument prototype would still apply. */
18907#ifdef __cplusplus
18908extern "C"
18909#endif
18910char __moddi3 ();
18911int
18912main ()
18913{
18914return __moddi3 ();
18915 ;
18916 return 0;
18917}
18918_ACEOF
18919rm -f conftest.$ac_objext conftest$ac_exeext
18920if { (ac_try="$ac_link"
18921case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18924esac
18925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_link") 2>conftest.er1
18927 ac_status=$?
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18934 { (case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18937esac
18938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_try") 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest$ac_exeext'
18944 { (case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18947esac
18948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_try") 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_cv_lib_gcc___moddi3=yes
18954else
18955 echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 ac_cv_lib_gcc___moddi3=no
18959fi
18960
18961rm -f core conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext conftest.$ac_ext
18963LIBS=$ac_check_lib_save_LIBS
18964fi
18965{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18966echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18967if test $ac_cv_lib_gcc___moddi3 = yes; then
18968
18969cat >>confdefs.h <<\_ACEOF
18970#define HAVE___MODDI3 1
18971_ACEOF
18972
18973fi
18974
18975 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18976echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18977if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18979else
18980 ac_check_lib_save_LIBS=$LIBS
18981LIBS="-lgcc $LIBS"
18982cat >conftest.$ac_ext <<_ACEOF
18983/* confdefs.h. */
18984_ACEOF
18985cat confdefs.h >>conftest.$ac_ext
18986cat >>conftest.$ac_ext <<_ACEOF
18987/* end confdefs.h. */
18988
18989/* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18992#ifdef __cplusplus
18993extern "C"
18994#endif
18995char __udivdi3 ();
18996int
18997main ()
18998{
18999return __udivdi3 ();
19000 ;
19001 return 0;
19002}
19003_ACEOF
19004rm -f conftest.$ac_objext conftest$ac_exeext
19005if { (ac_try="$ac_link"
19006case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009esac
19010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_link") 2>conftest.er1
19012 ac_status=$?
19013 grep -v '^ *+' conftest.er1 >conftest.err
19014 rm -f conftest.er1
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
19018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19019 { (case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19022esac
19023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_try") 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest$ac_exeext'
19029 { (case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19032esac
19033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_try") 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_lib_gcc___udivdi3=yes
19039else
19040 echo "$as_me: failed program was:" >&5
19041sed 's/^/| /' conftest.$ac_ext >&5
19042
19043 ac_cv_lib_gcc___udivdi3=no
19044fi
19045
19046rm -f core conftest.err conftest.$ac_objext \
19047 conftest$ac_exeext conftest.$ac_ext
19048LIBS=$ac_check_lib_save_LIBS
19049fi
19050{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19051echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19052if test $ac_cv_lib_gcc___udivdi3 = yes; then
19053
19054cat >>confdefs.h <<\_ACEOF
19055#define HAVE___UDIVDI3 1
19056_ACEOF
19057
19058fi
19059
19060 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19061echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19062if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064else
19065 ac_check_lib_save_LIBS=$LIBS
19066LIBS="-lgcc $LIBS"
19067cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
19073
19074/* Override any GCC internal prototype to avoid an error.
19075 Use char because int might match the return type of a GCC
19076 builtin and then its argument prototype would still apply. */
19077#ifdef __cplusplus
19078extern "C"
19079#endif
19080char __umoddi3 ();
19081int
19082main ()
19083{
19084return __umoddi3 ();
19085 ;
19086 return 0;
19087}
19088_ACEOF
19089rm -f conftest.$ac_objext conftest$ac_exeext
19090if { (ac_try="$ac_link"
19091case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094esac
19095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107esac
19108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest$ac_exeext'
19114 { (case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19117esac
19118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_try") 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_lib_gcc___umoddi3=yes
19124else
19125 echo "$as_me: failed program was:" >&5
19126sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_cv_lib_gcc___umoddi3=no
19129fi
19130
19131rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133LIBS=$ac_check_lib_save_LIBS
19134fi
19135{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19136echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19137if test $ac_cv_lib_gcc___umoddi3 = yes; then
19138
19139cat >>confdefs.h <<\_ACEOF
19140#define HAVE___UMODDI3 1
19141_ACEOF
19142
19143fi
19144
19145
19146 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19147echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19148if test "${ac_cv_lib_gcc___main+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150else
19151 ac_check_lib_save_LIBS=$LIBS
19152LIBS="-lgcc $LIBS"
19153cat >conftest.$ac_ext <<_ACEOF
19154/* confdefs.h. */
19155_ACEOF
19156cat confdefs.h >>conftest.$ac_ext
19157cat >>conftest.$ac_ext <<_ACEOF
19158/* end confdefs.h. */
19159
19160/* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19163#ifdef __cplusplus
19164extern "C"
19165#endif
19166char __main ();
19167int
19168main ()
19169{
19170return __main ();
19171 ;
19172 return 0;
19173}
19174_ACEOF
19175rm -f conftest.$ac_objext conftest$ac_exeext
19176if { (ac_try="$ac_link"
19177case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19180esac
19181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_link") 2>conftest.er1
19183 ac_status=$?
19184 grep -v '^ *+' conftest.er1 >conftest.err
19185 rm -f conftest.er1
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193esac
19194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest$ac_exeext'
19200 { (case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19203esac
19204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_try") 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 ac_cv_lib_gcc___main=yes
19210else
19211 echo "$as_me: failed program was:" >&5
19212sed 's/^/| /' conftest.$ac_ext >&5
19213
19214 ac_cv_lib_gcc___main=no
19215fi
19216
19217rm -f core conftest.err conftest.$ac_objext \
19218 conftest$ac_exeext conftest.$ac_ext
19219LIBS=$ac_check_lib_save_LIBS
19220fi
19221{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19222echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19223if test $ac_cv_lib_gcc___main = yes; then
19224
19225cat >>confdefs.h <<\_ACEOF
19226#define HAVE___MAIN 1
19227_ACEOF
19228
19229fi
19230
19231 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19232echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19233if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235else
19236 ac_check_lib_save_LIBS=$LIBS
19237LIBS="-lgcc $LIBS"
19238cat >conftest.$ac_ext <<_ACEOF
19239/* confdefs.h. */
19240_ACEOF
19241cat confdefs.h >>conftest.$ac_ext
19242cat >>conftest.$ac_ext <<_ACEOF
19243/* end confdefs.h. */
19244
19245/* Override any GCC internal prototype to avoid an error.
19246 Use char because int might match the return type of a GCC
19247 builtin and then its argument prototype would still apply. */
19248#ifdef __cplusplus
19249extern "C"
19250#endif
19251char __cmpdi2 ();
19252int
19253main ()
19254{
19255return __cmpdi2 ();
19256 ;
19257 return 0;
19258}
19259_ACEOF
19260rm -f conftest.$ac_objext conftest$ac_exeext
19261if { (ac_try="$ac_link"
19262case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_link") 2>conftest.er1
19268 ac_status=$?
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278esac
19279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest$ac_exeext'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_cv_lib_gcc___cmpdi2=yes
19295else
19296 echo "$as_me: failed program was:" >&5
19297sed 's/^/| /' conftest.$ac_ext >&5
19298
19299 ac_cv_lib_gcc___cmpdi2=no
19300fi
19301
19302rm -f core conftest.err conftest.$ac_objext \
19303 conftest$ac_exeext conftest.$ac_ext
19304LIBS=$ac_check_lib_save_LIBS
19305fi
19306{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19307echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19308if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19309
19310cat >>confdefs.h <<\_ACEOF
19311#define HAVE___CMPDI2 1
19312_ACEOF
19313
19314fi
19315
19316fi
19317
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019318if test "$llvm_cv_os_type" = "MingW" ; then
19319 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19320echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19321 cat >conftest.$ac_ext <<_ACEOF
19322#include <windows.h>
19323#include <imagehlp.h>
19324extern void foo(PENUMLOADED_MODULES_CALLBACK);
19325extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19326_ACEOF
19327rm -f conftest.$ac_objext
19328if { (ac_try="$ac_compile"
19329case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19332esac
19333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_compile") 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19342 { (case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19345esac
19346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_try") 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest.$ac_objext'
19352 { (case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19355esac
19356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_try") 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361
19362 { echo "$as_me:$LINENO: result: yes" >&5
19363echo "${ECHO_T}yes" >&6; }
19364 llvm_cv_win32_elmcb_pcstr="PCSTR"
19365
19366else
19367 echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
19370
19371 { echo "$as_me:$LINENO: result: no" >&5
19372echo "${ECHO_T}no" >&6; }
19373 llvm_cv_win32_elmcb_pcstr="PSTR"
19374
19375fi
19376
19377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19378
19379cat >>confdefs.h <<_ACEOF
19380#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19381_ACEOF
19382
19383fi
19384
Torok Edwin871384f2010-01-26 08:50:50 +000019385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019386{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19387echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19388if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019390else
Reid Spencera773bd52006-08-04 18:18:08 +000019391 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019392ac_cpp='$CXXCPP $CPPFLAGS'
19393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019397 cat >conftest.$ac_ext <<_ACEOF
19398/* confdefs.h. */
19399_ACEOF
19400cat confdefs.h >>conftest.$ac_ext
19401cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019402/* end confdefs.h. */
19403#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019404int
19405main ()
19406{
19407float f; isnan(f);
19408 ;
19409 return 0;
19410}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019412rm -f conftest.$ac_objext
19413if { (ac_try="$ac_compile"
19414case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19417esac
19418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_compile") 2>conftest.er1
19420 ac_status=$?
19421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -f conftest.er1
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
19426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19427 { (case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19430esac
19431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_try") 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest.$ac_objext'
19437 { (case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440esac
19441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_try") 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019446 ac_cv_func_isnan_in_math_h=yes
19447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019448 echo "$as_me: failed program was:" >&5
19449sed 's/^/| /' conftest.$ac_ext >&5
19450
19451 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019453
Reid Spencera773bd52006-08-04 18:18:08 +000019454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019455 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019456ac_cpp='$CPP $CPPFLAGS'
19457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459ac_compiler_gnu=$ac_cv_c_compiler_gnu
19460
19461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019462{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19463echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019464
19465
19466if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019468cat >>confdefs.h <<\_ACEOF
19469#define HAVE_ISNAN_IN_MATH_H 1
19470_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019471
Reid Spencerabec8f92004-10-27 23:03:44 +000019472fi
19473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019474{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19475echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19476if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019478else
Reid Spencera773bd52006-08-04 18:18:08 +000019479 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019480ac_cpp='$CXXCPP $CPPFLAGS'
19481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019485 cat >conftest.$ac_ext <<_ACEOF
19486/* confdefs.h. */
19487_ACEOF
19488cat confdefs.h >>conftest.$ac_ext
19489cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019490/* end confdefs.h. */
19491#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019492int
19493main ()
19494{
19495float f; isnan(f);
19496 ;
19497 return 0;
19498}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019500rm -f conftest.$ac_objext
19501if { (ac_try="$ac_compile"
19502case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505esac
19506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_compile") 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
19514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518esac
19519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest.$ac_objext'
19525 { (case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528esac
19529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_try") 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019534 ac_cv_func_isnan_in_cmath=yes
19535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019536 echo "$as_me: failed program was:" >&5
19537sed 's/^/| /' conftest.$ac_ext >&5
19538
19539 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019541
Reid Spencera773bd52006-08-04 18:18:08 +000019542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019543 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019544ac_cpp='$CPP $CPPFLAGS'
19545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19547ac_compiler_gnu=$ac_cv_c_compiler_gnu
19548
19549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019550{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19551echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019552
19553if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019555cat >>confdefs.h <<\_ACEOF
19556#define HAVE_ISNAN_IN_CMATH 1
19557_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019558
Reid Spencerabec8f92004-10-27 23:03:44 +000019559fi
19560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019561{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19562echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19563if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019565else
Reid Spencera773bd52006-08-04 18:18:08 +000019566 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019567ac_cpp='$CXXCPP $CPPFLAGS'
19568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019572 cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019577/* end confdefs.h. */
19578#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019579int
19580main ()
19581{
19582float f; std::isnan(f);
19583 ;
19584 return 0;
19585}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019587rm -f conftest.$ac_objext
19588if { (ac_try="$ac_compile"
19589case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592esac
19593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605esac
19606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest.$ac_objext'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615esac
19616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019621 ac_cv_func_std_isnan_in_cmath=yes
19622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019628
Reid Spencera773bd52006-08-04 18:18:08 +000019629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019630 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019631ac_cpp='$CPP $CPPFLAGS'
19632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635
19636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019637{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19638echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019639
19640if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019642cat >>confdefs.h <<\_ACEOF
19643#define HAVE_STD_ISNAN_IN_CMATH 1
19644_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019645
Reid Spencerabec8f92004-10-27 23:03:44 +000019646fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019647
19648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019649{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19650echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19651if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019653else
Reid Spencera773bd52006-08-04 18:18:08 +000019654 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019655ac_cpp='$CXXCPP $CPPFLAGS'
19656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019660 cat >conftest.$ac_ext <<_ACEOF
19661/* confdefs.h. */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019665/* end confdefs.h. */
19666#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019667int
19668main ()
19669{
19670float f; isinf(f);
19671 ;
19672 return 0;
19673}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019674_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019675rm -f conftest.$ac_objext
19676if { (ac_try="$ac_compile"
19677case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19680esac
19681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_compile") 2>conftest.er1
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19690 { (case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693esac
19694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703esac
19704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_try") 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019709 ac_cv_func_isinf_in_math_h=yes
19710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019711 echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019716
Reid Spencera773bd52006-08-04 18:18:08 +000019717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019718 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019719ac_cpp='$CPP $CPPFLAGS'
19720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19722ac_compiler_gnu=$ac_cv_c_compiler_gnu
19723
19724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019725{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19726echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019727
19728if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730cat >>confdefs.h <<\_ACEOF
19731#define HAVE_ISINF_IN_MATH_H 1
19732_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019733
Reid Spencerabec8f92004-10-27 23:03:44 +000019734fi
19735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019736{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19737echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19738if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019740else
Reid Spencera773bd52006-08-04 18:18:08 +000019741 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019742ac_cpp='$CXXCPP $CPPFLAGS'
19743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019747 cat >conftest.$ac_ext <<_ACEOF
19748/* confdefs.h. */
19749_ACEOF
19750cat confdefs.h >>conftest.$ac_ext
19751cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019752/* end confdefs.h. */
19753#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019754int
19755main ()
19756{
19757float f; isinf(f);
19758 ;
19759 return 0;
19760}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019761_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762rm -f conftest.$ac_objext
19763if { (ac_try="$ac_compile"
19764case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19767esac
19768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780esac
19781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019796 ac_cv_func_isinf_in_cmath=yes
19797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019798 echo "$as_me: failed program was:" >&5
19799sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019803
Reid Spencera773bd52006-08-04 18:18:08 +000019804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019805 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019806ac_cpp='$CPP $CPPFLAGS'
19807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810
19811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019812{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19813echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019814
19815if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019817cat >>confdefs.h <<\_ACEOF
19818#define HAVE_ISINF_IN_CMATH 1
19819_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019820
Reid Spencerabec8f92004-10-27 23:03:44 +000019821fi
19822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019823{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19824echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19825if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019827else
Reid Spencera773bd52006-08-04 18:18:08 +000019828 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019829ac_cpp='$CXXCPP $CPPFLAGS'
19830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019834 cat >conftest.$ac_ext <<_ACEOF
19835/* confdefs.h. */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019839/* end confdefs.h. */
19840#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019841int
19842main ()
19843{
19844float f; std::isinf(f)}
19845 ;
19846 return 0;
19847}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019848_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019849rm -f conftest.$ac_objext
19850if { (ac_try="$ac_compile"
19851case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19854esac
19855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_compile") 2>conftest.er1
19857 ac_status=$?
19858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
19863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867esac
19868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest.$ac_objext'
19874 { (case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19877esac
19878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_try") 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019883 ac_cv_func_std_isinf_in_cmath=yes
19884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019889fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019890
Reid Spencera773bd52006-08-04 18:18:08 +000019891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019892 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019893ac_cpp='$CPP $CPPFLAGS'
19894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19896ac_compiler_gnu=$ac_cv_c_compiler_gnu
19897
19898fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019899{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19900echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019901
19902if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019904cat >>confdefs.h <<\_ACEOF
19905#define HAVE_STD_ISINF_IN_CMATH 1
19906_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019907
Reid Spencerabec8f92004-10-27 23:03:44 +000019908fi
19909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019910{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19911echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19912if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019914else
Reid Spencera773bd52006-08-04 18:18:08 +000019915 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019916ac_cpp='$CXXCPP $CPPFLAGS'
19917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019921 cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019926/* end confdefs.h. */
19927#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019928int
19929main ()
19930{
19931float f; finite(f);
19932 ;
19933 return 0;
19934}
Brian Gaeked59a6472004-07-21 03:33:58 +000019935_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019936rm -f conftest.$ac_objext
19937if { (ac_try="$ac_compile"
19938case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19941esac
19942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_compile") 2>conftest.er1
19944 ac_status=$?
19945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19951 { (case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954esac
19955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_try") 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019970 ac_cv_func_finite_in_ieeefp_h=yes
19971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019972 echo "$as_me: failed program was:" >&5
19973sed 's/^/| /' conftest.$ac_ext >&5
19974
19975 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019977
Reid Spencera773bd52006-08-04 18:18:08 +000019978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019979 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019980ac_cpp='$CPP $CPPFLAGS'
19981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983ac_compiler_gnu=$ac_cv_c_compiler_gnu
19984
19985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019986{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19987echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019988
Brian Gaeke6802b552004-10-28 05:06:45 +000019989if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019991cat >>confdefs.h <<\_ACEOF
19992#define HAVE_FINITE_IN_IEEEFP_H 1
19993_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019994
Reid Spencerabec8f92004-10-27 23:03:44 +000019995fi
19996
19997
19998
Reid Spencer30fe5262007-01-20 07:48:49 +000019999if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020000
20001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020002for ac_header in stdlib.h unistd.h
20003do
20004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20010fi
20011ac_res=`eval echo '${'$as_ac_Header'}'`
20012 { echo "$as_me:$LINENO: result: $ac_res" >&5
20013echo "${ECHO_T}$ac_res" >&6; }
20014else
20015 # Is the header compilable?
20016{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20017echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20018cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h. */
20024$ac_includes_default
20025#include <$ac_header>
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (ac_try="$ac_compile"
20029case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20032esac
20033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_compile") 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20042 { (case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045esac
20046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_try") 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
20052 { (case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20055esac
20056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_try") 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_header_compiler=yes
20062else
20063 echo "$as_me: failed program was:" >&5
20064sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066 ac_header_compiler=no
20067fi
20068
20069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20071echo "${ECHO_T}$ac_header_compiler" >&6; }
20072
20073# Is the header present?
20074{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20076cat >conftest.$ac_ext <<_ACEOF
20077/* confdefs.h. */
20078_ACEOF
20079cat confdefs.h >>conftest.$ac_ext
20080cat >>conftest.$ac_ext <<_ACEOF
20081/* end confdefs.h. */
20082#include <$ac_header>
20083_ACEOF
20084if { (ac_try="$ac_cpp conftest.$ac_ext"
20085case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088esac
20089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20091 ac_status=$?
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } >/dev/null; then
20097 if test -s conftest.err; then
20098 ac_cpp_err=$ac_c_preproc_warn_flag
20099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20100 else
20101 ac_cpp_err=
20102 fi
20103else
20104 ac_cpp_err=yes
20105fi
20106if test -z "$ac_cpp_err"; then
20107 ac_header_preproc=yes
20108else
20109 echo "$as_me: failed program was:" >&5
20110sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 ac_header_preproc=no
20113fi
20114
20115rm -f conftest.err conftest.$ac_ext
20116{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20117echo "${ECHO_T}$ac_header_preproc" >&6; }
20118
20119# So? What about this header?
20120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20121 yes:no: )
20122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20126 ac_header_preproc=yes
20127 ;;
20128 no:yes:* )
20129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20132echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20136echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20141 ( cat <<\_ASBOX
20142## ----------------------------------- ##
20143## Report this to llvmbugs@cs.uiuc.edu ##
20144## ----------------------------------- ##
20145_ASBOX
20146 ) | sed "s/^/$as_me: WARNING: /" >&2
20147 ;;
20148esac
20149{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153else
20154 eval "$as_ac_Header=\$ac_header_preproc"
20155fi
20156ac_res=`eval echo '${'$as_ac_Header'}'`
20157 { echo "$as_me:$LINENO: result: $ac_res" >&5
20158echo "${ECHO_T}$ac_res" >&6; }
20159
20160fi
20161if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020162 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020164_ACEOF
20165
20166fi
20167
20168done
20169
20170
20171for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020172do
20173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20174{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20176if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178else
20179 cat >conftest.$ac_ext <<_ACEOF
20180/* confdefs.h. */
20181_ACEOF
20182cat confdefs.h >>conftest.$ac_ext
20183cat >>conftest.$ac_ext <<_ACEOF
20184/* end confdefs.h. */
20185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20187#define $ac_func innocuous_$ac_func
20188
20189/* System header to define __stub macros and hopefully few prototypes,
20190 which can conflict with char $ac_func (); below.
20191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20192 <limits.h> exists even on freestanding compilers. */
20193
20194#ifdef __STDC__
20195# include <limits.h>
20196#else
20197# include <assert.h>
20198#endif
20199
20200#undef $ac_func
20201
20202/* Override any GCC internal prototype to avoid an error.
20203 Use char because int might match the return type of a GCC
20204 builtin and then its argument prototype would still apply. */
20205#ifdef __cplusplus
20206extern "C"
20207#endif
20208char $ac_func ();
20209/* The GNU C library defines this for functions which it implements
20210 to always fail with ENOSYS. Some functions are actually named
20211 something starting with __ and the normal name is an alias. */
20212#if defined __stub_$ac_func || defined __stub___$ac_func
20213choke me
20214#endif
20215
20216int
20217main ()
20218{
20219return $ac_func ();
20220 ;
20221 return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext conftest$ac_exeext
20225if { (ac_try="$ac_link"
20226case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20229esac
20230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231 (eval "$ac_link") 2>conftest.er1
20232 ac_status=$?
20233 grep -v '^ *+' conftest.er1 >conftest.err
20234 rm -f conftest.er1
20235 cat conftest.err >&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } &&
20238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20239 { (case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20242esac
20243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_try") 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest$ac_exeext'
20249 { (case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20252esac
20253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_try") 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 eval "$as_ac_var=yes"
20259else
20260 echo "$as_me: failed program was:" >&5
20261sed 's/^/| /' conftest.$ac_ext >&5
20262
20263 eval "$as_ac_var=no"
20264fi
20265
20266rm -f core conftest.err conftest.$ac_objext \
20267 conftest$ac_exeext conftest.$ac_ext
20268fi
20269ac_res=`eval echo '${'$as_ac_var'}'`
20270 { echo "$as_me:$LINENO: result: $ac_res" >&5
20271echo "${ECHO_T}$ac_res" >&6; }
20272if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020273 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020275_ACEOF
20276
20277fi
20278done
20279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020280{ echo "$as_me:$LINENO: checking for working mmap" >&5
20281echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20282if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020284else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020285 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020286 ac_cv_func_mmap_fixed_mapped=no
20287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020288 cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020294$ac_includes_default
20295/* malloc might have been renamed as rpl_malloc. */
20296#undef malloc
20297
20298/* Thanks to Mike Haertel and Jim Avera for this test.
20299 Here is a matrix of mmap possibilities:
20300 mmap private not fixed
20301 mmap private fixed at somewhere currently unmapped
20302 mmap private fixed at somewhere already mapped
20303 mmap shared not fixed
20304 mmap shared fixed at somewhere currently unmapped
20305 mmap shared fixed at somewhere already mapped
20306 For private mappings, we should verify that changes cannot be read()
20307 back from the file, nor mmap's back from the file at a different
20308 address. (There have been systems where private was not correctly
20309 implemented like the infamous i386 svr4.0, and systems where the
20310 VM page cache was not coherent with the file system buffer cache
20311 like early versions of FreeBSD and possibly contemporary NetBSD.)
20312 For shared mappings, we should conversely verify that changes get
20313 propagated back to all the places they're supposed to be.
20314
20315 Grep wants private fixed already mapped.
20316 The main things grep needs to know about mmap are:
20317 * does it exist and is it safe to write into the mmap'd area
20318 * how to use it (BSD variants) */
20319
20320#include <fcntl.h>
20321#include <sys/mman.h>
20322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020323#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020324char *malloc ();
20325#endif
20326
20327/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020328#if !HAVE_GETPAGESIZE
20329/* Assume that all systems that can run configure have sys/param.h. */
20330# if !HAVE_SYS_PARAM_H
20331# define HAVE_SYS_PARAM_H 1
20332# endif
20333
John Criswell7a73b802003-06-30 21:59:07 +000020334# ifdef _SC_PAGESIZE
20335# define getpagesize() sysconf(_SC_PAGESIZE)
20336# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020337# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020338# include <sys/param.h>
20339# ifdef EXEC_PAGESIZE
20340# define getpagesize() EXEC_PAGESIZE
20341# else /* no EXEC_PAGESIZE */
20342# ifdef NBPG
20343# define getpagesize() NBPG * CLSIZE
20344# ifndef CLSIZE
20345# define CLSIZE 1
20346# endif /* no CLSIZE */
20347# else /* no NBPG */
20348# ifdef NBPC
20349# define getpagesize() NBPC
20350# else /* no NBPC */
20351# ifdef PAGESIZE
20352# define getpagesize() PAGESIZE
20353# endif /* PAGESIZE */
20354# endif /* no NBPC */
20355# endif /* no NBPG */
20356# endif /* no EXEC_PAGESIZE */
20357# else /* no HAVE_SYS_PARAM_H */
20358# define getpagesize() 8192 /* punt totally */
20359# endif /* no HAVE_SYS_PARAM_H */
20360# endif /* no _SC_PAGESIZE */
20361
20362#endif /* no HAVE_GETPAGESIZE */
20363
20364int
20365main ()
20366{
20367 char *data, *data2, *data3;
20368 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020369 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020370
20371 pagesize = getpagesize ();
20372
20373 /* First, make a file with some known garbage in it. */
20374 data = (char *) malloc (pagesize);
20375 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020376 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020377 for (i = 0; i < pagesize; ++i)
20378 *(data + i) = rand ();
20379 umask (0);
20380 fd = creat ("conftest.mmap", 0600);
20381 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020382 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020383 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020385 close (fd);
20386
20387 /* Next, try to mmap the file at a fixed address which already has
20388 something else allocated at it. If we can, also make sure that
20389 we see the same garbage. */
20390 fd = open ("conftest.mmap", O_RDWR);
20391 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020392 return 1;
20393 data2 = (char *) malloc (2 * pagesize);
20394 if (!data2)
20395 return 1;
20396 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020397 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020398 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020399 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020400 for (i = 0; i < pagesize; ++i)
20401 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020403
20404 /* Finally, make sure that changes to the mapped area do not
20405 percolate back to the file as seen by read(). (This is a bug on
20406 some variants of i386 svr4.0.) */
20407 for (i = 0; i < pagesize; ++i)
20408 *(data2 + i) = *(data2 + i) + 1;
20409 data3 = (char *) malloc (pagesize);
20410 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020411 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020412 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020413 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020414 for (i = 0; i < pagesize; ++i)
20415 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020416 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020417 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020418 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020419}
20420_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020421rm -f conftest$ac_exeext
20422if { (ac_try="$ac_link"
20423case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20426esac
20427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_link") 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20432 { (case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20435esac
20436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_try") 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020441 ac_cv_func_mmap_fixed_mapped=yes
20442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020443 echo "$as_me: program exited with status $ac_status" >&5
20444echo "$as_me: failed program was:" >&5
20445sed 's/^/| /' conftest.$ac_ext >&5
20446
20447( exit $ac_status )
20448ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020450rm -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 +000020451fi
Reid Spencera773bd52006-08-04 18:18:08 +000020452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020453
John Criswell7a73b802003-06-30 21:59:07 +000020454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020455{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20456echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020457if test $ac_cv_func_mmap_fixed_mapped = yes; then
20458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020459cat >>confdefs.h <<\_ACEOF
20460#define HAVE_MMAP 1
20461_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020462
20463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020464rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020466 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20467echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20468if test "${ac_cv_func_mmap_file+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020470else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020471 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020472ac_cpp='$CPP $CPPFLAGS'
20473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475ac_compiler_gnu=$ac_cv_c_compiler_gnu
20476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020477 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020478 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020479else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020480 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020482 /* confdefs.h. */
20483_ACEOF
20484cat confdefs.h >>conftest.$ac_ext
20485cat >>conftest.$ac_ext <<_ACEOF
20486/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020487
John Criswell7a73b802003-06-30 21:59:07 +000020488#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020489#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020490#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020491
20492int
20493main ()
20494{
John Criswell7a73b802003-06-30 21:59:07 +000020495
20496 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020497 fd = creat ("foo",0777);
20498 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20499 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020500 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020501 ;
20502 return 0;
20503}
John Criswell7a73b802003-06-30 21:59:07 +000020504_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020505rm -f conftest$ac_exeext
20506if { (ac_try="$ac_link"
20507case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20510esac
20511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_link") 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20516 { (case "(($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_try") 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020525 ac_cv_func_mmap_file=yes
20526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020527 echo "$as_me: program exited with status $ac_status" >&5
20528echo "$as_me: failed program was:" >&5
20529sed 's/^/| /' conftest.$ac_ext >&5
20530
20531( exit $ac_status )
20532ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020534rm -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 +000020535fi
Reid Spencera773bd52006-08-04 18:18:08 +000020536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020537
John Criswell7a73b802003-06-30 21:59:07 +000020538 ac_ext=c
20539ac_cpp='$CPP $CPPFLAGS'
20540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542ac_compiler_gnu=$ac_cv_c_compiler_gnu
20543
20544
20545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020546{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20547echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020548if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020550cat >>confdefs.h <<\_ACEOF
20551#define HAVE_MMAP_FILE
20552_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020553
20554 MMAP_FILE=yes
20555
20556fi
20557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020558 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20559echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20560if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020562else
Reid Spencer582a23c2004-12-29 07:07:57 +000020563 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020564 ac_cv_need_dev_zero_for_mmap=yes
20565 else
20566 ac_cv_need_dev_zero_for_mmap=no
20567 fi
20568
20569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020570{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20571echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020572if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574cat >>confdefs.h <<\_ACEOF
20575#define NEED_DEV_ZERO_FOR_MMAP 1
20576_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020577
20578fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020579
Reid Spencer30fe5262007-01-20 07:48:49 +000020580 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20581 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020582 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20583echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020584 fi
20585 if test "$ac_cv_func_mmap_file" = "no"
20586 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020587 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20588echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020589 fi
John Criswellb13092b2003-07-22 21:00:24 +000020590fi
John Criswell7a73b802003-06-30 21:59:07 +000020591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20593echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020594ac_ext=cpp
20595ac_cpp='$CXXCPP $CPPFLAGS'
20596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h. */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020605/* end confdefs.h. */
20606int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020607 volatile unsigned long val = 1;
20608 __sync_synchronize();
20609 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020610 __sync_add_and_fetch(&val, 1);
20611 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020612 return 0;
20613 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020614
20615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616rm -f conftest.$ac_objext conftest$ac_exeext
20617if { (ac_try="$ac_link"
20618case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20621esac
20622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_link") 2>conftest.er1
20624 ac_status=$?
20625 grep -v '^ *+' conftest.er1 >conftest.err
20626 rm -f conftest.er1
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
20630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20631 { (case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634esac
20635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_try") 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest$ac_exeext'
20641 { (case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20644esac
20645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_try") 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020650 ac_ext=c
20651ac_cpp='$CPP $CPPFLAGS'
20652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20654ac_compiler_gnu=$ac_cv_c_compiler_gnu
20655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020656 { echo "$as_me:$LINENO: result: yes" >&5
20657echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020659cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020660#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020661_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020662
Owen Andersond4b272b2009-05-18 23:58:51 +000020663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020664 echo "$as_me: failed program was:" >&5
20665sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667 { echo "$as_me:$LINENO: result: no" >&5
20668echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020670cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020671#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020672_ACEOF
20673
20674 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20675echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020677
Owen Andersond4b272b2009-05-18 23:58:51 +000020678rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020679 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020680
John Criswell7a73b802003-06-30 21:59:07 +000020681
Nick Lewycky4372e692009-09-29 06:18:23 +000020682if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20684echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20685if test "${llvm_cv_linux_mixed+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020687else
20688 ac_ext=c
20689ac_cpp='$CPP $CPPFLAGS'
20690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20692ac_compiler_gnu=$ac_cv_c_compiler_gnu
20693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020694 cat >conftest.$ac_ext <<_ACEOF
20695/* confdefs.h. */
20696_ACEOF
20697cat confdefs.h >>conftest.$ac_ext
20698cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020699/* end confdefs.h. */
20700#ifndef __x86_64__
20701 error: Not x86-64 even if uname says so!
20702 #endif
20703
20704int
20705main ()
20706{
20707
20708 ;
20709 return 0;
20710}
20711_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020712rm -f conftest.$ac_objext
20713if { (ac_try="$ac_compile"
20714case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717esac
20718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_compile") 2>conftest.er1
20720 ac_status=$?
20721 grep -v '^ *+' conftest.er1 >conftest.err
20722 rm -f conftest.er1
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } &&
20726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20727 { (case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20730esac
20731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20732 (eval "$ac_try") 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try='test -s conftest.$ac_objext'
20737 { (case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20740esac
20741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_try") 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020746 llvm_cv_linux_mixed=no
20747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748 echo "$as_me: failed program was:" >&5
20749sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020753
Nick Lewycky4372e692009-09-29 06:18:23 +000020754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20755 ac_ext=c
20756ac_cpp='$CPP $CPPFLAGS'
20757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20759ac_compiler_gnu=$ac_cv_c_compiler_gnu
20760
20761
20762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020763{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20764echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020765
20766 if test "$llvm_cv_linux_mixed" = "yes"; then
20767 llvm_cv_target_arch="x86"
20768 ARCH="x86"
20769 fi
20770fi
20771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020772
Reid Spencer9372f152007-07-30 20:13:24 +000020773for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774do
20775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20776{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20778if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780else
20781 cat >conftest.$ac_ext <<_ACEOF
20782/* confdefs.h. */
20783_ACEOF
20784cat confdefs.h >>conftest.$ac_ext
20785cat >>conftest.$ac_ext <<_ACEOF
20786/* end confdefs.h. */
20787/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20789#define $ac_func innocuous_$ac_func
20790
20791/* System header to define __stub macros and hopefully few prototypes,
20792 which can conflict with char $ac_func (); below.
20793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20794 <limits.h> exists even on freestanding compilers. */
20795
20796#ifdef __STDC__
20797# include <limits.h>
20798#else
20799# include <assert.h>
20800#endif
20801
20802#undef $ac_func
20803
20804/* Override any GCC internal prototype to avoid an error.
20805 Use char because int might match the return type of a GCC
20806 builtin and then its argument prototype would still apply. */
20807#ifdef __cplusplus
20808extern "C"
20809#endif
20810char $ac_func ();
20811/* The GNU C library defines this for functions which it implements
20812 to always fail with ENOSYS. Some functions are actually named
20813 something starting with __ and the normal name is an alias. */
20814#if defined __stub_$ac_func || defined __stub___$ac_func
20815choke me
20816#endif
20817
20818int
20819main ()
20820{
20821return $ac_func ();
20822 ;
20823 return 0;
20824}
20825_ACEOF
20826rm -f conftest.$ac_objext conftest$ac_exeext
20827if { (ac_try="$ac_link"
20828case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831esac
20832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_link") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } &&
20840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20841 { (case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20844esac
20845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_try") 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest$ac_exeext'
20851 { (case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20854esac
20855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_try") 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; }; then
20860 eval "$as_ac_var=yes"
20861else
20862 echo "$as_me: failed program was:" >&5
20863sed 's/^/| /' conftest.$ac_ext >&5
20864
20865 eval "$as_ac_var=no"
20866fi
20867
20868rm -f core conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext conftest.$ac_ext
20870fi
20871ac_res=`eval echo '${'$as_ac_var'}'`
20872 { echo "$as_me:$LINENO: result: $ac_res" >&5
20873echo "${ECHO_T}$ac_res" >&6; }
20874if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020875 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020877_ACEOF
20878
20879fi
20880done
20881
20882
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020883SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020884
20885
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020886SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20887
20888
Reid Spencere9de0912004-08-20 09:03:57 +000020889# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020890# information into substitutions that will end up in Makefile.config.in
20891# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020892if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020893 prefix="/usr/local"
20894fi
Reid Spencere9de0912004-08-20 09:03:57 +000020895eval LLVM_PREFIX="${prefix}";
20896eval LLVM_BINDIR="${prefix}/bin";
20897eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020898eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020899eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020900eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020901eval LLVM_INCLUDEDIR="${prefix}/include";
20902eval LLVM_INFODIR="${prefix}/info";
20903eval LLVM_MANDIR="${prefix}/man";
20904LLVM_CONFIGTIME=`date`
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020916# Place the various directores into the config.h file as #defines so that we
20917# can know about the installation paths within LLVM.
20918
Reid Spencere9de0912004-08-20 09:03:57 +000020919cat >>confdefs.h <<_ACEOF
20920#define LLVM_PREFIX "$LLVM_PREFIX"
20921_ACEOF
20922
20923
20924cat >>confdefs.h <<_ACEOF
20925#define LLVM_BINDIR "$LLVM_BINDIR"
20926_ACEOF
20927
20928
20929cat >>confdefs.h <<_ACEOF
20930#define LLVM_LIBDIR "$LLVM_LIBDIR"
20931_ACEOF
20932
20933
20934cat >>confdefs.h <<_ACEOF
20935#define LLVM_DATADIR "$LLVM_DATADIR"
20936_ACEOF
20937
20938
20939cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020940#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020941_ACEOF
20942
20943
20944cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020945#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020946_ACEOF
20947
20948
20949cat >>confdefs.h <<_ACEOF
20950#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20951_ACEOF
20952
20953
20954cat >>confdefs.h <<_ACEOF
20955#define LLVM_INFODIR "$LLVM_INFODIR"
20956_ACEOF
20957
20958
20959cat >>confdefs.h <<_ACEOF
20960#define LLVM_MANDIR "$LLVM_MANDIR"
20961_ACEOF
20962
20963
20964cat >>confdefs.h <<_ACEOF
20965#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20966_ACEOF
20967
20968
Eric Christopher790e11c2007-12-01 00:34:39 +000020969cat >>confdefs.h <<_ACEOF
20970#define LLVM_HOSTTRIPLE "$host"
20971_ACEOF
20972
20973
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020974# Determine which bindings to build.
20975if test "$BINDINGS_TO_BUILD" = auto ; then
20976 BINDINGS_TO_BUILD=""
20977 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20978 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20979 fi
20980fi
20981BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20982
20983
20984# This isn't really configurey, but it avoids having to repeat the list in
20985# other files.
20986ALL_BINDINGS=ocaml
20987
20988
Gordon Henriksenf0915682007-10-02 16:42:22 +000020989# Do any work necessary to ensure that bindings have what they need.
20990binding_prereqs_failed=0
20991for a_binding in $BINDINGS_TO_BUILD ; do
20992 case "$a_binding" in
20993 ocaml)
20994 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20996echo "$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 +000020997 binding_prereqs_failed=1
20998 fi
20999 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021000 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21001echo "$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 +000021002 binding_prereqs_failed=1
21003 fi
21004 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021005 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21006echo "$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 +000021007 fi
21008 if test "x$with_ocaml_libdir" != xauto ; then
21009 OCAML_LIBDIR=$with_ocaml_libdir
21010
21011 else
21012 ocaml_stdlib="`"$OCAMLC" -where`"
21013 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21014 then
21015 # ocaml stdlib is beneath our prefix; use stdlib
21016 OCAML_LIBDIR=$ocaml_stdlib
21017
21018 else
21019 # ocaml stdlib is outside our prefix; use libdir/ocaml
21020 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21021
21022 fi
21023 fi
21024 ;;
21025 esac
21026done
21027if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021028 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21029echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21030 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021031fi
21032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021033{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21034echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21035if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021037else
21038 ac_ext=cpp
21039ac_cpp='$CXXCPP $CPPFLAGS'
21040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21043
21044 oldcxxflags="$CXXFLAGS"
21045 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021046 cat >conftest.$ac_ext <<_ACEOF
21047/* confdefs.h. */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021051/* end confdefs.h. */
21052
21053int
21054main ()
21055{
21056
21057 ;
21058 return 0;
21059}
21060_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021061rm -f conftest.$ac_objext
21062if { (ac_try="$ac_compile"
21063case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066esac
21067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_compile") 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21076 { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079esac
21080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; } &&
21085 { ac_try='test -s conftest.$ac_objext'
21086 { (case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21089esac
21090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_try") 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021095 llvm_cv_cxx_visibility_inlines_hidden=yes
21096else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021097 echo "$as_me: failed program was:" >&5
21098sed 's/^/| /' conftest.$ac_ext >&5
21099
21100 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021102
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 CXXFLAGS="$oldcxxflags"
21105 ac_ext=c
21106ac_cpp='$CPP $CPPFLAGS'
21107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109ac_compiler_gnu=$ac_cv_c_compiler_gnu
21110
21111
21112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021113{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21114echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021115if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21116 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21117
21118else
21119 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21120
21121fi
21122
Gordon Henriksenf0915682007-10-02 16:42:22 +000021123
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021124if test "$llvm_cv_link_use_r" = "yes" ; then
21125 RPATH="-Wl,-R"
21126else
21127 RPATH="-Wl,-rpath"
21128fi
21129
21130
21131if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21132 RDYNAMIC="-Wl,-export-dynamic"
21133else
21134 RDYNAMIC=""
21135fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021136
21137
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021138
Eric Christophera1cba682010-08-08 02:44:25 +000021139ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021140
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021141
21142
21143
21144
21145
Douglas Gregor1555a232009-06-16 20:12:29 +000021146ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21147
21148ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21149
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021150ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21151
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021152ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21153
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021154ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021155
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021156
Reid Spencera773bd52006-08-04 18:18:08 +000021157ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021158
Eric Christopher360fa9a2011-10-26 00:42:12 +000021159
Reid Spencerea949cf2006-08-16 00:45:38 +000021160ac_config_files="$ac_config_files llvm.spec"
21161
21162
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021163ac_config_files="$ac_config_files docs/doxygen.cfg"
21164
21165if test -f ${srcdir}/tools/clang/README.txt; then
21166 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21167
21168fi
21169
Reid Spencera773bd52006-08-04 18:18:08 +000021170ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021171
Eric Christopher360fa9a2011-10-26 00:42:12 +000021172
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021173ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021174
Eric Christopher360fa9a2011-10-26 00:42:12 +000021175
Reid Spencera773bd52006-08-04 18:18:08 +000021176ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021177
Reid Spencera773bd52006-08-04 18:18:08 +000021178ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021179
21180
Reid Spencera773bd52006-08-04 18:18:08 +000021181ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021182
21183
Reid Spencera773bd52006-08-04 18:18:08 +000021184ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021185
21186
Reid Spencera773bd52006-08-04 18:18:08 +000021187ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021188
21189
Reid Spencer8b2e1412006-11-17 03:32:33 +000021190ac_config_commands="$ac_config_commands runtime/Makefile"
21191
21192
Reid Spencera773bd52006-08-04 18:18:08 +000021193ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021194
21195
Reid Spencera773bd52006-08-04 18:18:08 +000021196ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021197
21198
Bill Wendlingf24eb392009-01-04 23:12:30 +000021199ac_config_commands="$ac_config_commands unittests/Makefile"
21200
21201
Reid Spencera773bd52006-08-04 18:18:08 +000021202ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021203
21204
Reid Spencera773bd52006-08-04 18:18:08 +000021205ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021206
21207
Reid Spencera773bd52006-08-04 18:18:08 +000021208ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021209
21210
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021211ac_config_commands="$ac_config_commands bindings/Makefile"
21212
21213
21214ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21215
21216
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021217
John Criswell7a73b802003-06-30 21:59:07 +000021218cat >confcache <<\_ACEOF
21219# This file is a shell script that caches the results of configure
21220# tests run on this system so they can be shared between configure
21221# scripts and configure runs, see configure's option --config-cache.
21222# It is not useful on other systems. If it contains results you don't
21223# want to keep, you may remove or edit it.
21224#
21225# config.status only pays attention to the cache file if you give it
21226# the --recheck option to rerun configure.
21227#
John Criswell0c38eaf2003-09-10 15:17:25 +000021228# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021229# loading this file, other *unset* `ac_cv_foo' will be assigned the
21230# following values.
21231
21232_ACEOF
21233
21234# The following way of writing the cache mishandles newlines in values,
21235# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021236# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021237# Ultrix sh set writes to stderr and can't be redirected directly,
21238# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021239(
21240 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21241 eval ac_val=\$$ac_var
21242 case $ac_val in #(
21243 *${as_nl}*)
21244 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021245 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21246echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021247 esac
21248 case $ac_var in #(
21249 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021250 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021251 esac ;;
21252 esac
21253 done
21254
John Criswell7a73b802003-06-30 21:59:07 +000021255 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021256 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21257 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021258 # `set' does not quote correctly, so add quotes (double-quote
21259 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021260 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021261 "s/'/'\\\\''/g;
21262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021263 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021264 *)
21265 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021267 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021268 esac |
21269 sort
21270) |
John Criswell7a73b802003-06-30 21:59:07 +000021271 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021272 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021273 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021274 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21276 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021277 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21278 :end' >>confcache
21279if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21280 if test -w "$cache_file"; then
21281 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021282 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21283echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021284 cat confcache >$cache_file
21285 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21287echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021288 fi
21289fi
21290rm -f confcache
21291
21292test "x$prefix" = xNONE && prefix=$ac_default_prefix
21293# Let make expand exec_prefix.
21294test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21295
John Criswell7a73b802003-06-30 21:59:07 +000021296DEFS=-DHAVE_CONFIG_H
21297
John Criswell0c38eaf2003-09-10 15:17:25 +000021298ac_libobjs=
21299ac_ltlibobjs=
21300for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21301 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021303 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21305 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21307 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021308done
21309LIBOBJS=$ac_libobjs
21310
21311LTLIBOBJS=$ac_ltlibobjs
21312
21313
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021314if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021315 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21316Usually this means the macro was only invoked conditionally." >&5
21317echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21318Usually this means the macro was only invoked conditionally." >&2;}
21319 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021320fi
21321if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021322 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21323Usually this means the macro was only invoked conditionally." >&5
21324echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21325Usually this means the macro was only invoked conditionally." >&2;}
21326 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021327fi
John Criswell7a73b802003-06-30 21:59:07 +000021328
21329: ${CONFIG_STATUS=./config.status}
21330ac_clean_files_save=$ac_clean_files
21331ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021332{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21333echo "$as_me: creating $CONFIG_STATUS" >&6;}
21334cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021335#! $SHELL
21336# Generated by $as_me.
21337# Run this file to recreate the current configuration.
21338# Compiler output produced by configure, useful for debugging
21339# configure, is in config.log if it exists.
21340
21341debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021342ac_cs_recheck=false
21343ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021344SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021345_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021347cat >>$CONFIG_STATUS <<\_ACEOF
21348## --------------------- ##
21349## M4sh Initialization. ##
21350## --------------------- ##
21351
21352# Be Bourne compatible
21353if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021354 emulate sh
21355 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021357 # is contrary to our usage. Disable this feature.
21358 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021359 setopt NO_GLOB_SUBST
21360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021361 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021363BIN_SH=xpg4; export BIN_SH # for Tru64
21364DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021365
John Criswell7a73b802003-06-30 21:59:07 +000021366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021367# PATH needs CR
21368# Avoid depending upon Character Ranges.
21369as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21370as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21371as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21372as_cr_digits='0123456789'
21373as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021374
21375# The user is always right.
21376if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021377 echo "#! /bin/sh" >conf$$.sh
21378 echo "exit 0" >>conf$$.sh
21379 chmod +x conf$$.sh
21380 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21381 PATH_SEPARATOR=';'
21382 else
21383 PATH_SEPARATOR=:
21384 fi
21385 rm -f conf$$.sh
21386fi
21387
21388# Support unset when possible.
21389if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21390 as_unset=unset
21391else
21392 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021393fi
John Criswell7a73b802003-06-30 21:59:07 +000021394
Reid Spencera773bd52006-08-04 18:18:08 +000021395
21396# IFS
21397# We need space, tab and new line, in precisely that order. Quoting is
21398# there to prevent editors from complaining about space-tab.
21399# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21400# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021401as_nl='
21402'
Reid Spencera773bd52006-08-04 18:18:08 +000021403IFS=" "" $as_nl"
21404
21405# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021406case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021407 *[\\/]* ) as_myself=$0 ;;
21408 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021409for as_dir in $PATH
21410do
21411 IFS=$as_save_IFS
21412 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021413 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21414done
Reid Spencera773bd52006-08-04 18:18:08 +000021415IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021416
Reid Spencera773bd52006-08-04 18:18:08 +000021417 ;;
21418esac
21419# We did not find ourselves, most probably we were run as `sh COMMAND'
21420# in which case we are not to be found in the path.
21421if test "x$as_myself" = x; then
21422 as_myself=$0
21423fi
21424if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21426 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021427fi
21428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429# Work around bugs in pre-3.0 UWIN ksh.
21430for as_var in ENV MAIL MAILPATH
21431do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021432done
21433PS1='$ '
21434PS2='> '
21435PS4='+ '
21436
21437# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021438for as_var in \
21439 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21440 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21441 LC_TELEPHONE LC_TIME
21442do
21443 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21444 eval $as_var=C; export $as_var
21445 else
21446 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021447 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021448done
Torok Edwin871384f2010-01-26 08:50:50 +000021449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021450# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021451if expr a : '\(a\)' >/dev/null 2>&1 &&
21452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21453 as_expr=expr
21454else
21455 as_expr=false
21456fi
21457
21458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21459 as_basename=basename
21460else
21461 as_basename=false
21462fi
21463
21464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021465# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021466as_me=`$as_basename -- "$0" ||
21467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21468 X"$0" : 'X\(//\)$' \| \
21469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021470echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021471 sed '/^.*\/\([^/][^/]*\)\/*$/{
21472 s//\1/
21473 q
21474 }
21475 /^X\/\(\/\/\)$/{
21476 s//\1/
21477 q
21478 }
21479 /^X\/\(\/\).*/{
21480 s//\1/
21481 q
21482 }
21483 s/.*/./; q'`
21484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485# CDPATH.
21486$as_unset CDPATH
21487
21488
21489
21490 as_lineno_1=$LINENO
21491 as_lineno_2=$LINENO
21492 test "x$as_lineno_1" != "x$as_lineno_2" &&
21493 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21494
21495 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21496 # uniformly replaced by the line number. The first 'sed' inserts a
21497 # line-number line after each line using $LINENO; the second 'sed'
21498 # does the real work. The second script uses 'N' to pair each
21499 # line-number line with the line containing $LINENO, and appends
21500 # trailing '-' during substitution so that $LINENO is not a special
21501 # case at line end.
21502 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21503 # scripts with optimization help from Paolo Bonzini. Blame Lee
21504 # E. McMahon (1931-1989) for sed's syntax. :-)
21505 sed -n '
21506 p
21507 /[$]LINENO/=
21508 ' <$as_myself |
21509 sed '
21510 s/[$]LINENO.*/&-/
21511 t lineno
21512 b
21513 :lineno
21514 N
21515 :loop
21516 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21517 t loop
21518 s/-\n.*//
21519 ' >$as_me.lineno &&
21520 chmod +x "$as_me.lineno" ||
21521 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21522 { (exit 1); exit 1; }; }
21523
21524 # Don't try to exec as it changes $[0], causing all sort of problems
21525 # (the dirname of $[0] is not the place where we might find the
21526 # original and so on. Autoconf is especially sensitive to this).
21527 . "./$as_me.lineno"
21528 # Exit status is that of the last command.
21529 exit
21530}
21531
21532
21533if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21534 as_dirname=dirname
21535else
21536 as_dirname=false
21537fi
Reid Spencera773bd52006-08-04 18:18:08 +000021538
21539ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021541-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021543 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021544 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021545 esac;;
21546*)
21547 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021548esac
21549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021550if expr a : '\(a\)' >/dev/null 2>&1 &&
21551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21552 as_expr=expr
21553else
21554 as_expr=false
21555fi
21556
John Criswell7a73b802003-06-30 21:59:07 +000021557rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021558if test -d conf$$.dir; then
21559 rm -f conf$$.dir/conf$$.file
21560else
21561 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021562 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021563fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564echo >conf$$.file
21565if ln -s conf$$.file conf$$ 2>/dev/null; then
21566 as_ln_s='ln -s'
21567 # ... but there are two gotchas:
21568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21570 # In both cases, we have to default to `cp -p'.
21571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021572 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573elif ln conf$$.file conf$$ 2>/dev/null; then
21574 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021575else
21576 as_ln_s='cp -p'
21577fi
Reid Spencera773bd52006-08-04 18:18:08 +000021578rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21579rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021580
John Criswell0c38eaf2003-09-10 15:17:25 +000021581if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021583else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021584 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021585 as_mkdir_p=false
21586fi
21587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021588# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21589# systems may use methods other than mode bits to determine executability.
21590cat >conf$$.file <<_ASEOF
21591#! /bin/sh
21592exit 0
21593_ASEOF
21594chmod +x conf$$.file
21595if test -x conf$$.file >/dev/null 2>&1; then
21596 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021598 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021600rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021601
21602# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021604
21605# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021607
21608
John Criswell7a73b802003-06-30 21:59:07 +000021609exec 6>&1
21610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021611# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021612# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021613# values after options handling.
21614ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021615This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021617
21618 CONFIG_FILES = $CONFIG_FILES
21619 CONFIG_HEADERS = $CONFIG_HEADERS
21620 CONFIG_LINKS = $CONFIG_LINKS
21621 CONFIG_COMMANDS = $CONFIG_COMMANDS
21622 $ $0 $@
21623
Reid Spencera773bd52006-08-04 18:18:08 +000021624on `(hostname || uname -n) 2>/dev/null | sed 1q`
21625"
21626
John Criswell7a73b802003-06-30 21:59:07 +000021627_ACEOF
21628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021629cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021630# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021631config_files="$ac_config_files"
21632config_headers="$ac_config_headers"
21633config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021634
Reid Spencera773bd52006-08-04 18:18:08 +000021635_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021637cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021638ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021639\`$as_me' instantiates files from templates according to the
21640current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021643
21644 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021645 -V, --version print version number, then exit
21646 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021647 -d, --debug don't remove temporary files
21648 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021649 --file=FILE[:TEMPLATE]
21650 instantiate the configuration file FILE
21651 --header=FILE[:TEMPLATE]
21652 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021653
21654Configuration files:
21655$config_files
21656
21657Configuration headers:
21658$config_headers
21659
John Criswellc764fbc2003-09-06 15:17:13 +000021660Configuration commands:
21661$config_commands
21662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021663Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021664
Reid Spencera773bd52006-08-04 18:18:08 +000021665_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021667ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021668llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021669configured by $0, generated by GNU Autoconf 2.60,
21670 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021673This config.status script is free software; the Free Software Foundation
21674gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021675
21676ac_pwd='$ac_pwd'
21677srcdir='$srcdir'
21678INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021679_ACEOF
21680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021681cat >>$CONFIG_STATUS <<\_ACEOF
21682# If no file are specified by the user, then we need to provide default
21683# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021684ac_need_defaults=:
21685while test $# != 0
21686do
21687 case $1 in
21688 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021691 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021693 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021694 ac_option=$1
21695 ac_optarg=$2
21696 ac_shift=shift
21697 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021698 esac
21699
John Criswell0c38eaf2003-09-10 15:17:25 +000021700 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021701 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21703 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021705 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021706 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021707 debug=: ;;
21708 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021709 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021711 ac_need_defaults=false;;
21712 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021713 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021714 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021715 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021716 --he | --h)
21717 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021718 { echo "$as_me: error: ambiguous option: $1
21719Try \`$0 --help' for more information." >&2
21720 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021721 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021722 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21724 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21725 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021726
21727 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021728 -*) { echo "$as_me: error: unrecognized option: $1
21729Try \`$0 --help' for more information." >&2
21730 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021732 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021733 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021734
21735 esac
21736 shift
21737done
21738
John Criswell0c38eaf2003-09-10 15:17:25 +000021739ac_configure_extra_args=
21740
21741if $ac_cs_silent; then
21742 exec 6>/dev/null
21743 ac_configure_extra_args="$ac_configure_extra_args --silent"
21744fi
21745
21746_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021747cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021748if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021749 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21750 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021751 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021753fi
21754
John Criswell7a73b802003-06-30 21:59:07 +000021755_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021757exec 5>>config.log
21758{
21759 echo
21760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21761## Running $as_me. ##
21762_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021763 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021764} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021765
Reid Spencera773bd52006-08-04 18:18:08 +000021766_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021767cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021768#
Reid Spencera773bd52006-08-04 18:18:08 +000021769# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021770#
Reid Spencerc0682832005-02-24 19:05:19 +000021771llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021772
21773_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021775cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021776
21777# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021778for ac_config_target in $ac_config_targets
21779do
Reid Spencera773bd52006-08-04 18:18:08 +000021780 case $ac_config_target in
21781 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021782 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021783 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21784 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021785 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021786 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021787 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021788 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021789 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021790 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21791 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021792 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021793 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021794 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21795 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21796 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21797 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21798 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021799 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021800 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21801 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021802 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021803 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21804 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21805 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021806 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21807 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21810echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21811 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021812 esac
21813done
21814
Reid Spencera773bd52006-08-04 18:18:08 +000021815
John Criswell7a73b802003-06-30 21:59:07 +000021816# If the user did not use the arguments to specify the items to instantiate,
21817# then the envvar interface is used. Set only those that are not.
21818# We use the long form for the default assignment because of an extremely
21819# bizarre bug on SunOS 4.1.3.
21820if $ac_need_defaults; then
21821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21822 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021824fi
21825
John Criswell0c38eaf2003-09-10 15:17:25 +000021826# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021827# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021828# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021829# Hook for its removal unless debugging.
21830# Note that there is a small window in which the directory will not be cleaned:
21831# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021832$debug ||
21833{
Reid Spencera773bd52006-08-04 18:18:08 +000021834 tmp=
21835 trap 'exit_status=$?
21836 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21837' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021839}
John Criswell7a73b802003-06-30 21:59:07 +000021840# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021841
John Criswell7a73b802003-06-30 21:59:07 +000021842{
Reid Spencera773bd52006-08-04 18:18:08 +000021843 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021844 test -n "$tmp" && test -d "$tmp"
21845} ||
21846{
Reid Spencera773bd52006-08-04 18:18:08 +000021847 tmp=./conf$$-$RANDOM
21848 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021849} ||
21850{
21851 echo "$me: cannot create a temporary directory in ." >&2
21852 { (exit 1); exit 1; }
21853}
John Criswell7a73b802003-06-30 21:59:07 +000021854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021855#
21856# Set up the sed scripts for CONFIG_FILES section.
21857#
21858
21859# No need to generate the scripts if there are no CONFIG_FILES.
21860# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021861if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021862
21863_ACEOF
21864
Reid Spencera773bd52006-08-04 18:18:08 +000021865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021866
Reid Spencera773bd52006-08-04 18:18:08 +000021867ac_delim='%!_!# '
21868for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021869 cat >conf$$subs.sed <<_ACEOF
21870SHELL!$SHELL$ac_delim
21871PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21872PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21873PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21874PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21875PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21876PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21877exec_prefix!$exec_prefix$ac_delim
21878prefix!$prefix$ac_delim
21879program_transform_name!$program_transform_name$ac_delim
21880bindir!$bindir$ac_delim
21881sbindir!$sbindir$ac_delim
21882libexecdir!$libexecdir$ac_delim
21883datarootdir!$datarootdir$ac_delim
21884datadir!$datadir$ac_delim
21885sysconfdir!$sysconfdir$ac_delim
21886sharedstatedir!$sharedstatedir$ac_delim
21887localstatedir!$localstatedir$ac_delim
21888includedir!$includedir$ac_delim
21889oldincludedir!$oldincludedir$ac_delim
21890docdir!$docdir$ac_delim
21891infodir!$infodir$ac_delim
21892htmldir!$htmldir$ac_delim
21893dvidir!$dvidir$ac_delim
21894pdfdir!$pdfdir$ac_delim
21895psdir!$psdir$ac_delim
21896libdir!$libdir$ac_delim
21897localedir!$localedir$ac_delim
21898mandir!$mandir$ac_delim
21899DEFS!$DEFS$ac_delim
21900ECHO_C!$ECHO_C$ac_delim
21901ECHO_N!$ECHO_N$ac_delim
21902ECHO_T!$ECHO_T$ac_delim
21903LIBS!$LIBS$ac_delim
21904build_alias!$build_alias$ac_delim
21905host_alias!$host_alias$ac_delim
21906target_alias!$target_alias$ac_delim
21907LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021908CC!$CC$ac_delim
21909CFLAGS!$CFLAGS$ac_delim
21910LDFLAGS!$LDFLAGS$ac_delim
21911CPPFLAGS!$CPPFLAGS$ac_delim
21912ac_ct_CC!$ac_ct_CC$ac_delim
21913EXEEXT!$EXEEXT$ac_delim
21914OBJEXT!$OBJEXT$ac_delim
21915CXX!$CXX$ac_delim
21916CXXFLAGS!$CXXFLAGS$ac_delim
21917ac_ct_CXX!$ac_ct_CXX$ac_delim
21918CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021920ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21921LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922build!$build$ac_delim
21923build_cpu!$build_cpu$ac_delim
21924build_vendor!$build_vendor$ac_delim
21925build_os!$build_os$ac_delim
21926host!$host$ac_delim
21927host_cpu!$host_cpu$ac_delim
21928host_vendor!$host_vendor$ac_delim
21929host_os!$host_os$ac_delim
21930target!$target$ac_delim
21931target_cpu!$target_cpu$ac_delim
21932target_vendor!$target_vendor$ac_delim
21933target_os!$target_os$ac_delim
21934OS!$OS$ac_delim
21935HOST_OS!$HOST_OS$ac_delim
21936TARGET_OS!$TARGET_OS$ac_delim
21937LINKALL!$LINKALL$ac_delim
21938NOLINKALL!$NOLINKALL$ac_delim
21939LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21940LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21941ARCH!$ARCH$ac_delim
21942ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021943GREP!$GREP$ac_delim
21944EGREP!$EGREP$ac_delim
21945LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21946BUILD_CC!$BUILD_CC$ac_delim
21947BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21948BUILD_CXX!$BUILD_CXX$ac_delim
21949CVSBUILD!$CVSBUILD$ac_delim
21950ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21951ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21952DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21953ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21954EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21955DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21956DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21957JIT!$JIT$ac_delim
21958TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021959ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021960ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21961ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021962ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021964ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021965ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021966ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021967_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021969 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021970 break
21971 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021972 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21973echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21974 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021975 else
21976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021977 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021978done
21979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21981if test -n "$ac_eof"; then
21982 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21983 ac_eof=`expr $ac_eof + 1`
21984fi
21985
21986cat >>$CONFIG_STATUS <<_ACEOF
21987cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21988/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021989_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021990sed '
21991s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21992s/^/s,@/; s/!/@,|#_!!_#|/
21993:n
21994t n
21995s/'"$ac_delim"'$/,g/; t
21996s/$/\\/; p
21997N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21998' >>$CONFIG_STATUS <conf$$subs.sed
21999rm -f conf$$subs.sed
22000cat >>$CONFIG_STATUS <<_ACEOF
22001CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022002_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022003
22004
22005ac_delim='%!_!# '
22006for ac_last_try in false false false false false :; do
22007 cat >conf$$subs.sed <<_ACEOF
Eric Christopherffee5722011-09-16 20:36:25 +000022008TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22009LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22010LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022011LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022012LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022013ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022014OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022015EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022016EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022017CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022018BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022019NM!$NM$ac_delim
22020ifGNUmake!$ifGNUmake$ac_delim
22021LN_S!$LN_S$ac_delim
22022CMP!$CMP$ac_delim
22023CP!$CP$ac_delim
22024DATE!$DATE$ac_delim
22025FIND!$FIND$ac_delim
22026MKDIR!$MKDIR$ac_delim
22027MV!$MV$ac_delim
22028RANLIB!$RANLIB$ac_delim
22029AR!$AR$ac_delim
Eric Christopherf3a5ba52011-10-26 00:52:13 +000022030STRIP!$STRIP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022031RM!$RM$ac_delim
22032SED!$SED$ac_delim
22033TAR!$TAR$ac_delim
22034BINPWD!$BINPWD$ac_delim
22035GRAPHVIZ!$GRAPHVIZ$ac_delim
22036DOT!$DOT$ac_delim
22037FDP!$FDP$ac_delim
22038NEATO!$NEATO$ac_delim
22039TWOPI!$TWOPI$ac_delim
22040CIRCO!$CIRCO$ac_delim
22041GV!$GV$ac_delim
22042DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022043XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044PERL!$PERL$ac_delim
22045HAVE_PERL!$HAVE_PERL$ac_delim
22046INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22047INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22048INSTALL_DATA!$INSTALL_DATA$ac_delim
22049BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022050CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022051DOXYGEN!$DOXYGEN$ac_delim
22052GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022053GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022054POD2HTML!$POD2HTML$ac_delim
22055POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022056PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022057RUNTEST!$RUNTEST$ac_delim
22058TCLSH!$TCLSH$ac_delim
22059ZIP!$ZIP$ac_delim
22060OCAMLC!$OCAMLC$ac_delim
22061OCAMLOPT!$OCAMLOPT$ac_delim
22062OCAMLDEP!$OCAMLDEP$ac_delim
22063OCAMLDOC!$OCAMLDOC$ac_delim
22064GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022065HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22067INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22068CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22069CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22070LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022071NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22072NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22073USE_UDIS86!$USE_UDIS86$ac_delim
22074USE_OPROFILE!$USE_OPROFILE$ac_delim
22075HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22076HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22077MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022078SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022079SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022080LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22081LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22082LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22083LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22084LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22085LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22086LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22087LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22088LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22089LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22090BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22091ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022092OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22093ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22094RPATH!$RPATH$ac_delim
22095RDYNAMIC!$RDYNAMIC$ac_delim
22096LIBOBJS!$LIBOBJS$ac_delim
22097LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022098_ACEOF
22099
Eric Christopherf3a5ba52011-10-26 00:52:13 +000022100 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022101 break
22102 elif $ac_last_try; then
22103 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22104echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22105 { (exit 1); exit 1; }; }
22106 else
22107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22108 fi
22109done
22110
22111ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22112if test -n "$ac_eof"; then
22113 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22114 ac_eof=`expr $ac_eof + 1`
22115fi
22116
22117cat >>$CONFIG_STATUS <<_ACEOF
22118cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022119/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22120_ACEOF
22121sed '
22122s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22123s/^/s,@/; s/!/@,|#_!!_#|/
22124:n
22125t n
22126s/'"$ac_delim"'$/,g/; t
22127s/$/\\/; p
22128N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22129' >>$CONFIG_STATUS <conf$$subs.sed
22130rm -f conf$$subs.sed
22131cat >>$CONFIG_STATUS <<_ACEOF
22132:end
22133s/|#_!!_#|//g
22134CEOF$ac_eof
22135_ACEOF
22136
22137
Reid Spencera773bd52006-08-04 18:18:08 +000022138# VPATH may cause trouble with some makes, so we remove $(srcdir),
22139# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22140# trailing colons and then remove the whole line if VPATH becomes empty
22141# (actually we leave an empty line to preserve line numbers).
22142if test "x$srcdir" = x.; then
22143 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22144s/:*\$(srcdir):*/:/
22145s/:*\${srcdir}:*/:/
22146s/:*@srcdir@:*/:/
22147s/^\([^=]*=[ ]*\):*/\1/
22148s/:*$//
22149s/^[^=]*=[ ]*$//
22150}'
22151fi
22152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022153cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022154fi # test -n "$CONFIG_FILES"
22155
Reid Spencera773bd52006-08-04 18:18:08 +000022156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022157for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022158do
22159 case $ac_tag in
22160 :[FHLC]) ac_mode=$ac_tag; continue;;
22161 esac
22162 case $ac_mode$ac_tag in
22163 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022164 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22165echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22166 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022167 :[FH]-) ac_tag=-:-;;
22168 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22169 esac
22170 ac_save_IFS=$IFS
22171 IFS=:
22172 set x $ac_tag
22173 IFS=$ac_save_IFS
22174 shift
22175 ac_file=$1
22176 shift
22177
22178 case $ac_mode in
22179 :L) ac_source=$1;;
22180 :[FH])
22181 ac_file_inputs=
22182 for ac_f
22183 do
22184 case $ac_f in
22185 -) ac_f="$tmp/stdin";;
22186 *) # Look for the file first in the build tree, then in the source tree
22187 # (if the path is not absolute). The absolute path cannot be DOS-style,
22188 # because $ac_f cannot contain `:'.
22189 test -f "$ac_f" ||
22190 case $ac_f in
22191 [\\/$]*) false;;
22192 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22193 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022194 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22195echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22196 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022197 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022199 done
22200
22201 # Let's still pretend it is `configure' which instantiates (i.e., don't
22202 # use $as_me), people would be surprised to read:
22203 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022204 configure_input="Generated from "`IFS=:
22205 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022206 if test x"$ac_file" != x-; then
22207 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022208 { echo "$as_me:$LINENO: creating $ac_file" >&5
22209echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022210 fi
22211
22212 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022213 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022214 esac
22215 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022216 esac
22217
Reid Spencera773bd52006-08-04 18:18:08 +000022218 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022219$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022220 X"$ac_file" : 'X\(//\)[^/]' \| \
22221 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022222 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022223echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22225 s//\1/
22226 q
22227 }
22228 /^X\(\/\/\)[^/].*/{
22229 s//\1/
22230 q
22231 }
22232 /^X\(\/\/\)$/{
22233 s//\1/
22234 q
22235 }
22236 /^X\(\/\).*/{
22237 s//\1/
22238 q
22239 }
22240 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022241 { as_dir="$ac_dir"
22242 case $as_dir in #(
22243 -*) as_dir=./$as_dir;;
22244 esac
22245 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22246 as_dirs=
22247 while :; do
22248 case $as_dir in #(
22249 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22250 *) as_qdir=$as_dir;;
22251 esac
22252 as_dirs="'$as_qdir' $as_dirs"
22253 as_dir=`$as_dirname -- "$as_dir" ||
22254$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22255 X"$as_dir" : 'X\(//\)[^/]' \| \
22256 X"$as_dir" : 'X\(//\)$' \| \
22257 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22258echo X"$as_dir" |
22259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22260 s//\1/
22261 q
22262 }
22263 /^X\(\/\/\)[^/].*/{
22264 s//\1/
22265 q
22266 }
22267 /^X\(\/\/\)$/{
22268 s//\1/
22269 q
22270 }
22271 /^X\(\/\).*/{
22272 s//\1/
22273 q
22274 }
22275 s/.*/./; q'`
22276 test -d "$as_dir" && break
22277 done
22278 test -z "$as_dirs" || eval "mkdir $as_dirs"
22279 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22280echo "$as_me: error: cannot create directory $as_dir" >&2;}
22281 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022282 ac_builddir=.
22283
Reid Spencera773bd52006-08-04 18:18:08 +000022284case "$ac_dir" in
22285.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22286*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022287 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022288 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022289 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022290 case $ac_top_builddir_sub in
22291 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22292 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22293 esac ;;
22294esac
22295ac_abs_top_builddir=$ac_pwd
22296ac_abs_builddir=$ac_pwd$ac_dir_suffix
22297# for backward compatibility:
22298ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022299
22300case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022301 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022302 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022303 ac_top_srcdir=$ac_top_builddir_sub
22304 ac_abs_top_srcdir=$ac_pwd ;;
22305 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022306 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022307 ac_top_srcdir=$srcdir
22308 ac_abs_top_srcdir=$srcdir ;;
22309 *) # Relative name.
22310 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22311 ac_top_srcdir=$ac_top_build_prefix$srcdir
22312 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022313esac
Reid Spencera773bd52006-08-04 18:18:08 +000022314ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022315
John Criswell7a73b802003-06-30 21:59:07 +000022316
Reid Spencera773bd52006-08-04 18:18:08 +000022317 case $ac_mode in
22318 :F)
22319 #
22320 # CONFIG_FILE
22321 #
John Criswell7a73b802003-06-30 21:59:07 +000022322
22323 case $INSTALL in
22324 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022325 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022326 esac
John Criswell7a73b802003-06-30 21:59:07 +000022327_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022329cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022330# If the template does not know about datarootdir, expand it.
22331# FIXME: This hack should be removed a few years after 2.60.
22332ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022333
22334case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022335 p
22336 q
22337}
22338/@datadir@/p
22339/@docdir@/p
22340/@infodir@/p
22341/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022342/@mandir@/p
22343' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022344*datarootdir*) ac_datarootdir_seen=yes;;
22345*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022346 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22347echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022348_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022349cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022350 ac_datarootdir_hack='
22351 s&@datadir@&$datadir&g
22352 s&@docdir@&$docdir&g
22353 s&@infodir@&$infodir&g
22354 s&@localedir@&$localedir&g
22355 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022356 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022357esac
22358_ACEOF
22359
22360# Neutralize VPATH when `$srcdir' = `.'.
22361# Shell code in configure.ac might set extrasub.
22362# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022363cat >>$CONFIG_STATUS <<_ACEOF
22364 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022365$extrasub
22366_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022367cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022368:t
22369/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022370s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022371s&@top_builddir@&$ac_top_builddir_sub&;t t
22372s&@srcdir@&$ac_srcdir&;t t
22373s&@abs_srcdir@&$ac_abs_srcdir&;t t
22374s&@top_srcdir@&$ac_top_srcdir&;t t
22375s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22376s&@builddir@&$ac_builddir&;t t
22377s&@abs_builddir@&$ac_abs_builddir&;t t
22378s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22379s&@INSTALL@&$ac_INSTALL&;t t
22380$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022381" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022382
Reid Spencera773bd52006-08-04 18:18:08 +000022383test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22384 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22385 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022386 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022387which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022388echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022389which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022390
Reid Spencera773bd52006-08-04 18:18:08 +000022391 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022392 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022393 -) cat "$tmp/out"; rm -f "$tmp/out";;
22394 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22395 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022396 ;;
22397 :H)
22398 #
22399 # CONFIG_HEADER
22400 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022401_ACEOF
22402
22403# Transform confdefs.h into a sed script `conftest.defines', that
22404# substitutes the proper values into config.h.in to produce config.h.
22405rm -f conftest.defines conftest.tail
22406# First, append a space to every undef/define line, to ease matching.
22407echo 's/$/ /' >conftest.defines
22408# Then, protect against being on the right side of a sed subst, or in
22409# an unquoted here document, in config.status. If some macros were
22410# called several times there might be several #defines for the same
22411# symbol, which is useless. But do not sort them, since the last
22412# AC_DEFINE must be honored.
22413ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22414# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22415# NAME is the cpp macro being defined, VALUE is the value it is being given.
22416# PARAMS is the parameter list in the macro definition--in most cases, it's
22417# just an empty string.
22418ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22419ac_dB='\\)[ (].*,\\1define\\2'
22420ac_dC=' '
22421ac_dD=' ,'
22422
22423uniq confdefs.h |
22424 sed -n '
22425 t rset
22426 :rset
22427 s/^[ ]*#[ ]*define[ ][ ]*//
22428 t ok
22429 d
22430 :ok
22431 s/[\\&,]/\\&/g
22432 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22433 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22434 ' >>conftest.defines
22435
22436# Remove the space that was appended to ease matching.
22437# Then replace #undef with comments. This is necessary, for
22438# example, in the case of _POSIX_SOURCE, which is predefined and required
22439# on some systems where configure will not decide to define it.
22440# (The regexp can be short, since the line contains either #define or #undef.)
22441echo 's/ $//
22442s,^[ #]*u.*,/* & */,' >>conftest.defines
22443
22444# Break up conftest.defines:
22445ac_max_sed_lines=50
22446
22447# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22448# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22449# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22450# et cetera.
22451ac_in='$ac_file_inputs'
22452ac_out='"$tmp/out1"'
22453ac_nxt='"$tmp/out2"'
22454
22455while :
22456do
22457 # Write a here document:
22458 cat >>$CONFIG_STATUS <<_ACEOF
22459 # First, check the format of the line:
22460 cat >"\$tmp/defines.sed" <<\\CEOF
22461/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22462/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22463b
22464:def
22465_ACEOF
22466 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22467 echo 'CEOF
22468 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22469 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22470 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22471 grep . conftest.tail >/dev/null || break
22472 rm -f conftest.defines
22473 mv conftest.tail conftest.defines
22474done
22475rm -f conftest.defines conftest.tail
22476
22477echo "ac_result=$ac_in" >>$CONFIG_STATUS
22478cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022479 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022480 echo "/* $configure_input */" >"$tmp/config.h"
22481 cat "$ac_result" >>"$tmp/config.h"
22482 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22483 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22484echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022485 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022486 rm -f $ac_file
22487 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022488 fi
22489 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022490 echo "/* $configure_input */"
22491 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022492 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022493 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022494 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022496 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22497echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022498 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022499 esac
John Criswell7a73b802003-06-30 21:59:07 +000022500
Reid Spencera773bd52006-08-04 18:18:08 +000022501
22502 case $ac_file$ac_mode in
22503 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022504 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022505 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022506 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022507 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022508 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022509 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022510 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022511 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022512 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022513 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022514 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022515 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022516 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022517 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022518 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022519 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022520 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022521 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022522 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022523 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022524 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022525 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022526 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022527 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022528 ${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 +000022529
22530 esac
22531done # for ac_tag
22532
John Criswell7a73b802003-06-30 21:59:07 +000022533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022534{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022535_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022536chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022537ac_clean_files=$ac_clean_files_save
22538
22539
22540# configure is writing to config.log, and then calls config.status.
22541# config.status does its own redirection, appending to config.log.
22542# Unfortunately, on DOS this fails, as config.log is still kept open
22543# by configure, so config.status won't be able to write to it; its
22544# output is simply discarded. So we exec the FD to /dev/null,
22545# effectively closing config.log, so it can be properly (re)opened and
22546# appended to by config.status. When coming back to configure, we
22547# need to make the FD available again.
22548if test "$no_create" != yes; then
22549 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022550 ac_config_status_args=
22551 test "$silent" = yes &&
22552 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022553 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022555 exec 5>>config.log
22556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22557 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022558 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022559fi
22560
John Criswell12399a12003-09-30 15:55:44 +000022561#
22562# CONFIG_SUBDIRS section.
22563#
22564if test "$no_recursion" != yes; then
22565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022566 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022567 ac_sub_configure_args=
22568 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022569 eval "set x $ac_configure_args"
22570 shift
22571 for ac_arg
22572 do
John Criswell12399a12003-09-30 15:55:44 +000022573 if test -n "$ac_prev"; then
22574 ac_prev=
22575 continue
22576 fi
22577 case $ac_arg in
22578 -cache-file | --cache-file | --cache-fil | --cache-fi \
22579 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22580 ac_prev=cache_file ;;
22581 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22582 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22583 | --c=*)
22584 ;;
22585 --config-cache | -C)
22586 ;;
22587 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22588 ac_prev=srcdir ;;
22589 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22590 ;;
22591 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22592 ac_prev=prefix ;;
22593 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22594 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022595 *)
22596 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022597 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022598 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022599 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022600 esac
22601 done
22602
22603 # Always prepend --prefix to ensure using the same prefix
22604 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022605 ac_arg="--prefix=$prefix"
22606 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022607 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022608 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022609 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022610
22611 ac_popdir=`pwd`
22612 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22613
22614 # Do not complain, so a configure script can configure whichever
22615 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022616 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022617
Reid Spencera773bd52006-08-04 18:18:08 +000022618 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022619 echo "$as_me:$LINENO: $ac_msg" >&5
22620 echo "$ac_msg" >&6
22621 { as_dir="$ac_dir"
22622 case $as_dir in #(
22623 -*) as_dir=./$as_dir;;
22624 esac
22625 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22626 as_dirs=
22627 while :; do
22628 case $as_dir in #(
22629 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22630 *) as_qdir=$as_dir;;
22631 esac
22632 as_dirs="'$as_qdir' $as_dirs"
22633 as_dir=`$as_dirname -- "$as_dir" ||
22634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22635 X"$as_dir" : 'X\(//\)[^/]' \| \
22636 X"$as_dir" : 'X\(//\)$' \| \
22637 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22638echo X"$as_dir" |
22639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22640 s//\1/
22641 q
22642 }
22643 /^X\(\/\/\)[^/].*/{
22644 s//\1/
22645 q
22646 }
22647 /^X\(\/\/\)$/{
22648 s//\1/
22649 q
22650 }
22651 /^X\(\/\).*/{
22652 s//\1/
22653 q
22654 }
22655 s/.*/./; q'`
22656 test -d "$as_dir" && break
22657 done
22658 test -z "$as_dirs" || eval "mkdir $as_dirs"
22659 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22660echo "$as_me: error: cannot create directory $as_dir" >&2;}
22661 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022662 ac_builddir=.
22663
Reid Spencera773bd52006-08-04 18:18:08 +000022664case "$ac_dir" in
22665.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22666*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022667 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022668 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022669 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022670 case $ac_top_builddir_sub in
22671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22673 esac ;;
22674esac
22675ac_abs_top_builddir=$ac_pwd
22676ac_abs_builddir=$ac_pwd$ac_dir_suffix
22677# for backward compatibility:
22678ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022679
22680case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022681 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022682 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022683 ac_top_srcdir=$ac_top_builddir_sub
22684 ac_abs_top_srcdir=$ac_pwd ;;
22685 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022686 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022687 ac_top_srcdir=$srcdir
22688 ac_abs_top_srcdir=$srcdir ;;
22689 *) # Relative name.
22690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22691 ac_top_srcdir=$ac_top_build_prefix$srcdir
22692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022693esac
Reid Spencera773bd52006-08-04 18:18:08 +000022694ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022695
22696
Reid Spencera773bd52006-08-04 18:18:08 +000022697 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022698
22699 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022700 if test -f "$ac_srcdir/configure.gnu"; then
22701 ac_sub_configure=$ac_srcdir/configure.gnu
22702 elif test -f "$ac_srcdir/configure"; then
22703 ac_sub_configure=$ac_srcdir/configure
22704 elif test -f "$ac_srcdir/configure.in"; then
22705 # This should be Cygnus configure.
22706 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022707 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022708 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22709echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022710 ac_sub_configure=
22711 fi
22712
22713 # The recursion is here.
22714 if test -n "$ac_sub_configure"; then
22715 # Make the cache file name correct relative to the subdirectory.
22716 case $cache_file in
22717 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022718 *) # Relative name.
22719 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022720 esac
22721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022722 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22723echo "$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 +000022724 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022725 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22726 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022727 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22728echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22729 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022730 fi
22731
Reid Spencera773bd52006-08-04 18:18:08 +000022732 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022733 done
22734fi
22735