blob: 62a6478e0af0cde0393174e95ee4d8c252baedef [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
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#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 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.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
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
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000687ENABLE_CXX11
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000688ENABLE_OPTIMIZED
689ENABLE_PROFILING
690DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000691ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_EXPENSIVE_CHECKS
693EXPENSIVE_CHECKS
694DEBUG_RUNTIME
695DEBUG_SYMBOLS
696JIT
697TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000698ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000700LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000701ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000703ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000704ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000705ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706TARGETS_TO_BUILD
707LLVM_ENUM_TARGETS
708LLVM_ENUM_ASM_PRINTERS
709LLVM_ENUM_ASM_PARSERS
710LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711OPTIMIZE_OPTION
712EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000713EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000714CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000716INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000717NM
718ifGNUmake
719LN_S
720CMP
721CP
722DATE
723FIND
724MKDIR
725MV
726RANLIB
727AR
728RM
729SED
730TAR
731BINPWD
732GRAPHVIZ
733DOT
734FDP
735NEATO
736TWOPI
737CIRCO
738GV
739DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000740XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000749PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000750ZIP
751OCAMLC
752OCAMLOPT
753OCAMLDEP
754OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000755GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000756HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000757INSTALL_LTDL_TRUE
758INSTALL_LTDL_FALSE
759CONVENIENCE_LTDL_TRUE
760CONVENIENCE_LTDL_FALSE
761LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000764COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000765USE_UDIS86
766USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000767USE_INTEL_JITEVENTS
768INTEL_JITEVENTS_INCDIR
769INTEL_JITEVENTS_LIBDIR
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000770XML2CONFIG
771LIBXML2_LIBS
772LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773HAVE_PTHREAD
774HUGE_VAL_SANITY
775MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000777SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVM_PREFIX
779LLVM_BINDIR
780LLVM_LIBDIR
781LLVM_DATADIR
782LLVM_DOCSDIR
783LLVM_ETCDIR
784LLVM_INCLUDEDIR
785LLVM_INFODIR
786LLVM_MANDIR
787LLVM_CONFIGTIME
788BINDINGS_TO_BUILD
789ALL_BINDINGS
790OCAML_LIBDIR
791ENABLE_VISIBILITY_INLINES_HIDDEN
792RPATH
793RDYNAMIC
794LIBOBJS
795LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000796ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000804CXX
805CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000806CCC
807CPP'
John Criswell0157f502010-03-19 21:31:39 +0000808ac_subdirs_all='projects/llvm-gcc
809projects/test-suite
810projects/llvm-test
811projects/poolalloc
812projects/llvm-poolalloc
813projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000815projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-java
818projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000819projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000820projects/llvm-kernel
821tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000848# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000857includedir='${prefix}/include'
858oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000868
869ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000870ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000871for ac_option
872do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000875 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000876 ac_prev=
877 continue
878 fi
879
Reid Spencera773bd52006-08-04 18:18:08 +0000880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
John Criswell7a73b802003-06-30 21:59:07 +0000884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
Reid Spencera773bd52006-08-04 18:18:08 +0000887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000912 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000914 datadir=$ac_optarg ;;
915
Reid Spencera773bd52006-08-04 18:18:08 +0000916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
John Criswell7a73b802003-06-30 21:59:07 +0000923 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000925 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000941
942 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000944 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
Reid Spencera773bd52006-08-04 18:18:08 +0000976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
John Criswell7a73b802003-06-30 21:59:07 +0000982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
Reid Spencera773bd52006-08-04 18:18:08 +00001006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
John Criswell7a73b802003-06-30 21:59:07 +00001011 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
Reid Spencera773bd52006-08-04 18:18:08 +00001080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
John Criswell7a73b802003-06-30 21:59:07 +00001090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001141 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001147
1148 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001186 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001204fi
1205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001206# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001211do
Reid Spencera773bd52006-08-04 18:18:08 +00001212 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001213 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001216 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1236 fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
Reid Spencera773bd52006-08-04 18:18:08 +00001245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001253
1254
John Criswell7a73b802003-06-30 21:59:07 +00001255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001258 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001259 ac_confdir=`$as_dirname -- "$0" ||
1260$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001283 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001293fi
Reid Spencera773bd52006-08-04 18:18:08 +00001294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
John Criswell7a73b802003-06-30 21:59:07 +00001315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001323\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
John Criswell7a73b802003-06-30 21:59:07 +00001343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001347 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001371 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001389 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001390 esac
1391 cat <<\_ACEOF
1392
1393Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001396 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001397 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001398 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 --enable-optimized Compile with optimizations enabled (default is NO)
1400 --enable-profiling Compile with profiling enabled (default is NO)
1401 --enable-assertions Compile with assertion checks enabled (default is
1402 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001403 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001404 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001405 Compile with expensive debug checks enabled (default
1406 is NO)
1407 --enable-debug-runtime Build runtime libs with debug symbols (default is
1408 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001409 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1410 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001411 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001412 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001413 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001414 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001415 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001416 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001417 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001418 --enable-shared Build a shared library and link tools against it
1419 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001420 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001421 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001422 --enable-timestamps Enable embedding timestamp information in build
1423 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001424 --enable-targets Build specific host targets: all or
1425 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001426 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001427 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001428 --enable-experimental-targets
1429 Build experimental host targets: disable or
1430 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001431 --enable-bindings Build specific language bindings:
1432 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001433 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001434 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001435
1436Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001441 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001442 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001445 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001446 --with-clang-resource-dir
1447 Relative directory from the Clang binary for
1448 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001449 --with-c-include-dirs Colon separated list of directories clang will
1450 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001451 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001452 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001455 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001456 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001457 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001458 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001461 --with-intel-jitevents=<vtune-amplifier-dir>
1462 Specify location of run-time support library for
1463 Intel JIT API
1464 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001465
1466Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001467 CC C compiler command
1468 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001472 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001475 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
Eric Christopherf33ab862011-12-21 00:52:44 +00001480Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001481_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001482ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001489 ac_builddir=.
1490
Reid Spencera773bd52006-08-04 18:18:08 +00001491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001495 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001496 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001506
1507case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001508 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001509 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001513 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001520esac
Reid Spencera773bd52006-08-04 18:18:08 +00001521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001522
Reid Spencera773bd52006-08-04 18:18:08 +00001523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001531 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001535 done
1536fi
1537
Reid Spencera773bd52006-08-04 18:18:08 +00001538test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001539if $ac_init_version; then
1540 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001541LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001542generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001544Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15452002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001548
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001549Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001550_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001551 exit
John Criswell7a73b802003-06-30 21:59:07 +00001552fi
Reid Spencera773bd52006-08-04 18:18:08 +00001553cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001554This file contains any messages produced by compilers while
1555running configure, to aid debugging if configure makes a mistake.
1556
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001557It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001558generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560 $ $0 $@
1561
1562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001563exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001564{
1565cat <<_ASUNAME
1566## --------- ##
1567## Platform. ##
1568## --------- ##
1569
1570hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575
1576/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1578
1579/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1580/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1581/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001582/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001583/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1584/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1585/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1586
1587_ASUNAME
1588
1589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590for as_dir in $PATH
1591do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001594 echo "PATH: $as_dir"
1595done
Reid Spencera773bd52006-08-04 18:18:08 +00001596IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001597
1598} >&5
1599
1600cat >&5 <<_ACEOF
1601
1602
1603## ----------- ##
1604## Core tests. ##
1605## ----------- ##
1606
1607_ACEOF
1608
1609
1610# Keep a trace of the command line.
1611# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001612# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001613# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001614# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001615ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001616ac_configure_args0=
1617ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001618ac_must_keep_next=false
1619for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001620do
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 for ac_arg
1622 do
1623 case $ac_arg in
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1627 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001628 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 esac
1631 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001632 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001634 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001636 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001638 case $ac_arg in
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1645 esac
1646 ;;
1647 -* ) ac_must_keep_next=true ;;
1648 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001651 ;;
1652 esac
1653 done
John Criswell7a73b802003-06-30 21:59:07 +00001654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001655$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656$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 +00001657
1658# When interrupted or exit'd, cleanup temporary files, and complete
1659# config.log. We remove comments because anyway the quotes in there
1660# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001661# WARNING: Use '\'' to represent an apostrophe within the trap.
1662# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001663trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1665 {
1666 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001667
John Criswell7a73b802003-06-30 21:59:07 +00001668 cat <<\_ASBOX
1669## ---------------- ##
1670## Cache variables. ##
1671## ---------------- ##
1672_ASBOX
1673 echo
1674 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001675(
1676 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677 eval ac_val=\$$ac_var
1678 case $ac_val in #(
1679 *${as_nl}*)
1680 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001683 esac
1684 case $ac_var in #(
1685 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001686 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001687 esac ;;
1688 esac
1689 done
John Criswell7a73b802003-06-30 21:59:07 +00001690 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001691 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001693 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001694 "s/'\''/'\''\\\\'\'''\''/g;
1695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001697 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001699 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac |
1701 sort
1702)
John Criswell7a73b802003-06-30 21:59:07 +00001703 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001704
1705 cat <<\_ASBOX
1706## ----------------- ##
1707## Output variables. ##
1708## ----------------- ##
1709_ASBOX
1710 echo
1711 for ac_var in $ac_subst_vars
1712 do
Reid Spencera773bd52006-08-04 18:18:08 +00001713 eval ac_val=\$$ac_var
1714 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001716 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001717 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 done | sort
1719 echo
1720
1721 if test -n "$ac_subst_files"; then
1722 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001723## ------------------- ##
1724## File substitutions. ##
1725## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_files
1729 do
Reid Spencera773bd52006-08-04 18:18:08 +00001730 eval ac_val=\$$ac_var
1731 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001733 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001735 done | sort
1736 echo
1737 fi
1738
John Criswell7a73b802003-06-30 21:59:07 +00001739 if test -s confdefs.h; then
1740 cat <<\_ASBOX
1741## ----------- ##
1742## confdefs.h. ##
1743## ----------- ##
1744_ASBOX
1745 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001746 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001747 echo
1748 fi
1749 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001750 echo "$as_me: caught signal $ac_signal"
1751 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001752 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001753 rm -f core *.core core.conftest.* &&
1754 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001755 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001756' 0
John Criswell7a73b802003-06-30 21:59:07 +00001757for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001758 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001759done
1760ac_signal=0
1761
1762# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001763rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001764
1765# Predefined preprocessor variables.
1766
1767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_NAME "$PACKAGE_NAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_VERSION "$PACKAGE_VERSION"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_STRING "$PACKAGE_STRING"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1789_ACEOF
1790
1791
1792# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001794if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001796elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799 set x "$ac_default_prefix/share/config.site" \
1800 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001802shift
1803for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001804do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 if test -r "$ac_site_file"; then
1806 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001808 sed 's/^/| /' "$ac_site_file" >&5
1809 . "$ac_site_file"
1810 fi
1811done
1812
1813if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 # Some versions of bash will fail to source /dev/null (special
1815 # files actually), so we avoid doing that.
1816 if test -f "$cache_file"; then
1817 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001819 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001820 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001822 esac
1823 fi
1824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001825 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001827 >$cache_file
1828fi
1829
1830# Check that the precious variables saved in the cache have kept the same
1831# value.
1832ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001833for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001834 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001836 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001838 case $ac_old_set,$ac_new_set in
1839 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 ac_cache_corrupted=: ;;
1843 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001844 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001846 ac_cache_corrupted=: ;;
1847 ,);;
1848 *)
1849 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001850 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1853echo "$as_me: former value: $ac_old_val" >&2;}
1854 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1855echo "$as_me: current value: $ac_new_val" >&2;}
1856 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001857 fi;;
1858 esac
1859 # Pass precious variables to config.status.
1860 if test "$ac_new_set" = set; then
1861 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 *) ac_arg=$ac_var=$ac_new_val ;;
1864 esac
1865 case " $ac_configure_args " in
1866 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001868 esac
1869 fi
1870done
1871if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001872 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
Reid Spencera773bd52006-08-04 18:18:08 +00001902
John Criswell7a73b802003-06-30 21:59:07 +00001903ac_ext=c
1904ac_cpp='$CPP $CPPFLAGS'
1905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908
1909
1910
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001911cat >>confdefs.h <<\_ACEOF
1912#define LLVM_VERSION_MAJOR 3
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001917#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001918_ACEOF
1919
1920
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001921LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001922
1923
1924
1925
1926
1927
1928
John Criswell7a73b802003-06-30 21:59:07 +00001929ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001930for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 if test -f "$ac_dir/install-sh"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1934 break
1935 elif test -f "$ac_dir/install.sh"; then
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1938 break
1939 elif test -f "$ac_dir/shtool"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1942 break
1943 fi
John Criswell7a73b802003-06-30 21:59:07 +00001944done
1945if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1947echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1948 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001949fi
Reid Spencera773bd52006-08-04 18:18:08 +00001950
1951# These three variables are undocumented and unsupported,
1952# and are intended to be withdrawn in a future Autoconf release.
1953# They can cause serious problems if a builder's source tree is in a directory
1954# whose full name contains unusual characters.
1955ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1958
John Criswell7a73b802003-06-30 21:59:07 +00001959
John Criswell392aaa32003-07-22 19:18:09 +00001960
Reid Spencer2706f8c2004-09-19 23:53:36 +00001961if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001962 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001963 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1964echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1965 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001966 fi
John Criswell93e1c722003-09-15 17:04:06 +00001967fi
1968
Nick Lewycky83fc4472009-09-29 05:48:51 +00001969ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001970ac_cpp='$CPP $CPPFLAGS'
1971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001974if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001975 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001976 do
1977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001983else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001986else
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 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 +00001994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001996 break 2
1997 fi
1998done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999done
Reid Spencera773bd52006-08-04 18:18:08 +00002000IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002001
2002fi
2003fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002004CC=$ac_cv_prog_CC
2005if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002006 { echo "$as_me:$LINENO: result: $CC" >&5
2007echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002008else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002009 { echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002011fi
2012
Reid Spencera773bd52006-08-04 18:18:08 +00002013
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002014 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002015 done
2016fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002017if test -z "$CC"; then
2018 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002019 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002020do
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002027else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 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 +00002038 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002040 break 2
2041 fi
2042done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043done
Reid Spencera773bd52006-08-04 18:18:08 +00002044IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002045
2046fi
2047fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002050 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002053 { echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002055fi
2056
Reid Spencera773bd52006-08-04 18:18:08 +00002057
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002059done
John Criswell7a73b802003-06-30 21:59:07 +00002060
Reid Spencera773bd52006-08-04 18:18:08 +00002061 if test "x$ac_ct_CC" = x; then
2062 CC=""
2063 else
2064 case $cross_compiling:$ac_tool_warned in
2065yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067whose name does not start with the host triplet. If you think this
2068configuration is useful to you, please write to autoconf@gnu.org." >&5
2069echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070whose name does not start with the host triplet. If you think this
2071configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002072ac_tool_warned=yes ;;
2073esac
2074 CC=$ac_ct_CC
2075 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002076fi
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: no acceptable C compiler found in \$PATH
2082See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002084
John Criswell7a73b802003-06-30 21:59:07 +00002085# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086echo "$as_me:$LINENO: checking for C compiler version" >&5
2087ac_compiler=`set X $ac_compile; echo $2`
2088{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002095 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098{ (ac_try="$ac_compiler -v >&5"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -v >&5") 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108{ (ac_try="$ac_compiler -V >&5"
2109case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112esac
2113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -V >&5") 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002119cat >conftest.$ac_ext <<_ACEOF
2120/* confdefs.h. */
2121_ACEOF
2122cat confdefs.h >>conftest.$ac_ext
2123cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002125
John Criswell7a73b802003-06-30 21:59:07 +00002126int
2127main ()
2128{
2129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002135ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002136# Try to create an executable without -o first, disregard a.out.
2137# It will help us diagnose broken compilers, and finding out an intuition
2138# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002139{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142#
2143# List of possible output files, starting from the most likely.
2144# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145# only as a last resort. b.out is created by i960 compilers.
2146ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2147#
2148# The IRIX 6 linker writes into existing files which may not be
2149# executable, retaining their permissions. Remove them first so a
2150# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002151ac_rmfiles=
2152for ac_file in $ac_files
2153do
2154 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2157 esac
2158done
2159rm -f $ac_rmfiles
2160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002162case "(($ac_try" in
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2165esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002167 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002168 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002171 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173# in a Makefile. We should not override ac_cv_exeext if it was cached,
2174# so that the user can short-circuit this test for compilers unknown to
2175# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002176for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002177do
2178 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002179 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 # We found the default executable, but exeext='' is most
2184 # certainly right.
2185 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002187 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002188 then :; else
2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190 fi
2191 # We set ac_cv_exeext here because the later test for it is not
2192 # safe: cross compilers may not add the suffix if given an `-o'
2193 # argument, so we may need to know it at that point already.
2194 # Even if this section looks crufty: it has the advantage of
2195 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002196 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002197 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002198 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002199 esac
2200done
Reid Spencera773bd52006-08-04 18:18:08 +00002201test "$ac_cv_exeext" = no && ac_cv_exeext=
2202
John Criswell7a73b802003-06-30 21:59:07 +00002203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002205sed 's/^/| /' conftest.$ac_ext >&5
2206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002207{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: C compiler cannot create executables
2210See \`config.log' for more details." >&2;}
2211 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002212fi
John Criswell7a73b802003-06-30 21:59:07 +00002213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002214ac_exeext=$ac_cv_exeext
2215{ echo "$as_me:$LINENO: result: $ac_file" >&5
2216echo "${ECHO_T}$ac_file" >&6; }
2217
2218# Check that the compiler produces executables we can run. If not, either
2219# the compiler is broken, or we cross compile.
2220{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223# If not cross compiling, check that we can run a simple program.
2224if test "$cross_compiling" != yes; then
2225 if { ac_try='./$ac_file'
2226 { (case "(($ac_try" in
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2229esac
2230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval "$ac_try") 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2235 cross_compiling=no
2236 else
2237 if test "$cross_compiling" = maybe; then
2238 cross_compiling=yes
2239 else
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&5
2243echo "$as_me: error: cannot run C compiled programs.
2244If you meant to cross compile, use \`--host'.
2245See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2247 fi
2248 fi
2249fi
2250{ echo "$as_me:$LINENO: result: yes" >&5
2251echo "${ECHO_T}yes" >&6; }
2252
2253rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002254ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002255# Check that the compiler produces executables we can run. If not, either
2256# the compiler is broken, or we cross compile.
2257{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260echo "${ECHO_T}$cross_compiling" >&6; }
2261
2262{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002265case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002270 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002271 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2276# work properly (i.e., refer to `conftest.exe'), while it won't with
2277# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002278for ac_file in conftest.exe conftest conftest.*; do
2279 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002280 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002283 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002284 * ) break;;
2285 esac
2286done
2287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&5
2290echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002294
2295rm -f conftest$ac_cv_exeext
2296{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002298
2299rm -f conftest.$ac_ext
2300EXEEXT=$ac_cv_exeext
2301ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002302{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002307 cat >conftest.$ac_ext <<_ACEOF
2308/* confdefs.h. */
2309_ACEOF
2310cat confdefs.h >>conftest.$ac_ext
2311cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002312/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002313
John Criswell7a73b802003-06-30 21:59:07 +00002314int
2315main ()
2316{
2317
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002324case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2327esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002329 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002330 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002333 for ac_file in conftest.o conftest.obj conftest.*; do
2334 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002335 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338 break;;
2339 esac
2340done
2341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002342 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002343sed 's/^/| /' conftest.$ac_ext >&5
2344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&5
2347echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002351
John Criswell7a73b802003-06-30 21:59:07 +00002352rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002354{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002356OBJEXT=$ac_cv_objext
2357ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002358{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363 cat >conftest.$ac_ext <<_ACEOF
2364/* confdefs.h. */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002368/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002369
John Criswell7a73b802003-06-30 21:59:07 +00002370int
2371main ()
2372{
2373#ifndef __GNUC__
2374 choke me
2375#endif
2376
2377 ;
2378 return 0;
2379}
2380_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002381rm -f conftest.$ac_objext
2382if { (ac_try="$ac_compile"
2383case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386esac
2387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_compile") 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399esac
2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409esac
2410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002415 ac_compiler_gnu=yes
2416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417 echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422
Reid Spencera773bd52006-08-04 18:18:08 +00002423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002425
2426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430ac_test_CFLAGS=${CFLAGS+set}
2431ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002432{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434if test "${ac_cv_prog_cc_g+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002436else
Reid Spencera773bd52006-08-04 18:18:08 +00002437 ac_save_c_werror_flag=$ac_c_werror_flag
2438 ac_c_werror_flag=yes
2439 ac_cv_prog_cc_g=no
2440 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002441 cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h. */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002446/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002447
John Criswell7a73b802003-06-30 21:59:07 +00002448int
2449main ()
2450{
2451
2452 ;
2453 return 0;
2454}
2455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002456rm -f conftest.$ac_objext
2457if { (ac_try="$ac_compile"
2458case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461esac
2462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compile") 2>conftest.er1
2464 ac_status=$?
2465 grep -v '^ *+' conftest.er1 >conftest.err
2466 rm -f conftest.er1
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474esac
2475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002492 echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 CFLAGS=""
2496 cat >conftest.$ac_ext <<_ACEOF
2497/* confdefs.h. */
2498_ACEOF
2499cat confdefs.h >>conftest.$ac_ext
2500cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002501/* end confdefs.h. */
2502
2503int
2504main ()
2505{
2506
2507 ;
2508 return 0;
2509}
2510_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511rm -f conftest.$ac_objext
2512if { (ac_try="$ac_compile"
2513case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2516esac
2517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518 (eval "$ac_compile") 2>conftest.er1
2519 ac_status=$?
2520 grep -v '^ *+' conftest.er1 >conftest.err
2521 rm -f conftest.er1
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539esac
2540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2545 :
Torok Edwin871384f2010-01-26 08:50:50 +00002546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002547 echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002551 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 cat >conftest.$ac_ext <<_ACEOF
2553/* confdefs.h. */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002557/* end confdefs.h. */
2558
2559int
2560main ()
2561{
2562
2563 ;
2564 return 0;
2565}
2566_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002567rm -f conftest.$ac_objext
2568if { (ac_try="$ac_compile"
2569case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2572esac
2573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_compile") 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595esac
2596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002601 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602else
2603 echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606
John Criswell7a73b802003-06-30 21:59:07 +00002607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608
Reid Spencera773bd52006-08-04 18:18:08 +00002609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611
Reid Spencera773bd52006-08-04 18:18:08 +00002612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002614
Reid Spencera773bd52006-08-04 18:18:08 +00002615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_c_werror_flag=$ac_save_c_werror_flag
2617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620if test "$ac_test_CFLAGS" = set; then
2621 CFLAGS=$ac_save_CFLAGS
2622elif test $ac_cv_prog_cc_g = yes; then
2623 if test "$GCC" = yes; then
2624 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002625 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002627 fi
2628else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629 if test "$GCC" = yes; then
2630 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002631 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002633 fi
2634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_cc_c89+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639else
Reid Spencera773bd52006-08-04 18:18:08 +00002640 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002642cat >conftest.$ac_ext <<_ACEOF
2643/* confdefs.h. */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647/* end confdefs.h. */
2648#include <stdarg.h>
2649#include <stdio.h>
2650#include <sys/types.h>
2651#include <sys/stat.h>
2652/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2653struct buf { int x; };
2654FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655static char *e (p, i)
2656 char **p;
2657 int i;
2658{
2659 return p[i];
2660}
2661static char *f (char * (*g) (char **, int), char **p, ...)
2662{
2663 char *s;
2664 va_list v;
2665 va_start (v,p);
2666 s = g (p, va_arg (v,int));
2667 va_end (v);
2668 return s;
2669}
2670
2671/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2672 function prototypes and stuff, but not '\xHH' hex character constants.
2673 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002674 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2676 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002677 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2679
Reid Spencera773bd52006-08-04 18:18:08 +00002680/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681 inside strings and character constants. */
2682#define FOO(x) 'x'
2683int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2684
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685int test (int i, double x);
2686struct s1 {int (*f) (int a);};
2687struct s2 {int (*f) (double a);};
2688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689int argc;
2690char **argv;
2691int
2692main ()
2693{
2694return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2695 ;
2696 return 0;
2697}
2698_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002699for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002701do
2702 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002703 rm -f conftest.$ac_objext
2704if { (ac_try="$ac_compile"
2705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
2709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2711 ac_status=$?
2712 grep -v '^ *+' conftest.er1 >conftest.err
2713 rm -f conftest.er1
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002737 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738else
2739 echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002744
Reid Spencera773bd52006-08-04 18:18:08 +00002745rm -f core conftest.err conftest.$ac_objext
2746 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002747done
Reid Spencera773bd52006-08-04 18:18:08 +00002748rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749CC=$ac_save_CC
2750
2751fi
Reid Spencera773bd52006-08-04 18:18:08 +00002752# AC_CACHE_VAL
2753case "x$ac_cv_prog_cc_c89" in
2754 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755 { echo "$as_me:$LINENO: result: none needed" >&5
2756echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002757 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002758 { echo "$as_me:$LINENO: result: unsupported" >&5
2759echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002760 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002761 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002762 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002764esac
2765
John Criswell0c38eaf2003-09-10 15:17:25 +00002766
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002767ac_ext=c
2768ac_cpp='$CPP $CPPFLAGS'
2769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
Eric Christopherffee5722011-09-16 20:36:25 +00002773ac_ext=cpp
2774ac_cpp='$CXXCPP $CPPFLAGS'
2775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778if test -z "$CXX"; then
2779 if test -n "$CCC"; then
2780 CXX=$CCC
2781 else
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in clang++ llvm-g++ g++
2784 do
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789if test "${ac_cv_prog_CXX+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792 if test -n "$CXX"; then
2793 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806done
2807done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812CXX=$ac_cv_prog_CXX
2813if test -n "$CXX"; then
2814 { echo "$as_me:$LINENO: result: $CXX" >&5
2815echo "${ECHO_T}$CXX" >&6; }
2816else
2817 { echo "$as_me:$LINENO: result: no" >&5
2818echo "${ECHO_T}no" >&6; }
2819fi
2820
2821
2822 test -n "$CXX" && break
2823 done
2824fi
2825if test -z "$CXX"; then
2826 ac_ct_CXX=$CXX
2827 for ac_prog in clang++ llvm-g++ g++
2828do
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830set dummy $ac_prog; ac_word=$2
2831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
2836 if test -n "$ac_ct_CXX"; then
2837 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CXX="$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850done
2851done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857if test -n "$ac_ct_CXX"; then
2858 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859echo "${ECHO_T}$ac_ct_CXX" >&6; }
2860else
2861 { echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6; }
2863fi
2864
2865
2866 test -n "$ac_ct_CXX" && break
2867done
2868
2869 if test "x$ac_ct_CXX" = x; then
2870 CXX="g++"
2871 else
2872 case $cross_compiling:$ac_tool_warned in
2873yes:)
2874{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875whose name does not start with the host triplet. If you think this
2876configuration is useful to you, please write to autoconf@gnu.org." >&5
2877echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878whose name does not start with the host triplet. If you think this
2879configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880ac_tool_warned=yes ;;
2881esac
2882 CXX=$ac_ct_CXX
2883 fi
2884fi
2885
2886 fi
2887fi
2888# Provide some information about the compiler.
2889echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890ac_compiler=`set X $ac_compile; echo $2`
2891{ (ac_try="$ac_compiler --version >&5"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler --version >&5") 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901{ (ac_try="$ac_compiler -v >&5"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -v >&5") 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911{ (ac_try="$ac_compiler -V >&5"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921
2922{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926else
2927 cat >conftest.$ac_ext <<_ACEOF
2928/* confdefs.h. */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h. */
2933
2934int
2935main ()
2936{
2937#ifndef __GNUC__
2938 choke me
2939#endif
2940
2941 ;
2942 return 0;
2943}
2944_ACEOF
2945rm -f conftest.$ac_objext
2946if { (ac_try="$ac_compile"
2947case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950esac
2951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 ac_compiler_gnu=yes
2980else
2981 echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 ac_compiler_gnu=no
2985fi
2986
2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2989
2990fi
2991{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993GXX=`test $ac_compiler_gnu = yes && echo yes`
2994ac_test_CXXFLAGS=${CXXFLAGS+set}
2995ac_save_CXXFLAGS=$CXXFLAGS
2996{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998if test "${ac_cv_prog_cxx_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002 ac_cxx_werror_flag=yes
3003 ac_cv_prog_cxx_g=no
3004 CXXFLAGS="-g"
3005 cat >conftest.$ac_ext <<_ACEOF
3006/* confdefs.h. */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h. */
3011
3012int
3013main ()
3014{
3015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext
3021if { (ac_try="$ac_compile"
3022case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 ac_cv_prog_cxx_g=yes
3055else
3056 echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059 CXXFLAGS=""
3060 cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h. */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h. */
3066
3067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 :
3110else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3115 CXXFLAGS="-g"
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122
3123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (ac_try="$ac_compile"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_cv_prog_cxx_g=yes
3166else
3167 echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177fi
3178
3179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181fi
3182{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184if test "$ac_test_CXXFLAGS" = set; then
3185 CXXFLAGS=$ac_save_CXXFLAGS
3186elif test $ac_cv_prog_cxx_g = yes; then
3187 if test "$GXX" = yes; then
3188 CXXFLAGS="-g -O2"
3189 else
3190 CXXFLAGS="-g"
3191 fi
3192else
3193 if test "$GXX" = yes; then
3194 CXXFLAGS="-O2"
3195 else
3196 CXXFLAGS=
3197 fi
3198fi
3199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003210{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212# On Suns, sometimes $CPP names a directory.
3213if test -n "$CPP" && test -d "$CPP"; then
3214 CPP=
3215fi
3216if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217 if test "${ac_cv_prog_CPP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219else
3220 # Double quotes because CPP needs to be expanded
3221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3222 do
3223 ac_preproc_ok=false
3224for ac_c_preproc_warn_flag in '' yes
3225do
3226 # Use a header file that comes with gcc, so configuring glibc
3227 # with a fresh cross-compiler works.
3228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229 # <limits.h> exists even on freestanding compilers.
3230 # On the NeXT, cc -E runs the code through the compiler's parser,
3231 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003232 cat >conftest.$ac_ext <<_ACEOF
3233/* confdefs.h. */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003237/* end confdefs.h. */
3238#ifdef __STDC__
3239# include <limits.h>
3240#else
3241# include <assert.h>
3242#endif
3243 Syntax error
3244_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003245if { (ac_try="$ac_cpp conftest.$ac_ext"
3246case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } >/dev/null; then
3258 if test -s conftest.err; then
3259 ac_cpp_err=$ac_c_preproc_warn_flag
3260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261 else
3262 ac_cpp_err=
3263 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003265 ac_cpp_err=yes
3266fi
3267if test -z "$ac_cpp_err"; then
3268 :
3269else
3270 echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273 # Broken: fails on valid input.
3274continue
3275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003276
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277rm -f conftest.err conftest.$ac_ext
3278
Reid Spencera773bd52006-08-04 18:18:08 +00003279 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003281 cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286/* end confdefs.h. */
3287#include <ac_nonexistent.h>
3288_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003289if { (ac_try="$ac_cpp conftest.$ac_ext"
3290case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293esac
3294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296 ac_status=$?
3297 grep -v '^ *+' conftest.er1 >conftest.err
3298 rm -f conftest.er1
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null; then
3302 if test -s conftest.err; then
3303 ac_cpp_err=$ac_c_preproc_warn_flag
3304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305 else
3306 ac_cpp_err=
3307 fi
3308else
3309 ac_cpp_err=yes
3310fi
3311if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312 # Broken: success on invalid input.
3313continue
3314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315 echo "$as_me: failed program was:" >&5
3316sed 's/^/| /' conftest.$ac_ext >&5
3317
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318 # Passes both tests.
3319ac_preproc_ok=:
3320break
3321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003322
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323rm -f conftest.err conftest.$ac_ext
3324
3325done
3326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003328if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329 break
3330fi
3331
3332 done
3333 ac_cv_prog_CPP=$CPP
3334
3335fi
3336 CPP=$ac_cv_prog_CPP
3337else
3338 ac_cv_prog_CPP=$CPP
3339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003340{ echo "$as_me:$LINENO: result: $CPP" >&5
3341echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342ac_preproc_ok=false
3343for ac_c_preproc_warn_flag in '' yes
3344do
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
3347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
3349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003351 cat >conftest.$ac_ext <<_ACEOF
3352/* confdefs.h. */
3353_ACEOF
3354cat confdefs.h >>conftest.$ac_ext
3355cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356/* end confdefs.h. */
3357#ifdef __STDC__
3358# include <limits.h>
3359#else
3360# include <assert.h>
3361#endif
3362 Syntax error
3363_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003364if { (ac_try="$ac_cpp conftest.$ac_ext"
3365case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
3369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380 else
3381 ac_cpp_err=
3382 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003384 ac_cpp_err=yes
3385fi
3386if test -z "$ac_cpp_err"; then
3387 :
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392 # Broken: fails on valid input.
3393continue
3394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003395
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396rm -f conftest.err conftest.$ac_ext
3397
Reid Spencera773bd52006-08-04 18:18:08 +00003398 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405/* end confdefs.h. */
3406#include <ac_nonexistent.h>
3407_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003408if { (ac_try="$ac_cpp conftest.$ac_ext"
3409case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412esac
3413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null; then
3421 if test -s conftest.err; then
3422 ac_cpp_err=$ac_c_preproc_warn_flag
3423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424 else
3425 ac_cpp_err=
3426 fi
3427else
3428 ac_cpp_err=yes
3429fi
3430if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431 # Broken: success on invalid input.
3432continue
3433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003434 echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437 # Passes both tests.
3438ac_preproc_ok=:
3439break
3440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003441
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442rm -f conftest.err conftest.$ac_ext
3443
3444done
3445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003447if $ac_preproc_ok; then
3448 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003450 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451See \`config.log' for more details." >&5
3452echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455fi
3456
John Criswell7a73b802003-06-30 21:59:07 +00003457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
John Criswell7a73b802003-06-30 21:59:07 +00003463
Eric Christopherffee5722011-09-16 20:36:25 +00003464
3465
3466if test -d ${srcdir}/projects/llvm-gcc ; then
3467 subdirs="$subdirs projects/llvm-gcc"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/test-suite ; then
3472 subdirs="$subdirs projects/test-suite"
3473
3474fi
3475
3476if test -d ${srcdir}/projects/llvm-test ; then
3477 subdirs="$subdirs projects/llvm-test"
3478
3479fi
3480
3481if test -d ${srcdir}/projects/poolalloc ; then
3482 subdirs="$subdirs projects/poolalloc"
3483
3484fi
3485
3486if test -d ${srcdir}/projects/llvm-poolalloc ; then
3487 subdirs="$subdirs projects/llvm-poolalloc"
3488
3489fi
3490
3491for i in `ls ${srcdir}/projects`
3492do
3493 if test -d ${srcdir}/projects/${i} ; then
3494 case ${i} in
3495 sample) subdirs="$subdirs projects/sample"
3496 ;;
3497 privbracket) subdirs="$subdirs projects/privbracket"
3498 ;;
3499 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3500 ;;
3501 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3502;;
3503 llvm-java) subdirs="$subdirs projects/llvm-java"
3504 ;;
3505 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3506 ;;
3507 safecode) subdirs="$subdirs projects/safecode"
3508 ;;
3509 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3510 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003511 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003512 llvm-gcc) ;;
3513 test-suite) ;;
3514 llvm-test) ;;
3515 poolalloc) ;;
3516 llvm-poolalloc) ;;
3517 *)
3518 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3519echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3520 ;;
3521 esac
3522 fi
3523done
3524
3525# Check whether --enable-polly was given.
3526if test "${enable_polly+set}" = set; then
3527 enableval=$enable_polly;
3528else
3529 enableval=default
3530fi
3531
3532case "$enableval" in
3533 yes) ENABLE_POLLY=1
3534 ;;
3535 no) ENABLE_POLLY=0
3536 ;;
3537 default) ENABLE_POLLY=1
3538 ;;
3539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3540echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3541 { (exit 1); exit 1; }; } ;;
3542esac
3543
3544
3545if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3546 LLVM_HAS_POLLY=1
3547
3548 subdirs="$subdirs tools/polly"
3549
3550fi
3551
3552
3553# Make sure we can run config.sub.
3554$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3555 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3556echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3557 { (exit 1); exit 1; }; }
3558
3559{ echo "$as_me:$LINENO: checking build system type" >&5
3560echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3561if test "${ac_cv_build+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 ac_build_alias=$build_alias
3565test "x$ac_build_alias" = x &&
3566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567test "x$ac_build_alias" = x &&
3568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3569echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3570 { (exit 1); exit 1; }; }
3571ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3572 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3573echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3574 { (exit 1); exit 1; }; }
3575
3576fi
3577{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3578echo "${ECHO_T}$ac_cv_build" >&6; }
3579case $ac_cv_build in
3580*-*-*) ;;
3581*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3582echo "$as_me: error: invalid value of canonical build" >&2;}
3583 { (exit 1); exit 1; }; };;
3584esac
3585build=$ac_cv_build
3586ac_save_IFS=$IFS; IFS='-'
3587set x $ac_cv_build
3588shift
3589build_cpu=$1
3590build_vendor=$2
3591shift; shift
3592# Remember, the first character of IFS is used to create $*,
3593# except with old shells:
3594build_os=$*
3595IFS=$ac_save_IFS
3596case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3597
3598
3599{ echo "$as_me:$LINENO: checking host system type" >&5
3600echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3601if test "${ac_cv_host+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603else
3604 if test "x$host_alias" = x; then
3605 ac_cv_host=$ac_cv_build
3606else
3607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3608 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3609echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3610 { (exit 1); exit 1; }; }
3611fi
3612
3613fi
3614{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3615echo "${ECHO_T}$ac_cv_host" >&6; }
3616case $ac_cv_host in
3617*-*-*) ;;
3618*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3619echo "$as_me: error: invalid value of canonical host" >&2;}
3620 { (exit 1); exit 1; }; };;
3621esac
3622host=$ac_cv_host
3623ac_save_IFS=$IFS; IFS='-'
3624set x $ac_cv_host
3625shift
3626host_cpu=$1
3627host_vendor=$2
3628shift; shift
3629# Remember, the first character of IFS is used to create $*,
3630# except with old shells:
3631host_os=$*
3632IFS=$ac_save_IFS
3633case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3634
3635
3636{ echo "$as_me:$LINENO: checking target system type" >&5
3637echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3638if test "${ac_cv_target+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641 if test "x$target_alias" = x; then
3642 ac_cv_target=$ac_cv_host
3643else
3644 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3645 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3646echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3647 { (exit 1); exit 1; }; }
3648fi
3649
3650fi
3651{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3652echo "${ECHO_T}$ac_cv_target" >&6; }
3653case $ac_cv_target in
3654*-*-*) ;;
3655*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3656echo "$as_me: error: invalid value of canonical target" >&2;}
3657 { (exit 1); exit 1; }; };;
3658esac
3659target=$ac_cv_target
3660ac_save_IFS=$IFS; IFS='-'
3661set x $ac_cv_target
3662shift
3663target_cpu=$1
3664target_vendor=$2
3665shift; shift
3666# Remember, the first character of IFS is used to create $*,
3667# except with old shells:
3668target_os=$*
3669IFS=$ac_save_IFS
3670case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3671
3672
3673# The aliases save the names the user supplied, while $host etc.
3674# will get canonicalized.
3675test -n "$target_alias" &&
3676 test "$program_prefix$program_suffix$program_transform_name" = \
3677 NONENONEs,x,x, &&
3678 program_prefix=${target_alias}-
3679
3680{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3681echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3682if test "${llvm_cv_os_type+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685 case $host in
3686 *-*-aix*)
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="AIX"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-irix*)
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="IRIX"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-cygwin*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="Cygwin"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-darwin*)
3702 llvm_cv_link_all_option="-Wl,-all_load"
3703 llvm_cv_no_link_all_option="-Wl,-noall_load"
3704 llvm_cv_os_type="Darwin"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-minix*)
3707 llvm_cv_link_all_option="-Wl,-all_load"
3708 llvm_cv_no_link_all_option="-Wl,-noall_load"
3709 llvm_cv_os_type="Minix"
3710 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003711 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="FreeBSD"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-openbsd*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="OpenBSD"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-netbsd*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="NetBSD"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-dragonfly*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="DragonFly"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-hpux*)
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="HP-UX"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-interix*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Interix"
3740 llvm_cv_platform_type="Unix" ;;
3741 *-*-linux*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Linux"
3745 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003746 *-*-gnu*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="GNU"
3750 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003751 *-*-solaris*)
3752 llvm_cv_link_all_option="-Wl,-z,allextract"
3753 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3754 llvm_cv_os_type="SunOS"
3755 llvm_cv_platform_type="Unix" ;;
3756 *-*-auroraux*)
3757 llvm_cv_link_all_option="-Wl,-z,allextract"
3758 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3759 llvm_cv_os_type="AuroraUX"
3760 llvm_cv_platform_type="Unix" ;;
3761 *-*-win32*)
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Win32"
3765 llvm_cv_platform_type="Win32" ;;
3766 *-*-mingw*)
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="MingW"
3770 llvm_cv_platform_type="Win32" ;;
3771 *-*-haiku*)
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Haiku"
3775 llvm_cv_platform_type="Unix" ;;
3776 *-unknown-eabi*)
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Freestanding"
3780 llvm_cv_platform_type="Unix" ;;
3781 *-unknown-elf*)
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Freestanding"
3785 llvm_cv_platform_type="Unix" ;;
3786 *)
3787 llvm_cv_link_all_option=""
3788 llvm_cv_no_link_all_option=""
3789 llvm_cv_os_type="Unknown"
3790 llvm_cv_platform_type="Unknown" ;;
3791esac
3792fi
3793{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3794echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3795
3796{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3797echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3798if test "${llvm_cv_target_os_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 case $target in
3802 *-*-aix*)
3803 llvm_cv_target_os_type="AIX" ;;
3804 *-*-irix*)
3805 llvm_cv_target_os_type="IRIX" ;;
3806 *-*-cygwin*)
3807 llvm_cv_target_os_type="Cygwin" ;;
3808 *-*-darwin*)
3809 llvm_cv_target_os_type="Darwin" ;;
3810 *-*-minix*)
3811 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003812 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003813 llvm_cv_target_os_type="FreeBSD" ;;
3814 *-*-openbsd*)
3815 llvm_cv_target_os_type="OpenBSD" ;;
3816 *-*-netbsd*)
3817 llvm_cv_target_os_type="NetBSD" ;;
3818 *-*-dragonfly*)
3819 llvm_cv_target_os_type="DragonFly" ;;
3820 *-*-hpux*)
3821 llvm_cv_target_os_type="HP-UX" ;;
3822 *-*-interix*)
3823 llvm_cv_target_os_type="Interix" ;;
3824 *-*-linux*)
3825 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003826 *-*-gnu*)
3827 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003828 *-*-solaris*)
3829 llvm_cv_target_os_type="SunOS" ;;
3830 *-*-auroraux*)
3831 llvm_cv_target_os_type="AuroraUX" ;;
3832 *-*-win32*)
3833 llvm_cv_target_os_type="Win32" ;;
3834 *-*-mingw*)
3835 llvm_cv_target_os_type="MingW" ;;
3836 *-*-haiku*)
3837 llvm_cv_target_os_type="Haiku" ;;
3838 *-*-rtems*)
3839 llvm_cv_target_os_type="RTEMS" ;;
3840 *-*-nacl*)
3841 llvm_cv_target_os_type="NativeClient" ;;
3842 *-unknown-eabi*)
3843 llvm_cv_target_os_type="Freestanding" ;;
3844 *)
3845 llvm_cv_target_os_type="Unknown" ;;
3846esac
3847fi
3848{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3849echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3850
3851if test "$llvm_cv_os_type" = "Unknown" ; then
3852 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3853echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3854 { (exit 1); exit 1; }; }
3855fi
3856
3857OS=$llvm_cv_os_type
3858
3859HOST_OS=$llvm_cv_os_type
3860
3861TARGET_OS=$llvm_cv_target_os_type
3862
3863
3864LINKALL=$llvm_cv_link_all_option
3865
3866NOLINKALL=$llvm_cv_no_link_all_option
3867
3868
3869case $llvm_cv_platform_type in
3870 Unix)
3871
3872cat >>confdefs.h <<\_ACEOF
3873#define LLVM_ON_UNIX 1
3874_ACEOF
3875
3876 LLVM_ON_UNIX=1
3877
3878 LLVM_ON_WIN32=0
3879
3880 ;;
3881 Win32)
3882
3883cat >>confdefs.h <<\_ACEOF
3884#define LLVM_ON_WIN32 1
3885_ACEOF
3886
3887 LLVM_ON_UNIX=0
3888
3889 LLVM_ON_WIN32=1
3890
3891 ;;
3892esac
3893
3894{ echo "$as_me:$LINENO: checking target architecture" >&5
3895echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3896if test "${llvm_cv_target_arch+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 case $target in
3900 i?86-*) llvm_cv_target_arch="x86" ;;
3901 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3902 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3903 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003904 arm*-*) llvm_cv_target_arch="ARM" ;;
3905 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003906 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003907 xcore-*) llvm_cv_target_arch="XCore" ;;
3908 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003909 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003910 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003911 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003912 *) llvm_cv_target_arch="Unknown" ;;
3913esac
3914fi
3915{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3917
3918if test "$llvm_cv_target_arch" = "Unknown" ; then
3919 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3921fi
3922
Eric Christopherffee5722011-09-16 20:36:25 +00003923case "$llvm_cv_target_arch" in
3924 x86) LLVM_NATIVE_ARCH="X86" ;;
3925 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3926 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3927esac
3928
3929ARCH=$llvm_cv_target_arch
3930
3931
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003932case $host in
3933 i?86-*) host_arch="x86" ;;
3934 amd64-* | x86_64-*) host_arch="x86_64" ;;
3935 sparc*-*) host_arch="Sparc" ;;
3936 powerpc*-*) host_arch="PowerPC" ;;
3937 arm*-*) host_arch="ARM" ;;
3938 mips-*) host_arch="Mips" ;;
3939 mipsel-*) host_arch="Mips" ;;
3940 xcore-*) host_arch="XCore" ;;
3941 msp430-*) host_arch="MSP430" ;;
3942 hexagon-*) host_arch="Hexagon" ;;
3943 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003944 *) host_arch="Unknown" ;;
3945esac
3946
3947if test "$host_arch" = "Unknown" ; then
3948 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3949echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3950fi
3951
3952HOST_ARCH=$host_arch
3953
3954
Eric Christopherffee5722011-09-16 20:36:25 +00003955
3956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959if test "${ac_cv_path_GREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962 # Extract the first word of "grep ggrep" to use in msg output
3963if test -z "$GREP"; then
3964set dummy grep ggrep; ac_prog_name=$2
3965if test "${ac_cv_path_GREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
Reid Spencera773bd52006-08-04 18:18:08 +00003968 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003969# Loop through the user's path and test for each of PROGNAME-LIST
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003971for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975 for ac_prog in grep ggrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3979 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003980 # Check for GNU $ac_path_GREP
3981case `"$ac_path_GREP" --version 2>&1` in
3982*GNU*)
3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3984*)
3985 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003987 while :
3988 do
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_GREP="$ac_path_GREP"
3999 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004000 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4003 done
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005esac
4006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004007
4008 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004009 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010done
4011
4012done
Reid Spencera773bd52006-08-04 18:18:08 +00004013IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004014
4015
4016fi
4017
4018GREP="$ac_cv_path_GREP"
4019if test -z "$GREP"; then
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022 { (exit 1); exit 1; }; }
4023fi
4024
Reid Spencera773bd52006-08-04 18:18:08 +00004025else
4026 ac_cv_path_GREP=$GREP
4027fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029
Reid Spencera773bd52006-08-04 18:18:08 +00004030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004033 GREP="$ac_cv_path_GREP"
4034
4035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004036{ echo "$as_me:$LINENO: checking for egrep" >&5
4037echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038if test "${ac_cv_path_EGREP+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004040else
4041 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042 then ac_cv_path_EGREP="$GREP -E"
4043 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004044 # Extract the first word of "egrep" to use in msg output
4045if test -z "$EGREP"; then
4046set dummy egrep; ac_prog_name=$2
4047if test "${ac_cv_path_EGREP+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
Reid Spencera773bd52006-08-04 18:18:08 +00004050 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004051# Loop through the user's path and test for each of PROGNAME-LIST
4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004057 for ac_prog in egrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4061 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004062 # Check for GNU $ac_path_EGREP
4063case `"$ac_path_EGREP" --version 2>&1` in
4064*GNU*)
4065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4066*)
4067 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004068 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004069 while :
4070 do
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_EGREP="$ac_path_EGREP"
4081 ac_path_EGREP_max=$ac_count
4082 fi
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4085 done
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087esac
4088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089
4090 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004091 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004092done
4093
4094done
Reid Spencera773bd52006-08-04 18:18:08 +00004095IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004096
4097
4098fi
4099
4100EGREP="$ac_cv_path_EGREP"
4101if test -z "$EGREP"; then
4102 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104 { (exit 1); exit 1; }; }
4105fi
4106
Reid Spencera773bd52006-08-04 18:18:08 +00004107else
4108 ac_cv_path_EGREP=$EGREP
4109fi
4110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111
Reid Spencera773bd52006-08-04 18:18:08 +00004112 fi
4113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004116 EGREP="$ac_cv_path_EGREP"
4117
4118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4120echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4121if test "${ac_cv_header_stdc+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004124 cat >conftest.$ac_ext <<_ACEOF
4125/* confdefs.h. */
4126_ACEOF
4127cat confdefs.h >>conftest.$ac_ext
4128cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004130#include <stdlib.h>
4131#include <stdarg.h>
4132#include <string.h>
4133#include <float.h>
4134
John Criswell0c38eaf2003-09-10 15:17:25 +00004135int
4136main ()
4137{
4138
4139 ;
4140 return 0;
4141}
John Criswell7a73b802003-06-30 21:59:07 +00004142_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004143rm -f conftest.$ac_objext
4144if { (ac_try="$ac_compile"
4145case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161esac
4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004177 ac_cv_header_stdc=yes
4178else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004179 echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004183fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184
Reid Spencera773bd52006-08-04 18:18:08 +00004185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004186
4187if test $ac_cv_header_stdc = yes; then
4188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004189 cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h. */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004194/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004195#include <string.h>
4196
4197_ACEOF
4198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004199 $EGREP "memchr" >/dev/null 2>&1; then
4200 :
John Criswell7a73b802003-06-30 21:59:07 +00004201else
4202 ac_cv_header_stdc=no
4203fi
4204rm -f conftest*
4205
4206fi
4207
4208if test $ac_cv_header_stdc = yes; then
4209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004210 cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004215/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004216#include <stdlib.h>
4217
4218_ACEOF
4219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004220 $EGREP "free" >/dev/null 2>&1; then
4221 :
John Criswell7a73b802003-06-30 21:59:07 +00004222else
4223 ac_cv_header_stdc=no
4224fi
4225rm -f conftest*
4226
4227fi
4228
4229if test $ac_cv_header_stdc = yes; then
4230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004232 :
4233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004239/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004240#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004241#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004242#if ((' ' & 0x0FF) == 0x020)
4243# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4245#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004246# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004247 (('a' <= (c) && (c) <= 'i') \
4248 || ('j' <= (c) && (c) <= 'r') \
4249 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004250# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251#endif
4252
4253#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4254int
4255main ()
4256{
4257 int i;
4258 for (i = 0; i < 256; i++)
4259 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004260 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004261 return 2;
4262 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004263}
4264_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265rm -f conftest$ac_exeext
4266if { (ac_try="$ac_link"
4267case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_link") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279esac
4280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 :
John Criswell7a73b802003-06-30 21:59:07 +00004286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287 echo "$as_me: program exited with status $ac_status" >&5
4288echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291( exit $ac_status )
4292ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004294rm -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 +00004295fi
4296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004297
John Criswell7a73b802003-06-30 21:59:07 +00004298fi
4299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004300{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4301echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004302if test $ac_cv_header_stdc = yes; then
4303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004304cat >>confdefs.h <<\_ACEOF
4305#define STDC_HEADERS 1
4306_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004307
4308fi
4309
Reid Spencera773bd52006-08-04 18:18:08 +00004310# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004311
4312
4313
4314
4315
4316
4317
4318
4319
Reid Spencera773bd52006-08-04 18:18:08 +00004320for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004322do
4323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329 cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h. */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
4335$ac_includes_default
4336
4337#include <$ac_header>
4338_ACEOF
4339rm -f conftest.$ac_objext
4340if { (ac_try="$ac_compile"
4341case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344esac
4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 eval "$as_ac_Header=yes"
4374else
4375 echo "$as_me: failed program was:" >&5
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 eval "$as_ac_Header=no"
4379fi
4380
4381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382fi
4383ac_res=`eval echo '${'$as_ac_Header'}'`
4384 { echo "$as_me:$LINENO: result: $ac_res" >&5
4385echo "${ECHO_T}$ac_res" >&6; }
4386if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004387 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004389_ACEOF
4390
4391fi
4392
4393done
4394
4395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004396{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4397echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4398if test "${ac_cv_c_bigendian+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401 # See if sys/param.h defines the BYTE_ORDER macro.
4402cat >conftest.$ac_ext <<_ACEOF
4403/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004404_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405cat confdefs.h >>conftest.$ac_ext
4406cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004407/* end confdefs.h. */
4408#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004410
4411int
4412main ()
4413{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4415 bogus endian macros
4416#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004417
4418 ;
4419 return 0;
4420}
4421_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004422rm -f conftest.$ac_objext
4423if { (ac_try="$ac_compile"
4424case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427esac
4428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_compile") 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4437 { (case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
4441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_try") 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004456 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004462/* end confdefs.h. */
4463#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004465
4466int
4467main ()
4468{
4469#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004470 not big endian
4471#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004472
4473 ;
4474 return 0;
4475}
4476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477rm -f conftest.$ac_objext
4478if { (ac_try="$ac_compile"
4479case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495esac
4496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505esac
4506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004511 ac_cv_c_bigendian=yes
4512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004513 echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004516 ac_cv_c_bigendian=no
4517fi
4518
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520else
4521 echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 # It does not; compile a test program.
4525if test "$cross_compiling" = yes; then
4526 # try to guess the endianness by grepping values into an object file
4527 ac_cv_c_bigendian=unknown
4528 cat >conftest.$ac_ext <<_ACEOF
4529/* confdefs.h. */
4530_ACEOF
4531cat confdefs.h >>conftest.$ac_ext
4532cat >>conftest.$ac_ext <<_ACEOF
4533/* end confdefs.h. */
4534short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4535short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4536void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4537short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4538short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4539void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004540int
4541main ()
4542{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004543 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004544 ;
4545 return 0;
4546}
4547_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548rm -f conftest.$ac_objext
4549if { (ac_try="$ac_compile"
4550case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553esac
4554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555 (eval "$ac_compile") 2>conftest.er1
4556 ac_status=$?
4557 grep -v '^ *+' conftest.er1 >conftest.err
4558 rm -f conftest.er1
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4563 { (case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566esac
4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_try") 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576esac
4577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_try") 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004583 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584fi
4585if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4586 if test "$ac_cv_c_bigendian" = unknown; then
4587 ac_cv_c_bigendian=no
4588 else
4589 # finding both strings is unlikely to happen, but who knows?
4590 ac_cv_c_bigendian=unknown
4591 fi
4592fi
Reid Spencera773bd52006-08-04 18:18:08 +00004593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594 echo "$as_me: failed program was:" >&5
4595sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597
Torok Edwin871384f2010-01-26 08:50:50 +00004598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599
Reid Spencera773bd52006-08-04 18:18:08 +00004600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004602 cat >conftest.$ac_ext <<_ACEOF
4603/* confdefs.h. */
4604_ACEOF
4605cat confdefs.h >>conftest.$ac_ext
4606cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004607/* end confdefs.h. */
4608$ac_includes_default
4609int
4610main ()
4611{
4612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004613 /* Are we little or big endian? From Harbison&Steele. */
4614 union
4615 {
4616 long int l;
4617 char c[sizeof (long int)];
4618 } u;
4619 u.l = 1;
4620 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004621
4622 ;
4623 return 0;
4624}
4625_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004626rm -f conftest$ac_exeext
4627if { (ac_try="$ac_link"
4628case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631esac
4632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633 (eval "$ac_link") 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4637 { (case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640esac
4641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_try") 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004646 ac_cv_c_bigendian=no
4647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648 echo "$as_me: program exited with status $ac_status" >&5
4649echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652( exit $ac_status )
4653ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655rm -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 +00004656fi
4657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004658
Reid Spencera773bd52006-08-04 18:18:08 +00004659fi
4660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662fi
4663{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4664echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4665case $ac_cv_c_bigendian in
4666 yes)
4667 ENDIAN=big
4668 ;;
4669 no)
4670 ENDIAN=little
4671 ;;
4672 *)
4673 { { echo "$as_me:$LINENO: error: unknown endianness
4674presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4675echo "$as_me: error: unknown endianness
4676presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4677 { (exit 1); exit 1; }; } ;;
4678esac
Reid Spencera773bd52006-08-04 18:18:08 +00004679
4680
4681if test "$cross_compiling" = yes; then
4682 LLVM_CROSS_COMPILING=1
4683
4684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004685{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4686echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4687if test "${ac_cv_build_exeext+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004689else
4690 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4691 ac_cv_build_exeext=.exe
4692else
4693 ac_build_prefix=${build_alias}-
4694
4695 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4696set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004701else
4702 if test -n "$BUILD_CC"; then
4703 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4704else
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 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 +00004712 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004714 break 2
4715 fi
4716done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717done
Reid Spencera773bd52006-08-04 18:18:08 +00004718IFS=$as_save_IFS
4719
4720fi
4721fi
4722BUILD_CC=$ac_cv_prog_BUILD_CC
4723if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4725echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004727 { echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004729fi
4730
4731
4732 if test -z "$BUILD_CC"; then
4733 # Extract the first word of "gcc", so it can be a program name with args.
4734set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4737if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004739else
4740 if test -n "$BUILD_CC"; then
4741 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 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 +00004750 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004752 break 2
4753 fi
4754done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004755done
Reid Spencera773bd52006-08-04 18:18:08 +00004756IFS=$as_save_IFS
4757
4758fi
4759fi
4760BUILD_CC=$ac_cv_prog_BUILD_CC
4761if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004762 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4763echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765 { echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004767fi
4768
4769
4770 if test -z "$BUILD_CC"; then
4771 # Extract the first word of "cc", so it can be a program name with args.
4772set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004777else
4778 if test -n "$BUILD_CC"; then
4779 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4780else
4781 ac_prog_rejected=no
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 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 +00004789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4790 ac_prog_rejected=yes
4791 continue
4792 fi
4793 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004795 break 2
4796 fi
4797done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798done
Reid Spencera773bd52006-08-04 18:18:08 +00004799IFS=$as_save_IFS
4800
4801if test $ac_prog_rejected = yes; then
4802 # We found a bogon in the path, so make sure we never use it.
4803 set dummy $ac_cv_prog_BUILD_CC
4804 shift
4805 if test $# != 0; then
4806 # We chose a different compiler from the bogus one.
4807 # However, it has the same basename, so the bogon will be chosen
4808 # first if we set BUILD_CC to just the basename; use the full file name.
4809 shift
4810 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4811 fi
4812fi
4813fi
4814fi
4815BUILD_CC=$ac_cv_prog_BUILD_CC
4816if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4818echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004820 { echo "$as_me:$LINENO: result: no" >&5
4821echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004822fi
4823
4824
4825 fi
4826 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4828echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4829 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004830 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4831 rm -f conftest*
4832 echo 'int main () { return 0; }' > conftest.$ac_ext
4833 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004834 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004835 (eval $ac_build_link) 2>&5
4836 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004839 for file in conftest.*; do
4840 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004841 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004842 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4843 esac
4844 done
4845 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004846 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4847echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4848 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004849 fi
4850 rm -f conftest*
4851 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4852fi
4853fi
4854
4855BUILD_EXEEXT=""
4856test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004857{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4858echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004859ac_build_exeext=$BUILD_EXEEXT
4860
Jim Grosbach673612e2008-10-02 22:56:44 +00004861 ac_build_prefix=${build_alias}-
4862 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4863set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004868else
4869 if test -n "$BUILD_CXX"; then
4870 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 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 +00004879 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004881 break 2
4882 fi
4883done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884done
Jim Grosbach673612e2008-10-02 22:56:44 +00004885IFS=$as_save_IFS
4886
4887fi
4888fi
4889BUILD_CXX=$ac_cv_prog_BUILD_CXX
4890if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4892echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894 { echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004896fi
4897
4898
4899 if test -z "$BUILD_CXX"; then
4900 # Extract the first word of "g++", so it can be a program name with args.
4901set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004906else
4907 if test -n "$BUILD_CXX"; then
4908 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 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 +00004917 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004919 break 2
4920 fi
4921done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922done
Jim Grosbach673612e2008-10-02 22:56:44 +00004923IFS=$as_save_IFS
4924
4925fi
4926fi
4927BUILD_CXX=$ac_cv_prog_BUILD_CXX
4928if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004929 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4930echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004931else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004932 { echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004934fi
4935
4936
4937 if test -z "$BUILD_CXX"; then
4938 # Extract the first word of "c++", so it can be a program name with args.
4939set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004944else
4945 if test -n "$BUILD_CXX"; then
4946 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4947else
4948 ac_prog_rejected=no
4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 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 +00004956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4957 ac_prog_rejected=yes
4958 continue
4959 fi
4960 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004962 break 2
4963 fi
4964done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004965done
Jim Grosbach673612e2008-10-02 22:56:44 +00004966IFS=$as_save_IFS
4967
4968if test $ac_prog_rejected = yes; then
4969 # We found a bogon in the path, so make sure we never use it.
4970 set dummy $ac_cv_prog_BUILD_CXX
4971 shift
4972 if test $# != 0; then
4973 # We chose a different compiler from the bogus one.
4974 # However, it has the same basename, so the bogon will be chosen
4975 # first if we set BUILD_CXX to just the basename; use the full file name.
4976 shift
4977 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4978 fi
4979fi
4980fi
4981fi
4982BUILD_CXX=$ac_cv_prog_BUILD_CXX
4983if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004984 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4985echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004986else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004987 { echo "$as_me:$LINENO: result: no" >&5
4988echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004989fi
4990
4991
4992 fi
4993 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004994else
4995 LLVM_CROSS_COMPILING=0
4996
4997fi
4998
Dan Gohman56fb5f92010-08-04 16:25:01 +00004999if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005000 cvsbuild="yes"
5001 optimize="no"
5002 CVSBUILD=CVSBUILD=1
5003
5004else
5005 cvsbuild="no"
5006 optimize="yes"
5007fi
5008
5009
Eric Christopherbee515f2011-11-11 22:51:42 +00005010# Check whether --enable-libcpp was given.
5011if test "${enable_libcpp+set}" = set; then
5012 enableval=$enable_libcpp;
5013else
5014 enableval=default
5015fi
5016
5017case "$enableval" in
5018 yes) ENABLE_LIBCPP=1
5019 ;;
5020 no) ENABLE_LIBCPP=0
5021 ;;
5022 default) ENABLE_LIBCPP=0
5023;;
5024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5025echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5026 { (exit 1); exit 1; }; } ;;
5027esac
5028
Eric Christopher82120022012-08-03 19:47:14 +00005029# Check whether --enable-cxx11 was given.
5030if test "${enable_cxx11+set}" = set; then
5031 enableval=$enable_cxx11;
5032else
5033 enableval=default
5034fi
5035
5036case "$enableval" in
5037 yes) ENABLE_CXX11=1
5038 ;;
5039 no) ENABLE_CXX11=0
5040 ;;
5041 default) ENABLE_CXX11=0
5042;;
5043 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5044echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5045 { (exit 1); exit 1; }; } ;;
5046esac
5047
Reid Spencera773bd52006-08-04 18:18:08 +00005048# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005049if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005050 enableval=$enable_optimized;
5051else
5052 enableval=$optimize
5053fi
5054
5055if test ${enableval} = "no" ; then
5056 ENABLE_OPTIMIZED=
5057
5058else
5059 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5060
5061fi
5062
David Greene2a5a12c2009-04-17 14:50:39 +00005063# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005064if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005065 enableval=$enable_profiling;
5066else
5067 enableval="no"
5068fi
5069
5070if test ${enableval} = "no" ; then
5071 ENABLE_PROFILING=
5072
5073else
5074 ENABLE_PROFILING=ENABLE_PROFILING=1
5075
5076fi
5077
Reid Spencera773bd52006-08-04 18:18:08 +00005078# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005079if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005080 enableval=$enable_assertions;
5081else
5082 enableval="yes"
5083fi
5084
5085if test ${enableval} = "yes" ; then
5086 DISABLE_ASSERTIONS=
5087
5088else
5089 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5090
5091fi
5092
Eric Christopher09a88732012-08-03 19:58:20 +00005093# Check whether --enable-werror was given.
5094if test "${enable_werror+set}" = set; then
5095 enableval=$enable_werror;
5096else
5097 enableval="no"
5098fi
5099
5100case "$enableval" in
5101 yes) ENABLE_WERROR=1
5102 ;;
5103 no) ENABLE_WERROR=0
5104 ;;
5105 default) ENABLE_WERROR=0
5106;;
5107 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5108echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5109 { (exit 1); exit 1; }; } ;;
5110esac
5111
David Greenea696d242007-06-28 19:36:08 +00005112# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005113if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005114 enableval=$enable_expensive_checks;
5115else
5116 enableval="no"
5117fi
5118
5119if test ${enableval} = "yes" ; then
5120 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5121
5122 EXPENSIVE_CHECKS=yes
5123
5124else
5125 ENABLE_EXPENSIVE_CHECKS=
5126
5127 EXPENSIVE_CHECKS=no
5128
5129fi
5130
Reid Spencer8b2e1412006-11-17 03:32:33 +00005131# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005132if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005133 enableval=$enable_debug_runtime;
5134else
5135 enableval=no
5136fi
5137
5138if test ${enableval} = "no" ; then
5139 DEBUG_RUNTIME=
5140
5141else
5142 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5143
5144fi
5145
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005146# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005147if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005148 enableval=$enable_debug_symbols;
5149else
5150 enableval=no
5151fi
5152
5153if test ${enableval} = "no" ; then
5154 DEBUG_SYMBOLS=
5155
5156else
5157 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5158
5159fi
5160
Reid Spencera773bd52006-08-04 18:18:08 +00005161# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005162if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005163 enableval=$enable_jit;
5164else
5165 enableval=default
5166fi
5167
5168if test ${enableval} = "no"
5169then
5170 JIT=
5171
5172else
5173 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005174 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005175 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005176 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005177 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005178 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005179 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005180 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005181 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005182 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005183 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005184 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005185 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005186 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005187 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005188 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005189 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005190 Hexagon) TARGET_HAS_JIT=0
5191 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005192 MBlaze) TARGET_HAS_JIT=0
5193 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005194 NVPTX) TARGET_HAS_JIT=0
5195 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005196 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005197 ;;
5198 esac
5199fi
5200
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005201# Check whether --enable-docs was given.
5202if test "${enable_docs+set}" = set; then
5203 enableval=$enable_docs;
5204else
5205 enableval=default
5206fi
5207
5208case "$enableval" in
5209 yes) ENABLE_DOCS=1
5210 ;;
5211 no) ENABLE_DOCS=0
5212 ;;
5213 default) ENABLE_DOCS=1
5214 ;;
5215 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5216echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5217 { (exit 1); exit 1; }; } ;;
5218esac
5219
Reid Spencera773bd52006-08-04 18:18:08 +00005220# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005221if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005222 enableval=$enable_doxygen;
5223else
5224 enableval=default
5225fi
5226
5227case "$enableval" in
5228 yes) ENABLE_DOXYGEN=1
5229 ;;
5230 no) ENABLE_DOXYGEN=0
5231 ;;
5232 default) ENABLE_DOXYGEN=0
5233 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5235echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5236 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005237esac
5238
5239# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005240if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005241 enableval=$enable_threads;
5242else
Reid Spencer65c5d752006-11-05 17:08:18 +00005243 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005244fi
5245
5246case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005247 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005248 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005249 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005250 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005251 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005252 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5254echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005256esac
5257
Owen Andersona8603702009-05-19 22:18:56 +00005258cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005259#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005260_ACEOF
5261
5262
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005263# Check whether --enable-pthreads was given.
5264if test "${enable_pthreads+set}" = set; then
5265 enableval=$enable_pthreads;
5266else
5267 enableval=default
5268fi
5269
5270case "$enableval" in
5271 yes) ENABLE_PTHREADS=1
5272 ;;
5273 no) ENABLE_PTHREADS=0
5274 ;;
5275 default) ENABLE_PTHREADS=1
5276 ;;
5277 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5278echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5279 { (exit 1); exit 1; }; } ;;
5280esac
5281
Reid Spencer89b0d992006-12-16 22:07:52 +00005282# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005283if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005284 enableval=$enable_pic;
5285else
5286 enableval=default
5287fi
5288
5289case "$enableval" in
5290 yes) ENABLE_PIC=1
5291 ;;
5292 no) ENABLE_PIC=0
5293 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005294 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005295 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5297echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005299esac
5300
5301cat >>confdefs.h <<_ACEOF
5302#define ENABLE_PIC $ENABLE_PIC
5303_ACEOF
5304
5305
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005306# Check whether --enable-shared was given.
5307if test "${enable_shared+set}" = set; then
5308 enableval=$enable_shared;
5309else
5310 enableval=default
5311fi
5312
5313case "$enableval" in
5314 yes) ENABLE_SHARED=1
5315 ;;
5316 no) ENABLE_SHARED=0
5317 ;;
5318 default) ENABLE_SHARED=0
5319 ;;
5320 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5321echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5322 { (exit 1); exit 1; }; } ;;
5323esac
5324
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005325# Check whether --enable-embed-stdcxx was given.
5326if test "${enable_embed_stdcxx+set}" = set; then
5327 enableval=$enable_embed_stdcxx;
5328else
5329 enableval=default
5330fi
5331
5332case "$enableval" in
5333 yes) ENABLE_EMBED_STDCXX=1
5334 ;;
5335 no) ENABLE_EMBED_STDCXX=0
5336 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005337 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005338 ;;
5339 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5340echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5341 { (exit 1); exit 1; }; } ;;
5342esac
5343
Daniel Dunbardd464df2010-05-10 20:11:56 +00005344# Check whether --enable-timestamps was given.
5345if test "${enable_timestamps+set}" = set; then
5346 enableval=$enable_timestamps;
5347else
5348 enableval=default
5349fi
5350
5351case "$enableval" in
5352 yes) ENABLE_TIMESTAMPS=1
5353 ;;
5354 no) ENABLE_TIMESTAMPS=0
5355 ;;
5356 default) ENABLE_TIMESTAMPS=1
5357 ;;
5358 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5359echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5360 { (exit 1); exit 1; }; } ;;
5361esac
5362
5363cat >>confdefs.h <<_ACEOF
5364#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5365_ACEOF
5366
5367
Reid Spencera773bd52006-08-04 18:18:08 +00005368TARGETS_TO_BUILD=""
5369# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005370if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005371 enableval=$enable_targets;
5372else
5373 enableval=all
5374fi
5375
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005376if test "$enableval" = host-only ; then
5377 enableval=host
5378fi
Reid Spencera773bd52006-08-04 18:18:08 +00005379case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005380 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005381 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5382 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005383 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5384 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5385 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5386 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005387 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5388 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005389 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005390 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005391 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5392 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005393 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005394 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005395 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005396 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005397 host) case "$llvm_cv_target_arch" in
5398 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5399 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5400 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5401 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005402 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5403 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005404 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005405 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005406 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5407 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005408 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005409 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005410 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5411echo "$as_me: error: Can not set target to build" >&2;}
5412 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005413 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5415echo "$as_me: error: Unrecognized target $a_target" >&2;}
5416 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005417 esac
5418 done
5419 ;;
5420esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005421
5422# Check whether --enable-experimental-targets was given.
5423if test "${enable_experimental_targets+set}" = set; then
5424 enableval=$enable_experimental_targets;
5425else
5426 enableval=disable
5427fi
5428
5429
5430if test ${enableval} != "disable"
5431then
5432 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5433fi
5434
Reid Spencera773bd52006-08-04 18:18:08 +00005435TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5436
5437
Douglas Gregor0711c302009-06-17 00:43:20 +00005438for a_target in $TARGETS_TO_BUILD; do
5439 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5440
5441cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005442#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5443_ACEOF
5444
5445 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5446 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005447 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005448 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005449 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5450 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5451 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005452 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5453 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5454 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005455
5456cat >>confdefs.h <<_ACEOF
5457#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005458_ACEOF
5459
5460
5461cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005462#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5463_ACEOF
5464
5465
5466cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005467#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005468_ACEOF
5469
5470
5471cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005472#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005473_ACEOF
5474
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005475 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005476
5477cat >>confdefs.h <<_ACEOF
5478#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5479_ACEOF
5480
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005481 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005482 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5483
5484cat >>confdefs.h <<_ACEOF
5485#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5486_ACEOF
5487
5488 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005489 fi
5490done
5491
Douglas Gregor1555a232009-06-16 20:12:29 +00005492LLVM_ENUM_TARGETS=""
5493LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005494LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005495LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005496for target_to_build in $TARGETS_TO_BUILD; do
5497 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005498 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005499 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5500 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005501 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5502 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5503 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005504 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5505 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5506 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005507done
5508
5509
5510
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005511
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005512
Reid Spencera773bd52006-08-04 18:18:08 +00005513
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005514# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005515if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005516 withval=$with_optimize_option;
5517else
5518 withval=default
5519fi
5520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005521{ echo "$as_me:$LINENO: checking optimization flags" >&5
5522echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005523case "$withval" in
5524 default)
5525 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005526 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005527 MingW) optimize_option=-O2 ;;
5528 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005529 esac ;;
5530 *) optimize_option="$withval" ;;
5531esac
5532OPTIMIZE_OPTION=$optimize_option
5533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005534{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5535echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005536
5537
Reid Spencera773bd52006-08-04 18:18:08 +00005538# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005539if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005540 withval=$with_extra_options;
5541else
5542 withval=default
5543fi
5544
5545case "$withval" in
5546 default) EXTRA_OPTIONS= ;;
5547 *) EXTRA_OPTIONS=$withval ;;
5548esac
5549EXTRA_OPTIONS=$EXTRA_OPTIONS
5550
5551
Daniel Dunbared344d22011-06-16 22:30:41 +00005552
5553# Check whether --with-extra-ld-options was given.
5554if test "${with_extra_ld_options+set}" = set; then
5555 withval=$with_extra_ld_options;
5556else
5557 withval=default
5558fi
5559
5560case "$withval" in
5561 default) EXTRA_LD_OPTIONS= ;;
5562 *) EXTRA_LD_OPTIONS=$withval ;;
5563esac
5564EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5565
5566
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005567# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005568if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005569 enableval=$enable_bindings;
5570else
5571 enableval=default
5572fi
5573
5574BINDINGS_TO_BUILD=""
5575case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005576 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005577 all ) BINDINGS_TO_BUILD="ocaml" ;;
5578 none | no) BINDINGS_TO_BUILD="" ;;
5579 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5580 case "$a_binding" in
5581 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005582 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5583echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5584 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005585 esac
5586 done
5587 ;;
5588esac
5589
Reid Spencera773bd52006-08-04 18:18:08 +00005590
Gordon Henriksenf0915682007-10-02 16:42:22 +00005591# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005592if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005593 withval=$with_ocaml_libdir;
5594else
5595 withval=auto
5596fi
5597
5598case "$withval" in
5599 auto) with_ocaml_libdir="$withval" ;;
5600 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005601 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5602echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5603 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005604esac
5605
5606
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005607# Check whether --with-clang-srcdir was given.
5608if test "${with_clang_srcdir+set}" = set; then
5609 withval=$with_clang_srcdir;
5610else
5611 withval="-"
5612fi
5613
5614case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005615 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005616 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5617 *) clang_src_root="$ac_pwd/$withval" ;;
5618esac
5619CLANG_SRC_ROOT=$clang_src_root
5620
5621
5622
Chandler Carruth6b241162010-10-19 08:21:25 +00005623# Check whether --with-clang-resource-dir was given.
5624if test "${with_clang_resource_dir+set}" = set; then
5625 withval=$with_clang_resource_dir;
5626else
5627 withval=""
5628fi
5629
5630
5631cat >>confdefs.h <<_ACEOF
5632#define CLANG_RESOURCE_DIR "$withval"
5633_ACEOF
5634
5635
5636
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005637# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005638if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005639 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005640else
5641 withval=""
5642fi
5643
5644
5645cat >>confdefs.h <<_ACEOF
5646#define C_INCLUDE_DIRS "$withval"
5647_ACEOF
5648
5649
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005650# Clang normally uses the system c++ headers and libraries. With this option,
5651# clang will use the ones provided by a gcc installation instead. This option should
5652# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005653
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005654# Check whether --with-gcc-toolchain was given.
5655if test "${with_gcc_toolchain+set}" = set; then
5656 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005657else
5658 withval=""
5659fi
5660
5661
5662cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005663#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005664_ACEOF
5665
5666
5667
Sebastian Pope4f1b372012-04-30 20:06:58 +00005668# Check whether --with-default-sysroot was given.
5669if test "${with_default_sysroot+set}" = set; then
5670 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005671else
5672 withval=""
5673fi
5674
5675
5676cat >>confdefs.h <<_ACEOF
5677#define DEFAULT_SYSROOT "$withval"
5678_ACEOF
5679
5680
5681
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005682# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005683if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005684 withval=$with_binutils_include;
5685else
5686 withval=default
5687fi
5688
5689case "$withval" in
5690 default) WITH_BINUTILS_INCDIR=default ;;
5691 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005692 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5693echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5694 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005695esac
5696if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5697 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5698
5699 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5700 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005701 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5702echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5703 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005704 fi
5705fi
5706
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005707
5708# Check whether --with-bug-report-url was given.
5709if test "${with_bug_report_url+set}" = set; then
5710 withval=$with_bug_report_url;
5711else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005712 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005713fi
5714
5715
5716cat >>confdefs.h <<_ACEOF
5717#define BUG_REPORT_URL "$withval"
5718_ACEOF
5719
5720
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005721# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005722if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005723 enableval=$enable_libffi; case "$enableval" in
5724 yes) llvm_cv_enable_libffi="yes" ;;
5725 no) llvm_cv_enable_libffi="no" ;;
5726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005727echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5728 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005729 esac
5730else
5731 llvm_cv_enable_libffi=no
5732fi
5733
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005734
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005735
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005736# Check whether --with-internal-prefix was given.
5737if test "${with_internal_prefix+set}" = set; then
5738 withval=$with_internal_prefix;
5739else
5740 withval=""
5741fi
5742
5743INTERNAL_PREFIX=$withval
5744
5745
5746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5748echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5749if test "${lt_cv_path_NM+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005751else
5752 if test -n "$NM"; then
5753 # Let the user override the test.
5754 lt_cv_path_NM="$NM"
5755else
5756 lt_nm_to_check="${ac_tool_prefix}nm"
5757 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5758 lt_nm_to_check="$lt_nm_to_check nm"
5759 fi
5760 for lt_tmp_nm in $lt_nm_to_check; do
5761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5762 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5763 IFS="$lt_save_ifs"
5764 test -z "$ac_dir" && ac_dir=.
5765 tmp_nm="$ac_dir/$lt_tmp_nm"
5766 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5767 # Check to see if the nm accepts a BSD-compat flag.
5768 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5769 # nm: unknown option "B" ignored
5770 # Tru64's nm complains that /dev/null is an invalid object file
5771 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5772 */dev/null* | *'Invalid file or object type'*)
5773 lt_cv_path_NM="$tmp_nm -B"
5774 break
5775 ;;
5776 *)
5777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5778 */dev/null*)
5779 lt_cv_path_NM="$tmp_nm -p"
5780 break
5781 ;;
5782 *)
5783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5784 continue # so that we can try to find one that supports BSD flags
5785 ;;
5786 esac
5787 ;;
5788 esac
5789 fi
5790 done
5791 IFS="$lt_save_ifs"
5792 done
5793 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5794fi
5795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5797echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005798NM="$lt_cv_path_NM"
5799
5800
5801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005802{ echo "$as_me:$LINENO: checking for GNU make" >&5
5803echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5804if test "${llvm_cv_gnu_make_command+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005806else
5807 llvm_cv_gnu_make_command=''
5808 for a in "$MAKE" make gmake gnumake ; do
5809 if test -z "$a" ; then continue ; fi ;
5810 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5811 then
5812 llvm_cv_gnu_make_command=$a ;
5813 break;
5814 fi
5815 done
5816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005817{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5818echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005819 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5820 ifGNUmake='' ;
5821 else
5822 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005823 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5824echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005825 fi
5826
5827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5829echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005830LN_S=$as_ln_s
5831if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005832 { echo "$as_me:$LINENO: result: yes" >&5
5833echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5836echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005837fi
5838
5839# Extract the first word of "cmp", so it can be a program name with args.
5840set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843if test "${ac_cv_path_CMP+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005845else
5846 case $CMP in
5847 [\\/]* | ?:[\\/]*)
5848 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5849 ;;
5850 *)
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 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 +00005858 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005860 break 2
5861 fi
5862done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863done
Reid Spencera773bd52006-08-04 18:18:08 +00005864IFS=$as_save_IFS
5865
5866 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5867 ;;
5868esac
5869fi
5870CMP=$ac_cv_path_CMP
5871if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872 { echo "$as_me:$LINENO: result: $CMP" >&5
5873echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875 { echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005877fi
5878
5879
5880# Extract the first word of "cp", so it can be a program name with args.
5881set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884if test "${ac_cv_path_CP+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005886else
5887 case $CP in
5888 [\\/]* | ?:[\\/]*)
5889 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5890 ;;
5891 *)
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 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 +00005899 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005901 break 2
5902 fi
5903done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904done
Reid Spencera773bd52006-08-04 18:18:08 +00005905IFS=$as_save_IFS
5906
5907 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5908 ;;
5909esac
5910fi
5911CP=$ac_cv_path_CP
5912if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005913 { echo "$as_me:$LINENO: result: $CP" >&5
5914echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005916 { echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005918fi
5919
5920
5921# Extract the first word of "date", so it can be a program name with args.
5922set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925if test "${ac_cv_path_DATE+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005927else
5928 case $DATE in
5929 [\\/]* | ?:[\\/]*)
5930 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5931 ;;
5932 *)
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 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 +00005940 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005942 break 2
5943 fi
5944done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945done
Reid Spencera773bd52006-08-04 18:18:08 +00005946IFS=$as_save_IFS
5947
5948 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5949 ;;
5950esac
5951fi
5952DATE=$ac_cv_path_DATE
5953if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005954 { echo "$as_me:$LINENO: result: $DATE" >&5
5955echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005957 { echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005959fi
5960
5961
5962# Extract the first word of "find", so it can be a program name with args.
5963set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966if test "${ac_cv_path_FIND+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005968else
5969 case $FIND in
5970 [\\/]* | ?:[\\/]*)
5971 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5972 ;;
5973 *)
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 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 +00005981 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005983 break 2
5984 fi
5985done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986done
Reid Spencera773bd52006-08-04 18:18:08 +00005987IFS=$as_save_IFS
5988
5989 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5990 ;;
5991esac
5992fi
5993FIND=$ac_cv_path_FIND
5994if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005995 { echo "$as_me:$LINENO: result: $FIND" >&5
5996echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005998 { echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006000fi
6001
6002
6003# Extract the first word of "grep", so it can be a program name with args.
6004set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007if test "${ac_cv_path_GREP+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006009else
6010 case $GREP in
6011 [\\/]* | ?:[\\/]*)
6012 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6013 ;;
6014 *)
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 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 +00006022 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006024 break 2
6025 fi
6026done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027done
Reid Spencera773bd52006-08-04 18:18:08 +00006028IFS=$as_save_IFS
6029
6030 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6031 ;;
6032esac
6033fi
6034GREP=$ac_cv_path_GREP
6035if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036 { echo "$as_me:$LINENO: result: $GREP" >&5
6037echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006039 { echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006041fi
6042
6043
6044# Extract the first word of "mkdir", so it can be a program name with args.
6045set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048if test "${ac_cv_path_MKDIR+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006050else
6051 case $MKDIR in
6052 [\\/]* | ?:[\\/]*)
6053 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6054 ;;
6055 *)
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 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 +00006063 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006065 break 2
6066 fi
6067done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068done
Reid Spencera773bd52006-08-04 18:18:08 +00006069IFS=$as_save_IFS
6070
6071 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6072 ;;
6073esac
6074fi
6075MKDIR=$ac_cv_path_MKDIR
6076if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006077 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6078echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006080 { echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006082fi
6083
6084
6085# Extract the first word of "mv", so it can be a program name with args.
6086set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089if test "${ac_cv_path_MV+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006091else
6092 case $MV in
6093 [\\/]* | ?:[\\/]*)
6094 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6095 ;;
6096 *)
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 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 +00006104 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006106 break 2
6107 fi
6108done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109done
Reid Spencera773bd52006-08-04 18:18:08 +00006110IFS=$as_save_IFS
6111
6112 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6113 ;;
6114esac
6115fi
6116MV=$ac_cv_path_MV
6117if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006118 { echo "$as_me:$LINENO: result: $MV" >&5
6119echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006121 { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006123fi
6124
6125
6126if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6128set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131if test "${ac_cv_prog_RANLIB+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006133else
6134 if test -n "$RANLIB"; then
6135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 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 +00006144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006146 break 2
6147 fi
6148done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149done
Reid Spencera773bd52006-08-04 18:18:08 +00006150IFS=$as_save_IFS
6151
6152fi
6153fi
6154RANLIB=$ac_cv_prog_RANLIB
6155if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6157echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006159 { echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006161fi
6162
6163
6164fi
6165if test -z "$ac_cv_prog_RANLIB"; then
6166 ac_ct_RANLIB=$RANLIB
6167 # Extract the first word of "ranlib", so it can be a program name with args.
6168set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006173else
6174 if test -n "$ac_ct_RANLIB"; then
6175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 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 +00006184 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006186 break 2
6187 fi
6188done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189done
Reid Spencera773bd52006-08-04 18:18:08 +00006190IFS=$as_save_IFS
6191
6192fi
6193fi
6194ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6197echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199 { echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006201fi
6202
6203 if test "x$ac_ct_RANLIB" = x; then
6204 RANLIB=":"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6209whose name does not start with the host triplet. If you think this
6210configuration is useful to you, please write to autoconf@gnu.org." >&5
6211echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6212whose name does not start with the host triplet. If you think this
6213configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006214ac_tool_warned=yes ;;
6215esac
6216 RANLIB=$ac_ct_RANLIB
6217 fi
6218else
6219 RANLIB="$ac_cv_prog_RANLIB"
6220fi
6221
Torok Edwin871384f2010-01-26 08:50:50 +00006222if test -n "$ac_tool_prefix"; then
6223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6224set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227if test "${ac_cv_prog_AR+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006229else
6230 if test -n "$AR"; then
6231 ac_cv_prog_AR="$AR" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 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 +00006240 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006242 break 2
6243 fi
6244done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245done
Torok Edwin871384f2010-01-26 08:50:50 +00006246IFS=$as_save_IFS
6247
6248fi
6249fi
6250AR=$ac_cv_prog_AR
6251if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252 { echo "$as_me:$LINENO: result: $AR" >&5
6253echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255 { echo "$as_me:$LINENO: result: no" >&5
6256echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006257fi
6258
6259
6260fi
6261if test -z "$ac_cv_prog_AR"; then
6262 ac_ct_AR=$AR
6263 # Extract the first word of "ar", so it can be a program name with args.
6264set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006269else
6270 if test -n "$ac_ct_AR"; then
6271 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 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 +00006280 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006282 break 2
6283 fi
6284done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285done
Torok Edwin871384f2010-01-26 08:50:50 +00006286IFS=$as_save_IFS
6287
6288fi
6289fi
6290ac_ct_AR=$ac_cv_prog_ac_ct_AR
6291if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6293echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 { echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006297fi
6298
6299 if test "x$ac_ct_AR" = x; then
6300 AR="false"
6301 else
6302 case $cross_compiling:$ac_tool_warned in
6303yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006304{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6305whose name does not start with the host triplet. If you think this
6306configuration is useful to you, please write to autoconf@gnu.org." >&5
6307echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6308whose name does not start with the host triplet. If you think this
6309configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006310ac_tool_warned=yes ;;
6311esac
6312 AR=$ac_ct_AR
6313 fi
6314else
6315 AR="$ac_cv_prog_AR"
6316fi
6317
Reid Spencera773bd52006-08-04 18:18:08 +00006318# Extract the first word of "rm", so it can be a program name with args.
6319set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322if test "${ac_cv_path_RM+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006324else
6325 case $RM in
6326 [\\/]* | ?:[\\/]*)
6327 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6328 ;;
6329 *)
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 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 +00006337 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006339 break 2
6340 fi
6341done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342done
Reid Spencera773bd52006-08-04 18:18:08 +00006343IFS=$as_save_IFS
6344
6345 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6346 ;;
6347esac
6348fi
6349RM=$ac_cv_path_RM
6350if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006351 { echo "$as_me:$LINENO: result: $RM" >&5
6352echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006354 { echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006356fi
6357
6358
6359# Extract the first word of "sed", so it can be a program name with args.
6360set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363if test "${ac_cv_path_SED+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006365else
6366 case $SED in
6367 [\\/]* | ?:[\\/]*)
6368 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6369 ;;
6370 *)
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 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 +00006378 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006380 break 2
6381 fi
6382done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383done
Reid Spencera773bd52006-08-04 18:18:08 +00006384IFS=$as_save_IFS
6385
6386 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6387 ;;
6388esac
6389fi
6390SED=$ac_cv_path_SED
6391if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006392 { echo "$as_me:$LINENO: result: $SED" >&5
6393echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006395 { echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006397fi
6398
6399
6400# Extract the first word of "tar", so it can be a program name with args.
6401set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404if test "${ac_cv_path_TAR+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006406else
6407 case $TAR in
6408 [\\/]* | ?:[\\/]*)
6409 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6410 ;;
6411 *)
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 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 +00006419 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006421 break 2
6422 fi
6423done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424done
Reid Spencera773bd52006-08-04 18:18:08 +00006425IFS=$as_save_IFS
6426
6427 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6428 ;;
6429esac
6430fi
6431TAR=$ac_cv_path_TAR
6432if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433 { echo "$as_me:$LINENO: result: $TAR" >&5
6434echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436 { echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006438fi
6439
6440
6441# Extract the first word of "pwd", so it can be a program name with args.
6442set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445if test "${ac_cv_path_BINPWD+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006447else
6448 case $BINPWD in
6449 [\\/]* | ?:[\\/]*)
6450 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6451 ;;
6452 *)
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 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 +00006460 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006462 break 2
6463 fi
6464done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006465done
Reid Spencera773bd52006-08-04 18:18:08 +00006466IFS=$as_save_IFS
6467
6468 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6469 ;;
6470esac
6471fi
6472BINPWD=$ac_cv_path_BINPWD
6473if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006474 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6475echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006477 { echo "$as_me:$LINENO: result: no" >&5
6478echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006479fi
6480
6481
6482
6483# Extract the first word of "Graphviz", so it can be a program name with args.
6484set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006489else
6490 case $GRAPHVIZ in
6491 [\\/]* | ?:[\\/]*)
6492 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6493 ;;
6494 *)
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 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 +00006502 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006504 break 2
6505 fi
6506done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006507done
Reid Spencera773bd52006-08-04 18:18:08 +00006508IFS=$as_save_IFS
6509
6510 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6511 ;;
6512esac
6513fi
6514GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6515if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006516 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6517echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006518else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519 { echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006521fi
6522
6523
6524if test "$GRAPHVIZ" != "echo Graphviz" ; then
6525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006526cat >>confdefs.h <<\_ACEOF
6527#define HAVE_GRAPHVIZ 1
6528_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006529
Jeff Cohen28783c32007-01-12 18:22:38 +00006530 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006531 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6532 fi
6533
6534cat >>confdefs.h <<_ACEOF
6535#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6536_ACEOF
6537
6538fi
6539# Extract the first word of "dot", so it can be a program name with args.
6540set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543if test "${ac_cv_path_DOT+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006545else
6546 case $DOT in
6547 [\\/]* | ?:[\\/]*)
6548 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6549 ;;
6550 *)
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552for as_dir in $PATH
6553do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 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 +00006558 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006560 break 2
6561 fi
6562done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006563done
Reid Spencera773bd52006-08-04 18:18:08 +00006564IFS=$as_save_IFS
6565
6566 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6567 ;;
6568esac
6569fi
6570DOT=$ac_cv_path_DOT
6571if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006572 { echo "$as_me:$LINENO: result: $DOT" >&5
6573echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006575 { echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006577fi
6578
6579
6580if test "$DOT" != "echo dot" ; then
6581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006582cat >>confdefs.h <<\_ACEOF
6583#define HAVE_DOT 1
6584_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006585
Jeff Cohen28783c32007-01-12 18:22:38 +00006586 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006587 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6588 fi
6589
6590cat >>confdefs.h <<_ACEOF
6591#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6592_ACEOF
6593
6594fi
David Greenef0b9eff2009-07-09 17:16:26 +00006595# Extract the first word of "fdp", so it can be a program name with args.
6596set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599if test "${ac_cv_path_FDP+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006601else
6602 case $FDP in
6603 [\\/]* | ?:[\\/]*)
6604 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6605 ;;
6606 *)
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 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 +00006614 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006616 break 2
6617 fi
6618done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006619done
David Greenef0b9eff2009-07-09 17:16:26 +00006620IFS=$as_save_IFS
6621
6622 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6623 ;;
6624esac
6625fi
6626FDP=$ac_cv_path_FDP
6627if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628 { echo "$as_me:$LINENO: result: $FDP" >&5
6629echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006631 { echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006633fi
6634
6635
6636if test "$FDP" != "echo fdp" ; then
6637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006638cat >>confdefs.h <<\_ACEOF
6639#define HAVE_FDP 1
6640_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006641
6642 if test "$llvm_cv_os_type" = "MingW" ; then
6643 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6644 fi
6645
6646cat >>confdefs.h <<_ACEOF
6647#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6648_ACEOF
6649
6650fi
6651# Extract the first word of "neato", so it can be a program name with args.
6652set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655if test "${ac_cv_path_NEATO+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006657else
6658 case $NEATO in
6659 [\\/]* | ?:[\\/]*)
6660 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6661 ;;
6662 *)
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 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 +00006670 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006672 break 2
6673 fi
6674done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006675done
David Greenef0b9eff2009-07-09 17:16:26 +00006676IFS=$as_save_IFS
6677
6678 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6679 ;;
6680esac
6681fi
6682NEATO=$ac_cv_path_NEATO
6683if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684 { echo "$as_me:$LINENO: result: $NEATO" >&5
6685echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006686else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687 { echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006689fi
6690
6691
6692if test "$NEATO" != "echo neato" ; then
6693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006694cat >>confdefs.h <<\_ACEOF
6695#define HAVE_NEATO 1
6696_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006697
6698 if test "$llvm_cv_os_type" = "MingW" ; then
6699 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6700 fi
6701
6702cat >>confdefs.h <<_ACEOF
6703#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6704_ACEOF
6705
6706fi
6707# Extract the first word of "twopi", so it can be a program name with args.
6708set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711if test "${ac_cv_path_TWOPI+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006713else
6714 case $TWOPI in
6715 [\\/]* | ?:[\\/]*)
6716 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6717 ;;
6718 *)
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720for as_dir in $PATH
6721do
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 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 +00006726 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006728 break 2
6729 fi
6730done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731done
David Greenef0b9eff2009-07-09 17:16:26 +00006732IFS=$as_save_IFS
6733
6734 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6735 ;;
6736esac
6737fi
6738TWOPI=$ac_cv_path_TWOPI
6739if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6741echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743 { echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006745fi
6746
6747
6748if test "$TWOPI" != "echo twopi" ; then
6749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006750cat >>confdefs.h <<\_ACEOF
6751#define HAVE_TWOPI 1
6752_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006753
6754 if test "$llvm_cv_os_type" = "MingW" ; then
6755 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6756 fi
6757
6758cat >>confdefs.h <<_ACEOF
6759#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6760_ACEOF
6761
6762fi
6763# Extract the first word of "circo", so it can be a program name with args.
6764set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767if test "${ac_cv_path_CIRCO+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006769else
6770 case $CIRCO in
6771 [\\/]* | ?:[\\/]*)
6772 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6773 ;;
6774 *)
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 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 +00006782 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006784 break 2
6785 fi
6786done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006787done
David Greenef0b9eff2009-07-09 17:16:26 +00006788IFS=$as_save_IFS
6789
6790 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6791 ;;
6792esac
6793fi
6794CIRCO=$ac_cv_path_CIRCO
6795if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6797echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006799 { echo "$as_me:$LINENO: result: no" >&5
6800echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006801fi
6802
6803
6804if test "$CIRCO" != "echo circo" ; then
6805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806cat >>confdefs.h <<\_ACEOF
6807#define HAVE_CIRCO 1
6808_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006809
6810 if test "$llvm_cv_os_type" = "MingW" ; then
6811 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6812 fi
6813
6814cat >>confdefs.h <<_ACEOF
6815#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6816_ACEOF
6817
6818fi
Reid Spencera773bd52006-08-04 18:18:08 +00006819for ac_prog in gv gsview32
6820do
6821 # Extract the first word of "$ac_prog", so it can be a program name with args.
6822set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825if test "${ac_cv_path_GV+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006827else
6828 case $GV in
6829 [\\/]* | ?:[\\/]*)
6830 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6831 ;;
6832 *)
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 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 +00006840 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006842 break 2
6843 fi
6844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845done
Reid Spencera773bd52006-08-04 18:18:08 +00006846IFS=$as_save_IFS
6847
6848 ;;
6849esac
6850fi
6851GV=$ac_cv_path_GV
6852if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853 { echo "$as_me:$LINENO: result: $GV" >&5
6854echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006856 { echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006858fi
6859
6860
6861 test -n "$GV" && break
6862done
6863test -n "$GV" || GV="echo gv"
6864
6865if test "$GV" != "echo gv" ; then
6866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006867cat >>confdefs.h <<\_ACEOF
6868#define HAVE_GV 1
6869_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006870
Jeff Cohen28783c32007-01-12 18:22:38 +00006871 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006872 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6873 fi
6874
6875cat >>confdefs.h <<_ACEOF
6876#define LLVM_PATH_GV "$GV${EXEEXT}"
6877_ACEOF
6878
6879fi
6880# Extract the first word of "dotty", so it can be a program name with args.
6881set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884if test "${ac_cv_path_DOTTY+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006886else
6887 case $DOTTY in
6888 [\\/]* | ?:[\\/]*)
6889 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6890 ;;
6891 *)
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 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 +00006899 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006901 break 2
6902 fi
6903done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904done
Reid Spencera773bd52006-08-04 18:18:08 +00006905IFS=$as_save_IFS
6906
6907 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6908 ;;
6909esac
6910fi
6911DOTTY=$ac_cv_path_DOTTY
6912if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6914echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916 { echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006918fi
6919
6920
6921if test "$DOTTY" != "echo dotty" ; then
6922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923cat >>confdefs.h <<\_ACEOF
6924#define HAVE_DOTTY 1
6925_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006926
Jeff Cohen28783c32007-01-12 18:22:38 +00006927 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006928 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6929 fi
6930
6931cat >>confdefs.h <<_ACEOF
6932#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6933_ACEOF
6934
6935fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006936# Extract the first word of "xdot.py", so it can be a program name with args.
6937set dummy xdot.py; ac_word=$2
6938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940if test "${ac_cv_path_XDOT_PY+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943 case $XDOT_PY in
6944 [\\/]* | ?:[\\/]*)
6945 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6946 ;;
6947 *)
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959done
6960done
6961IFS=$as_save_IFS
6962
6963 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6964 ;;
6965esac
6966fi
6967XDOT_PY=$ac_cv_path_XDOT_PY
6968if test -n "$XDOT_PY"; then
6969 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6970echo "${ECHO_T}$XDOT_PY" >&6; }
6971else
6972 { echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6; }
6974fi
6975
6976
6977if test "$XDOT_PY" != "echo xdot.py" ; then
6978
6979cat >>confdefs.h <<\_ACEOF
6980#define HAVE_XDOT_PY 1
6981_ACEOF
6982
6983 if test "$llvm_cv_os_type" = "MingW" ; then
6984 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6985 fi
6986
6987cat >>confdefs.h <<_ACEOF
6988#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6989_ACEOF
6990
6991fi
Reid Spencera773bd52006-08-04 18:18:08 +00006992
Reid Spencera773bd52006-08-04 18:18:08 +00006993# Find a good install program. We prefer a C program (faster),
6994# so one script is as good as another. But avoid the broken or
6995# incompatible versions:
6996# SysV /etc/install, /usr/sbin/install
6997# SunOS /usr/etc/install
6998# IRIX /sbin/install
6999# AIX /bin/install
7000# AmigaOS /C/install, which installs bootblocks on floppy discs
7001# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7002# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7003# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7004# OS/2's system install, which has a completely different semantic
7005# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7007echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007008if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007009if test "${ac_cv_path_install+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007011else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017 # Account for people who put trailing slashes in PATH elements.
7018case $as_dir/ in
7019 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007022 /usr/ucb/* ) ;;
7023 *)
7024 # OSF1 and SCO ODT 3.0 have their own names for install.
7025 # Don't use installbsd from OSF since it installs stuff as root
7026 # by default.
7027 for ac_prog in ginstall scoinst install; do
7028 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029 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 +00007030 if test $ac_prog = install &&
7031 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7032 # AIX install. It has an incompatible calling convention.
7033 :
7034 elif test $ac_prog = install &&
7035 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7036 # program-specific install script used by HP pwplus--don't use.
7037 :
7038 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7040 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007041 fi
7042 fi
7043 done
7044 done
7045 ;;
7046esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047done
Reid Spencera773bd52006-08-04 18:18:08 +00007048IFS=$as_save_IFS
7049
7050
7051fi
7052 if test "${ac_cv_path_install+set}" = set; then
7053 INSTALL=$ac_cv_path_install
7054 else
7055 # As a last resort, use the slow shell script. Don't cache a
7056 # value for INSTALL within a source directory, because that will
7057 # break other packages using the cache if that directory is
7058 # removed, or if the value is a relative name.
7059 INSTALL=$ac_install_sh
7060 fi
7061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007062{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7063echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007064
7065# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7066# It thinks the first close brace ends the variable substitution.
7067test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7068
7069test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7070
7071test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7072
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007073case "$INSTALL" in
7074 [\\/$]* | ?:[\\/]* ) ;;
7075 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7076esac
Reid Spencera773bd52006-08-04 18:18:08 +00007077
7078# Extract the first word of "bzip2", so it can be a program name with args.
7079set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082if test "${ac_cv_path_BZIP2+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007084else
7085 case $BZIP2 in
7086 [\\/]* | ?:[\\/]*)
7087 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7088 ;;
7089 *)
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 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 +00007097 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007099 break 2
7100 fi
7101done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102done
Reid Spencera773bd52006-08-04 18:18:08 +00007103IFS=$as_save_IFS
7104
Reid Spencera773bd52006-08-04 18:18:08 +00007105 ;;
7106esac
7107fi
7108BZIP2=$ac_cv_path_BZIP2
7109if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7111echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007113 { echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007115fi
7116
7117
mike-m68cb3192010-05-06 23:45:43 +00007118# Extract the first word of "cat", so it can be a program name with args.
7119set dummy cat; ac_word=$2
7120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122if test "${ac_cv_path_CAT+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124else
7125 case $CAT in
7126 [\\/]* | ?:[\\/]*)
7127 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7128 ;;
7129 *)
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141done
7142done
7143IFS=$as_save_IFS
7144
7145 ;;
7146esac
7147fi
7148CAT=$ac_cv_path_CAT
7149if test -n "$CAT"; then
7150 { echo "$as_me:$LINENO: result: $CAT" >&5
7151echo "${ECHO_T}$CAT" >&6; }
7152else
7153 { echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6; }
7155fi
7156
7157
Reid Spencera773bd52006-08-04 18:18:08 +00007158# Extract the first word of "doxygen", so it can be a program name with args.
7159set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162if test "${ac_cv_path_DOXYGEN+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007164else
7165 case $DOXYGEN in
7166 [\\/]* | ?:[\\/]*)
7167 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7168 ;;
7169 *)
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 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 +00007177 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007179 break 2
7180 fi
7181done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182done
Reid Spencera773bd52006-08-04 18:18:08 +00007183IFS=$as_save_IFS
7184
Reid Spencera773bd52006-08-04 18:18:08 +00007185 ;;
7186esac
7187fi
7188DOXYGEN=$ac_cv_path_DOXYGEN
7189if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7191echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007192else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 { echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007195fi
7196
7197
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007198# Extract the first word of "groff", so it can be a program name with args.
7199set dummy groff; ac_word=$2
7200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202if test "${ac_cv_path_GROFF+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204else
7205 case $GROFF in
7206 [\\/]* | ?:[\\/]*)
7207 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7208 ;;
7209 *)
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221done
7222done
7223IFS=$as_save_IFS
7224
7225 ;;
7226esac
7227fi
7228GROFF=$ac_cv_path_GROFF
7229if test -n "$GROFF"; then
7230 { echo "$as_me:$LINENO: result: $GROFF" >&5
7231echo "${ECHO_T}$GROFF" >&6; }
7232else
7233 { echo "$as_me:$LINENO: result: no" >&5
7234echo "${ECHO_T}no" >&6; }
7235fi
7236
7237
Reid Spencera773bd52006-08-04 18:18:08 +00007238# Extract the first word of "gzip", so it can be a program name with args.
7239set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007242if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007244else
Eric Christopher031d3072010-12-10 01:31:51 +00007245 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007246 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007247 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007248 ;;
7249 *)
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 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 +00007257 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007259 break 2
7260 fi
7261done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262done
Reid Spencera773bd52006-08-04 18:18:08 +00007263IFS=$as_save_IFS
7264
Reid Spencera773bd52006-08-04 18:18:08 +00007265 ;;
7266esac
7267fi
Eric Christopher031d3072010-12-10 01:31:51 +00007268GZIPBIN=$ac_cv_path_GZIPBIN
7269if test -n "$GZIPBIN"; then
7270 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7271echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273 { echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007275fi
7276
7277
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007278# Extract the first word of "pdfroff", so it can be a program name with args.
7279set dummy pdfroff; ac_word=$2
7280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282if test "${ac_cv_path_PDFROFF+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284else
7285 case $PDFROFF in
7286 [\\/]* | ?:[\\/]*)
7287 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7288 ;;
7289 *)
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301done
7302done
7303IFS=$as_save_IFS
7304
7305 ;;
7306esac
7307fi
7308PDFROFF=$ac_cv_path_PDFROFF
7309if test -n "$PDFROFF"; then
7310 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7311echo "${ECHO_T}$PDFROFF" >&6; }
7312else
7313 { echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6; }
7315fi
7316
7317
Reid Spencera773bd52006-08-04 18:18:08 +00007318# Extract the first word of "zip", so it can be a program name with args.
7319set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_ZIP+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007324else
7325 case $ZIP in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 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 +00007337 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007339 break 2
7340 fi
7341done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342done
Reid Spencera773bd52006-08-04 18:18:08 +00007343IFS=$as_save_IFS
7344
Reid Spencera773bd52006-08-04 18:18:08 +00007345 ;;
7346esac
7347fi
7348ZIP=$ac_cv_path_ZIP
7349if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350 { echo "$as_me:$LINENO: result: $ZIP" >&5
7351echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007353 { echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007355fi
7356
7357
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007358for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007359do
7360 # Extract the first word of "$ac_prog", so it can be a program name with args.
7361set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364if test "${ac_cv_path_OCAMLC+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007366else
7367 case $OCAMLC in
7368 [\\/]* | ?:[\\/]*)
7369 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7370 ;;
7371 *)
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373for as_dir in $PATH
7374do
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 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 +00007379 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007381 break 2
7382 fi
7383done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007385IFS=$as_save_IFS
7386
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007387 ;;
7388esac
7389fi
7390OCAMLC=$ac_cv_path_OCAMLC
7391if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7393echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395 { echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007397fi
7398
7399
Gordon Henriksene7072162008-03-07 18:20:01 +00007400 test -n "$OCAMLC" && break
7401done
7402
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007403for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007404do
7405 # Extract the first word of "$ac_prog", so it can be a program name with args.
7406set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007411else
7412 case $OCAMLOPT in
7413 [\\/]* | ?:[\\/]*)
7414 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7415 ;;
7416 *)
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 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 +00007424 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007426 break 2
7427 fi
7428done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007430IFS=$as_save_IFS
7431
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007432 ;;
7433esac
7434fi
7435OCAMLOPT=$ac_cv_path_OCAMLOPT
7436if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7438echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007440 { echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007442fi
7443
7444
Gordon Henriksene7072162008-03-07 18:20:01 +00007445 test -n "$OCAMLOPT" && break
7446done
7447
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007448for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007449do
7450 # Extract the first word of "$ac_prog", so it can be a program name with args.
7451set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007456else
7457 case $OCAMLDEP in
7458 [\\/]* | ?:[\\/]*)
7459 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7460 ;;
7461 *)
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 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 +00007469 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007471 break 2
7472 fi
7473done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007475IFS=$as_save_IFS
7476
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007477 ;;
7478esac
7479fi
7480OCAMLDEP=$ac_cv_path_OCAMLDEP
7481if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7483echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007485 { echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007487fi
7488
7489
Gordon Henriksene7072162008-03-07 18:20:01 +00007490 test -n "$OCAMLDEP" && break
7491done
7492
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007493for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007494do
7495 # Extract the first word of "$ac_prog", so it can be a program name with args.
7496set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007501else
7502 case $OCAMLDOC in
7503 [\\/]* | ?:[\\/]*)
7504 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7505 ;;
7506 *)
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 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 +00007514 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007516 break 2
7517 fi
7518done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007520IFS=$as_save_IFS
7521
7522 ;;
7523esac
7524fi
7525OCAMLDOC=$ac_cv_path_OCAMLDOC
7526if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7528echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 { echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007532fi
7533
7534
7535 test -n "$OCAMLDOC" && break
7536done
7537
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007538for ac_prog in gas as
7539do
7540 # Extract the first word of "$ac_prog", so it can be a program name with args.
7541set dummy $ac_prog; ac_word=$2
7542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544if test "${ac_cv_path_GAS+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546else
7547 case $GAS in
7548 [\\/]* | ?:[\\/]*)
7549 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7550 ;;
7551 *)
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563done
7564done
7565IFS=$as_save_IFS
7566
7567 ;;
7568esac
7569fi
7570GAS=$ac_cv_path_GAS
7571if test -n "$GAS"; then
7572 { echo "$as_me:$LINENO: result: $GAS" >&5
7573echo "${ECHO_T}$GAS" >&6; }
7574else
7575 { echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6; }
7577fi
7578
7579
7580 test -n "$GAS" && break
7581done
7582
Reid Spencera773bd52006-08-04 18:18:08 +00007583
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007584{ echo "$as_me:$LINENO: checking for linker version" >&5
7585echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7586if test "${llvm_cv_link_version+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589
7590 version_string="$(ld -v 2>&1 | head -1)"
7591
7592 # Check for ld64.
7593 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007594 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007595 else
7596 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7597 fi
7598
7599fi
7600{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7601echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7602
7603cat >>confdefs.h <<_ACEOF
7604#define HOST_LINK_VERSION "$llvm_cv_link_version"
7605_ACEOF
7606
7607
7608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7610echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7611if test "${llvm_cv_link_use_r+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007613else
7614 ac_ext=c
7615ac_cpp='$CPP $CPPFLAGS'
7616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619
7620 oldcflags="$CFLAGS"
7621 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007622 cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h. */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007627/* end confdefs.h. */
7628
7629int
7630main ()
7631{
Dan Gohman39ed6782010-04-25 00:12:20 +00007632
Reid Spencera773bd52006-08-04 18:18:08 +00007633 ;
7634 return 0;
7635}
7636_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007637rm -f conftest.$ac_objext conftest$ac_exeext
7638if { (ac_try="$ac_link"
7639case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642esac
7643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_link") 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7652 { (case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655esac
7656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_try") 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest$ac_exeext'
7662 { (case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665esac
7666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_try") 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007671 llvm_cv_link_use_r=yes
7672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673 echo "$as_me: failed program was:" >&5
7674sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007678
Bill Wendlingebcceee2009-04-18 11:20:33 +00007679rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007681 CFLAGS="$oldcflags"
7682 ac_ext=c
7683ac_cpp='$CPP $CPPFLAGS'
7684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687
7688
7689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007690{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7691echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007692if test "$llvm_cv_link_use_r" = yes ; then
7693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007694cat >>confdefs.h <<\_ACEOF
7695#define HAVE_LINK_R 1
7696_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007697
7698 fi
7699
7700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007701{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7702echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7703if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007705else
7706 ac_ext=c
7707ac_cpp='$CPP $CPPFLAGS'
7708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711
7712 oldcflags="$CFLAGS"
7713 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714 cat >conftest.$ac_ext <<_ACEOF
7715/* confdefs.h. */
7716_ACEOF
7717cat confdefs.h >>conftest.$ac_ext
7718cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007719/* end confdefs.h. */
7720
7721int
7722main ()
7723{
Dan Gohman39ed6782010-04-25 00:12:20 +00007724
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007725 ;
7726 return 0;
7727}
7728_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007729rm -f conftest.$ac_objext conftest$ac_exeext
7730if { (ac_try="$ac_link"
7731case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7734esac
7735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_link") 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7744 { (case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7747esac
7748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_try") 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; } &&
7753 { ac_try='test -s conftest$ac_exeext'
7754 { (case "(($ac_try" in
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7757esac
7758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_try") 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007763 llvm_cv_link_use_export_dynamic=yes
7764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765 echo "$as_me: failed program was:" >&5
7766sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007770
Bill Wendlingebcceee2009-04-18 11:20:33 +00007771rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007773 CFLAGS="$oldcflags"
7774 ac_ext=c
7775ac_cpp='$CPP $CPPFLAGS'
7776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779
7780
7781fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7783echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007784if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007786cat >>confdefs.h <<\_ACEOF
7787#define HAVE_LINK_EXPORT_DYNAMIC 1
7788_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007789
7790 fi
7791
7792
Dan Gohmanda612d62010-06-01 14:56:56 +00007793{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7794echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7795if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798 ac_ext=c
7799ac_cpp='$CPP $CPPFLAGS'
7800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803
7804 oldcflags="$CFLAGS"
7805
7806 # The following code is from the autoconf manual,
7807 # "11.13: Limitations of Usual Tools".
7808 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7809 # Use mktemp if possible; otherwise fall back on mkdir,
7810 # with $RANDOM to make collisions less likely.
7811 : ${TMPDIR=/tmp}
7812 {
7813 tmp=`
7814 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7815 ` &&
7816 test -n "$tmp" && test -d "$tmp"
7817 } || {
7818 tmp=$TMPDIR/foo$$-$RANDOM
7819 (umask 077 && mkdir "$tmp")
7820 } || exit $?
7821
Dan Gohmanda612d62010-06-01 14:56:56 +00007822 echo "{" > "$tmp/export.map"
7823 echo " global: main;" >> "$tmp/export.map"
7824 echo " local: *;" >> "$tmp/export.map"
7825 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007826
Dan Gohmanda612d62010-06-01 14:56:56 +00007827 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007828 cat >conftest.$ac_ext <<_ACEOF
7829/* confdefs.h. */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h. */
7834
7835int
7836main ()
7837{
Dan Gohman39ed6782010-04-25 00:12:20 +00007838
Dan Gohman391569c2010-04-16 22:59:06 +00007839 ;
7840 return 0;
7841}
7842_ACEOF
7843rm -f conftest.$ac_objext conftest$ac_exeext
7844if { (ac_try="$ac_link"
7845case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848esac
7849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_link") 2>conftest.er1
7851 ac_status=$?
7852 grep -v '^ *+' conftest.er1 >conftest.err
7853 rm -f conftest.er1
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7858 { (case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7861esac
7862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_try") 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; } &&
7867 { ac_try='test -s conftest$ac_exeext'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007877 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007878else
7879 echo "$as_me: failed program was:" >&5
7880sed 's/^/| /' conftest.$ac_ext >&5
7881
Dan Gohman943005e2010-06-01 16:22:27 +00007882 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007883fi
7884
7885rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007887 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007888 rmdir "$tmp"
7889 CFLAGS="$oldcflags"
7890 ac_ext=c
7891ac_cpp='$CPP $CPPFLAGS'
7892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895
7896
7897fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007898{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7899echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7900if test "$llvm_cv_link_use_version_script" = yes ; then
7901 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007902
7903 fi
7904
7905
Reid Spencera773bd52006-08-04 18:18:08 +00007906
7907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007908{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7909echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7910if test "${ac_cv_c_const+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913 cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h. */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007918/* end confdefs.h. */
7919
7920int
7921main ()
7922{
7923/* FIXME: Include the comments suggested by Paul. */
7924#ifndef __cplusplus
7925 /* Ultrix mips cc rejects this. */
7926 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007927 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007928 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007929 char const *const *ccp;
7930 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007931 /* NEC SVR4.0.2 mips cc rejects this. */
7932 struct point {int x, y;};
7933 static struct point const zero = {0,0};
7934 /* AIX XL C 1.02.0.0 rejects this.
7935 It does not let you subtract one const X* pointer from another in
7936 an arm of an if-expression whose if-part is not a constant
7937 expression */
7938 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007939 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007940 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007941 ++ccp;
7942 p = (char**) ccp;
7943 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007944 { /* SCO 3.2v4 cc rejects this. */
7945 char *t;
7946 char const *s = 0 ? (char *) 0 : (char const *) 0;
7947
7948 *t++ = 0;
7949 if (s) return 0;
7950 }
7951 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7952 int x[] = {25, 17};
7953 const int *foo = &x[0];
7954 ++foo;
7955 }
7956 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7957 typedef const int *iptr;
7958 iptr p = 0;
7959 ++p;
7960 }
7961 { /* AIX XL C 1.02.0.0 rejects this saying
7962 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7963 struct s { int j; const int *ap[3]; };
7964 struct s *b; b->j = 5;
7965 }
7966 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7967 const int foo = 10;
7968 if (!foo) return 0;
7969 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007970 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007971#endif
7972
7973 ;
7974 return 0;
7975}
7976_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007977rm -f conftest.$ac_objext
7978if { (ac_try="$ac_compile"
7979case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982esac
7983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_compile") 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7992 { (case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7995esac
7996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_try") 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest.$ac_objext'
8002 { (case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
8006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_try") 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008011 ac_cv_c_const=yes
8012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008013 echo "$as_me: failed program was:" >&5
8014sed 's/^/| /' conftest.$ac_ext >&5
8015
8016 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008018
Reid Spencera773bd52006-08-04 18:18:08 +00008019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008021{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8022echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008023if test $ac_cv_c_const = no; then
8024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008025cat >>confdefs.h <<\_ACEOF
8026#define const
8027_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008028
8029fi
8030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008031
8032
8033
8034
8035
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008036ac_header_dirent=no
8037for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008038 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8039{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8040echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008044 cat >conftest.$ac_ext <<_ACEOF
8045/* confdefs.h. */
8046_ACEOF
8047cat confdefs.h >>conftest.$ac_ext
8048cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008049/* end confdefs.h. */
8050#include <sys/types.h>
8051#include <$ac_hdr>
8052
8053int
8054main ()
8055{
8056if ((DIR *) 0)
8057return 0;
8058 ;
8059 return 0;
8060}
8061_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008062rm -f conftest.$ac_objext
8063if { (ac_try="$ac_compile"
8064case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
8068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8077 { (case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080esac
8081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_try") 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; } &&
8086 { ac_try='test -s conftest.$ac_objext'
8087 { (case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090esac
8091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_try") 2>&5
8093 ac_status=$?
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008096 eval "$as_ac_Header=yes"
8097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008098 echo "$as_me: failed program was:" >&5
8099sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008103
Reid Spencera773bd52006-08-04 18:18:08 +00008104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008106ac_res=`eval echo '${'$as_ac_Header'}'`
8107 { echo "$as_me:$LINENO: result: $ac_res" >&5
8108echo "${ECHO_T}$ac_res" >&6; }
8109if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008110 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008111#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008112_ACEOF
8113
8114ac_header_dirent=$ac_hdr; break
8115fi
8116
8117done
8118# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8119if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8121echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8122if test "${ac_cv_search_opendir+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008124else
8125 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126cat >conftest.$ac_ext <<_ACEOF
8127/* confdefs.h. */
8128_ACEOF
8129cat confdefs.h >>conftest.$ac_ext
8130cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008131/* end confdefs.h. */
8132
Reid Spencera773bd52006-08-04 18:18:08 +00008133/* Override any GCC internal prototype to avoid an error.
8134 Use char because int might match the return type of a GCC
8135 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008136#ifdef __cplusplus
8137extern "C"
8138#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008139char opendir ();
8140int
8141main ()
8142{
Reid Spencera773bd52006-08-04 18:18:08 +00008143return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008144 ;
8145 return 0;
8146}
8147_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008148for ac_lib in '' dir; do
8149 if test -z "$ac_lib"; then
8150 ac_res="none required"
8151 else
8152 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008154 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155 rm -f conftest.$ac_objext conftest$ac_exeext
8156if { (ac_try="$ac_link"
8157case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8160esac
8161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_link") 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173esac
8174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest$ac_exeext'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183esac
8184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008189 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008190else
8191 echo "$as_me: failed program was:" >&5
8192sed 's/^/| /' conftest.$ac_ext >&5
8193
8194
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196
Bill Wendlingebcceee2009-04-18 11:20:33 +00008197rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198 conftest$ac_exeext
8199 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008200 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008201fi
John Criswell7a73b802003-06-30 21:59:07 +00008202done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008203if test "${ac_cv_search_opendir+set}" = set; then
8204 :
Reid Spencera773bd52006-08-04 18:18:08 +00008205else
8206 ac_cv_search_opendir=no
8207fi
8208rm conftest.$ac_ext
8209LIBS=$ac_func_search_save_LIBS
8210fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008211{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8212echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008213ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008216
Reid Spencera773bd52006-08-04 18:18:08 +00008217fi
8218
8219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008220 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8221echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8222if test "${ac_cv_search_opendir+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008224else
8225 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008226cat >conftest.$ac_ext <<_ACEOF
8227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008231/* end confdefs.h. */
8232
8233/* Override any GCC internal prototype to avoid an error.
8234 Use char because int might match the return type of a GCC
8235 builtin and then its argument prototype would still apply. */
8236#ifdef __cplusplus
8237extern "C"
8238#endif
8239char opendir ();
8240int
8241main ()
8242{
8243return opendir ();
8244 ;
8245 return 0;
8246}
8247_ACEOF
8248for ac_lib in '' x; do
8249 if test -z "$ac_lib"; then
8250 ac_res="none required"
8251 else
8252 ac_res=-l$ac_lib
8253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8254 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008255 rm -f conftest.$ac_objext conftest$ac_exeext
8256if { (ac_try="$ac_link"
8257case "(($ac_try" in
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8260esac
8261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_link") 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8270 { (case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273esac
8274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_try") 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try='test -s conftest$ac_exeext'
8280 { (case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283esac
8284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_try") 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008289 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008290else
8291 echo "$as_me: failed program was:" >&5
8292sed 's/^/| /' conftest.$ac_ext >&5
8293
8294
Reid Spencera773bd52006-08-04 18:18:08 +00008295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296
Bill Wendlingebcceee2009-04-18 11:20:33 +00008297rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298 conftest$ac_exeext
8299 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008300 break
8301fi
8302done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303if test "${ac_cv_search_opendir+set}" = set; then
8304 :
Reid Spencera773bd52006-08-04 18:18:08 +00008305else
8306 ac_cv_search_opendir=no
8307fi
8308rm conftest.$ac_ext
8309LIBS=$ac_func_search_save_LIBS
8310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8312echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008313ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8316
8317fi
8318
8319fi
John Criswell7a73b802003-06-30 21:59:07 +00008320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008321
John Criswell7a73b802003-06-30 21:59:07 +00008322for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323do
8324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330fi
8331ac_res=`eval echo '${'$as_ac_Header'}'`
8332 { echo "$as_me:$LINENO: result: $ac_res" >&5
8333echo "${ECHO_T}$ac_res" >&6; }
8334else
8335 # Is the header compilable?
8336{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8338cat >conftest.$ac_ext <<_ACEOF
8339/* confdefs.h. */
8340_ACEOF
8341cat confdefs.h >>conftest.$ac_ext
8342cat >>conftest.$ac_ext <<_ACEOF
8343/* end confdefs.h. */
8344$ac_includes_default
8345#include <$ac_header>
8346_ACEOF
8347rm -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
8381 ac_header_compiler=yes
8382else
8383 echo "$as_me: failed program was:" >&5
8384sed 's/^/| /' conftest.$ac_ext >&5
8385
8386 ac_header_compiler=no
8387fi
8388
8389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8391echo "${ECHO_T}$ac_header_compiler" >&6; }
8392
8393# Is the header present?
8394{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8396cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h. */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h. */
8402#include <$ac_header>
8403_ACEOF
8404if { (ac_try="$ac_cpp conftest.$ac_ext"
8405case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } >/dev/null; then
8417 if test -s conftest.err; then
8418 ac_cpp_err=$ac_c_preproc_warn_flag
8419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8420 else
8421 ac_cpp_err=
8422 fi
8423else
8424 ac_cpp_err=yes
8425fi
8426if test -z "$ac_cpp_err"; then
8427 ac_header_preproc=yes
8428else
8429 echo "$as_me: failed program was:" >&5
8430sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 ac_header_preproc=no
8433fi
8434
8435rm -f conftest.err conftest.$ac_ext
8436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8437echo "${ECHO_T}$ac_header_preproc" >&6; }
8438
8439# So? What about this header?
8440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8441 yes:no: )
8442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8446 ac_header_preproc=yes
8447 ;;
8448 no:yes:* )
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8461 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008462## ------------------------------------ ##
8463## Report this to http://llvm.org/bugs/ ##
8464## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008465_ASBOX
8466 ) | sed "s/^/$as_me: WARNING: /" >&2
8467 ;;
8468esac
8469{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474 eval "$as_ac_Header=\$ac_header_preproc"
8475fi
8476ac_res=`eval echo '${'$as_ac_Header'}'`
8477 { echo "$as_me:$LINENO: result: $ac_res" >&5
8478echo "${ECHO_T}$ac_res" >&6; }
8479
8480fi
8481if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008482 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008484_ACEOF
8485
8486fi
8487
8488done
8489
Reid Spencera773bd52006-08-04 18:18:08 +00008490# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008491if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008492 enableval=$enable_ltdl_install;
8493fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008494
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008496
8497
8498if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008499 INSTALL_LTDL_TRUE=
8500 INSTALL_LTDL_FALSE='#'
8501else
8502 INSTALL_LTDL_TRUE='#'
8503 INSTALL_LTDL_FALSE=
8504fi
8505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008506
8507
8508if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008509 CONVENIENCE_LTDL_TRUE=
8510 CONVENIENCE_LTDL_FALSE='#'
8511else
8512 CONVENIENCE_LTDL_TRUE='#'
8513 CONVENIENCE_LTDL_FALSE=
8514fi
8515
8516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008517{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8518echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008519library_names_spec=
8520libname_spec='lib$name'
8521soname_spec=
8522shrext_cmds=".so"
8523postinstall_cmds=
8524postuninstall_cmds=
8525finish_cmds=
8526finish_eval=
8527shlibpath_var=
8528shlibpath_overrides_runpath=unknown
8529version_type=none
8530dynamic_linker="$host_os ld.so"
8531sys_lib_dlsearch_path_spec="/lib /usr/lib"
8532if test "$GCC" = yes; then
8533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8534 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8535 # if the path contains ";" then we assume it to be the separator
8536 # otherwise default to the standard path separator (i.e. ":") - it is
8537 # assumed that no part of a normal pathname contains ";" but that should
8538 # okay in the real world where ";" in dirpaths is itself problematic.
8539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8540 else
8541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8542 fi
8543else
8544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8545fi
8546need_lib_prefix=unknown
8547hardcode_into_libs=no
8548
8549# when you set need_version to no, make sure it does not cause -set_version
8550# flags to be left without arguments
8551need_version=unknown
8552
8553case $host_os in
8554aix3*)
8555 version_type=linux
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8557 shlibpath_var=LIBPATH
8558
8559 # AIX 3 has no versioning support, so we append a major version to the name.
8560 soname_spec='${libname}${release}${shared_ext}$major'
8561 ;;
8562
8563aix4* | aix5*)
8564 version_type=linux
8565 need_lib_prefix=no
8566 need_version=no
8567 hardcode_into_libs=yes
8568 if test "$host_cpu" = ia64; then
8569 # AIX 5 supports IA64
8570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8571 shlibpath_var=LD_LIBRARY_PATH
8572 else
8573 # With GCC up to 2.95.x, collect2 would create an import file
8574 # for dependence libraries. The import file would start with
8575 # the line `#! .'. This would cause the generated library to
8576 # depend on `.', always an invalid library. This was fixed in
8577 # development snapshots of GCC prior to 3.0.
8578 case $host_os in
8579 aix4 | aix4.[01] | aix4.[01].*)
8580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8581 echo ' yes '
8582 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8583 :
8584 else
8585 can_build_shared=no
8586 fi
8587 ;;
8588 esac
8589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8590 # soname into executable. Probably we can add versioning support to
8591 # collect2, so additional links can be useful in future.
8592 if test "$aix_use_runtimelinking" = yes; then
8593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8594 # instead of lib<name>.a to let people know that these are not
8595 # typical AIX shared libraries.
8596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8597 else
8598 # We preserve .a as extension for shared libraries through AIX4.2
8599 # and later when we are not doing run time linking.
8600 library_names_spec='${libname}${release}.a $libname.a'
8601 soname_spec='${libname}${release}${shared_ext}$major'
8602 fi
8603 shlibpath_var=LIBPATH
8604 fi
8605 ;;
8606
8607amigaos*)
8608 library_names_spec='$libname.ixlibrary $libname.a'
8609 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8610 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'
8611 ;;
8612
8613beos*)
8614 library_names_spec='${libname}${shared_ext}'
8615 dynamic_linker="$host_os ld.so"
8616 shlibpath_var=LIBRARY_PATH
8617 ;;
8618
8619bsdi[45]*)
8620 version_type=linux
8621 need_version=no
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 soname_spec='${libname}${release}${shared_ext}$major'
8624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8628 # the default ld.so.conf also contains /usr/contrib/lib and
8629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8630 # libtool to hard-code these into programs
8631 ;;
8632
8633cygwin* | mingw* | pw32*)
8634 version_type=windows
8635 shrext_cmds=".dll"
8636 need_version=no
8637 need_lib_prefix=no
8638
8639 case $GCC,$host_os in
8640 yes,cygwin* | yes,mingw* | yes,pw32*)
8641 library_names_spec='$libname.dll.a'
8642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8643 postinstall_cmds='base_file=`basename \${file}`~
8644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8645 dldir=$destdir/`dirname \$dlpath`~
8646 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008647 $install_prog $dir/$dlname \$dldir/$dlname~
8648 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8650 dlpath=$dir/\$dldll~
8651 $rm \$dlpath'
8652 shlibpath_overrides_runpath=yes
8653
8654 case $host_os in
8655 cygwin*)
8656 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8657 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8658 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8659 ;;
8660 mingw*)
8661 # MinGW DLLs use traditional 'lib' prefix
8662 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8664 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8665 # It is most probably a Windows format PATH printed by
8666 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8667 # path with ; separators, and with drive letters. We can handle the
8668 # drive letters (cygwin fileutils understands them), so leave them,
8669 # especially as we might pass files found there to a mingw objdump,
8670 # which wouldn't understand a cygwinified path. Ahh.
8671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8672 else
8673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8674 fi
8675 ;;
8676 pw32*)
8677 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008678 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 +00008679 ;;
8680 esac
8681 ;;
8682
8683 *)
8684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8685 ;;
8686 esac
8687 dynamic_linker='Win32 ld.exe'
8688 # FIXME: first we should search . and the directory the executable is in
8689 shlibpath_var=PATH
8690 ;;
8691
8692darwin* | rhapsody*)
8693 dynamic_linker="$host_os dyld"
8694 version_type=darwin
8695 need_lib_prefix=no
8696 need_version=no
8697 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8698 soname_spec='${libname}${release}${major}$shared_ext'
8699 shlibpath_overrides_runpath=yes
8700 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008701 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008702 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8703 if test "$GCC" = yes; then
8704 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"`
8705 else
8706 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8707 fi
8708 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8709 ;;
8710
8711dgux*)
8712 version_type=linux
8713 need_lib_prefix=no
8714 need_version=no
8715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8716 soname_spec='${libname}${release}${shared_ext}$major'
8717 shlibpath_var=LD_LIBRARY_PATH
8718 ;;
8719
Eric Christopher360fa9a2011-10-26 00:42:12 +00008720freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008721 dynamic_linker=no
8722 ;;
8723
8724kfreebsd*-gnu)
8725 version_type=linux
8726 need_lib_prefix=no
8727 need_version=no
8728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8729 soname_spec='${libname}${release}${shared_ext}$major'
8730 shlibpath_var=LD_LIBRARY_PATH
8731 shlibpath_overrides_runpath=no
8732 hardcode_into_libs=yes
8733 dynamic_linker='GNU ld.so'
8734 ;;
8735
Reid Spencera773bd52006-08-04 18:18:08 +00008736freebsd* | dragonfly*)
8737 # DragonFly does not have aout. When/if they implement a new
8738 # versioning mechanism, adjust this.
8739 if test -x /usr/bin/objformat; then
8740 objformat=`/usr/bin/objformat`
8741 else
8742 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008743 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008744 *) objformat=elf ;;
8745 esac
8746 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008747 version_type=freebsd-$objformat
8748 case $version_type in
8749 freebsd-elf*)
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8751 need_version=no
8752 need_lib_prefix=no
8753 ;;
8754 freebsd-*)
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8756 need_version=yes
8757 ;;
8758 esac
8759 shlibpath_var=LD_LIBRARY_PATH
8760 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008761 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008762 shlibpath_overrides_runpath=yes
8763 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008764 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008765 shlibpath_overrides_runpath=yes
8766 hardcode_into_libs=yes
8767 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008768 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8769 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008770 shlibpath_overrides_runpath=no
8771 hardcode_into_libs=yes
8772 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008773 freebsd*) # from 4.6 on
8774 shlibpath_overrides_runpath=yes
8775 hardcode_into_libs=yes
8776 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008777 esac
8778 ;;
8779
8780gnu*)
8781 version_type=linux
8782 need_lib_prefix=no
8783 need_version=no
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 shlibpath_var=LD_LIBRARY_PATH
8787 hardcode_into_libs=yes
8788 ;;
8789
8790hpux9* | hpux10* | hpux11*)
8791 # Give a soname corresponding to the major version so that dld.sl refuses to
8792 # link against other versions.
8793 version_type=sunos
8794 need_lib_prefix=no
8795 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008796 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008797 ia64*)
8798 shrext_cmds='.so'
8799 hardcode_into_libs=yes
8800 dynamic_linker="$host_os dld.so"
8801 shlibpath_var=LD_LIBRARY_PATH
8802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 if test "X$HPUX_IA64_MODE" = X32; then
8806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8807 else
8808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8809 fi
8810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8811 ;;
8812 hppa*64*)
8813 shrext_cmds='.sl'
8814 hardcode_into_libs=yes
8815 dynamic_linker="$host_os dld.sl"
8816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8822 ;;
8823 *)
8824 shrext_cmds='.sl'
8825 dynamic_linker="$host_os dld.sl"
8826 shlibpath_var=SHLIB_PATH
8827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 ;;
8831 esac
8832 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8833 postinstall_cmds='chmod 555 $lib'
8834 ;;
8835
Reid Spencera773bd52006-08-04 18:18:08 +00008836interix3*)
8837 version_type=linux
8838 need_lib_prefix=no
8839 need_version=no
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 shlibpath_overrides_runpath=no
8845 hardcode_into_libs=yes
8846 ;;
8847
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008848irix5* | irix6* | nonstopux*)
8849 case $host_os in
8850 nonstopux*) version_type=nonstopux ;;
8851 *)
8852 if test "$lt_cv_prog_gnu_ld" = yes; then
8853 version_type=linux
8854 else
8855 version_type=irix
8856 fi ;;
8857 esac
8858 need_lib_prefix=no
8859 need_version=no
8860 soname_spec='${libname}${release}${shared_ext}$major'
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8862 case $host_os in
8863 irix5* | nonstopux*)
8864 libsuff= shlibsuff=
8865 ;;
8866 *)
8867 case $LD in # libtool.m4 will add one of these switches to LD
8868 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8869 libsuff= shlibsuff= libmagic=32-bit;;
8870 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8871 libsuff=32 shlibsuff=N32 libmagic=N32;;
8872 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8873 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8874 *) libsuff= shlibsuff= libmagic=never-match;;
8875 esac
8876 ;;
8877 esac
8878 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8879 shlibpath_overrides_runpath=no
8880 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8881 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8882 hardcode_into_libs=yes
8883 ;;
8884
8885# No shared lib support for Linux oldld, aout, or coff.
8886linux*oldld* | linux*aout* | linux*coff*)
8887 dynamic_linker=no
8888 ;;
8889
8890# This must be Linux ELF.
8891linux*)
8892 version_type=linux
8893 need_lib_prefix=no
8894 need_version=no
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 shlibpath_overrides_runpath=no
8900 # This implies no fast_install, which is unacceptable.
8901 # Some rework will be needed to allow for fast_install
8902 # before this can be enabled.
8903 hardcode_into_libs=yes
8904
8905 # Append ld.so.conf contents to the search path
8906 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008907 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 +00008908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8909 fi
8910
8911 # We used to test for /lib/ld.so.1 and disable shared libraries on
8912 # powerpc, because MkLinux only supported shared libraries with the
8913 # GNU dynamic linker. Since this was broken with cross compilers,
8914 # most powerpc-linux boxes support dynamic linking these days and
8915 # people can always --disable-shared, the test was removed, and we
8916 # assume the GNU/Linux dynamic linker is in use.
8917 dynamic_linker='GNU/Linux ld.so'
8918 ;;
8919
8920knetbsd*-gnu)
8921 version_type=linux
8922 need_lib_prefix=no
8923 need_version=no
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 shlibpath_var=LD_LIBRARY_PATH
8927 shlibpath_overrides_runpath=no
8928 hardcode_into_libs=yes
8929 dynamic_linker='GNU ld.so'
8930 ;;
8931
8932netbsd*)
8933 version_type=sunos
8934 need_lib_prefix=no
8935 need_version=no
8936 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8939 dynamic_linker='NetBSD (a.out) ld.so'
8940 else
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 dynamic_linker='NetBSD ld.elf_so'
8944 fi
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=yes
8947 hardcode_into_libs=yes
8948 ;;
8949
8950newsos6)
8951 version_type=linux
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=yes
8955 ;;
8956
8957nto-qnx*)
8958 version_type=linux
8959 need_lib_prefix=no
8960 need_version=no
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 shlibpath_var=LD_LIBRARY_PATH
8964 shlibpath_overrides_runpath=yes
8965 ;;
8966
Eric Christopherb0f67592012-08-06 20:52:18 +00008967openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008968 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008969 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008970 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8972 case $host_os in
8973 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8974 *) need_version=no ;;
8975 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8980 case $host_os in
8981 openbsd2.[89] | openbsd2.[89].*)
8982 shlibpath_overrides_runpath=no
8983 ;;
8984 *)
8985 shlibpath_overrides_runpath=yes
8986 ;;
8987 esac
8988 else
8989 shlibpath_overrides_runpath=yes
8990 fi
8991 ;;
8992
8993os2*)
8994 libname_spec='$name'
8995 shrext_cmds=".dll"
8996 need_lib_prefix=no
8997 library_names_spec='$libname${shared_ext} $libname.a'
8998 dynamic_linker='OS/2 ld.exe'
8999 shlibpath_var=LIBPATH
9000 ;;
9001
9002osf3* | osf4* | osf5*)
9003 version_type=osf
9004 need_lib_prefix=no
9005 need_version=no
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9011 ;;
9012
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009013solaris*)
9014 version_type=linux
9015 need_lib_prefix=no
9016 need_version=no
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=yes
9021 hardcode_into_libs=yes
9022 # ldd complains unless libraries are executable
9023 postinstall_cmds='chmod +x $lib'
9024 ;;
9025
9026sunos4*)
9027 version_type=sunos
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9029 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9032 if test "$with_gnu_ld" = yes; then
9033 need_lib_prefix=no
9034 fi
9035 need_version=yes
9036 ;;
9037
Reid Spencera773bd52006-08-04 18:18:08 +00009038sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009039 version_type=linux
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 case $host_vendor in
9044 sni)
9045 shlibpath_overrides_runpath=no
9046 need_lib_prefix=no
9047 export_dynamic_flag_spec='${wl}-Blargedynsym'
9048 runpath_var=LD_RUN_PATH
9049 ;;
9050 siemens)
9051 need_lib_prefix=no
9052 ;;
9053 motorola)
9054 need_lib_prefix=no
9055 need_version=no
9056 shlibpath_overrides_runpath=no
9057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9058 ;;
9059 esac
9060 ;;
9061
9062sysv4*MP*)
9063 if test -d /usr/nec ;then
9064 version_type=linux
9065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9066 soname_spec='$libname${shared_ext}.$major'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 fi
9069 ;;
9070
Reid Spencera773bd52006-08-04 18:18:08 +00009071sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9072 version_type=freebsd-elf
9073 need_lib_prefix=no
9074 need_version=no
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 hardcode_into_libs=yes
9079 if test "$with_gnu_ld" = yes; then
9080 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9081 shlibpath_overrides_runpath=no
9082 else
9083 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9084 shlibpath_overrides_runpath=yes
9085 case $host_os in
9086 sco3.2v5*)
9087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9088 ;;
9089 esac
9090 fi
9091 sys_lib_dlsearch_path_spec='/usr/lib'
9092 ;;
9093
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009094uts4*)
9095 version_type=linux
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 ;;
9100
9101*)
9102 dynamic_linker=no
9103 ;;
9104esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009105{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9106echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009107test "$dynamic_linker" = no && can_build_shared=no
9108
Reid Spencera773bd52006-08-04 18:18:08 +00009109variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9110if test "$GCC" = yes; then
9111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9112fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009113
Reid Spencera773bd52006-08-04 18:18:08 +00009114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009115{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9116echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9117if test "${libltdl_cv_shlibext+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009119else
9120
9121module=yes
9122eval libltdl_cv_shlibext=$shrext_cmds
9123
9124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009125{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9126echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009127if test -n "$libltdl_cv_shlibext"; then
9128
9129cat >>confdefs.h <<_ACEOF
9130#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9131_ACEOF
9132
9133fi
9134
9135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009136{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9137echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9138if test "${libltdl_cv_shlibpath_var+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009140else
9141 libltdl_cv_shlibpath_var="$shlibpath_var"
9142fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009143{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9144echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009145if test -n "$libltdl_cv_shlibpath_var"; then
9146
9147cat >>confdefs.h <<_ACEOF
9148#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9149_ACEOF
9150
9151fi
9152
9153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009154{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9155echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9156if test "${libltdl_cv_sys_search_path+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009158else
9159 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009161{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9162echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009163if test -n "$libltdl_cv_sys_search_path"; then
9164 sys_search_path=
9165 for dir in $libltdl_cv_sys_search_path; do
9166 if test -z "$sys_search_path"; then
9167 sys_search_path="$dir"
9168 else
9169 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9170 fi
9171 done
9172
9173cat >>confdefs.h <<_ACEOF
9174#define LTDL_SYSSEARCHPATH "$sys_search_path"
9175_ACEOF
9176
9177fi
9178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009179{ echo "$as_me:$LINENO: checking for objdir" >&5
9180echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9181if test "${libltdl_cv_objdir+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009183else
9184 libltdl_cv_objdir="$objdir"
9185 if test -n "$objdir"; then
9186 :
9187 else
9188 rm -f .libs 2>/dev/null
9189 mkdir .libs 2>/dev/null
9190 if test -d .libs; then
9191 libltdl_cv_objdir=.libs
9192 else
9193 # MS-DOS does not allow filenames that begin with a dot.
9194 libltdl_cv_objdir=_libs
9195 fi
9196 rmdir .libs 2>/dev/null
9197 fi
9198
9199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009200{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9201echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009202
9203cat >>confdefs.h <<_ACEOF
9204#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9205_ACEOF
9206
9207
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009208
9209
9210
9211
9212# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009213{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9214echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9215if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217else
9218
9219# These are sane defaults that work on at least a few old systems.
9220# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9221
9222# Character class describing NM global symbol codes.
9223symcode='[BCDEGRST]'
9224
9225# Regexp to match symbols that can be accessed directly from C.
9226sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9227
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228# Transform an extracted symbol line into a proper C declaration
9229lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9230
9231# Transform an extracted symbol line into symbol name and symbol address
9232lt_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'"
9233
9234# Define system-specific variables.
9235case $host_os in
9236aix*)
9237 symcode='[BCDT]'
9238 ;;
9239cygwin* | mingw* | pw32*)
9240 symcode='[ABCDGISTW]'
9241 ;;
9242hpux*) # Its linker distinguishes data from code symbols
9243 if test "$host_cpu" = ia64; then
9244 symcode='[ABCDEGRST]'
9245 fi
9246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9247 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'"
9248 ;;
9249linux*)
9250 if test "$host_cpu" = ia64; then
9251 symcode='[ABCDGIRSTW]'
9252 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9253 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'"
9254 fi
9255 ;;
9256irix* | nonstopux*)
9257 symcode='[BCDEGRST]'
9258 ;;
9259osf*)
9260 symcode='[BCDEGQRST]'
9261 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009262solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009263 symcode='[BDRT]'
9264 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009265sco3.2v5*)
9266 symcode='[DT]'
9267 ;;
9268sysv4.2uw2*)
9269 symcode='[DT]'
9270 ;;
9271sysv5* | sco5v6* | unixware* | OpenUNIX*)
9272 symcode='[ABDT]'
9273 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009274sysv4)
9275 symcode='[DFNSTU]'
9276 ;;
9277esac
9278
9279# Handle CRLF in mingw tool chain
9280opt_cr=
9281case $build_os in
9282mingw*)
9283 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9284 ;;
9285esac
9286
9287# If we're using GNU nm, then use its standard symbol codes.
9288case `$NM -V 2>&1` in
9289*GNU* | *'with BFD'*)
9290 symcode='[ABCDGIRSTW]' ;;
9291esac
9292
9293# Try without a prefix undercore, then with it.
9294for ac_symprfx in "" "_"; do
9295
Reid Spencera773bd52006-08-04 18:18:08 +00009296 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9297 symxfrm="\\1 $ac_symprfx\\2 \\2"
9298
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009300 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 +00009301
9302 # Check to see that the pipe works correctly.
9303 pipe_works=no
9304
9305 rm -f conftest*
9306 cat > conftest.$ac_ext <<EOF
9307#ifdef __cplusplus
9308extern "C" {
9309#endif
9310char nm_test_var;
9311void nm_test_func(){}
9312#ifdef __cplusplus
9313}
9314#endif
9315int main(){nm_test_var='a';nm_test_func();return(0);}
9316EOF
9317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319 (eval $ac_compile) 2>&5
9320 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009323 # Now try to grab the symbols.
9324 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009325 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 +00009326 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9327 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009330 # Try sorting and uniquifying the output.
9331 if sort "$nlist" | uniq > "$nlist"T; then
9332 mv -f "$nlist"T "$nlist"
9333 else
9334 rm -f "$nlist"T
9335 fi
9336
9337 # Make sure that we snagged all the symbols we need.
9338 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9339 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9340 cat <<EOF > conftest.$ac_ext
9341#ifdef __cplusplus
9342extern "C" {
9343#endif
9344
9345EOF
9346 # Now generate the symbol file.
9347 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9348
9349 cat <<EOF >> conftest.$ac_ext
9350#if defined (__STDC__) && __STDC__
9351# define lt_ptr_t void *
9352#else
9353# define lt_ptr_t char *
9354# define const
9355#endif
9356
9357/* The mapping between symbol names and symbols. */
9358const struct {
9359 const char *name;
9360 lt_ptr_t address;
9361}
9362lt_preloaded_symbols[] =
9363{
9364EOF
9365 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9366 cat <<\EOF >> conftest.$ac_ext
9367 {0, (lt_ptr_t) 0}
9368};
9369
9370#ifdef __cplusplus
9371}
9372#endif
9373EOF
9374 # Now try linking the two files.
9375 mv conftest.$ac_objext conftstm.$ac_objext
9376 lt_save_LIBS="$LIBS"
9377 lt_save_CFLAGS="$CFLAGS"
9378 LIBS="conftstm.$ac_objext"
9379 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009381 (eval $ac_link) 2>&5
9382 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385 pipe_works=yes
9386 fi
9387 LIBS="$lt_save_LIBS"
9388 CFLAGS="$lt_save_CFLAGS"
9389 else
9390 echo "cannot find nm_test_func in $nlist" >&5
9391 fi
9392 else
9393 echo "cannot find nm_test_var in $nlist" >&5
9394 fi
9395 else
9396 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9397 fi
9398 else
9399 echo "$progname: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9401 fi
9402 rm -f conftest* conftst*
9403
9404 # Do not use the global_symbol_pipe unless it works.
9405 if test "$pipe_works" = yes; then
9406 break
9407 else
9408 lt_cv_sys_global_symbol_pipe=
9409 fi
9410done
9411
9412fi
9413
9414if test -z "$lt_cv_sys_global_symbol_pipe"; then
9415 lt_cv_sys_global_symbol_to_cdecl=
9416fi
9417if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009418 { echo "$as_me:$LINENO: result: failed" >&5
9419echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009421 { echo "$as_me:$LINENO: result: ok" >&5
9422echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009423fi
9424
9425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009426{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9427echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9428if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430else
9431 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9432 libltdl_cv_preloaded_symbols=yes
9433 else
9434 libltdl_cv_preloaded_symbols=no
9435 fi
9436
9437fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9439echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009440if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009442cat >>confdefs.h <<\_ACEOF
9443#define HAVE_PRELOADED_SYMBOLS 1
9444_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009445
9446fi
9447
9448LIBADD_DL=
9449
9450ac_ext=c
9451ac_cpp='$CPP $CPPFLAGS'
9452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9454ac_compiler_gnu=$ac_cv_c_compiler_gnu
9455
9456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009457{ echo "$as_me:$LINENO: checking for shl_load" >&5
9458echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9459if test "${ac_cv_func_shl_load+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461else
9462 cat >conftest.$ac_ext <<_ACEOF
9463/* confdefs.h. */
9464_ACEOF
9465cat confdefs.h >>conftest.$ac_ext
9466cat >>conftest.$ac_ext <<_ACEOF
9467/* end confdefs.h. */
9468/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9470#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009472/* System header to define __stub macros and hopefully few prototypes,
9473 which can conflict with char shl_load (); below.
9474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9475 <limits.h> exists even on freestanding compilers. */
9476
9477#ifdef __STDC__
9478# include <limits.h>
9479#else
9480# include <assert.h>
9481#endif
9482
9483#undef shl_load
9484
9485/* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9488#ifdef __cplusplus
9489extern "C"
9490#endif
9491char shl_load ();
9492/* The GNU C library defines this for functions which it implements
9493 to always fail with ENOSYS. Some functions are actually named
9494 something starting with __ and the normal name is an alias. */
9495#if defined __stub_shl_load || defined __stub___shl_load
9496choke me
9497#endif
9498
9499int
9500main ()
9501{
9502return shl_load ();
9503 ;
9504 return 0;
9505}
9506_ACEOF
9507rm -f conftest.$ac_objext conftest$ac_exeext
9508if { (ac_try="$ac_link"
9509case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512esac
9513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_link") 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9522 { (case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525esac
9526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_try") 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest$ac_exeext'
9532 { (case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535esac
9536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_try") 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_func_shl_load=yes
9542else
9543 echo "$as_me: failed program was:" >&5
9544sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 ac_cv_func_shl_load=no
9547fi
9548
9549rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551fi
9552{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9553echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9554if test $ac_cv_func_shl_load = yes; then
9555
9556cat >>confdefs.h <<\_ACEOF
9557#define HAVE_SHL_LOAD 1
9558_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559
9560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009561 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9562echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9563if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009565else
9566 ac_check_lib_save_LIBS=$LIBS
9567LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009568cat >conftest.$ac_ext <<_ACEOF
9569/* confdefs.h. */
9570_ACEOF
9571cat confdefs.h >>conftest.$ac_ext
9572cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573/* end confdefs.h. */
9574
Reid Spencera773bd52006-08-04 18:18:08 +00009575/* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009578#ifdef __cplusplus
9579extern "C"
9580#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009581char shl_load ();
9582int
9583main ()
9584{
Reid Spencera773bd52006-08-04 18:18:08 +00009585return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586 ;
9587 return 0;
9588}
9589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009590rm -f conftest.$ac_objext conftest$ac_exeext
9591if { (ac_try="$ac_link"
9592case "(($ac_try" in
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9595esac
9596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_link") 2>conftest.er1
9598 ac_status=$?
9599 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9605 { (case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9608esac
9609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_try") 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try='test -s conftest$ac_exeext'
9615 { (case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9618esac
9619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_try") 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009624 ac_cv_lib_dld_shl_load=yes
9625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009626 echo "$as_me: failed program was:" >&5
9627sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009631
Bill Wendlingebcceee2009-04-18 11:20:33 +00009632rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009633 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634LIBS=$ac_check_lib_save_LIBS
9635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009636{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9637echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9638if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009640cat >>confdefs.h <<\_ACEOF
9641#define HAVE_SHL_LOAD 1
9642_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643
9644 LIBADD_DL="$LIBADD_DL -ldld"
9645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009646 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9647echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9648if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009650else
9651 ac_check_lib_save_LIBS=$LIBS
9652LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009653cat >conftest.$ac_ext <<_ACEOF
9654/* confdefs.h. */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009658/* end confdefs.h. */
9659
Reid Spencera773bd52006-08-04 18:18:08 +00009660/* Override any GCC internal prototype to avoid an error.
9661 Use char because int might match the return type of a GCC
9662 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663#ifdef __cplusplus
9664extern "C"
9665#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666char dlopen ();
9667int
9668main ()
9669{
Reid Spencera773bd52006-08-04 18:18:08 +00009670return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009671 ;
9672 return 0;
9673}
9674_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009675rm -f conftest.$ac_objext conftest$ac_exeext
9676if { (ac_try="$ac_link"
9677case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9680esac
9681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_link") 2>conftest.er1
9683 ac_status=$?
9684 grep -v '^ *+' conftest.er1 >conftest.err
9685 rm -f conftest.er1
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9690 { (case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693esac
9694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_try") 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest$ac_exeext'
9700 { (case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703esac
9704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_try") 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009709 ac_cv_lib_dl_dlopen=yes
9710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009711 echo "$as_me: failed program was:" >&5
9712sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009716
Bill Wendlingebcceee2009-04-18 11:20:33 +00009717rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009718 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009719LIBS=$ac_check_lib_save_LIBS
9720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009721{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9722echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9723if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009725cat >>confdefs.h <<\_ACEOF
9726#define HAVE_LIBDL 1
9727_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009728
9729 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009731 cat >conftest.$ac_ext <<_ACEOF
9732/* confdefs.h. */
9733_ACEOF
9734cat confdefs.h >>conftest.$ac_ext
9735cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009736/* end confdefs.h. */
9737#if HAVE_DLFCN_H
9738# include <dlfcn.h>
9739#endif
9740
9741int
9742main ()
9743{
9744dlopen(0, 0);
9745 ;
9746 return 0;
9747}
9748_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009749rm -f conftest.$ac_objext conftest$ac_exeext
9750if { (ac_try="$ac_link"
9751case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9754esac
9755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_link") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764 { (case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9767esac
9768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_try") 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9777esac
9778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_try") 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009784cat >>confdefs.h <<\_ACEOF
9785#define HAVE_LIBDL 1
9786_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787 libltdl_cv_func_dlopen="yes"
9788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009789 echo "$as_me: failed program was:" >&5
9790sed 's/^/| /' conftest.$ac_ext >&5
9791
9792 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9793echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9794if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796else
9797 ac_check_lib_save_LIBS=$LIBS
9798LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009799cat >conftest.$ac_ext <<_ACEOF
9800/* confdefs.h. */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804/* end confdefs.h. */
9805
Reid Spencera773bd52006-08-04 18:18:08 +00009806/* Override any GCC internal prototype to avoid an error.
9807 Use char because int might match the return type of a GCC
9808 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809#ifdef __cplusplus
9810extern "C"
9811#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812char dlopen ();
9813int
9814main ()
9815{
Reid Spencera773bd52006-08-04 18:18:08 +00009816return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817 ;
9818 return 0;
9819}
9820_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009821rm -f conftest.$ac_objext conftest$ac_exeext
9822if { (ac_try="$ac_link"
9823case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839esac
9840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849esac
9850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855 ac_cv_lib_svld_dlopen=yes
9856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009857 echo "$as_me: failed program was:" >&5
9858sed 's/^/| /' conftest.$ac_ext >&5
9859
9860 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009862
Bill Wendlingebcceee2009-04-18 11:20:33 +00009863rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009864 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865LIBS=$ac_check_lib_save_LIBS
9866fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009867{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9868echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9869if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009871cat >>confdefs.h <<\_ACEOF
9872#define HAVE_LIBDL 1
9873_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009874
9875 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009877 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9878echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9879if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881else
9882 ac_check_lib_save_LIBS=$LIBS
9883LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009884cat >conftest.$ac_ext <<_ACEOF
9885/* confdefs.h. */
9886_ACEOF
9887cat confdefs.h >>conftest.$ac_ext
9888cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889/* end confdefs.h. */
9890
Reid Spencera773bd52006-08-04 18:18:08 +00009891/* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894#ifdef __cplusplus
9895extern "C"
9896#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897char dld_link ();
9898int
9899main ()
9900{
Reid Spencera773bd52006-08-04 18:18:08 +00009901return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902 ;
9903 return 0;
9904}
9905_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009906rm -f conftest.$ac_objext conftest$ac_exeext
9907if { (ac_try="$ac_link"
9908case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911esac
9912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_link") 2>conftest.er1
9914 ac_status=$?
9915 grep -v '^ *+' conftest.er1 >conftest.err
9916 rm -f conftest.er1
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921 { (case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924esac
9925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_try") 2>&5
9927 ac_status=$?
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest$ac_exeext'
9931 { (case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934esac
9935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_try") 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940 ac_cv_lib_dld_dld_link=yes
9941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009942 echo "$as_me: failed program was:" >&5
9943sed 's/^/| /' conftest.$ac_ext >&5
9944
9945 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009947
Bill Wendlingebcceee2009-04-18 11:20:33 +00009948rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009949 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009950LIBS=$ac_check_lib_save_LIBS
9951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009952{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9953echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9954if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009956cat >>confdefs.h <<\_ACEOF
9957#define HAVE_DLD 1
9958_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009959
9960 LIBADD_DL="$LIBADD_DL -ldld"
9961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009962 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9963echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9964if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966else
9967 cat >conftest.$ac_ext <<_ACEOF
9968/* confdefs.h. */
9969_ACEOF
9970cat confdefs.h >>conftest.$ac_ext
9971cat >>conftest.$ac_ext <<_ACEOF
9972/* end confdefs.h. */
9973/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9975#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009977/* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char _dyld_func_lookup (); below.
9979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009982#ifdef __STDC__
9983# include <limits.h>
9984#else
9985# include <assert.h>
9986#endif
9987
9988#undef _dyld_func_lookup
9989
9990/* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9993#ifdef __cplusplus
9994extern "C"
9995#endif
9996char _dyld_func_lookup ();
9997/* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
10000#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10001choke me
10002#endif
10003
10004int
10005main ()
10006{
10007return _dyld_func_lookup ();
10008 ;
10009 return 0;
10010}
10011_ACEOF
10012rm -f conftest.$ac_objext conftest$ac_exeext
10013if { (ac_try="$ac_link"
10014case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030esac
10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_func__dyld_func_lookup=yes
10047else
10048 echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052fi
Reid Spencera773bd52006-08-04 18:18:08 +000010053
Bill Wendlingebcceee2009-04-18 11:20:33 +000010054rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010055 conftest$ac_exeext conftest.$ac_ext
10056fi
10057{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10058echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10059if test $ac_cv_func__dyld_func_lookup = yes; then
10060
10061cat >>confdefs.h <<\_ACEOF
10062#define HAVE_DYLD 1
10063_ACEOF
10064
10065fi
10066
10067
10068fi
10069
10070
10071fi
10072
10073
10074fi
10075
10076rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078
10079fi
10080
10081
10082fi
10083
10084
10085fi
10086
10087
10088if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10089then
10090 lt_save_LIBS="$LIBS"
10091 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010092
10093for ac_func in dlerror
10094do
10095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10096{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100else
10101 cat >conftest.$ac_ext <<_ACEOF
10102/* confdefs.h. */
10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
10106/* end confdefs.h. */
10107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10109#define $ac_func innocuous_$ac_func
10110
10111/* System header to define __stub macros and hopefully few prototypes,
10112 which can conflict with char $ac_func (); below.
10113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10114 <limits.h> exists even on freestanding compilers. */
10115
10116#ifdef __STDC__
10117# include <limits.h>
10118#else
10119# include <assert.h>
10120#endif
10121
10122#undef $ac_func
10123
10124/* Override any GCC internal prototype to avoid an error.
10125 Use char because int might match the return type of a GCC
10126 builtin and then its argument prototype would still apply. */
10127#ifdef __cplusplus
10128extern "C"
10129#endif
10130char $ac_func ();
10131/* The GNU C library defines this for functions which it implements
10132 to always fail with ENOSYS. Some functions are actually named
10133 something starting with __ and the normal name is an alias. */
10134#if defined __stub_$ac_func || defined __stub___$ac_func
10135choke me
10136#endif
10137
10138int
10139main ()
10140{
10141return $ac_func ();
10142 ;
10143 return 0;
10144}
10145_ACEOF
10146rm -f conftest.$ac_objext conftest$ac_exeext
10147if { (ac_try="$ac_link"
10148case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_link") 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161 { (case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10164esac
10165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_try") 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; } &&
10170 { ac_try='test -s conftest$ac_exeext'
10171 { (case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174esac
10175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_try") 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 eval "$as_ac_var=yes"
10181else
10182 echo "$as_me: failed program was:" >&5
10183sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 eval "$as_ac_var=no"
10186fi
10187
10188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190fi
10191ac_res=`eval echo '${'$as_ac_var'}'`
10192 { echo "$as_me:$LINENO: result: $ac_res" >&5
10193echo "${ECHO_T}$ac_res" >&6; }
10194if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010195 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197_ACEOF
10198
10199fi
10200done
10201
10202 LIBS="$lt_save_LIBS"
10203fi
10204ac_ext=c
10205ac_cpp='$CPP $CPPFLAGS'
10206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10208ac_compiler_gnu=$ac_cv_c_compiler_gnu
10209
10210
10211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010212{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10213echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10214if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216else
10217 ac_cv_sys_symbol_underscore=no
10218 cat > conftest.$ac_ext <<EOF
10219void nm_test_func(){}
10220int main(){nm_test_func;return 0;}
10221EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223 (eval $ac_compile) 2>&5
10224 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227 # Now try to grab the symbols.
10228 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010229 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 +000010230 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10231 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234 # See whether the symbols have a leading underscore.
10235 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10236 ac_cv_sys_symbol_underscore=yes
10237 else
10238 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10239 :
10240 else
10241 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10242 fi
10243 fi
10244 else
10245 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10246 fi
10247 else
10248 echo "configure: failed program was:" >&5
10249 cat conftest.c >&5
10250 fi
10251 rm -rf conftest*
10252
10253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010254{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10255echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256
10257
10258if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10259 if test x"$libltdl_cv_func_dlopen" = xyes ||
10260 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010261 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10262echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10263if test "${libltdl_cv_need_uscore+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265else
10266 libltdl_cv_need_uscore=unknown
10267 save_LIBS="$LIBS"
10268 LIBS="$LIBS $LIBADD_DL"
10269 if test "$cross_compiling" = yes; then :
10270 libltdl_cv_need_uscore=cross
10271else
10272 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10273 lt_status=$lt_dlunknown
10274 cat > conftest.$ac_ext <<EOF
Victor Oliveira0e80e182012-08-09 01:13:59 +000010275#line 10275 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276#include "confdefs.h"
10277
10278#if HAVE_DLFCN_H
10279#include <dlfcn.h>
10280#endif
10281
10282#include <stdio.h>
10283
10284#ifdef RTLD_GLOBAL
10285# define LT_DLGLOBAL RTLD_GLOBAL
10286#else
10287# ifdef DL_GLOBAL
10288# define LT_DLGLOBAL DL_GLOBAL
10289# else
10290# define LT_DLGLOBAL 0
10291# endif
10292#endif
10293
10294/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10295 find out it does not work in some platform. */
10296#ifndef LT_DLLAZY_OR_NOW
10297# ifdef RTLD_LAZY
10298# define LT_DLLAZY_OR_NOW RTLD_LAZY
10299# else
10300# ifdef DL_LAZY
10301# define LT_DLLAZY_OR_NOW DL_LAZY
10302# else
10303# ifdef RTLD_NOW
10304# define LT_DLLAZY_OR_NOW RTLD_NOW
10305# else
10306# ifdef DL_NOW
10307# define LT_DLLAZY_OR_NOW DL_NOW
10308# else
10309# define LT_DLLAZY_OR_NOW 0
10310# endif
10311# endif
10312# endif
10313# endif
10314#endif
10315
10316#ifdef __cplusplus
10317extern "C" void exit (int);
10318#endif
10319
10320void fnord() { int i=42;}
10321int main ()
10322{
10323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10324 int status = $lt_dlunknown;
10325
10326 if (self)
10327 {
10328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10329 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10330 /* dlclose (self); */
10331 }
Reid Spencera773bd52006-08-04 18:18:08 +000010332 else
10333 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334
10335 exit (status);
10336}
10337EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339 (eval $ac_link) 2>&5
10340 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010343 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344 lt_status=$?
10345 case x$lt_status in
10346 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10347 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010348 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010349 esac
10350 else :
10351 # compilation failed
10352
10353 fi
10354fi
10355rm -fr conftest*
10356
10357 LIBS="$save_LIBS"
10358
10359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010360{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10361echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362 fi
10363fi
10364
10365if test x"$libltdl_cv_need_uscore" = xyes; then
10366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010367cat >>confdefs.h <<\_ACEOF
10368#define NEED_USCORE 1
10369_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370
10371fi
10372
10373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010374{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10375echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10376if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378else
10379 # PORTME does your system automatically load deplibs for dlopen?
10380 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10381 # For now, we just catch OSes we know something about -- in the
10382 # future, we'll try test this programmatically.
10383 libltdl_cv_sys_dlopen_deplibs=unknown
10384 case "$host_os" in
10385 aix3*|aix4.1.*|aix4.2.*)
10386 # Unknown whether this is true for these versions of AIX, but
10387 # we want this `case' here to explicitly catch those versions.
10388 libltdl_cv_sys_dlopen_deplibs=unknown
10389 ;;
10390 aix[45]*)
10391 libltdl_cv_sys_dlopen_deplibs=yes
10392 ;;
10393 darwin*)
10394 # Assuming the user has installed a libdl from somewhere, this is true
10395 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10396 libltdl_cv_sys_dlopen_deplibs=yes
10397 ;;
10398 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10399 # GNU and its variants, using gnu ld.so (Glibc)
10400 libltdl_cv_sys_dlopen_deplibs=yes
10401 ;;
10402 hpux10*|hpux11*)
10403 libltdl_cv_sys_dlopen_deplibs=yes
10404 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010405 interix*)
10406 libltdl_cv_sys_dlopen_deplibs=yes
10407 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408 irix[12345]*|irix6.[01]*)
10409 # Catch all versions of IRIX before 6.2, and indicate that we don't
10410 # know how it worked for any of those versions.
10411 libltdl_cv_sys_dlopen_deplibs=unknown
10412 ;;
10413 irix*)
10414 # The case above catches anything before 6.2, and it's known that
10415 # at 6.2 and later dlopen does load deplibs.
10416 libltdl_cv_sys_dlopen_deplibs=yes
10417 ;;
10418 netbsd*)
10419 libltdl_cv_sys_dlopen_deplibs=yes
10420 ;;
10421 openbsd*)
10422 libltdl_cv_sys_dlopen_deplibs=yes
10423 ;;
10424 osf[1234]*)
10425 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10426 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010427 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428 libltdl_cv_sys_dlopen_deplibs=no
10429 ;;
10430 osf5.0|osf5.0a|osf5.1)
10431 # dlopen *does* load deplibs and with the right loader patch applied
10432 # it even uses RPATH in a shared library to search for shared objects
10433 # that the library depends on, but there's no easy way to know if that
10434 # patch is installed. Since this is the case, all we can really
10435 # say is unknown -- it depends on the patch being installed. If
10436 # it is, this changes to `yes'. Without it, it would be `no'.
10437 libltdl_cv_sys_dlopen_deplibs=unknown
10438 ;;
10439 osf*)
10440 # the two cases above should catch all versions of osf <= 5.1. Read
10441 # the comments above for what we know about them.
10442 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10443 # is used to find them so we can finally say `yes'.
10444 libltdl_cv_sys_dlopen_deplibs=yes
10445 ;;
10446 solaris*)
10447 libltdl_cv_sys_dlopen_deplibs=yes
10448 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10450 libltdl_cv_sys_dlopen_deplibs=yes
10451 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452 esac
10453
10454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010455{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10456echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010459cat >>confdefs.h <<\_ACEOF
10460#define LTDL_DLOPEN_DEPLIBS 1
10461_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462
10463fi
10464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010465
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010467do
10468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474fi
10475ac_res=`eval echo '${'$as_ac_Header'}'`
10476 { echo "$as_me:$LINENO: result: $ac_res" >&5
10477echo "${ECHO_T}$ac_res" >&6; }
10478else
10479 # Is the header compilable?
10480{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10482cat >conftest.$ac_ext <<_ACEOF
10483/* confdefs.h. */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h. */
10488$ac_includes_default
10489#include <$ac_header>
10490_ACEOF
10491rm -f conftest.$ac_objext
10492if { (ac_try="$ac_compile"
10493case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10496esac
10497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509esac
10510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10519esac
10520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_try") 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_header_compiler=yes
10526else
10527 echo "$as_me: failed program was:" >&5
10528sed 's/^/| /' conftest.$ac_ext >&5
10529
10530 ac_header_compiler=no
10531fi
10532
10533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10535echo "${ECHO_T}$ac_header_compiler" >&6; }
10536
10537# Is the header present?
10538{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10540cat >conftest.$ac_ext <<_ACEOF
10541/* confdefs.h. */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h. */
10546#include <$ac_header>
10547_ACEOF
10548if { (ac_try="$ac_cpp conftest.$ac_ext"
10549case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552esac
10553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } >/dev/null; then
10561 if test -s conftest.err; then
10562 ac_cpp_err=$ac_c_preproc_warn_flag
10563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10564 else
10565 ac_cpp_err=
10566 fi
10567else
10568 ac_cpp_err=yes
10569fi
10570if test -z "$ac_cpp_err"; then
10571 ac_header_preproc=yes
10572else
10573 echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
10576 ac_header_preproc=no
10577fi
10578
10579rm -f conftest.err conftest.$ac_ext
10580{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10581echo "${ECHO_T}$ac_header_preproc" >&6; }
10582
10583# So? What about this header?
10584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10585 yes:no: )
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10590 ac_header_preproc=yes
10591 ;;
10592 no:yes:* )
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10605 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010606## ------------------------------------ ##
10607## Report this to http://llvm.org/bugs/ ##
10608## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010609_ASBOX
10610 ) | sed "s/^/$as_me: WARNING: /" >&2
10611 ;;
10612esac
10613{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617else
10618 eval "$as_ac_Header=\$ac_header_preproc"
10619fi
10620ac_res=`eval echo '${'$as_ac_Header'}'`
10621 { echo "$as_me:$LINENO: result: $ac_res" >&5
10622echo "${ECHO_T}$ac_res" >&6; }
10623
10624fi
10625if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010626 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010628_ACEOF
10629
10630fi
10631
10632done
10633
10634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010635{ echo "$as_me:$LINENO: checking for error_t" >&5
10636echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10637if test "${ac_cv_type_error_t+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639else
10640 cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h. */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h. */
10646#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647# include <argz.h>
10648#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010649
10650typedef error_t ac__type_new_;
10651int
10652main ()
10653{
10654if ((ac__type_new_ *) 0)
10655 return 0;
10656if (sizeof (ac__type_new_))
10657 return 0;
10658 ;
10659 return 0;
10660}
10661_ACEOF
10662rm -f conftest.$ac_objext
10663if { (ac_try="$ac_compile"
10664case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667esac
10668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_compile") 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10677 { (case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680esac
10681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_try") 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest.$ac_objext'
10687 { (case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690esac
10691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_try") 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 ac_cv_type_error_t=yes
10697else
10698 echo "$as_me: failed program was:" >&5
10699sed 's/^/| /' conftest.$ac_ext >&5
10700
10701 ac_cv_type_error_t=no
10702fi
10703
10704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10705fi
10706{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10707echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10708if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709
10710cat >>confdefs.h <<_ACEOF
10711#define HAVE_ERROR_T 1
10712_ACEOF
10713
10714
10715else
10716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010717cat >>confdefs.h <<\_ACEOF
10718#define error_t int
10719_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010720
10721fi
10722
10723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010724
10725
10726
10727
10728
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010730do
10731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10732{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10734if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737 cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h. */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h. */
10743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10745#define $ac_func innocuous_$ac_func
10746
10747/* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char $ac_func (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10751
10752#ifdef __STDC__
10753# include <limits.h>
10754#else
10755# include <assert.h>
10756#endif
10757
10758#undef $ac_func
10759
10760/* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10763#ifdef __cplusplus
10764extern "C"
10765#endif
10766char $ac_func ();
10767/* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770#if defined __stub_$ac_func || defined __stub___$ac_func
10771choke me
10772#endif
10773
10774int
10775main ()
10776{
10777return $ac_func ();
10778 ;
10779 return 0;
10780}
10781_ACEOF
10782rm -f conftest.$ac_objext conftest$ac_exeext
10783if { (ac_try="$ac_link"
10784case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787esac
10788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_link") 2>conftest.er1
10790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800esac
10801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest$ac_exeext'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 eval "$as_ac_var=yes"
10817else
10818 echo "$as_me: failed program was:" >&5
10819sed 's/^/| /' conftest.$ac_ext >&5
10820
10821 eval "$as_ac_var=no"
10822fi
10823
10824rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10826fi
10827ac_res=`eval echo '${'$as_ac_var'}'`
10828 { echo "$as_me:$LINENO: result: $ac_res" >&5
10829echo "${ECHO_T}$ac_res" >&6; }
10830if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833_ACEOF
10834
10835fi
10836done
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010857
10858
10859
10860
10861
10862
10863
10864
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10866 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010867do
10868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874fi
10875ac_res=`eval echo '${'$as_ac_Header'}'`
10876 { echo "$as_me:$LINENO: result: $ac_res" >&5
10877echo "${ECHO_T}$ac_res" >&6; }
10878else
10879 # Is the header compilable?
10880{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10881echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10882cat >conftest.$ac_ext <<_ACEOF
10883/* confdefs.h. */
10884_ACEOF
10885cat confdefs.h >>conftest.$ac_ext
10886cat >>conftest.$ac_ext <<_ACEOF
10887/* end confdefs.h. */
10888$ac_includes_default
10889#include <$ac_header>
10890_ACEOF
10891rm -f conftest.$ac_objext
10892if { (ac_try="$ac_compile"
10893case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896esac
10897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_compile") 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10906 { (case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10909esac
10910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest.$ac_objext'
10916 { (case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10919esac
10920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_try") 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_header_compiler=yes
10926else
10927 echo "$as_me: failed program was:" >&5
10928sed 's/^/| /' conftest.$ac_ext >&5
10929
10930 ac_header_compiler=no
10931fi
10932
10933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10935echo "${ECHO_T}$ac_header_compiler" >&6; }
10936
10937# Is the header present?
10938{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10940cat >conftest.$ac_ext <<_ACEOF
10941/* confdefs.h. */
10942_ACEOF
10943cat confdefs.h >>conftest.$ac_ext
10944cat >>conftest.$ac_ext <<_ACEOF
10945/* end confdefs.h. */
10946#include <$ac_header>
10947_ACEOF
10948if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
10961 if test -s conftest.err; then
10962 ac_cpp_err=$ac_c_preproc_warn_flag
10963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10964 else
10965 ac_cpp_err=
10966 fi
10967else
10968 ac_cpp_err=yes
10969fi
10970if test -z "$ac_cpp_err"; then
10971 ac_header_preproc=yes
10972else
10973 echo "$as_me: failed program was:" >&5
10974sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 ac_header_preproc=no
10977fi
10978
10979rm -f conftest.err conftest.$ac_ext
10980{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10981echo "${ECHO_T}$ac_header_preproc" >&6; }
10982
10983# So? What about this header?
10984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10985 yes:no: )
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10989echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10990 ac_header_preproc=yes
10991 ;;
10992 no:yes:* )
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10994echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10996echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10998echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11000echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11004echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11005 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011006## ------------------------------------ ##
11007## Report this to http://llvm.org/bugs/ ##
11008## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011009_ASBOX
11010 ) | sed "s/^/$as_me: WARNING: /" >&2
11011 ;;
11012esac
11013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11017else
11018 eval "$as_ac_Header=\$ac_header_preproc"
11019fi
11020ac_res=`eval echo '${'$as_ac_Header'}'`
11021 { echo "$as_me:$LINENO: result: $ac_res" >&5
11022echo "${ECHO_T}$ac_res" >&6; }
11023
11024fi
11025if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011026 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011028_ACEOF
11029
11030fi
11031
11032done
11033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011034
11035
11036
11037
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011039do
11040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046fi
11047ac_res=`eval echo '${'$as_ac_Header'}'`
11048 { echo "$as_me:$LINENO: result: $ac_res" >&5
11049echo "${ECHO_T}$ac_res" >&6; }
11050else
11051 # Is the header compilable?
11052{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11054cat >conftest.$ac_ext <<_ACEOF
11055/* confdefs.h. */
11056_ACEOF
11057cat confdefs.h >>conftest.$ac_ext
11058cat >>conftest.$ac_ext <<_ACEOF
11059/* end confdefs.h. */
11060$ac_includes_default
11061#include <$ac_header>
11062_ACEOF
11063rm -f conftest.$ac_objext
11064if { (ac_try="$ac_compile"
11065case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068esac
11069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_compile") 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11078 { (case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11081esac
11082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_try") 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; } &&
11087 { ac_try='test -s conftest.$ac_objext'
11088 { (case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091esac
11092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_try") 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_header_compiler=yes
11098else
11099 echo "$as_me: failed program was:" >&5
11100sed 's/^/| /' conftest.$ac_ext >&5
11101
11102 ac_header_compiler=no
11103fi
11104
11105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107echo "${ECHO_T}$ac_header_compiler" >&6; }
11108
11109# Is the header present?
11110{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11112cat >conftest.$ac_ext <<_ACEOF
11113/* confdefs.h. */
11114_ACEOF
11115cat confdefs.h >>conftest.$ac_ext
11116cat >>conftest.$ac_ext <<_ACEOF
11117/* end confdefs.h. */
11118#include <$ac_header>
11119_ACEOF
11120if { (ac_try="$ac_cpp conftest.$ac_ext"
11121case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } >/dev/null; then
11133 if test -s conftest.err; then
11134 ac_cpp_err=$ac_c_preproc_warn_flag
11135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11136 else
11137 ac_cpp_err=
11138 fi
11139else
11140 ac_cpp_err=yes
11141fi
11142if test -z "$ac_cpp_err"; then
11143 ac_header_preproc=yes
11144else
11145 echo "$as_me: failed program was:" >&5
11146sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_header_preproc=no
11149fi
11150
11151rm -f conftest.err conftest.$ac_ext
11152{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11153echo "${ECHO_T}$ac_header_preproc" >&6; }
11154
11155# So? What about this header?
11156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11157 yes:no: )
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11162 ac_header_preproc=yes
11163 ;;
11164 no:yes:* )
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11177 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011178## ------------------------------------ ##
11179## Report this to http://llvm.org/bugs/ ##
11180## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011181_ASBOX
11182 ) | sed "s/^/$as_me: WARNING: /" >&2
11183 ;;
11184esac
11185{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190 eval "$as_ac_Header=\$ac_header_preproc"
11191fi
11192ac_res=`eval echo '${'$as_ac_Header'}'`
11193 { echo "$as_me:$LINENO: result: $ac_res" >&5
11194echo "${ECHO_T}$ac_res" >&6; }
11195
11196fi
11197if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011198 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200_ACEOF
11201
11202fi
11203
11204done
11205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011206
11207
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011208for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011209do
11210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216fi
11217ac_res=`eval echo '${'$as_ac_Header'}'`
11218 { echo "$as_me:$LINENO: result: $ac_res" >&5
11219echo "${ECHO_T}$ac_res" >&6; }
11220else
11221 # Is the header compilable?
11222{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11224cat >conftest.$ac_ext <<_ACEOF
11225/* confdefs.h. */
11226_ACEOF
11227cat confdefs.h >>conftest.$ac_ext
11228cat >>conftest.$ac_ext <<_ACEOF
11229/* end confdefs.h. */
11230$ac_includes_default
11231#include <$ac_header>
11232_ACEOF
11233rm -f conftest.$ac_objext
11234if { (ac_try="$ac_compile"
11235case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11238esac
11239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_compile") 2>conftest.er1
11241 ac_status=$?
11242 grep -v '^ *+' conftest.er1 >conftest.err
11243 rm -f conftest.er1
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11248 { (case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11251esac
11252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_try") 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest.$ac_objext'
11258 { (case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261esac
11262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_try") 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
11267 ac_header_compiler=yes
11268else
11269 echo "$as_me: failed program was:" >&5
11270sed 's/^/| /' conftest.$ac_ext >&5
11271
11272 ac_header_compiler=no
11273fi
11274
11275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11277echo "${ECHO_T}$ac_header_compiler" >&6; }
11278
11279# Is the header present?
11280{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11282cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288#include <$ac_header>
11289_ACEOF
11290if { (ac_try="$ac_cpp conftest.$ac_ext"
11291case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } >/dev/null; then
11303 if test -s conftest.err; then
11304 ac_cpp_err=$ac_c_preproc_warn_flag
11305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11306 else
11307 ac_cpp_err=
11308 fi
11309else
11310 ac_cpp_err=yes
11311fi
11312if test -z "$ac_cpp_err"; then
11313 ac_header_preproc=yes
11314else
11315 echo "$as_me: failed program was:" >&5
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
11318 ac_header_preproc=no
11319fi
11320
11321rm -f conftest.err conftest.$ac_ext
11322{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11323echo "${ECHO_T}$ac_header_preproc" >&6; }
11324
11325# So? What about this header?
11326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11327 yes:no: )
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11332 ac_header_preproc=yes
11333 ;;
11334 no:yes:* )
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11347 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011348## ------------------------------------ ##
11349## Report this to http://llvm.org/bugs/ ##
11350## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011351_ASBOX
11352 ) | sed "s/^/$as_me: WARNING: /" >&2
11353 ;;
11354esac
11355{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359else
11360 eval "$as_ac_Header=\$ac_header_preproc"
11361fi
11362ac_res=`eval echo '${'$as_ac_Header'}'`
11363 { echo "$as_me:$LINENO: result: $ac_res" >&5
11364echo "${ECHO_T}$ac_res" >&6; }
11365
11366fi
11367if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011368 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011370_ACEOF
11371 break
11372fi
11373
11374done
11375
11376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011377
11378
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011380do
11381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11382{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11384if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386else
11387 cat >conftest.$ac_ext <<_ACEOF
11388/* confdefs.h. */
11389_ACEOF
11390cat confdefs.h >>conftest.$ac_ext
11391cat >>conftest.$ac_ext <<_ACEOF
11392/* end confdefs.h. */
11393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11395#define $ac_func innocuous_$ac_func
11396
11397/* System header to define __stub macros and hopefully few prototypes,
11398 which can conflict with char $ac_func (); below.
11399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11400 <limits.h> exists even on freestanding compilers. */
11401
11402#ifdef __STDC__
11403# include <limits.h>
11404#else
11405# include <assert.h>
11406#endif
11407
11408#undef $ac_func
11409
11410/* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413#ifdef __cplusplus
11414extern "C"
11415#endif
11416char $ac_func ();
11417/* The GNU C library defines this for functions which it implements
11418 to always fail with ENOSYS. Some functions are actually named
11419 something starting with __ and the normal name is an alias. */
11420#if defined __stub_$ac_func || defined __stub___$ac_func
11421choke me
11422#endif
11423
11424int
11425main ()
11426{
11427return $ac_func ();
11428 ;
11429 return 0;
11430}
11431_ACEOF
11432rm -f conftest.$ac_objext conftest$ac_exeext
11433if { (ac_try="$ac_link"
11434case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11437esac
11438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_link") 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450esac
11451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest$ac_exeext'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460esac
11461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 eval "$as_ac_var=yes"
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 eval "$as_ac_var=no"
11472fi
11473
11474rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476fi
11477ac_res=`eval echo '${'$as_ac_var'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479echo "${ECHO_T}$ac_res" >&6; }
11480if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011481 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483_ACEOF
11484 break
11485fi
11486done
11487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011488
11489
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011490for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011491do
11492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11495if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497else
11498 cat >conftest.$ac_ext <<_ACEOF
11499/* confdefs.h. */
11500_ACEOF
11501cat confdefs.h >>conftest.$ac_ext
11502cat >>conftest.$ac_ext <<_ACEOF
11503/* end confdefs.h. */
11504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11506#define $ac_func innocuous_$ac_func
11507
11508/* System header to define __stub macros and hopefully few prototypes,
11509 which can conflict with char $ac_func (); below.
11510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511 <limits.h> exists even on freestanding compilers. */
11512
11513#ifdef __STDC__
11514# include <limits.h>
11515#else
11516# include <assert.h>
11517#endif
11518
11519#undef $ac_func
11520
11521/* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524#ifdef __cplusplus
11525extern "C"
11526#endif
11527char $ac_func ();
11528/* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531#if defined __stub_$ac_func || defined __stub___$ac_func
11532choke me
11533#endif
11534
11535int
11536main ()
11537{
11538return $ac_func ();
11539 ;
11540 return 0;
11541}
11542_ACEOF
11543rm -f conftest.$ac_objext conftest$ac_exeext
11544if { (ac_try="$ac_link"
11545case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548esac
11549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_link") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } &&
11557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558 { (case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11561esac
11562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_try") 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest$ac_exeext'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571esac
11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 eval "$as_ac_var=yes"
11578else
11579 echo "$as_me: failed program was:" >&5
11580sed 's/^/| /' conftest.$ac_ext >&5
11581
11582 eval "$as_ac_var=no"
11583fi
11584
11585rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587fi
11588ac_res=`eval echo '${'$as_ac_var'}'`
11589 { echo "$as_me:$LINENO: result: $ac_res" >&5
11590echo "${ECHO_T}$ac_res" >&6; }
11591if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594_ACEOF
11595 break
11596fi
11597done
11598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011599
11600
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011602do
11603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608else
11609 cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11617#define $ac_func innocuous_$ac_func
11618
11619/* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below.
11621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622 <limits.h> exists even on freestanding compilers. */
11623
11624#ifdef __STDC__
11625# include <limits.h>
11626#else
11627# include <assert.h>
11628#endif
11629
11630#undef $ac_func
11631
11632/* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635#ifdef __cplusplus
11636extern "C"
11637#endif
11638char $ac_func ();
11639/* The GNU C library defines this for functions which it implements
11640 to always fail with ENOSYS. Some functions are actually named
11641 something starting with __ and the normal name is an alias. */
11642#if defined __stub_$ac_func || defined __stub___$ac_func
11643choke me
11644#endif
11645
11646int
11647main ()
11648{
11649return $ac_func ();
11650 ;
11651 return 0;
11652}
11653_ACEOF
11654rm -f conftest.$ac_objext conftest$ac_exeext
11655if { (ac_try="$ac_link"
11656case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659esac
11660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_link") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11672esac
11673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest$ac_exeext'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682esac
11683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 eval "$as_ac_var=yes"
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 eval "$as_ac_var=no"
11694fi
11695
11696rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698fi
11699ac_res=`eval echo '${'$as_ac_var'}'`
11700 { echo "$as_me:$LINENO: result: $ac_res" >&5
11701echo "${ECHO_T}$ac_res" >&6; }
11702if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705_ACEOF
11706 break
11707fi
11708done
11709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011710
11711
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011713do
11714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11715{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11717if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719else
11720 cat >conftest.$ac_ext <<_ACEOF
11721/* confdefs.h. */
11722_ACEOF
11723cat confdefs.h >>conftest.$ac_ext
11724cat >>conftest.$ac_ext <<_ACEOF
11725/* end confdefs.h. */
11726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11728#define $ac_func innocuous_$ac_func
11729
11730/* System header to define __stub macros and hopefully few prototypes,
11731 which can conflict with char $ac_func (); below.
11732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11733 <limits.h> exists even on freestanding compilers. */
11734
11735#ifdef __STDC__
11736# include <limits.h>
11737#else
11738# include <assert.h>
11739#endif
11740
11741#undef $ac_func
11742
11743/* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11746#ifdef __cplusplus
11747extern "C"
11748#endif
11749char $ac_func ();
11750/* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753#if defined __stub_$ac_func || defined __stub___$ac_func
11754choke me
11755#endif
11756
11757int
11758main ()
11759{
11760return $ac_func ();
11761 ;
11762 return 0;
11763}
11764_ACEOF
11765rm -f conftest.$ac_objext conftest$ac_exeext
11766if { (ac_try="$ac_link"
11767case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770esac
11771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_link") 2>conftest.er1
11773 ac_status=$?
11774 grep -v '^ *+' conftest.er1 >conftest.err
11775 rm -f conftest.er1
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783esac
11784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793esac
11794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 eval "$as_ac_var=yes"
11800else
11801 echo "$as_me: failed program was:" >&5
11802sed 's/^/| /' conftest.$ac_ext >&5
11803
11804 eval "$as_ac_var=no"
11805fi
11806
11807rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11809fi
11810ac_res=`eval echo '${'$as_ac_var'}'`
11811 { echo "$as_me:$LINENO: result: $ac_res" >&5
11812echo "${ECHO_T}$ac_res" >&6; }
11813if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816_ACEOF
11817
11818fi
11819done
11820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011821
11822
11823
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011825do
11826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11827{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11829if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11831else
11832 cat >conftest.$ac_ext <<_ACEOF
11833/* confdefs.h. */
11834_ACEOF
11835cat confdefs.h >>conftest.$ac_ext
11836cat >>conftest.$ac_ext <<_ACEOF
11837/* end confdefs.h. */
11838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11840#define $ac_func innocuous_$ac_func
11841
11842/* System header to define __stub macros and hopefully few prototypes,
11843 which can conflict with char $ac_func (); below.
11844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11845 <limits.h> exists even on freestanding compilers. */
11846
11847#ifdef __STDC__
11848# include <limits.h>
11849#else
11850# include <assert.h>
11851#endif
11852
11853#undef $ac_func
11854
11855/* Override any GCC internal prototype to avoid an error.
11856 Use char because int might match the return type of a GCC
11857 builtin and then its argument prototype would still apply. */
11858#ifdef __cplusplus
11859extern "C"
11860#endif
11861char $ac_func ();
11862/* The GNU C library defines this for functions which it implements
11863 to always fail with ENOSYS. Some functions are actually named
11864 something starting with __ and the normal name is an alias. */
11865#if defined __stub_$ac_func || defined __stub___$ac_func
11866choke me
11867#endif
11868
11869int
11870main ()
11871{
11872return $ac_func ();
11873 ;
11874 return 0;
11875}
11876_ACEOF
11877rm -f conftest.$ac_objext conftest$ac_exeext
11878if { (ac_try="$ac_link"
11879case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882esac
11883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_link") 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try='test -s conftest$ac_exeext'
11902 { (case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905esac
11906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_try") 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 eval "$as_ac_var=yes"
11912else
11913 echo "$as_me: failed program was:" >&5
11914sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 eval "$as_ac_var=no"
11917fi
11918
11919rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921fi
11922ac_res=`eval echo '${'$as_ac_var'}'`
11923 { echo "$as_me:$LINENO: result: $ac_res" >&5
11924echo "${ECHO_T}$ac_res" >&6; }
11925if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928_ACEOF
11929
11930fi
11931done
11932
11933
Douglas Gregor01746742009-05-11 18:05:52 +000011934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011935{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11936echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011937
Reid Spencer86901802004-12-08 23:07:27 +000011938ICC=no
11939IXX=no
11940case $CC in
11941 icc*|icpc*)
11942 ICC=yes
11943 IXX=yes
11944 ;;
11945 *)
11946 ;;
11947esac
11948
Duraid Madina937c60a2006-02-15 07:57:42 +000011949if test "$GCC" != "yes" && test "$ICC" != "yes"
11950then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011951 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11952echo "$as_me: error: gcc|icc required but not found" >&2;}
11953 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011954fi
11955
11956if test "$GXX" != "yes" && test "$IXX" != "yes"
11957then
Eric Christopher73e36da2010-12-08 02:02:14 +000011958 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11959echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011960 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011961fi
11962
Reid Spencer86901802004-12-08 23:07:27 +000011963if test "$GCC" = "yes"
11964then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011965 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000011966#if !defined(__GNUC__) || __GNUC__ < 3
11967#error Unsupported GCC version
11968#endif
11969
11970_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011971rm -f conftest.$ac_objext
11972if { (ac_try="$ac_compile"
11973case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976esac
11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999esac
12000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_try") 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012007 echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
12010 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12011echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12012 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012014
Chris Lattner399c7c72008-02-05 19:43:53 +000012015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012016fi
12017
12018if test -z "$llvm_cv_gnu_make_command"
12019then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012020 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12021echo "$as_me: error: GNU Make required but not found" >&2;}
12022 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012023fi
12024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012025{ echo "$as_me:$LINENO: result: ok" >&5
12026echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012028{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12029echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012030NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012031
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012032NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012033
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012034COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12035
12036{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12037echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012038
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012040
12041{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12042echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12043if test "${ac_cv_lib_m_sin+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012045else
12046 ac_check_lib_save_LIBS=$LIBS
12047LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012048cat >conftest.$ac_ext <<_ACEOF
12049/* confdefs.h. */
12050_ACEOF
12051cat confdefs.h >>conftest.$ac_ext
12052cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012053/* end confdefs.h. */
12054
Reid Spencera773bd52006-08-04 18:18:08 +000012055/* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012058#ifdef __cplusplus
12059extern "C"
12060#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012061char sin ();
12062int
12063main ()
12064{
Reid Spencera773bd52006-08-04 18:18:08 +000012065return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012066 ;
12067 return 0;
12068}
12069_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012070rm -f conftest.$ac_objext conftest$ac_exeext
12071if { (ac_try="$ac_link"
12072case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075esac
12076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_link") 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088esac
12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest$ac_exeext'
12095 { (case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12098esac
12099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_try") 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012104 ac_cv_lib_m_sin=yes
12105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012106 echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012111
Bill Wendlingebcceee2009-04-18 11:20:33 +000012112rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012113 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012114LIBS=$ac_check_lib_save_LIBS
12115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012116{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12117echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12118if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012119 cat >>confdefs.h <<_ACEOF
12120#define HAVE_LIBM 1
12121_ACEOF
12122
12123 LIBS="-lm $LIBS"
12124
12125fi
12126
Jeff Cohen28783c32007-01-12 18:22:38 +000012127if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012128
12129{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12130echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12131if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012133else
12134 ac_check_lib_save_LIBS=$LIBS
12135LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012136cat >conftest.$ac_ext <<_ACEOF
12137/* confdefs.h. */
12138_ACEOF
12139cat confdefs.h >>conftest.$ac_ext
12140cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012141/* end confdefs.h. */
12142
Reid Spencer48fdf912006-06-01 19:03:21 +000012143
Reid Spencer484fc8e2006-06-01 16:55:59 +000012144int
12145main ()
12146{
Reid Spencera773bd52006-08-04 18:18:08 +000012147return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012148 ;
12149 return 0;
12150}
12151_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012152rm -f conftest.$ac_objext conftest$ac_exeext
12153if { (ac_try="$ac_link"
12154case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12157esac
12158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_link") 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12167 { (case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170esac
12171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_try") 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; } &&
12176 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012186 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012188 echo "$as_me: failed program was:" >&5
12189sed 's/^/| /' conftest.$ac_ext >&5
12190
12191 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012193
Bill Wendlingebcceee2009-04-18 11:20:33 +000012194rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012195 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012196LIBS=$ac_check_lib_save_LIBS
12197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012198{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12199echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12200if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012201 cat >>confdefs.h <<_ACEOF
12202#define HAVE_LIBIMAGEHLP 1
12203_ACEOF
12204
12205 LIBS="-limagehlp $LIBS"
12206
12207fi
12208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012209
12210{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12211echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12212if test "${ac_cv_lib_psapi_main+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012214else
12215 ac_check_lib_save_LIBS=$LIBS
12216LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012217cat >conftest.$ac_ext <<_ACEOF
12218/* confdefs.h. */
12219_ACEOF
12220cat confdefs.h >>conftest.$ac_ext
12221cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012222/* end confdefs.h. */
12223
Reid Spencer48fdf912006-06-01 19:03:21 +000012224
Reid Spencer484fc8e2006-06-01 16:55:59 +000012225int
12226main ()
12227{
Reid Spencera773bd52006-08-04 18:18:08 +000012228return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012229 ;
12230 return 0;
12231}
12232_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012233rm -f conftest.$ac_objext conftest$ac_exeext
12234if { (ac_try="$ac_link"
12235case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238esac
12239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_link") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251esac
12252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (case "(($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_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012267 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012269 echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
12272 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012274
Bill Wendlingebcceee2009-04-18 11:20:33 +000012275rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012276 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012277LIBS=$ac_check_lib_save_LIBS
12278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012279{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12280echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12281if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012282 cat >>confdefs.h <<_ACEOF
12283#define HAVE_LIBPSAPI 1
12284_ACEOF
12285
12286 LIBS="-lpsapi $LIBS"
12287
12288fi
12289
12290fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012292{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12293echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12294if test "${ac_cv_search_dlopen+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012296else
12297 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012298cat >conftest.$ac_ext <<_ACEOF
12299/* confdefs.h. */
12300_ACEOF
12301cat confdefs.h >>conftest.$ac_ext
12302cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012304
Reid Spencera773bd52006-08-04 18:18:08 +000012305/* Override any GCC internal prototype to avoid an error.
12306 Use char because int might match the return type of a GCC
12307 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012308#ifdef __cplusplus
12309extern "C"
12310#endif
John Criswell7a73b802003-06-30 21:59:07 +000012311char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012312int
12313main ()
12314{
Reid Spencera773bd52006-08-04 18:18:08 +000012315return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012316 ;
12317 return 0;
12318}
12319_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012320for ac_lib in '' dl; do
12321 if test -z "$ac_lib"; then
12322 ac_res="none required"
12323 else
12324 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012326 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012327 rm -f conftest.$ac_objext conftest$ac_exeext
12328if { (ac_try="$ac_link"
12329case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12332esac
12333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_link") 2>conftest.er1
12335 ac_status=$?
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12342 { (case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12345esac
12346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_try") 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12355esac
12356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_try") 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012361 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012362else
12363 echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
12365
12366
John Criswell7a73b802003-06-30 21:59:07 +000012367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012368
Bill Wendlingebcceee2009-04-18 11:20:33 +000012369rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012370 conftest$ac_exeext
12371 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012372 break
John Criswell7a73b802003-06-30 21:59:07 +000012373fi
Reid Spencera773bd52006-08-04 18:18:08 +000012374done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012375if test "${ac_cv_search_dlopen+set}" = set; then
12376 :
Reid Spencera773bd52006-08-04 18:18:08 +000012377else
12378 ac_cv_search_dlopen=no
12379fi
12380rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012381LIBS=$ac_func_search_save_LIBS
12382fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012383{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12384echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012385ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012386if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012389cat >>confdefs.h <<\_ACEOF
12390#define HAVE_DLOPEN 1
12391_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012392
12393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012394 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12395echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012396fi
12397
12398
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012399if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012400 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12401echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12402if test "${ac_cv_search_ffi_call+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012404else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012405 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012406cat >conftest.$ac_ext <<_ACEOF
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012411/* end confdefs.h. */
12412
12413/* Override any GCC internal prototype to avoid an error.
12414 Use char because int might match the return type of a GCC
12415 builtin and then its argument prototype would still apply. */
12416#ifdef __cplusplus
12417extern "C"
12418#endif
12419char ffi_call ();
12420int
12421main ()
12422{
12423return ffi_call ();
12424 ;
12425 return 0;
12426}
12427_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012428for ac_lib in '' ffi; do
12429 if test -z "$ac_lib"; then
12430 ac_res="none required"
12431 else
12432 ac_res=-l$ac_lib
12433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12434 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435 rm -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
Nick Lewycky267fddb2009-04-13 04:26:27 +000012469 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012470else
12471 echo "$as_me: failed program was:" >&5
12472sed 's/^/| /' conftest.$ac_ext >&5
12473
12474
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +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
12479 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012480 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012481fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012482done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012483if test "${ac_cv_search_ffi_call+set}" = set; then
12484 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012485else
12486 ac_cv_search_ffi_call=no
12487fi
12488rm conftest.$ac_ext
12489LIBS=$ac_func_search_save_LIBS
12490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012491{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12492echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012493ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012494if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012497cat >>confdefs.h <<\_ACEOF
12498#define HAVE_FFI_CALL 1
12499_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012500
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012501else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012502 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12503echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12504 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012505fi
12506
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012507fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012509{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12510echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12511if test "${ac_cv_search_mallinfo+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012513else
12514 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012515cat >conftest.$ac_ext <<_ACEOF
12516/* confdefs.h. */
12517_ACEOF
12518cat confdefs.h >>conftest.$ac_ext
12519cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012521
Reid Spencera773bd52006-08-04 18:18:08 +000012522/* Override any GCC internal prototype to avoid an error.
12523 Use char because int might match the return type of a GCC
12524 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012525#ifdef __cplusplus
12526extern "C"
12527#endif
John Criswell7a73b802003-06-30 21:59:07 +000012528char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012529int
12530main ()
12531{
Reid Spencera773bd52006-08-04 18:18:08 +000012532return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012533 ;
12534 return 0;
12535}
12536_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012537for ac_lib in '' malloc; do
12538 if test -z "$ac_lib"; then
12539 ac_res="none required"
12540 else
12541 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012543 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012544 rm -f conftest.$ac_objext conftest$ac_exeext
12545if { (ac_try="$ac_link"
12546case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549esac
12550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_link") 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12559 { (case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562esac
12563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_try") 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } &&
12568 { ac_try='test -s conftest$ac_exeext'
12569 { (case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12572esac
12573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_try") 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012578 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012579else
12580 echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
12582
12583
John Criswell7a73b802003-06-30 21:59:07 +000012584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012585
Bill Wendlingebcceee2009-04-18 11:20:33 +000012586rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012587 conftest$ac_exeext
12588 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012589 break
John Criswell7a73b802003-06-30 21:59:07 +000012590fi
Reid Spencera773bd52006-08-04 18:18:08 +000012591done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012592if test "${ac_cv_search_mallinfo+set}" = set; then
12593 :
Reid Spencera773bd52006-08-04 18:18:08 +000012594else
12595 ac_cv_search_mallinfo=no
12596fi
12597rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012598LIBS=$ac_func_search_save_LIBS
12599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012600{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12601echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012602ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012603if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012606cat >>confdefs.h <<\_ACEOF
12607#define HAVE_MALLINFO 1
12608_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012609
12610fi
12611
12612
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012613if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012614
12615{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12616echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12617if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012619else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012620 ac_check_lib_save_LIBS=$LIBS
12621LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012622cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h. */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012627/* end confdefs.h. */
12628
Reid Spencera773bd52006-08-04 18:18:08 +000012629/* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012632#ifdef __cplusplus
12633extern "C"
12634#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012635char pthread_mutex_init ();
12636int
12637main ()
12638{
Reid Spencera773bd52006-08-04 18:18:08 +000012639return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012640 ;
12641 return 0;
12642}
12643_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012644rm -f conftest.$ac_objext conftest$ac_exeext
12645if { (ac_try="$ac_link"
12646case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649esac
12650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_link") 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659 { (case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662esac
12663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_try") 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; } &&
12668 { ac_try='test -s conftest$ac_exeext'
12669 { (case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12672esac
12673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_try") 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012678 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012680 echo "$as_me: failed program was:" >&5
12681sed 's/^/| /' conftest.$ac_ext >&5
12682
12683 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012685
Bill Wendlingebcceee2009-04-18 11:20:33 +000012686rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012687 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012688LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012690{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12691echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12692if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012693 cat >>confdefs.h <<_ACEOF
12694#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012695_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012696
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012697 LIBS="-lpthread $LIBS"
12698
Reid Spencer22177fe2005-07-12 15:24:20 +000012699fi
12700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012701 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12702echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12703if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012705else
12706 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012707cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h. */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012712/* end confdefs.h. */
12713
Reid Spencera773bd52006-08-04 18:18:08 +000012714/* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012717#ifdef __cplusplus
12718extern "C"
12719#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012720char pthread_mutex_lock ();
12721int
12722main ()
12723{
Reid Spencera773bd52006-08-04 18:18:08 +000012724return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012725 ;
12726 return 0;
12727}
12728_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012729for ac_lib in '' pthread; do
12730 if test -z "$ac_lib"; then
12731 ac_res="none required"
12732 else
12733 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012735 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012736 rm -f conftest.$ac_objext conftest$ac_exeext
12737if { (ac_try="$ac_link"
12738case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12741esac
12742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_link") 2>conftest.er1
12744 ac_status=$?
12745 grep -v '^ *+' conftest.er1 >conftest.err
12746 rm -f conftest.er1
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751 { (case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12754esac
12755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_try") 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest$ac_exeext'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012770 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012771else
12772 echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
12774
12775
Brian Gaeke5f268f72003-12-05 19:29:01 +000012776fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777
Bill Wendlingebcceee2009-04-18 11:20:33 +000012778rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012779 conftest$ac_exeext
12780 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012781 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012782fi
Reid Spencera773bd52006-08-04 18:18:08 +000012783done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012784if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12785 :
Reid Spencera773bd52006-08-04 18:18:08 +000012786else
12787 ac_cv_search_pthread_mutex_lock=no
12788fi
12789rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012790LIBS=$ac_func_search_save_LIBS
12791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012792{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12793echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012794ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012795if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012798cat >>confdefs.h <<\_ACEOF
12799#define HAVE_PTHREAD_MUTEX_LOCK 1
12800_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012801
12802fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012804 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12805echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12806if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012808else
12809 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012810cat >conftest.$ac_ext <<_ACEOF
12811/* confdefs.h. */
12812_ACEOF
12813cat confdefs.h >>conftest.$ac_ext
12814cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012815/* end confdefs.h. */
12816
12817/* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12820#ifdef __cplusplus
12821extern "C"
12822#endif
12823char pthread_rwlock_init ();
12824int
12825main ()
12826{
12827return pthread_rwlock_init ();
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832for ac_lib in '' pthread; do
12833 if test -z "$ac_lib"; then
12834 ac_res="none required"
12835 else
12836 ac_res=-l$ac_lib
12837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12838 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012839 rm -f conftest.$ac_objext conftest$ac_exeext
12840if { (ac_try="$ac_link"
12841case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12844esac
12845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_link") 2>conftest.er1
12847 ac_status=$?
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12854 { (case "(($ac_try" in
12855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856 *) ac_try_echo=$ac_try;;
12857esac
12858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859 (eval "$ac_try") 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest$ac_exeext'
12864 { (case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867esac
12868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_try") 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012873 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012874else
12875 echo "$as_me: failed program was:" >&5
12876sed 's/^/| /' conftest.$ac_ext >&5
12877
12878
Owen Andersonde8aed22009-06-16 18:20:20 +000012879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012880
Owen Andersonde8aed22009-06-16 18:20:20 +000012881rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012882 conftest$ac_exeext
12883 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012884 break
12885fi
12886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012887if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12888 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012889else
12890 ac_cv_search_pthread_rwlock_init=no
12891fi
12892rm conftest.$ac_ext
12893LIBS=$ac_func_search_save_LIBS
12894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012895{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12896echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012897ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012898if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012901cat >>confdefs.h <<\_ACEOF
12902#define HAVE_PTHREAD_RWLOCK_INIT 1
12903_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012904
12905fi
12906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012907 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12908echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12909if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012911else
12912 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012913cat >conftest.$ac_ext <<_ACEOF
12914/* confdefs.h. */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012918/* end confdefs.h. */
12919
12920/* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923#ifdef __cplusplus
12924extern "C"
12925#endif
12926char pthread_getspecific ();
12927int
12928main ()
12929{
12930return pthread_getspecific ();
12931 ;
12932 return 0;
12933}
12934_ACEOF
12935for ac_lib in '' pthread; do
12936 if test -z "$ac_lib"; then
12937 ac_res="none required"
12938 else
12939 ac_res=-l$ac_lib
12940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12941 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012942 rm -f conftest.$ac_objext conftest$ac_exeext
12943if { (ac_try="$ac_link"
12944case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947esac
12948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_link") 2>conftest.er1
12950 ac_status=$?
12951 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12957 { (case "(($ac_try" in
12958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959 *) ac_try_echo=$ac_try;;
12960esac
12961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962 (eval "$ac_try") 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest$ac_exeext'
12967 { (case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970esac
12971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_try") 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012976 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012977else
12978 echo "$as_me: failed program was:" >&5
12979sed 's/^/| /' conftest.$ac_ext >&5
12980
12981
Owen Anderson27fcfe12009-06-25 23:10:26 +000012982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012983
Owen Anderson27fcfe12009-06-25 23:10:26 +000012984rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012985 conftest$ac_exeext
12986 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012987 break
12988fi
12989done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012990if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12991 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000012992else
12993 ac_cv_search_pthread_getspecific=no
12994fi
12995rm conftest.$ac_ext
12996LIBS=$ac_func_search_save_LIBS
12997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012998{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12999echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013000ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013001if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013004cat >>confdefs.h <<\_ACEOF
13005#define HAVE_PTHREAD_GETSPECIFIC 1
13006_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013007
13008fi
13009
Reid Spencer0a262ba2005-08-24 10:07:20 +000013010fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013011
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013012
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013013# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013014if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013015 withval=$with_udis86;
13016 USE_UDIS86=1
13017
13018 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013019 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013020 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13021 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013022
13023{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13024echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13025if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013027else
13028 ac_check_lib_save_LIBS=$LIBS
13029LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013030cat >conftest.$ac_ext <<_ACEOF
13031/* confdefs.h. */
13032_ACEOF
13033cat confdefs.h >>conftest.$ac_ext
13034cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013035/* end confdefs.h. */
13036
13037/* Override any GCC internal prototype to avoid an error.
13038 Use char because int might match the return type of a GCC
13039 builtin and then its argument prototype would still apply. */
13040#ifdef __cplusplus
13041extern "C"
13042#endif
13043char ud_init ();
13044int
13045main ()
13046{
13047return ud_init ();
13048 ;
13049 return 0;
13050}
13051_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013052rm -f conftest.$ac_objext conftest$ac_exeext
13053if { (ac_try="$ac_link"
13054case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057esac
13058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_link") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13067 { (case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070esac
13071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_try") 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; } &&
13076 { ac_try='test -s conftest$ac_exeext'
13077 { (case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080esac
13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_try") 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013086 ac_cv_lib_udis86_ud_init=yes
13087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013088 echo "$as_me: failed program was:" >&5
13089sed 's/^/| /' conftest.$ac_ext >&5
13090
13091 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013092fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013093
Bill Wendlingebcceee2009-04-18 11:20:33 +000013094rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013095 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013096LIBS=$ac_check_lib_save_LIBS
13097fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013098{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13099echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13100if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013101 cat >>confdefs.h <<_ACEOF
13102#define HAVE_LIBUDIS86 1
13103_ACEOF
13104
13105 LIBS="-ludis86 $LIBS"
13106
13107else
13108
13109 echo "Error! You need to have libudis86 around."
13110 exit -1
13111
13112fi
13113
13114
13115else
13116 USE_UDIS86=0
13117
13118fi
13119
13120
13121cat >>confdefs.h <<_ACEOF
13122#define USE_UDIS86 $USE_UDIS86
13123_ACEOF
13124
13125
13126
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013127# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013129 withval=$with_oprofile;
13130 USE_OPROFILE=1
13131
13132 case "$withval" in
13133 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013134 no) llvm_cv_oppath=
13135 USE_OPROFILE=0
13136 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013137 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013138 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013139 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013140 case $llvm_cv_os_type in
13141 Linux)
13142 if test -n "$llvm_cv_oppath" ; then
13143 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13144 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13146if test "${ac_cv_search_bfd_init+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013148else
13149 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013150cat >conftest.$ac_ext <<_ACEOF
13151/* confdefs.h. */
13152_ACEOF
13153cat confdefs.h >>conftest.$ac_ext
13154cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013155/* end confdefs.h. */
13156
13157/* Override any GCC internal prototype to avoid an error.
13158 Use char because int might match the return type of a GCC
13159 builtin and then its argument prototype would still apply. */
13160#ifdef __cplusplus
13161extern "C"
13162#endif
13163char bfd_init ();
13164int
13165main ()
13166{
13167return bfd_init ();
13168 ;
13169 return 0;
13170}
13171_ACEOF
13172for ac_lib in '' bfd; do
13173 if test -z "$ac_lib"; then
13174 ac_res="none required"
13175 else
13176 ac_res=-l$ac_lib
13177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13178 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013179 rm -f conftest.$ac_objext conftest$ac_exeext
13180if { (ac_try="$ac_link"
13181case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_link") 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } &&
13193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13194 { (case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197esac
13198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_try") 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; } &&
13203 { ac_try='test -s conftest$ac_exeext'
13204 { (case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207esac
13208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_try") 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013213 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013214else
13215 echo "$as_me: failed program was:" >&5
13216sed 's/^/| /' conftest.$ac_ext >&5
13217
13218
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013220
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013221rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222 conftest$ac_exeext
13223 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013224 break
13225fi
13226done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227if test "${ac_cv_search_bfd_init+set}" = set; then
13228 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013229else
13230 ac_cv_search_bfd_init=no
13231fi
13232rm conftest.$ac_ext
13233LIBS=$ac_func_search_save_LIBS
13234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013235{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13236echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013237ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013238if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13240
13241fi
13242
Eli Bendersky61b18512012-03-13 08:33:15 +000013243 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013244echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13245if test "${ac_cv_search_op_open_agent+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013247else
13248 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013249cat >conftest.$ac_ext <<_ACEOF
13250/* confdefs.h. */
13251_ACEOF
13252cat confdefs.h >>conftest.$ac_ext
13253cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013254/* end confdefs.h. */
13255
13256/* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13259#ifdef __cplusplus
13260extern "C"
13261#endif
13262char op_open_agent ();
13263int
13264main ()
13265{
13266return op_open_agent ();
13267 ;
13268 return 0;
13269}
13270_ACEOF
13271for ac_lib in '' opagent; do
13272 if test -z "$ac_lib"; then
13273 ac_res="none required"
13274 else
13275 ac_res=-l$ac_lib
13276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13277 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013278 rm -f conftest.$ac_objext conftest$ac_exeext
13279if { (ac_try="$ac_link"
13280case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_link") 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296esac
13297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } &&
13302 { ac_try='test -s conftest$ac_exeext'
13303 { (case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13306esac
13307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_try") 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013312 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013313else
13314 echo "$as_me: failed program was:" >&5
13315sed 's/^/| /' conftest.$ac_ext >&5
13316
13317
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013319
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013320rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321 conftest$ac_exeext
13322 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013323 break
13324fi
13325done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326if test "${ac_cv_search_op_open_agent+set}" = set; then
13327 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013328else
13329 ac_cv_search_op_open_agent=no
13330fi
13331rm conftest.$ac_ext
13332LIBS=$ac_func_search_save_LIBS
13333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013334{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13335echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013336ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013337if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13339
13340else
13341
Eli Bendersky61b18512012-03-13 08:33:15 +000013342 echo "Error! You need to have libopagent around."
13343 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013344
13345fi
13346
Eli Bendersky61b18512012-03-13 08:33:15 +000013347 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013348 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13349echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13350if test "${ac_cv_header_opagent_h+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13352fi
13353{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13354echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13355else
13356 # Is the header compilable?
13357{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13358echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13359cat >conftest.$ac_ext <<_ACEOF
13360/* confdefs.h. */
13361_ACEOF
13362cat confdefs.h >>conftest.$ac_ext
13363cat >>conftest.$ac_ext <<_ACEOF
13364/* end confdefs.h. */
13365$ac_includes_default
13366#include <opagent.h>
13367_ACEOF
13368rm -f conftest.$ac_objext
13369if { (ac_try="$ac_compile"
13370case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13373esac
13374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_compile") 2>conftest.er1
13376 ac_status=$?
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
13382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13383 { (case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13386esac
13387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_try") 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; } &&
13392 { ac_try='test -s conftest.$ac_objext'
13393 { (case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396esac
13397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_try") 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_header_compiler=yes
13403else
13404 echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013407 ac_header_compiler=no
13408fi
13409
13410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13412echo "${ECHO_T}$ac_header_compiler" >&6; }
13413
13414# Is the header present?
13415{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13416echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13417cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423#include <opagent.h>
13424_ACEOF
13425if { (ac_try="$ac_cpp conftest.$ac_ext"
13426case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429esac
13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } >/dev/null; then
13438 if test -s conftest.err; then
13439 ac_cpp_err=$ac_c_preproc_warn_flag
13440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13441 else
13442 ac_cpp_err=
13443 fi
13444else
13445 ac_cpp_err=yes
13446fi
13447if test -z "$ac_cpp_err"; then
13448 ac_header_preproc=yes
13449else
13450 echo "$as_me: failed program was:" >&5
13451sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 ac_header_preproc=no
13454fi
13455
13456rm -f conftest.err conftest.$ac_ext
13457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13458echo "${ECHO_T}$ac_header_preproc" >&6; }
13459
13460# So? What about this header?
13461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13462 yes:no: )
13463 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13464echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13466echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13467 ac_header_preproc=yes
13468 ;;
13469 no:yes:* )
13470 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13471echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13473echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13475echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13477echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13478 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13479echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13481echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13482 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013483## ------------------------------------ ##
13484## Report this to http://llvm.org/bugs/ ##
13485## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013486_ASBOX
13487 ) | sed "s/^/$as_me: WARNING: /" >&2
13488 ;;
13489esac
13490{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13491echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13492if test "${ac_cv_header_opagent_h+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494else
13495 ac_cv_header_opagent_h=$ac_header_preproc
13496fi
13497{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13498echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13499
13500fi
13501if test $ac_cv_header_opagent_h = yes; then
13502 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013503else
13504
Eli Bendersky61b18512012-03-13 08:33:15 +000013505 echo "Error! You need to have opagent.h around."
13506 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013507
13508fi
13509
13510
Eli Bendersky61b18512012-03-13 08:33:15 +000013511 fi ;;
13512 *)
13513 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13514echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13515 { (exit 1); exit 1; }; } ;;
13516 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013517
13518else
13519
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013520 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013521
13522
13523fi
13524
13525
13526cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013527#define LLVM_USE_OPROFILE $USE_OPROFILE
13528_ACEOF
13529
13530
13531
13532# Check whether --with-intel-jitevents was given.
13533if test "${with_intel_jitevents+set}" = set; then
13534 withval=$with_intel_jitevents;
13535 case $llvm_cv_os_type in
13536 Linux|Win32|Cygwin|MingW) ;;
13537 *)
13538 { { echo "$as_me:$LINENO: error:
13539 Intel JIT API support is available on Linux and Windows only.\"" >&5
13540echo "$as_me: error:
13541 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13542 { (exit 1); exit 1; }; } ;;
13543 esac
13544
13545 USE_INTEL_JITEVENTS=1
13546
13547 case "$llvm_cv_target_arch" in
13548 x86) llvm_intel_jitevents_archdir="lib32";;
13549 x86_64) llvm_intel_jitevents_archdir="lib64";;
13550 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13551 exit -1;;
13552 esac
13553 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13554 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13555 case "$withval" in
13556 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13557 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13558 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013559 esac
13560
13561
13562
13563
13564 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
Eric Christopher42dffa52012-08-03 17:45:31 +000013565 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
Eli Bendersky61b18512012-03-13 08:33:15 +000013566
13567 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13568echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13569if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571else
13572 ac_func_search_save_LIBS=$LIBS
13573cat >conftest.$ac_ext <<_ACEOF
13574/* confdefs.h. */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
13578/* end confdefs.h. */
13579
13580/* Override any GCC internal prototype to avoid an error.
13581 Use char because int might match the return type of a GCC
13582 builtin and then its argument prototype would still apply. */
13583#ifdef __cplusplus
13584extern "C"
13585#endif
13586char iJIT_IsProfilingActive ();
13587int
13588main ()
13589{
13590return iJIT_IsProfilingActive ();
13591 ;
13592 return 0;
13593}
13594_ACEOF
13595for ac_lib in '' jitprofiling; do
13596 if test -z "$ac_lib"; then
13597 ac_res="none required"
13598 else
13599 ac_res=-l$ac_lib
13600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13601 fi
13602 rm -f conftest.$ac_objext conftest$ac_exeext
13603if { (ac_try="$ac_link"
13604case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_link") 2>conftest.er1
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest$ac_exeext'
13627 { (case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13630esac
13631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_try") 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13637else
13638 echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
13640
13641
13642fi
13643
13644rm -f core conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext
13646 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13647 break
13648fi
13649done
13650if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13651 :
13652else
13653 ac_cv_search_iJIT_IsProfilingActive=no
13654fi
13655rm conftest.$ac_ext
13656LIBS=$ac_func_search_save_LIBS
13657fi
13658{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13659echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13660ac_res=$ac_cv_search_iJIT_IsProfilingActive
13661if test "$ac_res" != no; then
13662 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13663
13664else
13665
13666 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13667 exit -1
13668
13669fi
13670
13671 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13672 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13673echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13674if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13676fi
13677{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13678echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13679else
13680 # Is the header compilable?
13681{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13682echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13683cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689$ac_includes_default
13690#include <jitprofiling.h>
13691_ACEOF
13692rm -f conftest.$ac_objext
13693if { (ac_try="$ac_compile"
13694case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710esac
13711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720esac
13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_header_compiler=yes
13727else
13728 echo "$as_me: failed program was:" >&5
13729sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 ac_header_compiler=no
13732fi
13733
13734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13736echo "${ECHO_T}$ac_header_compiler" >&6; }
13737
13738# Is the header present?
13739{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13740echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13741cat >conftest.$ac_ext <<_ACEOF
13742/* confdefs.h. */
13743_ACEOF
13744cat confdefs.h >>conftest.$ac_ext
13745cat >>conftest.$ac_ext <<_ACEOF
13746/* end confdefs.h. */
13747#include <jitprofiling.h>
13748_ACEOF
13749if { (ac_try="$ac_cpp conftest.$ac_ext"
13750case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753esac
13754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13756 ac_status=$?
13757 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } >/dev/null; then
13762 if test -s conftest.err; then
13763 ac_cpp_err=$ac_c_preproc_warn_flag
13764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13765 else
13766 ac_cpp_err=
13767 fi
13768else
13769 ac_cpp_err=yes
13770fi
13771if test -z "$ac_cpp_err"; then
13772 ac_header_preproc=yes
13773else
13774 echo "$as_me: failed program was:" >&5
13775sed 's/^/| /' conftest.$ac_ext >&5
13776
13777 ac_header_preproc=no
13778fi
13779
13780rm -f conftest.err conftest.$ac_ext
13781{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782echo "${ECHO_T}$ac_header_preproc" >&6; }
13783
13784# So? What about this header?
13785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13786 yes:no: )
13787 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13788echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13790echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13791 ac_header_preproc=yes
13792 ;;
13793 no:yes:* )
13794 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13795echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13797echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13799echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13801echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13803echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13805echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13806 ( cat <<\_ASBOX
13807## ------------------------------------ ##
13808## Report this to http://llvm.org/bugs/ ##
13809## ------------------------------------ ##
13810_ASBOX
13811 ) | sed "s/^/$as_me: WARNING: /" >&2
13812 ;;
13813esac
13814{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13815echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13816if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818else
13819 ac_cv_header_jitprofiling_h=$ac_header_preproc
13820fi
13821{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13822echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13823
13824fi
13825if test $ac_cv_header_jitprofiling_h = yes; then
13826 :
13827else
13828
13829 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13830 exit -1
13831
13832fi
13833
13834
13835
13836
13837else
13838
13839 USE_INTEL_JITEVENTS=0
13840
13841
13842fi
13843
13844
13845cat >>confdefs.h <<_ACEOF
13846#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013847_ACEOF
13848
13849
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013850for ac_prog in xml2-config
13851do
13852 # Extract the first word of "$ac_prog", so it can be a program name with args.
13853set dummy $ac_prog; ac_word=$2
13854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13856if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858else
13859 if test -n "$XML2CONFIG"; then
13860 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13861else
13862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863for as_dir in $PATH
13864do
13865 IFS=$as_save_IFS
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
13868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13869 ac_cv_prog_XML2CONFIG="$ac_prog"
13870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13871 break 2
13872 fi
13873done
13874done
13875IFS=$as_save_IFS
13876
13877fi
13878fi
13879XML2CONFIG=$ac_cv_prog_XML2CONFIG
13880if test -n "$XML2CONFIG"; then
13881 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13882echo "${ECHO_T}$XML2CONFIG" >&6; }
13883else
13884 { echo "$as_me:$LINENO: result: no" >&5
13885echo "${ECHO_T}no" >&6; }
13886fi
13887
13888
13889 test -n "$XML2CONFIG" && break
13890done
13891
13892
13893{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13894echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13895if test "x$XML2CONFIG" = "x"; then
13896 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13897echo "${ECHO_T}xml2-config not found" >&6; }
13898else
13899 LIBXML2_INC=`$XML2CONFIG --cflags`
13900 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13901echo "${ECHO_T}$LIBXML2_INC" >&6; }
13902 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13903echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13904if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13906else
13907 ac_check_lib_save_LIBS=$LIBS
13908LIBS="-lxml2 $LIBS"
13909cat >conftest.$ac_ext <<_ACEOF
13910/* confdefs.h. */
13911_ACEOF
13912cat confdefs.h >>conftest.$ac_ext
13913cat >>conftest.$ac_ext <<_ACEOF
13914/* end confdefs.h. */
13915
13916/* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13919#ifdef __cplusplus
13920extern "C"
13921#endif
13922char xmlReadFile ();
13923int
13924main ()
13925{
13926return xmlReadFile ();
13927 ;
13928 return 0;
13929}
13930_ACEOF
13931rm -f conftest.$ac_objext conftest$ac_exeext
13932if { (ac_try="$ac_link"
13933case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936esac
13937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_link") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; } &&
13955 { ac_try='test -s conftest$ac_exeext'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959esac
13960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_cv_lib_xml2_xmlReadFile=yes
13966else
13967 echo "$as_me: failed program was:" >&5
13968sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ac_cv_lib_xml2_xmlReadFile=no
13971fi
13972
13973rm -f core conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
13975LIBS=$ac_check_lib_save_LIBS
13976fi
13977{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13978echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13979if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13980
13981cat >>confdefs.h <<\_ACEOF
13982#define CLANG_HAVE_LIBXML 1
13983_ACEOF
13984
13985 LIBXML2_LIBS="-lxml2"
13986fi
13987
13988fi
13989
13990
13991
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013993
13994
13995
13996
13997
Reid Spencer59473af2004-12-25 07:31:29 +000013998ac_header_dirent=no
13999for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14001{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14002echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006 cat >conftest.$ac_ext <<_ACEOF
14007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014011/* end confdefs.h. */
14012#include <sys/types.h>
14013#include <$ac_hdr>
14014
14015int
14016main ()
14017{
14018if ((DIR *) 0)
14019return 0;
14020 ;
14021 return 0;
14022}
14023_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014024rm -f conftest.$ac_objext
14025if { (ac_try="$ac_compile"
14026case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14029esac
14030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_compile") 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14039 { (case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14042esac
14043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_try") 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest.$ac_objext'
14049 { (case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14052esac
14053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_try") 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014058 eval "$as_ac_Header=yes"
14059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014060 echo "$as_me: failed program was:" >&5
14061sed 's/^/| /' conftest.$ac_ext >&5
14062
14063 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065
Reid Spencera773bd52006-08-04 18:18:08 +000014066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014068ac_res=`eval echo '${'$as_ac_Header'}'`
14069 { echo "$as_me:$LINENO: result: $ac_res" >&5
14070echo "${ECHO_T}$ac_res" >&6; }
14071if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014072 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014073#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014074_ACEOF
14075
14076ac_header_dirent=$ac_hdr; break
14077fi
14078
14079done
14080# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14081if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014082 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14083echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14084if test "${ac_cv_search_opendir+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014086else
14087 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014088cat >conftest.$ac_ext <<_ACEOF
14089/* confdefs.h. */
14090_ACEOF
14091cat confdefs.h >>conftest.$ac_ext
14092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014093/* end confdefs.h. */
14094
Reid Spencera773bd52006-08-04 18:18:08 +000014095/* Override any GCC internal prototype to avoid an error.
14096 Use char because int might match the return type of a GCC
14097 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014098#ifdef __cplusplus
14099extern "C"
14100#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014101char opendir ();
14102int
14103main ()
14104{
Reid Spencera773bd52006-08-04 18:18:08 +000014105return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014106 ;
14107 return 0;
14108}
14109_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014110for ac_lib in '' dir; do
14111 if test -z "$ac_lib"; then
14112 ac_res="none required"
14113 else
14114 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014116 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117 rm -f conftest.$ac_objext conftest$ac_exeext
14118if { (ac_try="$ac_link"
14119case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14122esac
14123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_link") 2>conftest.er1
14125 ac_status=$?
14126 grep -v '^ *+' conftest.er1 >conftest.err
14127 rm -f conftest.er1
14128 cat conftest.err >&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14132 { (case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14135esac
14136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_try") 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; } &&
14141 { ac_try='test -s conftest$ac_exeext'
14142 { (case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145esac
14146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_try") 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014151 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152else
14153 echo "$as_me: failed program was:" >&5
14154sed 's/^/| /' conftest.$ac_ext >&5
14155
14156
Reid Spencer59473af2004-12-25 07:31:29 +000014157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158
Bill Wendlingebcceee2009-04-18 11:20:33 +000014159rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014160 conftest$ac_exeext
14161 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014162 break
Reid Spencer59473af2004-12-25 07:31:29 +000014163fi
Reid Spencera773bd52006-08-04 18:18:08 +000014164done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165if test "${ac_cv_search_opendir+set}" = set; then
14166 :
Reid Spencera773bd52006-08-04 18:18:08 +000014167else
14168 ac_cv_search_opendir=no
14169fi
14170rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014171LIBS=$ac_func_search_save_LIBS
14172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014173{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14174echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014175ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014176if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014178
14179fi
14180
14181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14183echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14184if test "${ac_cv_search_opendir+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014186else
14187 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014188cat >conftest.$ac_ext <<_ACEOF
14189/* confdefs.h. */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014193/* end confdefs.h. */
14194
Reid Spencera773bd52006-08-04 18:18:08 +000014195/* Override any GCC internal prototype to avoid an error.
14196 Use char because int might match the return type of a GCC
14197 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014198#ifdef __cplusplus
14199extern "C"
14200#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014201char opendir ();
14202int
14203main ()
14204{
Reid Spencera773bd52006-08-04 18:18:08 +000014205return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014206 ;
14207 return 0;
14208}
14209_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014210for ac_lib in '' x; do
14211 if test -z "$ac_lib"; then
14212 ac_res="none required"
14213 else
14214 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014216 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217 rm -f conftest.$ac_objext conftest$ac_exeext
14218if { (ac_try="$ac_link"
14219case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222esac
14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_link") 2>conftest.er1
14225 ac_status=$?
14226 grep -v '^ *+' conftest.er1 >conftest.err
14227 rm -f conftest.er1
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14232 { (case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14235esac
14236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_try") 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; } &&
14241 { ac_try='test -s conftest$ac_exeext'
14242 { (case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245esac
14246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_try") 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014251 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014252else
14253 echo "$as_me: failed program was:" >&5
14254sed 's/^/| /' conftest.$ac_ext >&5
14255
14256
Reid Spencer59473af2004-12-25 07:31:29 +000014257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258
Bill Wendlingebcceee2009-04-18 11:20:33 +000014259rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014260 conftest$ac_exeext
14261 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014262 break
Reid Spencer59473af2004-12-25 07:31:29 +000014263fi
Reid Spencera773bd52006-08-04 18:18:08 +000014264done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014265if test "${ac_cv_search_opendir+set}" = set; then
14266 :
Reid Spencera773bd52006-08-04 18:18:08 +000014267else
14268 ac_cv_search_opendir=no
14269fi
14270rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014271LIBS=$ac_func_search_save_LIBS
14272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014273{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14274echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014275ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014278
14279fi
14280
14281fi
14282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014283{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14284echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14285if test "${ac_cv_header_mmap_anon+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014287else
14288 ac_ext=c
14289ac_cpp='$CPP $CPPFLAGS'
14290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292ac_compiler_gnu=$ac_cv_c_compiler_gnu
14293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014294 cat >conftest.$ac_ext <<_ACEOF
14295/* confdefs.h. */
14296_ACEOF
14297cat confdefs.h >>conftest.$ac_ext
14298cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014299/* end confdefs.h. */
14300#include <sys/mman.h>
14301#include <unistd.h>
14302#include <fcntl.h>
14303int
14304main ()
14305{
14306mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14307 ;
14308 return 0;
14309}
14310_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014311rm -f conftest.$ac_objext
14312if { (ac_try="$ac_compile"
14313case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14316esac
14317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_compile") 2>conftest.er1
14319 ac_status=$?
14320 grep -v '^ *+' conftest.er1 >conftest.err
14321 rm -f conftest.er1
14322 cat conftest.err >&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
14325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14326 { (case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14329esac
14330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_try") 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14339esac
14340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_try") 2>&5
14342 ac_status=$?
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014345 ac_cv_header_mmap_anon=yes
14346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014347 echo "$as_me: failed program was:" >&5
14348sed 's/^/| /' conftest.$ac_ext >&5
14349
14350 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014351fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352
Reid Spencera773bd52006-08-04 18:18:08 +000014353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014354 ac_ext=c
14355ac_cpp='$CPP $CPPFLAGS'
14356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359
14360
14361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014362{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14363echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014364if test "$ac_cv_header_mmap_anon" = yes; then
14365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014366cat >>confdefs.h <<\_ACEOF
14367#define HAVE_MMAP_ANONYMOUS 1
14368_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014369
14370fi
14371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014372{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14373echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14374if test "${ac_cv_header_stat_broken+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014377 cat >conftest.$ac_ext <<_ACEOF
14378/* confdefs.h. */
14379_ACEOF
14380cat confdefs.h >>conftest.$ac_ext
14381cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014382/* end confdefs.h. */
14383#include <sys/types.h>
14384#include <sys/stat.h>
14385
Reid Spencera773bd52006-08-04 18:18:08 +000014386#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014387# if S_ISBLK (S_IFDIR)
14388You lose.
14389# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014390#endif
14391
Reid Spencera773bd52006-08-04 18:18:08 +000014392#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014393# if S_ISBLK (S_IFCHR)
14394You lose.
14395# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014396#endif
14397
Reid Spencera773bd52006-08-04 18:18:08 +000014398#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014399# if S_ISLNK (S_IFREG)
14400You lose.
14401# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014402#endif
14403
Reid Spencera773bd52006-08-04 18:18:08 +000014404#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014405# if S_ISSOCK (S_IFREG)
14406You lose.
14407# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014408#endif
14409
14410_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14412 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014413 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014414else
14415 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014417rm -f conftest*
14418
Reid Spencer59473af2004-12-25 07:31:29 +000014419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014420{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14421echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014422if test $ac_cv_header_stat_broken = yes; then
14423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014424cat >>confdefs.h <<\_ACEOF
14425#define STAT_MACROS_BROKEN 1
14426_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014427
14428fi
14429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014430{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14431echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14432if test "${ac_cv_header_sys_wait_h+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014435 cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h. */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014441#include <sys/types.h>
14442#include <sys/wait.h>
14443#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014444# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014445#endif
14446#ifndef WIFEXITED
14447# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14448#endif
14449
John Criswell7a73b802003-06-30 21:59:07 +000014450int
14451main ()
14452{
14453 int s;
14454 wait (&s);
14455 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14456 ;
14457 return 0;
14458}
14459_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014460rm -f conftest.$ac_objext
14461if { (ac_try="$ac_compile"
14462case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465esac
14466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_compile") 2>conftest.er1
14468 ac_status=$?
14469 grep -v '^ *+' conftest.er1 >conftest.err
14470 rm -f conftest.er1
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
14474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14475 { (case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14478esac
14479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_try") 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } &&
14484 { ac_try='test -s conftest.$ac_objext'
14485 { (case "(($ac_try" in
14486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487 *) ac_try_echo=$ac_try;;
14488esac
14489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490 (eval "$ac_try") 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014494 ac_cv_header_sys_wait_h=yes
14495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014496 echo "$as_me: failed program was:" >&5
14497sed 's/^/| /' conftest.$ac_ext >&5
14498
14499 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014501
Reid Spencera773bd52006-08-04 18:18:08 +000014502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014504{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14505echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014506if test $ac_cv_header_sys_wait_h = yes; then
14507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014508cat >>confdefs.h <<\_ACEOF
14509#define HAVE_SYS_WAIT_H 1
14510_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014511
14512fi
14513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014514{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14515echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14516if test "${ac_cv_header_time+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014518else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014519 cat >conftest.$ac_ext <<_ACEOF
14520/* confdefs.h. */
14521_ACEOF
14522cat confdefs.h >>conftest.$ac_ext
14523cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014524/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014525#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014526#include <sys/time.h>
14527#include <time.h>
14528
14529int
14530main ()
14531{
14532if ((struct tm *) 0)
14533return 0;
14534 ;
14535 return 0;
14536}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014537_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014538rm -f conftest.$ac_objext
14539if { (ac_try="$ac_compile"
14540case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543esac
14544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_compile") 2>conftest.er1
14546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14553 { (case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556esac
14557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_try") 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; } &&
14562 { ac_try='test -s conftest.$ac_objext'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566esac
14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014572 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014574 echo "$as_me: failed program was:" >&5
14575sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014578fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579
Reid Spencera773bd52006-08-04 18:18:08 +000014580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014582{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14583echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014584if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014586cat >>confdefs.h <<\_ACEOF
14587#define TIME_WITH_SYS_TIME 1
14588_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014589
14590fi
14591
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014593
14594
14595
14596
14597
14598
Reid Spencer59473af2004-12-25 07:31:29 +000014599for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014600do
14601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607fi
14608ac_res=`eval echo '${'$as_ac_Header'}'`
14609 { echo "$as_me:$LINENO: result: $ac_res" >&5
14610echo "${ECHO_T}$ac_res" >&6; }
14611else
14612 # Is the header compilable?
14613{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14615cat >conftest.$ac_ext <<_ACEOF
14616/* confdefs.h. */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h. */
14621$ac_includes_default
14622#include <$ac_header>
14623_ACEOF
14624rm -f conftest.$ac_objext
14625if { (ac_try="$ac_compile"
14626case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14629esac
14630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_compile") 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14639 { (case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14642esac
14643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_try") 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; } &&
14648 { ac_try='test -s conftest.$ac_objext'
14649 { (case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652esac
14653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_try") 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 ac_header_compiler=yes
14659else
14660 echo "$as_me: failed program was:" >&5
14661sed 's/^/| /' conftest.$ac_ext >&5
14662
14663 ac_header_compiler=no
14664fi
14665
14666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14668echo "${ECHO_T}$ac_header_compiler" >&6; }
14669
14670# Is the header present?
14671{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14673cat >conftest.$ac_ext <<_ACEOF
14674/* confdefs.h. */
14675_ACEOF
14676cat confdefs.h >>conftest.$ac_ext
14677cat >>conftest.$ac_ext <<_ACEOF
14678/* end confdefs.h. */
14679#include <$ac_header>
14680_ACEOF
14681if { (ac_try="$ac_cpp conftest.$ac_ext"
14682case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685esac
14686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14688 ac_status=$?
14689 grep -v '^ *+' conftest.er1 >conftest.err
14690 rm -f conftest.er1
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } >/dev/null; then
14694 if test -s conftest.err; then
14695 ac_cpp_err=$ac_c_preproc_warn_flag
14696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14697 else
14698 ac_cpp_err=
14699 fi
14700else
14701 ac_cpp_err=yes
14702fi
14703if test -z "$ac_cpp_err"; then
14704 ac_header_preproc=yes
14705else
14706 echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 ac_header_preproc=no
14710fi
14711
14712rm -f conftest.err conftest.$ac_ext
14713{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14714echo "${ECHO_T}$ac_header_preproc" >&6; }
14715
14716# So? What about this header?
14717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14718 yes:no: )
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14723 ac_header_preproc=yes
14724 ;;
14725 no:yes:* )
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14729echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14733echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14738 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014739## ------------------------------------ ##
14740## Report this to http://llvm.org/bugs/ ##
14741## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014742_ASBOX
14743 ) | sed "s/^/$as_me: WARNING: /" >&2
14744 ;;
14745esac
14746{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750else
14751 eval "$as_ac_Header=\$ac_header_preproc"
14752fi
14753ac_res=`eval echo '${'$as_ac_Header'}'`
14754 { echo "$as_me:$LINENO: result: $ac_res" >&5
14755echo "${ECHO_T}$ac_res" >&6; }
14756
14757fi
14758if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014759 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014761_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014762
14763fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014764
Reid Spencer59473af2004-12-25 07:31:29 +000014765done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014767
14768
14769
14770
14771
14772
Douglas Gregor071d73d2009-05-18 17:21:34 +000014773for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014774do
14775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14781fi
14782ac_res=`eval echo '${'$as_ac_Header'}'`
14783 { echo "$as_me:$LINENO: result: $ac_res" >&5
14784echo "${ECHO_T}$ac_res" >&6; }
14785else
14786 # Is the header compilable?
14787{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14789cat >conftest.$ac_ext <<_ACEOF
14790/* confdefs.h. */
14791_ACEOF
14792cat confdefs.h >>conftest.$ac_ext
14793cat >>conftest.$ac_ext <<_ACEOF
14794/* end confdefs.h. */
14795$ac_includes_default
14796#include <$ac_header>
14797_ACEOF
14798rm -f conftest.$ac_objext
14799if { (ac_try="$ac_compile"
14800case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14803esac
14804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_compile") 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14813 { (case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14816esac
14817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_try") 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest.$ac_objext'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826esac
14827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_header_compiler=yes
14833else
14834 echo "$as_me: failed program was:" >&5
14835sed 's/^/| /' conftest.$ac_ext >&5
14836
14837 ac_header_compiler=no
14838fi
14839
14840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14842echo "${ECHO_T}$ac_header_compiler" >&6; }
14843
14844# Is the header present?
14845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14847cat >conftest.$ac_ext <<_ACEOF
14848/* confdefs.h. */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h. */
14853#include <$ac_header>
14854_ACEOF
14855if { (ac_try="$ac_cpp conftest.$ac_ext"
14856case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859esac
14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } >/dev/null; then
14868 if test -s conftest.err; then
14869 ac_cpp_err=$ac_c_preproc_warn_flag
14870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14871 else
14872 ac_cpp_err=
14873 fi
14874else
14875 ac_cpp_err=yes
14876fi
14877if test -z "$ac_cpp_err"; then
14878 ac_header_preproc=yes
14879else
14880 echo "$as_me: failed program was:" >&5
14881sed 's/^/| /' conftest.$ac_ext >&5
14882
14883 ac_header_preproc=no
14884fi
14885
14886rm -f conftest.err conftest.$ac_ext
14887{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14888echo "${ECHO_T}$ac_header_preproc" >&6; }
14889
14890# So? What about this header?
14891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14892 yes:no: )
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14897 ac_header_preproc=yes
14898 ;;
14899 no:yes:* )
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14912 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014913## ------------------------------------ ##
14914## Report this to http://llvm.org/bugs/ ##
14915## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014916_ASBOX
14917 ) | sed "s/^/$as_me: WARNING: /" >&2
14918 ;;
14919esac
14920{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14924else
14925 eval "$as_ac_Header=\$ac_header_preproc"
14926fi
14927ac_res=`eval echo '${'$as_ac_Header'}'`
14928 { echo "$as_me:$LINENO: result: $ac_res" >&5
14929echo "${ECHO_T}$ac_res" >&6; }
14930
14931fi
14932if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014933 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014935_ACEOF
14936
14937fi
14938
14939done
14940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014941
14942
Douglas Gregor071d73d2009-05-18 17:21:34 +000014943for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014944do
14945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951fi
14952ac_res=`eval echo '${'$as_ac_Header'}'`
14953 { echo "$as_me:$LINENO: result: $ac_res" >&5
14954echo "${ECHO_T}$ac_res" >&6; }
14955else
14956 # Is the header compilable?
14957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14959cat >conftest.$ac_ext <<_ACEOF
14960/* confdefs.h. */
14961_ACEOF
14962cat confdefs.h >>conftest.$ac_ext
14963cat >>conftest.$ac_ext <<_ACEOF
14964/* end confdefs.h. */
14965$ac_includes_default
14966#include <$ac_header>
14967_ACEOF
14968rm -f conftest.$ac_objext
14969if { (ac_try="$ac_compile"
14970case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973esac
14974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986esac
14987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest.$ac_objext'
14993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996esac
14997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_header_compiler=yes
15003else
15004 echo "$as_me: failed program was:" >&5
15005sed 's/^/| /' conftest.$ac_ext >&5
15006
15007 ac_header_compiler=no
15008fi
15009
15010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15012echo "${ECHO_T}$ac_header_compiler" >&6; }
15013
15014# Is the header present?
15015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15017cat >conftest.$ac_ext <<_ACEOF
15018/* confdefs.h. */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h. */
15023#include <$ac_header>
15024_ACEOF
15025if { (ac_try="$ac_cpp conftest.$ac_ext"
15026case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029esac
15030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } >/dev/null; then
15038 if test -s conftest.err; then
15039 ac_cpp_err=$ac_c_preproc_warn_flag
15040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15041 else
15042 ac_cpp_err=
15043 fi
15044else
15045 ac_cpp_err=yes
15046fi
15047if test -z "$ac_cpp_err"; then
15048 ac_header_preproc=yes
15049else
15050 echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053 ac_header_preproc=no
15054fi
15055
15056rm -f conftest.err conftest.$ac_ext
15057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15058echo "${ECHO_T}$ac_header_preproc" >&6; }
15059
15060# So? What about this header?
15061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15062 yes:no: )
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15067 ac_header_preproc=yes
15068 ;;
15069 no:yes:* )
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15082 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015083## ------------------------------------ ##
15084## Report this to http://llvm.org/bugs/ ##
15085## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015086_ASBOX
15087 ) | sed "s/^/$as_me: WARNING: /" >&2
15088 ;;
15089esac
15090{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094else
15095 eval "$as_ac_Header=\$ac_header_preproc"
15096fi
15097ac_res=`eval echo '${'$as_ac_Header'}'`
15098 { echo "$as_me:$LINENO: result: $ac_res" >&5
15099echo "${ECHO_T}$ac_res" >&6; }
15100
15101fi
15102if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015103 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015105_ACEOF
15106
15107fi
15108
15109done
Reid Spencer59473af2004-12-25 07:31:29 +000015110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015111
15112
15113
15114
Daniel Dunbar3e462932011-02-03 02:40:02 +000015115
15116for 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 +000015117do
15118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15124fi
15125ac_res=`eval echo '${'$as_ac_Header'}'`
15126 { echo "$as_me:$LINENO: result: $ac_res" >&5
15127echo "${ECHO_T}$ac_res" >&6; }
15128else
15129 # Is the header compilable?
15130{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15132cat >conftest.$ac_ext <<_ACEOF
15133/* confdefs.h. */
15134_ACEOF
15135cat confdefs.h >>conftest.$ac_ext
15136cat >>conftest.$ac_ext <<_ACEOF
15137/* end confdefs.h. */
15138$ac_includes_default
15139#include <$ac_header>
15140_ACEOF
15141rm -f conftest.$ac_objext
15142if { (ac_try="$ac_compile"
15143case "(($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_compile") 2>conftest.er1
15149 ac_status=$?
15150 grep -v '^ *+' conftest.er1 >conftest.err
15151 rm -f conftest.er1
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156 { (case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159esac
15160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_try") 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest.$ac_objext'
15166 { (case "(($ac_try" in
15167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168 *) ac_try_echo=$ac_try;;
15169esac
15170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171 (eval "$ac_try") 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 ac_header_compiler=yes
15176else
15177 echo "$as_me: failed program was:" >&5
15178sed 's/^/| /' conftest.$ac_ext >&5
15179
15180 ac_header_compiler=no
15181fi
15182
15183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15184{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15185echo "${ECHO_T}$ac_header_compiler" >&6; }
15186
15187# Is the header present?
15188{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15190cat >conftest.$ac_ext <<_ACEOF
15191/* confdefs.h. */
15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
15195/* end confdefs.h. */
15196#include <$ac_header>
15197_ACEOF
15198if { (ac_try="$ac_cpp conftest.$ac_ext"
15199case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15202esac
15203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15205 ac_status=$?
15206 grep -v '^ *+' conftest.er1 >conftest.err
15207 rm -f conftest.er1
15208 cat conftest.err >&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } >/dev/null; then
15211 if test -s conftest.err; then
15212 ac_cpp_err=$ac_c_preproc_warn_flag
15213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15214 else
15215 ac_cpp_err=
15216 fi
15217else
15218 ac_cpp_err=yes
15219fi
15220if test -z "$ac_cpp_err"; then
15221 ac_header_preproc=yes
15222else
15223 echo "$as_me: failed program was:" >&5
15224sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 ac_header_preproc=no
15227fi
15228
15229rm -f conftest.err conftest.$ac_ext
15230{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15231echo "${ECHO_T}$ac_header_preproc" >&6; }
15232
15233# So? What about this header?
15234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15235 yes:no: )
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15240 ac_header_preproc=yes
15241 ;;
15242 no:yes:* )
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15255 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015256## ------------------------------------ ##
15257## Report this to http://llvm.org/bugs/ ##
15258## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015259_ASBOX
15260 ) | sed "s/^/$as_me: WARNING: /" >&2
15261 ;;
15262esac
15263{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267else
15268 eval "$as_ac_Header=\$ac_header_preproc"
15269fi
15270ac_res=`eval echo '${'$as_ac_Header'}'`
15271 { echo "$as_me:$LINENO: result: $ac_res" >&5
15272echo "${ECHO_T}$ac_res" >&6; }
15273
15274fi
15275if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015276 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015278_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015279
15280fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015281
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015282done
15283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015284
15285
15286
15287
Douglas Gregor01746742009-05-11 18:05:52 +000015288for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015289do
15290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296fi
15297ac_res=`eval echo '${'$as_ac_Header'}'`
15298 { echo "$as_me:$LINENO: result: $ac_res" >&5
15299echo "${ECHO_T}$ac_res" >&6; }
15300else
15301 # Is the header compilable?
15302{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15303echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15304cat >conftest.$ac_ext <<_ACEOF
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
15309/* end confdefs.h. */
15310$ac_includes_default
15311#include <$ac_header>
15312_ACEOF
15313rm -f conftest.$ac_objext
15314if { (ac_try="$ac_compile"
15315case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15318esac
15319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_compile") 2>conftest.er1
15321 ac_status=$?
15322 grep -v '^ *+' conftest.er1 >conftest.err
15323 rm -f conftest.er1
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331esac
15332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest.$ac_objext'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15341esac
15342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 ac_header_compiler=yes
15348else
15349 echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 ac_header_compiler=no
15353fi
15354
15355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357echo "${ECHO_T}$ac_header_compiler" >&6; }
15358
15359# Is the header present?
15360{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15362cat >conftest.$ac_ext <<_ACEOF
15363/* confdefs.h. */
15364_ACEOF
15365cat confdefs.h >>conftest.$ac_ext
15366cat >>conftest.$ac_ext <<_ACEOF
15367/* end confdefs.h. */
15368#include <$ac_header>
15369_ACEOF
15370if { (ac_try="$ac_cpp conftest.$ac_ext"
15371case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374esac
15375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15377 ac_status=$?
15378 grep -v '^ *+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } >/dev/null; then
15383 if test -s conftest.err; then
15384 ac_cpp_err=$ac_c_preproc_warn_flag
15385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15386 else
15387 ac_cpp_err=
15388 fi
15389else
15390 ac_cpp_err=yes
15391fi
15392if test -z "$ac_cpp_err"; then
15393 ac_header_preproc=yes
15394else
15395 echo "$as_me: failed program was:" >&5
15396sed 's/^/| /' conftest.$ac_ext >&5
15397
15398 ac_header_preproc=no
15399fi
15400
15401rm -f conftest.err conftest.$ac_ext
15402{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15403echo "${ECHO_T}$ac_header_preproc" >&6; }
15404
15405# So? What about this header?
15406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15407 yes:no: )
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15412 ac_header_preproc=yes
15413 ;;
15414 no:yes:* )
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15418echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15422echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15427 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015428## ------------------------------------ ##
15429## Report this to http://llvm.org/bugs/ ##
15430## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015431_ASBOX
15432 ) | sed "s/^/$as_me: WARNING: /" >&2
15433 ;;
15434esac
15435{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15439else
15440 eval "$as_ac_Header=\$ac_header_preproc"
15441fi
15442ac_res=`eval echo '${'$as_ac_Header'}'`
15443 { echo "$as_me:$LINENO: result: $ac_res" >&5
15444echo "${ECHO_T}$ac_res" >&6; }
15445
15446fi
15447if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015448 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015449#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015450_ACEOF
15451
15452fi
15453
15454done
15455
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015456
15457for ac_header in valgrind/valgrind.h
15458do
15459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465fi
15466ac_res=`eval echo '${'$as_ac_Header'}'`
15467 { echo "$as_me:$LINENO: result: $ac_res" >&5
15468echo "${ECHO_T}$ac_res" >&6; }
15469else
15470 # Is the header compilable?
15471{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15473cat >conftest.$ac_ext <<_ACEOF
15474/* confdefs.h. */
15475_ACEOF
15476cat confdefs.h >>conftest.$ac_ext
15477cat >>conftest.$ac_ext <<_ACEOF
15478/* end confdefs.h. */
15479$ac_includes_default
15480#include <$ac_header>
15481_ACEOF
15482rm -f conftest.$ac_objext
15483if { (ac_try="$ac_compile"
15484case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15487esac
15488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_compile") 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
15496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15497 { (case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15500esac
15501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_try") 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest.$ac_objext'
15507 { (case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15510esac
15511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_try") 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_header_compiler=yes
15517else
15518 echo "$as_me: failed program was:" >&5
15519sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 ac_header_compiler=no
15522fi
15523
15524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15525{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15526echo "${ECHO_T}$ac_header_compiler" >&6; }
15527
15528# Is the header present?
15529{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15531cat >conftest.$ac_ext <<_ACEOF
15532/* confdefs.h. */
15533_ACEOF
15534cat confdefs.h >>conftest.$ac_ext
15535cat >>conftest.$ac_ext <<_ACEOF
15536/* end confdefs.h. */
15537#include <$ac_header>
15538_ACEOF
15539if { (ac_try="$ac_cpp conftest.$ac_ext"
15540case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15543esac
15544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } >/dev/null; then
15552 if test -s conftest.err; then
15553 ac_cpp_err=$ac_c_preproc_warn_flag
15554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15555 else
15556 ac_cpp_err=
15557 fi
15558else
15559 ac_cpp_err=yes
15560fi
15561if test -z "$ac_cpp_err"; then
15562 ac_header_preproc=yes
15563else
15564 echo "$as_me: failed program was:" >&5
15565sed 's/^/| /' conftest.$ac_ext >&5
15566
15567 ac_header_preproc=no
15568fi
15569
15570rm -f conftest.err conftest.$ac_ext
15571{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15572echo "${ECHO_T}$ac_header_preproc" >&6; }
15573
15574# So? What about this header?
15575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15576 yes:no: )
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15578echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15580echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15581 ac_header_preproc=yes
15582 ;;
15583 no:yes:* )
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15587echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15589echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15591echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15595echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15596 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015597## ------------------------------------ ##
15598## Report this to http://llvm.org/bugs/ ##
15599## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015600_ASBOX
15601 ) | sed "s/^/$as_me: WARNING: /" >&2
15602 ;;
15603esac
15604{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15608else
15609 eval "$as_ac_Header=\$ac_header_preproc"
15610fi
15611ac_res=`eval echo '${'$as_ac_Header'}'`
15612 { echo "$as_me:$LINENO: result: $ac_res" >&5
15613echo "${ECHO_T}$ac_res" >&6; }
15614
15615fi
15616if test `eval echo '${'$as_ac_Header'}'` = yes; then
15617 cat >>confdefs.h <<_ACEOF
15618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15619_ACEOF
15620
15621fi
15622
15623done
15624
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015625
15626for ac_header in fenv.h
15627do
15628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634fi
15635ac_res=`eval echo '${'$as_ac_Header'}'`
15636 { echo "$as_me:$LINENO: result: $ac_res" >&5
15637echo "${ECHO_T}$ac_res" >&6; }
15638else
15639 # Is the header compilable?
15640{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15641echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15642cat >conftest.$ac_ext <<_ACEOF
15643/* confdefs.h. */
15644_ACEOF
15645cat confdefs.h >>conftest.$ac_ext
15646cat >>conftest.$ac_ext <<_ACEOF
15647/* end confdefs.h. */
15648$ac_includes_default
15649#include <$ac_header>
15650_ACEOF
15651rm -f conftest.$ac_objext
15652if { (ac_try="$ac_compile"
15653case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656esac
15657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_compile") 2>conftest.er1
15659 ac_status=$?
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669esac
15670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; } &&
15675 { ac_try='test -s conftest.$ac_objext'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15679esac
15680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_header_compiler=yes
15686else
15687 echo "$as_me: failed program was:" >&5
15688sed 's/^/| /' conftest.$ac_ext >&5
15689
15690 ac_header_compiler=no
15691fi
15692
15693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15695echo "${ECHO_T}$ac_header_compiler" >&6; }
15696
15697# Is the header present?
15698{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15700cat >conftest.$ac_ext <<_ACEOF
15701/* confdefs.h. */
15702_ACEOF
15703cat confdefs.h >>conftest.$ac_ext
15704cat >>conftest.$ac_ext <<_ACEOF
15705/* end confdefs.h. */
15706#include <$ac_header>
15707_ACEOF
15708if { (ac_try="$ac_cpp conftest.$ac_ext"
15709case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712esac
15713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15715 ac_status=$?
15716 grep -v '^ *+' conftest.er1 >conftest.err
15717 rm -f conftest.er1
15718 cat conftest.err >&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } >/dev/null; then
15721 if test -s conftest.err; then
15722 ac_cpp_err=$ac_c_preproc_warn_flag
15723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15724 else
15725 ac_cpp_err=
15726 fi
15727else
15728 ac_cpp_err=yes
15729fi
15730if test -z "$ac_cpp_err"; then
15731 ac_header_preproc=yes
15732else
15733 echo "$as_me: failed program was:" >&5
15734sed 's/^/| /' conftest.$ac_ext >&5
15735
15736 ac_header_preproc=no
15737fi
15738
15739rm -f conftest.err conftest.$ac_ext
15740{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15741echo "${ECHO_T}$ac_header_preproc" >&6; }
15742
15743# So? What about this header?
15744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15745 yes:no: )
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15747echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15749echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15750 ac_header_preproc=yes
15751 ;;
15752 no:yes:* )
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15754echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15756echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15758echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15760echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15762echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15764echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15765 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015766## ------------------------------------ ##
15767## Report this to http://llvm.org/bugs/ ##
15768## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015769_ASBOX
15770 ) | sed "s/^/$as_me: WARNING: /" >&2
15771 ;;
15772esac
15773{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15777else
15778 eval "$as_ac_Header=\$ac_header_preproc"
15779fi
15780ac_res=`eval echo '${'$as_ac_Header'}'`
15781 { echo "$as_me:$LINENO: result: $ac_res" >&5
15782echo "${ECHO_T}$ac_res" >&6; }
15783
15784fi
15785if test `eval echo '${'$as_ac_Header'}'` = yes; then
15786 cat >>confdefs.h <<_ACEOF
15787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15788_ACEOF
15789
15790fi
15791
15792done
15793
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015794if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015795
15796for ac_header in pthread.h
15797do
15798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804fi
15805ac_res=`eval echo '${'$as_ac_Header'}'`
15806 { echo "$as_me:$LINENO: result: $ac_res" >&5
15807echo "${ECHO_T}$ac_res" >&6; }
15808else
15809 # Is the header compilable?
15810{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15812cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818$ac_includes_default
15819#include <$ac_header>
15820_ACEOF
15821rm -f conftest.$ac_objext
15822if { (ac_try="$ac_compile"
15823case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826esac
15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_compile") 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15839esac
15840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_try") 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest.$ac_objext'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849esac
15850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_header_compiler=yes
15856else
15857 echo "$as_me: failed program was:" >&5
15858sed 's/^/| /' conftest.$ac_ext >&5
15859
15860 ac_header_compiler=no
15861fi
15862
15863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15865echo "${ECHO_T}$ac_header_compiler" >&6; }
15866
15867# Is the header present?
15868{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15870cat >conftest.$ac_ext <<_ACEOF
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876#include <$ac_header>
15877_ACEOF
15878if { (ac_try="$ac_cpp conftest.$ac_ext"
15879case "(($ac_try" in
15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15882esac
15883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15885 ac_status=$?
15886 grep -v '^ *+' conftest.er1 >conftest.err
15887 rm -f conftest.er1
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } >/dev/null; then
15891 if test -s conftest.err; then
15892 ac_cpp_err=$ac_c_preproc_warn_flag
15893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15894 else
15895 ac_cpp_err=
15896 fi
15897else
15898 ac_cpp_err=yes
15899fi
15900if test -z "$ac_cpp_err"; then
15901 ac_header_preproc=yes
15902else
15903 echo "$as_me: failed program was:" >&5
15904sed 's/^/| /' conftest.$ac_ext >&5
15905
15906 ac_header_preproc=no
15907fi
15908
15909rm -f conftest.err conftest.$ac_ext
15910{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15911echo "${ECHO_T}$ac_header_preproc" >&6; }
15912
15913# So? What about this header?
15914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15915 yes:no: )
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15920 ac_header_preproc=yes
15921 ;;
15922 no:yes:* )
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15930echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15935 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015936## ------------------------------------ ##
15937## Report this to http://llvm.org/bugs/ ##
15938## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015939_ASBOX
15940 ) | sed "s/^/$as_me: WARNING: /" >&2
15941 ;;
15942esac
15943{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15947else
15948 eval "$as_ac_Header=\$ac_header_preproc"
15949fi
15950ac_res=`eval echo '${'$as_ac_Header'}'`
15951 { echo "$as_me:$LINENO: result: $ac_res" >&5
15952echo "${ECHO_T}$ac_res" >&6; }
15953
15954fi
15955if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015956 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015958_ACEOF
15959 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015960
15961else
15962 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015963
15964fi
15965
Reid Spencerbe3e4192007-08-17 05:45:26 +000015966done
Reid Spencer1000b732006-12-01 00:37:14 +000015967
15968else
15969 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015970
15971fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015972
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015973if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015974
15975
15976for ac_header in ffi.h ffi/ffi.h
15977do
15978as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984fi
15985ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987echo "${ECHO_T}$ac_res" >&6; }
15988else
15989 # Is the header compilable?
15990{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992cat >conftest.$ac_ext <<_ACEOF
15993/* confdefs.h. */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h. */
15998$ac_includes_default
15999#include <$ac_header>
16000_ACEOF
16001rm -f conftest.$ac_objext
16002if { (ac_try="$ac_compile"
16003case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16006esac
16007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008 (eval "$ac_compile") 2>conftest.er1
16009 ac_status=$?
16010 grep -v '^ *+' conftest.er1 >conftest.err
16011 rm -f conftest.er1
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016 { (case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16019esac
16020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_try") 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest.$ac_objext'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029esac
16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_header_compiler=yes
16036else
16037 echo "$as_me: failed program was:" >&5
16038sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_header_compiler=no
16041fi
16042
16043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045echo "${ECHO_T}$ac_header_compiler" >&6; }
16046
16047# Is the header present?
16048{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050cat >conftest.$ac_ext <<_ACEOF
16051/* confdefs.h. */
16052_ACEOF
16053cat confdefs.h >>conftest.$ac_ext
16054cat >>conftest.$ac_ext <<_ACEOF
16055/* end confdefs.h. */
16056#include <$ac_header>
16057_ACEOF
16058if { (ac_try="$ac_cpp conftest.$ac_ext"
16059case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062esac
16063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } >/dev/null; then
16071 if test -s conftest.err; then
16072 ac_cpp_err=$ac_c_preproc_warn_flag
16073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16074 else
16075 ac_cpp_err=
16076 fi
16077else
16078 ac_cpp_err=yes
16079fi
16080if test -z "$ac_cpp_err"; then
16081 ac_header_preproc=yes
16082else
16083 echo "$as_me: failed program was:" >&5
16084sed 's/^/| /' conftest.$ac_ext >&5
16085
16086 ac_header_preproc=no
16087fi
16088
16089rm -f conftest.err conftest.$ac_ext
16090{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091echo "${ECHO_T}$ac_header_preproc" >&6; }
16092
16093# So? What about this header?
16094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16095 yes:no: )
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100 ac_header_preproc=yes
16101 ;;
16102 no:yes:* )
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16106echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16110echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16115 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016116## ------------------------------------ ##
16117## Report this to http://llvm.org/bugs/ ##
16118## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016119_ASBOX
16120 ) | sed "s/^/$as_me: WARNING: /" >&2
16121 ;;
16122esac
16123{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16127else
16128 eval "$as_ac_Header=\$ac_header_preproc"
16129fi
16130ac_res=`eval echo '${'$as_ac_Header'}'`
16131 { echo "$as_me:$LINENO: result: $ac_res" >&5
16132echo "${ECHO_T}$ac_res" >&6; }
16133
16134fi
16135if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016136 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016138_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016139
16140fi
16141
16142done
16143
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016144fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016145
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016146
Eric Christopher654dee42010-06-22 21:01:04 +000016147for ac_header in CrashReporterClient.h
16148do
16149as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16155fi
16156ac_res=`eval echo '${'$as_ac_Header'}'`
16157 { echo "$as_me:$LINENO: result: $ac_res" >&5
16158echo "${ECHO_T}$ac_res" >&6; }
16159else
16160 # Is the header compilable?
16161{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16162echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16163cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169$ac_includes_default
16170#include <$ac_header>
16171_ACEOF
16172rm -f conftest.$ac_objext
16173if { (ac_try="$ac_compile"
16174case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177esac
16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_compile") 2>conftest.er1
16180 ac_status=$?
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200esac
16201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_header_compiler=yes
16207else
16208 echo "$as_me: failed program was:" >&5
16209sed 's/^/| /' conftest.$ac_ext >&5
16210
16211 ac_header_compiler=no
16212fi
16213
16214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16216echo "${ECHO_T}$ac_header_compiler" >&6; }
16217
16218# Is the header present?
16219{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16220echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16221cat >conftest.$ac_ext <<_ACEOF
16222/* confdefs.h. */
16223_ACEOF
16224cat confdefs.h >>conftest.$ac_ext
16225cat >>conftest.$ac_ext <<_ACEOF
16226/* end confdefs.h. */
16227#include <$ac_header>
16228_ACEOF
16229if { (ac_try="$ac_cpp conftest.$ac_ext"
16230case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233esac
16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } >/dev/null; then
16242 if test -s conftest.err; then
16243 ac_cpp_err=$ac_c_preproc_warn_flag
16244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16245 else
16246 ac_cpp_err=
16247 fi
16248else
16249 ac_cpp_err=yes
16250fi
16251if test -z "$ac_cpp_err"; then
16252 ac_header_preproc=yes
16253else
16254 echo "$as_me: failed program was:" >&5
16255sed 's/^/| /' conftest.$ac_ext >&5
16256
16257 ac_header_preproc=no
16258fi
16259
16260rm -f conftest.err conftest.$ac_ext
16261{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16262echo "${ECHO_T}$ac_header_preproc" >&6; }
16263
16264# So? What about this header?
16265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16266 yes:no: )
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16271 ac_header_preproc=yes
16272 ;;
16273 no:yes:* )
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16277echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16281echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16286 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016287## ------------------------------------ ##
16288## Report this to http://llvm.org/bugs/ ##
16289## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016290_ASBOX
16291 ) | sed "s/^/$as_me: WARNING: /" >&2
16292 ;;
16293esac
16294{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16298else
16299 eval "$as_ac_Header=\$ac_header_preproc"
16300fi
16301ac_res=`eval echo '${'$as_ac_Header'}'`
16302 { echo "$as_me:$LINENO: result: $ac_res" >&5
16303echo "${ECHO_T}$ac_res" >&6; }
16304
16305fi
16306if test `eval echo '${'$as_ac_Header'}'` = yes; then
16307 cat >>confdefs.h <<_ACEOF
16308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16309_ACEOF
16310
16311fi
16312
16313done
16314
16315
Eric Christopher51e57132010-12-07 02:05:42 +000016316{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16317echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016318cat >conftest.$ac_ext <<_ACEOF
16319/* confdefs.h. */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016324extern const char *__crashreporter_info__;
16325 int main() {
16326 __crashreporter_info__ = "test";
16327 return 0;
16328 }
Eric Christopher481d4022010-12-03 07:45:22 +000016329
Eric Christopher481d4022010-12-03 07:45:22 +000016330_ACEOF
16331rm -f conftest.$ac_objext conftest$ac_exeext
16332if { (ac_try="$ac_link"
16333case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16336esac
16337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_link") 2>conftest.er1
16339 ac_status=$?
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16346 { (case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16349esac
16350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_try") 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } &&
16355 { ac_try='test -s conftest$ac_exeext'
16356 { (case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16359esac
16360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_try") 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016365 { echo "$as_me:$LINENO: result: yes" >&5
16366echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016367
16368cat >>confdefs.h <<\_ACEOF
16369#define HAVE_CRASHREPORTER_INFO 1
16370_ACEOF
16371
Eric Christopher51e57132010-12-07 02:05:42 +000016372else
16373 echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376 { echo "$as_me:$LINENO: result: no" >&5
16377echo "${ECHO_T}no" >&6; }
16378
16379cat >>confdefs.h <<\_ACEOF
16380#define HAVE_CRASHREPORTER_INFO 0
16381_ACEOF
16382
Eric Christopher481d4022010-12-03 07:45:22 +000016383fi
Eric Christopher654dee42010-06-22 21:01:04 +000016384
Eric Christopher51e57132010-12-07 02:05:42 +000016385rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16387
16388
Reid Spencer8085cff2005-01-16 02:58:39 +000016389
Torok Edwin871384f2010-01-26 08:50:50 +000016390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016391 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16392echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16393if test "${ac_cv_huge_val_sanity+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016395else
16396
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016397 ac_ext=cpp
16398ac_cpp='$CXXCPP $CPPFLAGS'
16399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016402
Eric Christopherc7718502010-03-02 05:06:54 +000016403 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016404 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016405 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016406 ac_cv_huge_val_sanity=yes
16407else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016408 cat >conftest.$ac_ext <<_ACEOF
16409/* confdefs.h. */
16410_ACEOF
16411cat confdefs.h >>conftest.$ac_ext
16412cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016413/* end confdefs.h. */
16414#include <math.h>
16415int
16416main ()
16417{
16418double x = HUGE_VAL; return x != x;
16419 ;
16420 return 0;
16421}
16422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016423rm -f conftest$ac_exeext
16424if { (ac_try="$ac_link"
16425case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428esac
16429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_link") 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16434 { (case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437esac
16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_try") 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016443 ac_cv_huge_val_sanity=yes
16444else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016445 echo "$as_me: program exited with status $ac_status" >&5
16446echo "$as_me: failed program was:" >&5
16447sed 's/^/| /' conftest.$ac_ext >&5
16448
16449( exit $ac_status )
16450ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016451fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016452rm -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 +000016453fi
16454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016455
Eric Christopherc7718502010-03-02 05:06:54 +000016456 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016457 ac_ext=c
16458ac_cpp='$CPP $CPPFLAGS'
16459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16461ac_compiler_gnu=$ac_cv_c_compiler_gnu
16462
16463
16464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016465{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16466echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016467 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16468
16469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016470{ echo "$as_me:$LINENO: checking for pid_t" >&5
16471echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16472if test "${ac_cv_type_pid_t+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474else
16475 cat >conftest.$ac_ext <<_ACEOF
16476/* confdefs.h. */
16477_ACEOF
16478cat confdefs.h >>conftest.$ac_ext
16479cat >>conftest.$ac_ext <<_ACEOF
16480/* end confdefs.h. */
16481$ac_includes_default
16482typedef pid_t ac__type_new_;
16483int
16484main ()
16485{
16486if ((ac__type_new_ *) 0)
16487 return 0;
16488if (sizeof (ac__type_new_))
16489 return 0;
16490 ;
16491 return 0;
16492}
16493_ACEOF
16494rm -f conftest.$ac_objext
16495if { (ac_try="$ac_compile"
16496case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16499esac
16500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_compile") 2>conftest.er1
16502 ac_status=$?
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16509 { (case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16512esac
16513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_try") 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; } &&
16518 { ac_try='test -s conftest.$ac_objext'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16522esac
16523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_type_pid_t=yes
16529else
16530 echo "$as_me: failed program was:" >&5
16531sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016533 ac_cv_type_pid_t=no
16534fi
16535
16536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537fi
16538{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16539echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16540if test $ac_cv_type_pid_t = yes; then
16541 :
John Criswell7a73b802003-06-30 21:59:07 +000016542else
16543
16544cat >>confdefs.h <<_ACEOF
16545#define pid_t int
16546_ACEOF
16547
16548fi
16549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016550{ echo "$as_me:$LINENO: checking for size_t" >&5
16551echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16552if test "${ac_cv_type_size_t+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16554else
16555 cat >conftest.$ac_ext <<_ACEOF
16556/* confdefs.h. */
16557_ACEOF
16558cat confdefs.h >>conftest.$ac_ext
16559cat >>conftest.$ac_ext <<_ACEOF
16560/* end confdefs.h. */
16561$ac_includes_default
16562typedef size_t ac__type_new_;
16563int
16564main ()
16565{
16566if ((ac__type_new_ *) 0)
16567 return 0;
16568if (sizeof (ac__type_new_))
16569 return 0;
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574rm -f conftest.$ac_objext
16575if { (ac_try="$ac_compile"
16576case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579esac
16580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_compile") 2>conftest.er1
16582 ac_status=$?
16583 grep -v '^ *+' conftest.er1 >conftest.err
16584 rm -f conftest.er1
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
16588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16592esac
16593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_try") 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602esac
16603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_cv_type_size_t=yes
16609else
16610 echo "$as_me: failed program was:" >&5
16611sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016613 ac_cv_type_size_t=no
16614fi
16615
16616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617fi
16618{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16619echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16620if test $ac_cv_type_size_t = yes; then
16621 :
John Criswell7a73b802003-06-30 21:59:07 +000016622else
16623
16624cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016625#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016626_ACEOF
16627
16628fi
16629
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016630
16631cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016632#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016633_ACEOF
16634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016635{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16636echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16637if test "${ac_cv_struct_tm+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016639else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016640 cat >conftest.$ac_ext <<_ACEOF
16641/* confdefs.h. */
16642_ACEOF
16643cat confdefs.h >>conftest.$ac_ext
16644cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016645/* end confdefs.h. */
16646#include <sys/types.h>
16647#include <time.h>
16648
16649int
16650main ()
16651{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016652struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016653 ;
16654 return 0;
16655}
16656_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016657rm -f conftest.$ac_objext
16658if { (ac_try="$ac_compile"
16659case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662esac
16663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_compile") 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16672 { (case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16675esac
16676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_try") 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try='test -s conftest.$ac_objext'
16682 { (case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16685esac
16686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_try") 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016691 ac_cv_struct_tm=time.h
16692else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016693 echo "$as_me: failed program was:" >&5
16694sed 's/^/| /' conftest.$ac_ext >&5
16695
16696 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016697fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016698
Reid Spencera773bd52006-08-04 18:18:08 +000016699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016701{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16702echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016703if test $ac_cv_struct_tm = sys/time.h; then
16704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016705cat >>confdefs.h <<\_ACEOF
16706#define TM_IN_SYS_TIME 1
16707_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016708
16709fi
16710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016711{ echo "$as_me:$LINENO: checking for int64_t" >&5
16712echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16713if test "${ac_cv_type_int64_t+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16715else
16716 cat >conftest.$ac_ext <<_ACEOF
16717/* confdefs.h. */
16718_ACEOF
16719cat confdefs.h >>conftest.$ac_ext
16720cat >>conftest.$ac_ext <<_ACEOF
16721/* end confdefs.h. */
16722$ac_includes_default
16723typedef int64_t ac__type_new_;
16724int
16725main ()
16726{
16727if ((ac__type_new_ *) 0)
16728 return 0;
16729if (sizeof (ac__type_new_))
16730 return 0;
16731 ;
16732 return 0;
16733}
16734_ACEOF
16735rm -f conftest.$ac_objext
16736if { (ac_try="$ac_compile"
16737case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16740esac
16741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_compile") 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750 { (case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753esac
16754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_try") 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest.$ac_objext'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763esac
16764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769 ac_cv_type_int64_t=yes
16770else
16771 echo "$as_me: failed program was:" >&5
16772sed 's/^/| /' conftest.$ac_ext >&5
16773
16774 ac_cv_type_int64_t=no
16775fi
16776
16777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16778fi
16779{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16780echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16781if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016782
16783cat >>confdefs.h <<_ACEOF
16784#define HAVE_INT64_T 1
16785_ACEOF
16786
16787
16788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016789 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16790echo "$as_me: error: Type int64_t required but not found" >&2;}
16791 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016792fi
16793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016794{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16795echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16796if test "${ac_cv_type_uint64_t+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16798else
16799 cat >conftest.$ac_ext <<_ACEOF
16800/* confdefs.h. */
16801_ACEOF
16802cat confdefs.h >>conftest.$ac_ext
16803cat >>conftest.$ac_ext <<_ACEOF
16804/* end confdefs.h. */
16805$ac_includes_default
16806typedef uint64_t ac__type_new_;
16807int
16808main ()
16809{
16810if ((ac__type_new_ *) 0)
16811 return 0;
16812if (sizeof (ac__type_new_))
16813 return 0;
16814 ;
16815 return 0;
16816}
16817_ACEOF
16818rm -f conftest.$ac_objext
16819if { (ac_try="$ac_compile"
16820case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_compile") 2>conftest.er1
16826 ac_status=$?
16827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16833 { (case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16836esac
16837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_try") 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest.$ac_objext'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846esac
16847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_type_uint64_t=yes
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857 ac_cv_type_uint64_t=no
16858fi
16859
16860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16861fi
16862{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16863echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16864if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016865
16866cat >>confdefs.h <<_ACEOF
16867#define HAVE_UINT64_T 1
16868_ACEOF
16869
16870
16871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016872 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16873echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16874if test "${ac_cv_type_u_int64_t+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876else
16877 cat >conftest.$ac_ext <<_ACEOF
16878/* confdefs.h. */
16879_ACEOF
16880cat confdefs.h >>conftest.$ac_ext
16881cat >>conftest.$ac_ext <<_ACEOF
16882/* end confdefs.h. */
16883$ac_includes_default
16884typedef u_int64_t ac__type_new_;
16885int
16886main ()
16887{
16888if ((ac__type_new_ *) 0)
16889 return 0;
16890if (sizeof (ac__type_new_))
16891 return 0;
16892 ;
16893 return 0;
16894}
16895_ACEOF
16896rm -f conftest.$ac_objext
16897if { (ac_try="$ac_compile"
16898case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16901esac
16902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_compile") 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911 { (case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16914esac
16915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_try") 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest.$ac_objext'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_type_u_int64_t=yes
16931else
16932 echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ac_cv_type_u_int64_t=no
16936fi
16937
16938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16939fi
16940{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16941echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16942if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016943
16944cat >>confdefs.h <<_ACEOF
16945#define HAVE_U_INT64_T 1
16946_ACEOF
16947
16948
Misha Brukmanceca9042004-09-02 23:02:30 +000016949else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016950 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16951echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16952 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016953fi
16954
John Criswell679ff312004-09-02 18:44:44 +000016955fi
16956
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016957
16958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016959
16960
16961
16962
16963
16964
16965
Reid Spencerdf3be822006-01-23 08:15:53 +000016966for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016967do
16968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16973else
16974 cat >conftest.$ac_ext <<_ACEOF
16975/* confdefs.h. */
16976_ACEOF
16977cat confdefs.h >>conftest.$ac_ext
16978cat >>conftest.$ac_ext <<_ACEOF
16979/* end confdefs.h. */
16980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16982#define $ac_func innocuous_$ac_func
16983
16984/* System header to define __stub macros and hopefully few prototypes,
16985 which can conflict with char $ac_func (); below.
16986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16987 <limits.h> exists even on freestanding compilers. */
16988
16989#ifdef __STDC__
16990# include <limits.h>
16991#else
16992# include <assert.h>
16993#endif
16994
16995#undef $ac_func
16996
16997/* Override any GCC internal prototype to avoid an error.
16998 Use char because int might match the return type of a GCC
16999 builtin and then its argument prototype would still apply. */
17000#ifdef __cplusplus
17001extern "C"
17002#endif
17003char $ac_func ();
17004/* The GNU C library defines this for functions which it implements
17005 to always fail with ENOSYS. Some functions are actually named
17006 something starting with __ and the normal name is an alias. */
17007#if defined __stub_$ac_func || defined __stub___$ac_func
17008choke me
17009#endif
17010
17011int
17012main ()
17013{
17014return $ac_func ();
17015 ;
17016 return 0;
17017}
17018_ACEOF
17019rm -f conftest.$ac_objext conftest$ac_exeext
17020if { (ac_try="$ac_link"
17021case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17024esac
17025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_link") 2>conftest.er1
17027 ac_status=$?
17028 grep -v '^ *+' conftest.er1 >conftest.err
17029 rm -f conftest.er1
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
17033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17034 { (case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17037esac
17038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_try") 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } &&
17043 { ac_try='test -s conftest$ac_exeext'
17044 { (case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047esac
17048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_try") 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 eval "$as_ac_var=yes"
17054else
17055 echo "$as_me: failed program was:" >&5
17056sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 eval "$as_ac_var=no"
17059fi
17060
17061rm -f core conftest.err conftest.$ac_objext \
17062 conftest$ac_exeext conftest.$ac_ext
17063fi
17064ac_res=`eval echo '${'$as_ac_var'}'`
17065 { echo "$as_me:$LINENO: result: $ac_res" >&5
17066echo "${ECHO_T}$ac_res" >&6; }
17067if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017068 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017070_ACEOF
17071
17072fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017073done
John Criswell7a73b802003-06-30 21:59:07 +000017074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017075
17076
17077
17078
Reid Spencer96cf5872007-07-13 10:05:30 +000017079for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017080do
17081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17082{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17084if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086else
17087 cat >conftest.$ac_ext <<_ACEOF
17088/* confdefs.h. */
17089_ACEOF
17090cat confdefs.h >>conftest.$ac_ext
17091cat >>conftest.$ac_ext <<_ACEOF
17092/* end confdefs.h. */
17093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17095#define $ac_func innocuous_$ac_func
17096
17097/* System header to define __stub macros and hopefully few prototypes,
17098 which can conflict with char $ac_func (); below.
17099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17100 <limits.h> exists even on freestanding compilers. */
17101
17102#ifdef __STDC__
17103# include <limits.h>
17104#else
17105# include <assert.h>
17106#endif
17107
17108#undef $ac_func
17109
17110/* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17113#ifdef __cplusplus
17114extern "C"
17115#endif
17116char $ac_func ();
17117/* The GNU C library defines this for functions which it implements
17118 to always fail with ENOSYS. Some functions are actually named
17119 something starting with __ and the normal name is an alias. */
17120#if defined __stub_$ac_func || defined __stub___$ac_func
17121choke me
17122#endif
17123
17124int
17125main ()
17126{
17127return $ac_func ();
17128 ;
17129 return 0;
17130}
17131_ACEOF
17132rm -f conftest.$ac_objext conftest$ac_exeext
17133if { (ac_try="$ac_link"
17134case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17137esac
17138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_link") 2>conftest.er1
17140 ac_status=$?
17141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17147 { (case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17150esac
17151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_try") 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; } &&
17156 { ac_try='test -s conftest$ac_exeext'
17157 { (case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160esac
17161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_try") 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; }; then
17166 eval "$as_ac_var=yes"
17167else
17168 echo "$as_me: failed program was:" >&5
17169sed 's/^/| /' conftest.$ac_ext >&5
17170
17171 eval "$as_ac_var=no"
17172fi
17173
17174rm -f core conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext conftest.$ac_ext
17176fi
17177ac_res=`eval echo '${'$as_ac_var'}'`
17178 { echo "$as_me:$LINENO: result: $ac_res" >&5
17179echo "${ECHO_T}$ac_res" >&6; }
17180if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017181 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017183_ACEOF
17184
17185fi
17186done
17187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017188
17189
17190
17191
17192
Reid Spencerb90645c2007-02-16 19:17:20 +000017193for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017194do
17195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17196{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17198if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200else
17201 cat >conftest.$ac_ext <<_ACEOF
17202/* confdefs.h. */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h. */
17207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17209#define $ac_func innocuous_$ac_func
17210
17211/* System header to define __stub macros and hopefully few prototypes,
17212 which can conflict with char $ac_func (); below.
17213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17214 <limits.h> exists even on freestanding compilers. */
17215
17216#ifdef __STDC__
17217# include <limits.h>
17218#else
17219# include <assert.h>
17220#endif
17221
17222#undef $ac_func
17223
17224/* Override any GCC internal prototype to avoid an error.
17225 Use char because int might match the return type of a GCC
17226 builtin and then its argument prototype would still apply. */
17227#ifdef __cplusplus
17228extern "C"
17229#endif
17230char $ac_func ();
17231/* The GNU C library defines this for functions which it implements
17232 to always fail with ENOSYS. Some functions are actually named
17233 something starting with __ and the normal name is an alias. */
17234#if defined __stub_$ac_func || defined __stub___$ac_func
17235choke me
17236#endif
17237
17238int
17239main ()
17240{
17241return $ac_func ();
17242 ;
17243 return 0;
17244}
17245_ACEOF
17246rm -f conftest.$ac_objext conftest$ac_exeext
17247if { (ac_try="$ac_link"
17248case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17251esac
17252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_link") 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17261 { (case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264esac
17265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_try") 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; } &&
17270 { ac_try='test -s conftest$ac_exeext'
17271 { (case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17274esac
17275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_try") 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; }; then
17280 eval "$as_ac_var=yes"
17281else
17282 echo "$as_me: failed program was:" >&5
17283sed 's/^/| /' conftest.$ac_ext >&5
17284
17285 eval "$as_ac_var=no"
17286fi
17287
17288rm -f core conftest.err conftest.$ac_objext \
17289 conftest$ac_exeext conftest.$ac_ext
17290fi
17291ac_res=`eval echo '${'$as_ac_var'}'`
17292 { echo "$as_me:$LINENO: result: $ac_res" >&5
17293echo "${ECHO_T}$ac_res" >&6; }
17294if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017295 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017296#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017297_ACEOF
17298
17299fi
17300done
17301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017302
17303
17304
Reid Spencerb90645c2007-02-16 19:17:20 +000017305for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017306do
17307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17308{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17310if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
17313 cat >conftest.$ac_ext <<_ACEOF
17314/* confdefs.h. */
17315_ACEOF
17316cat confdefs.h >>conftest.$ac_ext
17317cat >>conftest.$ac_ext <<_ACEOF
17318/* end confdefs.h. */
17319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17321#define $ac_func innocuous_$ac_func
17322
17323/* System header to define __stub macros and hopefully few prototypes,
17324 which can conflict with char $ac_func (); below.
17325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17326 <limits.h> exists even on freestanding compilers. */
17327
17328#ifdef __STDC__
17329# include <limits.h>
17330#else
17331# include <assert.h>
17332#endif
17333
17334#undef $ac_func
17335
17336/* Override any GCC internal prototype to avoid an error.
17337 Use char because int might match the return type of a GCC
17338 builtin and then its argument prototype would still apply. */
17339#ifdef __cplusplus
17340extern "C"
17341#endif
17342char $ac_func ();
17343/* The GNU C library defines this for functions which it implements
17344 to always fail with ENOSYS. Some functions are actually named
17345 something starting with __ and the normal name is an alias. */
17346#if defined __stub_$ac_func || defined __stub___$ac_func
17347choke me
17348#endif
17349
17350int
17351main ()
17352{
17353return $ac_func ();
17354 ;
17355 return 0;
17356}
17357_ACEOF
17358rm -f conftest.$ac_objext conftest$ac_exeext
17359if { (ac_try="$ac_link"
17360case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17363esac
17364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_link") 2>conftest.er1
17366 ac_status=$?
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17373 { (case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17376esac
17377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_try") 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; } &&
17382 { ac_try='test -s conftest$ac_exeext'
17383 { (case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17386esac
17387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_try") 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; }; then
17392 eval "$as_ac_var=yes"
17393else
17394 echo "$as_me: failed program was:" >&5
17395sed 's/^/| /' conftest.$ac_ext >&5
17396
17397 eval "$as_ac_var=no"
17398fi
17399
17400rm -f core conftest.err conftest.$ac_objext \
17401 conftest$ac_exeext conftest.$ac_ext
17402fi
17403ac_res=`eval echo '${'$as_ac_var'}'`
17404 { echo "$as_me:$LINENO: result: $ac_res" >&5
17405echo "${ECHO_T}$ac_res" >&6; }
17406if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017407 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017409_ACEOF
17410
17411fi
17412done
17413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017414
17415
17416
17417
17418
Eric Christophere4291822010-04-16 05:14:21 +000017419
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017420
17421for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017422do
17423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17426if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17428else
17429 cat >conftest.$ac_ext <<_ACEOF
17430/* confdefs.h. */
17431_ACEOF
17432cat confdefs.h >>conftest.$ac_ext
17433cat >>conftest.$ac_ext <<_ACEOF
17434/* end confdefs.h. */
17435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437#define $ac_func innocuous_$ac_func
17438
17439/* System header to define __stub macros and hopefully few prototypes,
17440 which can conflict with char $ac_func (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
17443
17444#ifdef __STDC__
17445# include <limits.h>
17446#else
17447# include <assert.h>
17448#endif
17449
17450#undef $ac_func
17451
17452/* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17455#ifdef __cplusplus
17456extern "C"
17457#endif
17458char $ac_func ();
17459/* The GNU C library defines this for functions which it implements
17460 to always fail with ENOSYS. Some functions are actually named
17461 something starting with __ and the normal name is an alias. */
17462#if defined __stub_$ac_func || defined __stub___$ac_func
17463choke me
17464#endif
17465
17466int
17467main ()
17468{
17469return $ac_func ();
17470 ;
17471 return 0;
17472}
17473_ACEOF
17474rm -f conftest.$ac_objext conftest$ac_exeext
17475if { (ac_try="$ac_link"
17476case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479esac
17480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
17482 ac_status=$?
17483 grep -v '^ *+' conftest.er1 >conftest.err
17484 rm -f conftest.er1
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492esac
17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502esac
17503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 eval "$as_ac_var=yes"
17509else
17510 echo "$as_me: failed program was:" >&5
17511sed 's/^/| /' conftest.$ac_ext >&5
17512
17513 eval "$as_ac_var=no"
17514fi
17515
17516rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17518fi
17519ac_res=`eval echo '${'$as_ac_var'}'`
17520 { echo "$as_me:$LINENO: result: $ac_res" >&5
17521echo "${ECHO_T}$ac_res" >&6; }
17522if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017523 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017525_ACEOF
17526
17527fi
17528done
Reid Spencerdf3be822006-01-23 08:15:53 +000017529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017530
17531
17532
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017533
17534for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017535do
17536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17537{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17539if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541else
17542 cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
17548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17550#define $ac_func innocuous_$ac_func
17551
17552/* System header to define __stub macros and hopefully few prototypes,
17553 which can conflict with char $ac_func (); below.
17554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17555 <limits.h> exists even on freestanding compilers. */
17556
17557#ifdef __STDC__
17558# include <limits.h>
17559#else
17560# include <assert.h>
17561#endif
17562
17563#undef $ac_func
17564
17565/* Override any GCC internal prototype to avoid an error.
17566 Use char because int might match the return type of a GCC
17567 builtin and then its argument prototype would still apply. */
17568#ifdef __cplusplus
17569extern "C"
17570#endif
17571char $ac_func ();
17572/* The GNU C library defines this for functions which it implements
17573 to always fail with ENOSYS. Some functions are actually named
17574 something starting with __ and the normal name is an alias. */
17575#if defined __stub_$ac_func || defined __stub___$ac_func
17576choke me
17577#endif
17578
17579int
17580main ()
17581{
17582return $ac_func ();
17583 ;
17584 return 0;
17585}
17586_ACEOF
17587rm -f conftest.$ac_objext conftest$ac_exeext
17588if { (ac_try="$ac_link"
17589case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17592esac
17593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_link") 2>conftest.er1
17595 ac_status=$?
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17602 { (case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17605esac
17606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_try") 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; } &&
17611 { ac_try='test -s conftest$ac_exeext'
17612 { (case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17615esac
17616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_try") 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; }; then
17621 eval "$as_ac_var=yes"
17622else
17623 echo "$as_me: failed program was:" >&5
17624sed 's/^/| /' conftest.$ac_ext >&5
17625
17626 eval "$as_ac_var=no"
17627fi
17628
17629rm -f core conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17631fi
17632ac_res=`eval echo '${'$as_ac_var'}'`
17633 { echo "$as_me:$LINENO: result: $ac_res" >&5
17634echo "${ECHO_T}$ac_res" >&6; }
17635if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017636 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017638_ACEOF
17639
17640fi
17641done
17642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017643
17644
17645
17646
Chris Lattner511f11d2005-11-14 07:25:50 +000017647for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017648do
17649as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17650{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17652if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17654else
17655 cat >conftest.$ac_ext <<_ACEOF
17656/* confdefs.h. */
17657_ACEOF
17658cat confdefs.h >>conftest.$ac_ext
17659cat >>conftest.$ac_ext <<_ACEOF
17660/* end confdefs.h. */
17661/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17663#define $ac_func innocuous_$ac_func
17664
17665/* System header to define __stub macros and hopefully few prototypes,
17666 which can conflict with char $ac_func (); below.
17667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17668 <limits.h> exists even on freestanding compilers. */
17669
17670#ifdef __STDC__
17671# include <limits.h>
17672#else
17673# include <assert.h>
17674#endif
17675
17676#undef $ac_func
17677
17678/* Override any GCC internal prototype to avoid an error.
17679 Use char because int might match the return type of a GCC
17680 builtin and then its argument prototype would still apply. */
17681#ifdef __cplusplus
17682extern "C"
17683#endif
17684char $ac_func ();
17685/* The GNU C library defines this for functions which it implements
17686 to always fail with ENOSYS. Some functions are actually named
17687 something starting with __ and the normal name is an alias. */
17688#if defined __stub_$ac_func || defined __stub___$ac_func
17689choke me
17690#endif
17691
17692int
17693main ()
17694{
17695return $ac_func ();
17696 ;
17697 return 0;
17698}
17699_ACEOF
17700rm -f conftest.$ac_objext conftest$ac_exeext
17701if { (ac_try="$ac_link"
17702case "(($ac_try" in
17703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704 *) ac_try_echo=$ac_try;;
17705esac
17706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707 (eval "$ac_link") 2>conftest.er1
17708 ac_status=$?
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17715 { (case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17718esac
17719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_try") 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try='test -s conftest$ac_exeext'
17725 { (case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17728esac
17729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_try") 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 eval "$as_ac_var=yes"
17735else
17736 echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
17739 eval "$as_ac_var=no"
17740fi
17741
17742rm -f core conftest.err conftest.$ac_objext \
17743 conftest$ac_exeext conftest.$ac_ext
17744fi
17745ac_res=`eval echo '${'$as_ac_var'}'`
17746 { echo "$as_me:$LINENO: result: $ac_res" >&5
17747echo "${ECHO_T}$ac_res" >&6; }
17748if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017749 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017751_ACEOF
17752
17753fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017754done
John Criswell7a73b802003-06-30 21:59:07 +000017755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017756
17757
17758
17759
Daniel Dunbar3e462932011-02-03 02:40:02 +000017760
17761for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017762do
17763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768else
17769 cat >conftest.$ac_ext <<_ACEOF
17770/* confdefs.h. */
17771_ACEOF
17772cat confdefs.h >>conftest.$ac_ext
17773cat >>conftest.$ac_ext <<_ACEOF
17774/* end confdefs.h. */
17775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17777#define $ac_func innocuous_$ac_func
17778
17779/* System header to define __stub macros and hopefully few prototypes,
17780 which can conflict with char $ac_func (); below.
17781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782 <limits.h> exists even on freestanding compilers. */
17783
17784#ifdef __STDC__
17785# include <limits.h>
17786#else
17787# include <assert.h>
17788#endif
17789
17790#undef $ac_func
17791
17792/* Override any GCC internal prototype to avoid an error.
17793 Use char because int might match the return type of a GCC
17794 builtin and then its argument prototype would still apply. */
17795#ifdef __cplusplus
17796extern "C"
17797#endif
17798char $ac_func ();
17799/* The GNU C library defines this for functions which it implements
17800 to always fail with ENOSYS. Some functions are actually named
17801 something starting with __ and the normal name is an alias. */
17802#if defined __stub_$ac_func || defined __stub___$ac_func
17803choke me
17804#endif
17805
17806int
17807main ()
17808{
17809return $ac_func ();
17810 ;
17811 return 0;
17812}
17813_ACEOF
17814rm -f conftest.$ac_objext conftest$ac_exeext
17815if { (ac_try="$ac_link"
17816case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819esac
17820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_link") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842esac
17843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 eval "$as_ac_var=yes"
17849else
17850 echo "$as_me: failed program was:" >&5
17851sed 's/^/| /' conftest.$ac_ext >&5
17852
17853 eval "$as_ac_var=no"
17854fi
17855
17856rm -f core conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17858fi
17859ac_res=`eval echo '${'$as_ac_var'}'`
17860 { echo "$as_me:$LINENO: result: $ac_res" >&5
17861echo "${ECHO_T}$ac_res" >&6; }
17862if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017863 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017865_ACEOF
17866
17867fi
17868done
17869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017870{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17871echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17872if test "${llvm_cv_c_printf_a+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017874else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017875 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017876ac_cpp='$CPP $CPPFLAGS'
17877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879ac_compiler_gnu=$ac_cv_c_compiler_gnu
17880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017881 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017882 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017884 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017886 /* confdefs.h. */
17887_ACEOF
17888cat confdefs.h >>conftest.$ac_ext
17889cat >>conftest.$ac_ext <<_ACEOF
17890/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017891
John Criswella0137d32003-10-13 16:22:01 +000017892#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017893#include <stdlib.h>
17894
John Criswella0137d32003-10-13 16:22:01 +000017895int
17896main ()
17897{
17898
Reid Spencer2706f8c2004-09-19 23:53:36 +000017899volatile double A, B;
17900char Buffer[100];
17901A = 1;
17902A /= 10.0;
17903sprintf(Buffer, "%a", A);
17904B = atof(Buffer);
17905if (A != B)
17906 return (1);
17907if (A != 0x1.999999999999ap-4)
17908 return (1);
17909return (0);
John Criswella0137d32003-10-13 16:22:01 +000017910 ;
17911 return 0;
17912}
17913_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017914rm -f conftest$ac_exeext
17915if { (ac_try="$ac_link"
17916case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919esac
17920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_link") 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17925 { (case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928esac
17929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_try") 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017934 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017936 echo "$as_me: program exited with status $ac_status" >&5
17937echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
17940( exit $ac_status )
17941llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017942fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017943rm -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 +000017944fi
Reid Spencera773bd52006-08-04 18:18:08 +000017945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017946
Reid Spencer2706f8c2004-09-19 23:53:36 +000017947 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017948ac_cpp='$CPP $CPPFLAGS'
17949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17951ac_compiler_gnu=$ac_cv_c_compiler_gnu
17952
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017954{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17955echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017956 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017958cat >>confdefs.h <<\_ACEOF
17959#define HAVE_PRINTF_A 1
17960_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017961
Reid Spencer2706f8c2004-09-19 23:53:36 +000017962 fi
John Criswella0137d32003-10-13 16:22:01 +000017963
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017965{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17966echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17967if test "${ac_cv_func_rand48+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017969else
Reid Spencera773bd52006-08-04 18:18:08 +000017970 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017971ac_cpp='$CXXCPP $CPPFLAGS'
17972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017976 cat >conftest.$ac_ext <<_ACEOF
17977/* confdefs.h. */
17978_ACEOF
17979cat confdefs.h >>conftest.$ac_ext
17980cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017981/* end confdefs.h. */
17982#include <stdlib.h>
17983int
17984main ()
17985{
17986srand48(0);lrand48();drand48();
17987 ;
17988 return 0;
17989}
17990_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017991rm -f conftest.$ac_objext
17992if { (ac_try="$ac_compile"
17993case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996esac
17997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_compile") 2>conftest.er1
17999 ac_status=$?
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18006 { (case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18009esac
18010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_try") 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest.$ac_objext'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18019esac
18020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018025 ac_cv_func_rand48=yes
18026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018027 echo "$as_me: failed program was:" >&5
18028sed 's/^/| /' conftest.$ac_ext >&5
18029
18030 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018032
Reid Spencera773bd52006-08-04 18:18:08 +000018033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018034 ac_ext=c
18035ac_cpp='$CPP $CPPFLAGS'
18036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038ac_compiler_gnu=$ac_cv_c_compiler_gnu
18039
18040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018041{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18042echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018043
18044if test "$ac_cv_func_rand48" = "yes" ; then
18045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018046cat >>confdefs.h <<\_ACEOF
18047#define HAVE_RAND48 1
18048_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018049
18050fi
John Criswell0021c312004-02-13 21:57:29 +000018051
18052
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018053{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18054echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18055if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18057else
18058 cat >conftest.$ac_ext <<_ACEOF
18059/* confdefs.h. */
18060_ACEOF
18061cat confdefs.h >>conftest.$ac_ext
18062cat >>conftest.$ac_ext <<_ACEOF
18063/* end confdefs.h. */
18064$ac_includes_default
18065int
18066main ()
18067{
18068#ifndef strerror_s
18069 char *p = (char *) strerror_s;
18070 return !p;
18071#endif
18072
18073 ;
18074 return 0;
18075}
18076_ACEOF
18077rm -f conftest.$ac_objext
18078if { (ac_try="$ac_compile"
18079case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18082esac
18083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084 (eval "$ac_compile") 2>conftest.er1
18085 ac_status=$?
18086 grep -v '^ *+' conftest.er1 >conftest.err
18087 rm -f conftest.er1
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18092 { (case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18095esac
18096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_try") 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; } &&
18101 { ac_try='test -s conftest.$ac_objext'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18105esac
18106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
18111 ac_cv_have_decl_strerror_s=yes
18112else
18113 echo "$as_me: failed program was:" >&5
18114sed 's/^/| /' conftest.$ac_ext >&5
18115
18116 ac_cv_have_decl_strerror_s=no
18117fi
18118
18119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18120fi
18121{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18122echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18123if test $ac_cv_have_decl_strerror_s = yes; then
18124
18125cat >>confdefs.h <<_ACEOF
18126#define HAVE_DECL_STRERROR_S 1
18127_ACEOF
18128
18129
18130else
18131 cat >>confdefs.h <<_ACEOF
18132#define HAVE_DECL_STRERROR_S 0
18133_ACEOF
18134
18135
18136fi
18137
18138
18139
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018140if test "$llvm_cv_os_type" = "MingW" ; then
18141 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18142echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18143if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145else
18146 ac_check_lib_save_LIBS=$LIBS
18147LIBS="-lgcc $LIBS"
18148cat >conftest.$ac_ext <<_ACEOF
18149/* confdefs.h. */
18150_ACEOF
18151cat confdefs.h >>conftest.$ac_ext
18152cat >>conftest.$ac_ext <<_ACEOF
18153/* end confdefs.h. */
18154
18155/* Override any GCC internal prototype to avoid an error.
18156 Use char because int might match the return type of a GCC
18157 builtin and then its argument prototype would still apply. */
18158#ifdef __cplusplus
18159extern "C"
18160#endif
18161char _alloca ();
18162int
18163main ()
18164{
18165return _alloca ();
18166 ;
18167 return 0;
18168}
18169_ACEOF
18170rm -f conftest.$ac_objext conftest$ac_exeext
18171if { (ac_try="$ac_link"
18172case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175esac
18176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_link") 2>conftest.er1
18178 ac_status=$?
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185 { (case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18188esac
18189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_try") 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; } &&
18194 { ac_try='test -s conftest$ac_exeext'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198esac
18199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 ac_cv_lib_gcc__alloca=yes
18205else
18206 echo "$as_me: failed program was:" >&5
18207sed 's/^/| /' conftest.$ac_ext >&5
18208
18209 ac_cv_lib_gcc__alloca=no
18210fi
18211
18212rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18214LIBS=$ac_check_lib_save_LIBS
18215fi
18216{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18217echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18218if test $ac_cv_lib_gcc__alloca = yes; then
18219
18220cat >>confdefs.h <<\_ACEOF
18221#define HAVE__ALLOCA 1
18222_ACEOF
18223
18224fi
18225
18226 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18227echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18228if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230else
18231 ac_check_lib_save_LIBS=$LIBS
18232LIBS="-lgcc $LIBS"
18233cat >conftest.$ac_ext <<_ACEOF
18234/* confdefs.h. */
18235_ACEOF
18236cat confdefs.h >>conftest.$ac_ext
18237cat >>conftest.$ac_ext <<_ACEOF
18238/* end confdefs.h. */
18239
18240/* Override any GCC internal prototype to avoid an error.
18241 Use char because int might match the return type of a GCC
18242 builtin and then its argument prototype would still apply. */
18243#ifdef __cplusplus
18244extern "C"
18245#endif
18246char __alloca ();
18247int
18248main ()
18249{
18250return __alloca ();
18251 ;
18252 return 0;
18253}
18254_ACEOF
18255rm -f conftest.$ac_objext conftest$ac_exeext
18256if { (ac_try="$ac_link"
18257case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18260esac
18261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_link") 2>conftest.er1
18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18270 { (case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18273esac
18274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_try") 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } &&
18279 { ac_try='test -s conftest$ac_exeext'
18280 { (case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18283esac
18284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_try") 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_cv_lib_gcc___alloca=yes
18290else
18291 echo "$as_me: failed program was:" >&5
18292sed 's/^/| /' conftest.$ac_ext >&5
18293
18294 ac_cv_lib_gcc___alloca=no
18295fi
18296
18297rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
18299LIBS=$ac_check_lib_save_LIBS
18300fi
18301{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18302echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18303if test $ac_cv_lib_gcc___alloca = yes; then
18304
18305cat >>confdefs.h <<\_ACEOF
18306#define HAVE___ALLOCA 1
18307_ACEOF
18308
18309fi
18310
18311 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18312echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18313if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315else
18316 ac_check_lib_save_LIBS=$LIBS
18317LIBS="-lgcc $LIBS"
18318cat >conftest.$ac_ext <<_ACEOF
18319/* confdefs.h. */
18320_ACEOF
18321cat confdefs.h >>conftest.$ac_ext
18322cat >>conftest.$ac_ext <<_ACEOF
18323/* end confdefs.h. */
18324
18325/* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18328#ifdef __cplusplus
18329extern "C"
18330#endif
18331char __chkstk ();
18332int
18333main ()
18334{
18335return __chkstk ();
18336 ;
18337 return 0;
18338}
18339_ACEOF
18340rm -f conftest.$ac_objext conftest$ac_exeext
18341if { (ac_try="$ac_link"
18342case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345esac
18346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_link") 2>conftest.er1
18348 ac_status=$?
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } &&
18354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18355 { (case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18358esac
18359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_try") 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try='test -s conftest$ac_exeext'
18365 { (case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18368esac
18369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_try") 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18374 ac_cv_lib_gcc___chkstk=yes
18375else
18376 echo "$as_me: failed program was:" >&5
18377sed 's/^/| /' conftest.$ac_ext >&5
18378
18379 ac_cv_lib_gcc___chkstk=no
18380fi
18381
18382rm -f core conftest.err conftest.$ac_objext \
18383 conftest$ac_exeext conftest.$ac_ext
18384LIBS=$ac_check_lib_save_LIBS
18385fi
18386{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18387echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18388if test $ac_cv_lib_gcc___chkstk = yes; then
18389
18390cat >>confdefs.h <<\_ACEOF
18391#define HAVE___CHKSTK 1
18392_ACEOF
18393
18394fi
18395
18396 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18397echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18398if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18400else
18401 ac_check_lib_save_LIBS=$LIBS
18402LIBS="-lgcc $LIBS"
18403cat >conftest.$ac_ext <<_ACEOF
18404/* confdefs.h. */
18405_ACEOF
18406cat confdefs.h >>conftest.$ac_ext
18407cat >>conftest.$ac_ext <<_ACEOF
18408/* end confdefs.h. */
18409
18410/* Override any GCC internal prototype to avoid an error.
18411 Use char because int might match the return type of a GCC
18412 builtin and then its argument prototype would still apply. */
18413#ifdef __cplusplus
18414extern "C"
18415#endif
18416char ___chkstk ();
18417int
18418main ()
18419{
18420return ___chkstk ();
18421 ;
18422 return 0;
18423}
18424_ACEOF
18425rm -f conftest.$ac_objext conftest$ac_exeext
18426if { (ac_try="$ac_link"
18427case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18430esac
18431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_link") 2>conftest.er1
18433 ac_status=$?
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443esac
18444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_try") 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18453esac
18454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_cv_lib_gcc____chkstk=yes
18460else
18461 echo "$as_me: failed program was:" >&5
18462sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 ac_cv_lib_gcc____chkstk=no
18465fi
18466
18467rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18469LIBS=$ac_check_lib_save_LIBS
18470fi
18471{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18472echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18473if test $ac_cv_lib_gcc____chkstk = yes; then
18474
18475cat >>confdefs.h <<\_ACEOF
18476#define HAVE____CHKSTK 1
18477_ACEOF
18478
18479fi
18480
18481
18482 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18483echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18484if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486else
18487 ac_check_lib_save_LIBS=$LIBS
18488LIBS="-lgcc $LIBS"
18489cat >conftest.$ac_ext <<_ACEOF
18490/* confdefs.h. */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
18494/* end confdefs.h. */
18495
18496/* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
18499#ifdef __cplusplus
18500extern "C"
18501#endif
18502char __ashldi3 ();
18503int
18504main ()
18505{
18506return __ashldi3 ();
18507 ;
18508 return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext conftest$ac_exeext
18512if { (ac_try="$ac_link"
18513case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516esac
18517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526 { (case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529esac
18530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_try") 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539esac
18540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_cv_lib_gcc___ashldi3=yes
18546else
18547 echo "$as_me: failed program was:" >&5
18548sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 ac_cv_lib_gcc___ashldi3=no
18551fi
18552
18553rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18555LIBS=$ac_check_lib_save_LIBS
18556fi
18557{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18558echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18559if test $ac_cv_lib_gcc___ashldi3 = yes; then
18560
18561cat >>confdefs.h <<\_ACEOF
18562#define HAVE___ASHLDI3 1
18563_ACEOF
18564
18565fi
18566
18567 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18568echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18569if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18571else
18572 ac_check_lib_save_LIBS=$LIBS
18573LIBS="-lgcc $LIBS"
18574cat >conftest.$ac_ext <<_ACEOF
18575/* confdefs.h. */
18576_ACEOF
18577cat confdefs.h >>conftest.$ac_ext
18578cat >>conftest.$ac_ext <<_ACEOF
18579/* end confdefs.h. */
18580
18581/* Override any GCC internal prototype to avoid an error.
18582 Use char because int might match the return type of a GCC
18583 builtin and then its argument prototype would still apply. */
18584#ifdef __cplusplus
18585extern "C"
18586#endif
18587char __ashrdi3 ();
18588int
18589main ()
18590{
18591return __ashrdi3 ();
18592 ;
18593 return 0;
18594}
18595_ACEOF
18596rm -f conftest.$ac_objext conftest$ac_exeext
18597if { (ac_try="$ac_link"
18598case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18601esac
18602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_link") 2>conftest.er1
18604 ac_status=$?
18605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18611 { (case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614esac
18615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_try") 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; } &&
18620 { ac_try='test -s conftest$ac_exeext'
18621 { (case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18624esac
18625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_try") 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_cv_lib_gcc___ashrdi3=yes
18631else
18632 echo "$as_me: failed program was:" >&5
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
18635 ac_cv_lib_gcc___ashrdi3=no
18636fi
18637
18638rm -f core conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18640LIBS=$ac_check_lib_save_LIBS
18641fi
18642{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18643echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18644if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18645
18646cat >>confdefs.h <<\_ACEOF
18647#define HAVE___ASHRDI3 1
18648_ACEOF
18649
18650fi
18651
18652 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18653echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18654if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656else
18657 ac_check_lib_save_LIBS=$LIBS
18658LIBS="-lgcc $LIBS"
18659cat >conftest.$ac_ext <<_ACEOF
18660/* confdefs.h. */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h. */
18665
18666/* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18669#ifdef __cplusplus
18670extern "C"
18671#endif
18672char __divdi3 ();
18673int
18674main ()
18675{
18676return __divdi3 ();
18677 ;
18678 return 0;
18679}
18680_ACEOF
18681rm -f conftest.$ac_objext conftest$ac_exeext
18682if { (ac_try="$ac_link"
18683case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686esac
18687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_link") 2>conftest.er1
18689 ac_status=$?
18690 grep -v '^ *+' conftest.er1 >conftest.err
18691 rm -f conftest.er1
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } &&
18695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18696 { (case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18699esac
18700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_try") 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try='test -s conftest$ac_exeext'
18706 { (case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18709esac
18710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_try") 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_cv_lib_gcc___divdi3=yes
18716else
18717 echo "$as_me: failed program was:" >&5
18718sed 's/^/| /' conftest.$ac_ext >&5
18719
18720 ac_cv_lib_gcc___divdi3=no
18721fi
18722
18723rm -f core conftest.err conftest.$ac_objext \
18724 conftest$ac_exeext conftest.$ac_ext
18725LIBS=$ac_check_lib_save_LIBS
18726fi
18727{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18728echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18729if test $ac_cv_lib_gcc___divdi3 = yes; then
18730
18731cat >>confdefs.h <<\_ACEOF
18732#define HAVE___DIVDI3 1
18733_ACEOF
18734
18735fi
18736
18737 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18738echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18739if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18741else
18742 ac_check_lib_save_LIBS=$LIBS
18743LIBS="-lgcc $LIBS"
18744cat >conftest.$ac_ext <<_ACEOF
18745/* confdefs.h. */
18746_ACEOF
18747cat confdefs.h >>conftest.$ac_ext
18748cat >>conftest.$ac_ext <<_ACEOF
18749/* end confdefs.h. */
18750
18751/* Override any GCC internal prototype to avoid an error.
18752 Use char because int might match the return type of a GCC
18753 builtin and then its argument prototype would still apply. */
18754#ifdef __cplusplus
18755extern "C"
18756#endif
18757char __fixdfdi ();
18758int
18759main ()
18760{
18761return __fixdfdi ();
18762 ;
18763 return 0;
18764}
18765_ACEOF
18766rm -f conftest.$ac_objext conftest$ac_exeext
18767if { (ac_try="$ac_link"
18768case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18771esac
18772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_link") 2>conftest.er1
18774 ac_status=$?
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
18780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18781 { (case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18784esac
18785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_try") 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try='test -s conftest$ac_exeext'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794esac
18795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_lib_gcc___fixdfdi=yes
18801else
18802 echo "$as_me: failed program was:" >&5
18803sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 ac_cv_lib_gcc___fixdfdi=no
18806fi
18807
18808rm -f core conftest.err conftest.$ac_objext \
18809 conftest$ac_exeext conftest.$ac_ext
18810LIBS=$ac_check_lib_save_LIBS
18811fi
18812{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18813echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18814if test $ac_cv_lib_gcc___fixdfdi = yes; then
18815
18816cat >>confdefs.h <<\_ACEOF
18817#define HAVE___FIXDFDI 1
18818_ACEOF
18819
18820fi
18821
18822 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18823echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18824if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18826else
18827 ac_check_lib_save_LIBS=$LIBS
18828LIBS="-lgcc $LIBS"
18829cat >conftest.$ac_ext <<_ACEOF
18830/* confdefs.h. */
18831_ACEOF
18832cat confdefs.h >>conftest.$ac_ext
18833cat >>conftest.$ac_ext <<_ACEOF
18834/* end confdefs.h. */
18835
18836/* Override any GCC internal prototype to avoid an error.
18837 Use char because int might match the return type of a GCC
18838 builtin and then its argument prototype would still apply. */
18839#ifdef __cplusplus
18840extern "C"
18841#endif
18842char __fixsfdi ();
18843int
18844main ()
18845{
18846return __fixsfdi ();
18847 ;
18848 return 0;
18849}
18850_ACEOF
18851rm -f conftest.$ac_objext conftest$ac_exeext
18852if { (ac_try="$ac_link"
18853case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856esac
18857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_link") 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
18865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18866 { (case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest$ac_exeext'
18876 { (case "(($ac_try" in
18877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878 *) ac_try_echo=$ac_try;;
18879esac
18880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_try") 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885 ac_cv_lib_gcc___fixsfdi=yes
18886else
18887 echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890 ac_cv_lib_gcc___fixsfdi=no
18891fi
18892
18893rm -f core conftest.err conftest.$ac_objext \
18894 conftest$ac_exeext conftest.$ac_ext
18895LIBS=$ac_check_lib_save_LIBS
18896fi
18897{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18898echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18899if test $ac_cv_lib_gcc___fixsfdi = yes; then
18900
18901cat >>confdefs.h <<\_ACEOF
18902#define HAVE___FIXSFDI 1
18903_ACEOF
18904
18905fi
18906
18907 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18908echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18909if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18911else
18912 ac_check_lib_save_LIBS=$LIBS
18913LIBS="-lgcc $LIBS"
18914cat >conftest.$ac_ext <<_ACEOF
18915/* confdefs.h. */
18916_ACEOF
18917cat confdefs.h >>conftest.$ac_ext
18918cat >>conftest.$ac_ext <<_ACEOF
18919/* end confdefs.h. */
18920
18921/* Override any GCC internal prototype to avoid an error.
18922 Use char because int might match the return type of a GCC
18923 builtin and then its argument prototype would still apply. */
18924#ifdef __cplusplus
18925extern "C"
18926#endif
18927char __floatdidf ();
18928int
18929main ()
18930{
18931return __floatdidf ();
18932 ;
18933 return 0;
18934}
18935_ACEOF
18936rm -f conftest.$ac_objext conftest$ac_exeext
18937if { (ac_try="$ac_link"
18938case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18941esac
18942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_link") 2>conftest.er1
18944 ac_status=$?
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
18950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18951 { (case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18954esac
18955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_try") 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest$ac_exeext'
18961 { (case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18964esac
18965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_try") 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 ac_cv_lib_gcc___floatdidf=yes
18971else
18972 echo "$as_me: failed program was:" >&5
18973sed 's/^/| /' conftest.$ac_ext >&5
18974
18975 ac_cv_lib_gcc___floatdidf=no
18976fi
18977
18978rm -f core conftest.err conftest.$ac_objext \
18979 conftest$ac_exeext conftest.$ac_ext
18980LIBS=$ac_check_lib_save_LIBS
18981fi
18982{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18983echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18984if test $ac_cv_lib_gcc___floatdidf = yes; then
18985
18986cat >>confdefs.h <<\_ACEOF
18987#define HAVE___FLOATDIDF 1
18988_ACEOF
18989
18990fi
18991
18992 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18993echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18994if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18996else
18997 ac_check_lib_save_LIBS=$LIBS
18998LIBS="-lgcc $LIBS"
18999cat >conftest.$ac_ext <<_ACEOF
19000/* confdefs.h. */
19001_ACEOF
19002cat confdefs.h >>conftest.$ac_ext
19003cat >>conftest.$ac_ext <<_ACEOF
19004/* end confdefs.h. */
19005
19006/* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19009#ifdef __cplusplus
19010extern "C"
19011#endif
19012char __lshrdi3 ();
19013int
19014main ()
19015{
19016return __lshrdi3 ();
19017 ;
19018 return 0;
19019}
19020_ACEOF
19021rm -f conftest.$ac_objext conftest$ac_exeext
19022if { (ac_try="$ac_link"
19023case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19026esac
19027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_link") 2>conftest.er1
19029 ac_status=$?
19030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } &&
19035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19036 { (case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19039esac
19040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_try") 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest$ac_exeext'
19046 { (case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19049esac
19050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_try") 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 ac_cv_lib_gcc___lshrdi3=yes
19056else
19057 echo "$as_me: failed program was:" >&5
19058sed 's/^/| /' conftest.$ac_ext >&5
19059
19060 ac_cv_lib_gcc___lshrdi3=no
19061fi
19062
19063rm -f core conftest.err conftest.$ac_objext \
19064 conftest$ac_exeext conftest.$ac_ext
19065LIBS=$ac_check_lib_save_LIBS
19066fi
19067{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19068echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19069if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19070
19071cat >>confdefs.h <<\_ACEOF
19072#define HAVE___LSHRDI3 1
19073_ACEOF
19074
19075fi
19076
19077 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19078echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19079if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19081else
19082 ac_check_lib_save_LIBS=$LIBS
19083LIBS="-lgcc $LIBS"
19084cat >conftest.$ac_ext <<_ACEOF
19085/* confdefs.h. */
19086_ACEOF
19087cat confdefs.h >>conftest.$ac_ext
19088cat >>conftest.$ac_ext <<_ACEOF
19089/* end confdefs.h. */
19090
19091/* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19094#ifdef __cplusplus
19095extern "C"
19096#endif
19097char __moddi3 ();
19098int
19099main ()
19100{
19101return __moddi3 ();
19102 ;
19103 return 0;
19104}
19105_ACEOF
19106rm -f conftest.$ac_objext conftest$ac_exeext
19107if { (ac_try="$ac_link"
19108case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19111esac
19112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_link") 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19121 { (case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124esac
19125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_try") 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } &&
19130 { ac_try='test -s conftest$ac_exeext'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19134esac
19135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_cv_lib_gcc___moddi3=yes
19141else
19142 echo "$as_me: failed program was:" >&5
19143sed 's/^/| /' conftest.$ac_ext >&5
19144
19145 ac_cv_lib_gcc___moddi3=no
19146fi
19147
19148rm -f core conftest.err conftest.$ac_objext \
19149 conftest$ac_exeext conftest.$ac_ext
19150LIBS=$ac_check_lib_save_LIBS
19151fi
19152{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19153echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19154if test $ac_cv_lib_gcc___moddi3 = yes; then
19155
19156cat >>confdefs.h <<\_ACEOF
19157#define HAVE___MODDI3 1
19158_ACEOF
19159
19160fi
19161
19162 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19163echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19164if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19166else
19167 ac_check_lib_save_LIBS=$LIBS
19168LIBS="-lgcc $LIBS"
19169cat >conftest.$ac_ext <<_ACEOF
19170/* confdefs.h. */
19171_ACEOF
19172cat confdefs.h >>conftest.$ac_ext
19173cat >>conftest.$ac_ext <<_ACEOF
19174/* end confdefs.h. */
19175
19176/* Override any GCC internal prototype to avoid an error.
19177 Use char because int might match the return type of a GCC
19178 builtin and then its argument prototype would still apply. */
19179#ifdef __cplusplus
19180extern "C"
19181#endif
19182char __udivdi3 ();
19183int
19184main ()
19185{
19186return __udivdi3 ();
19187 ;
19188 return 0;
19189}
19190_ACEOF
19191rm -f conftest.$ac_objext conftest$ac_exeext
19192if { (ac_try="$ac_link"
19193case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19196esac
19197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_link") 2>conftest.er1
19199 ac_status=$?
19200 grep -v '^ *+' conftest.er1 >conftest.err
19201 rm -f conftest.er1
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19206 { (case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19209esac
19210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_try") 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest$ac_exeext'
19216 { (case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19219esac
19220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_try") 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_cv_lib_gcc___udivdi3=yes
19226else
19227 echo "$as_me: failed program was:" >&5
19228sed 's/^/| /' conftest.$ac_ext >&5
19229
19230 ac_cv_lib_gcc___udivdi3=no
19231fi
19232
19233rm -f core conftest.err conftest.$ac_objext \
19234 conftest$ac_exeext conftest.$ac_ext
19235LIBS=$ac_check_lib_save_LIBS
19236fi
19237{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19238echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19239if test $ac_cv_lib_gcc___udivdi3 = yes; then
19240
19241cat >>confdefs.h <<\_ACEOF
19242#define HAVE___UDIVDI3 1
19243_ACEOF
19244
19245fi
19246
19247 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19248echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19249if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19251else
19252 ac_check_lib_save_LIBS=$LIBS
19253LIBS="-lgcc $LIBS"
19254cat >conftest.$ac_ext <<_ACEOF
19255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
19260
19261/* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply. */
19264#ifdef __cplusplus
19265extern "C"
19266#endif
19267char __umoddi3 ();
19268int
19269main ()
19270{
19271return __umoddi3 ();
19272 ;
19273 return 0;
19274}
19275_ACEOF
19276rm -f conftest.$ac_objext conftest$ac_exeext
19277if { (ac_try="$ac_link"
19278case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281esac
19282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_link") 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294esac
19295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest$ac_exeext'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19304esac
19305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_lib_gcc___umoddi3=yes
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ac_cv_lib_gcc___umoddi3=no
19316fi
19317
19318rm -f core conftest.err conftest.$ac_objext \
19319 conftest$ac_exeext conftest.$ac_ext
19320LIBS=$ac_check_lib_save_LIBS
19321fi
19322{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19323echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19324if test $ac_cv_lib_gcc___umoddi3 = yes; then
19325
19326cat >>confdefs.h <<\_ACEOF
19327#define HAVE___UMODDI3 1
19328_ACEOF
19329
19330fi
19331
19332
19333 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19334echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19335if test "${ac_cv_lib_gcc___main+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19337else
19338 ac_check_lib_save_LIBS=$LIBS
19339LIBS="-lgcc $LIBS"
19340cat >conftest.$ac_ext <<_ACEOF
19341/* confdefs.h. */
19342_ACEOF
19343cat confdefs.h >>conftest.$ac_ext
19344cat >>conftest.$ac_ext <<_ACEOF
19345/* end confdefs.h. */
19346
19347/* Override any GCC internal prototype to avoid an error.
19348 Use char because int might match the return type of a GCC
19349 builtin and then its argument prototype would still apply. */
19350#ifdef __cplusplus
19351extern "C"
19352#endif
19353char __main ();
19354int
19355main ()
19356{
19357return __main ();
19358 ;
19359 return 0;
19360}
19361_ACEOF
19362rm -f conftest.$ac_objext conftest$ac_exeext
19363if { (ac_try="$ac_link"
19364case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19367esac
19368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_link") 2>conftest.er1
19370 ac_status=$?
19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19377 { (case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19380esac
19381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_try") 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19390esac
19391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_try") 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_cv_lib_gcc___main=yes
19397else
19398 echo "$as_me: failed program was:" >&5
19399sed 's/^/| /' conftest.$ac_ext >&5
19400
19401 ac_cv_lib_gcc___main=no
19402fi
19403
19404rm -f core conftest.err conftest.$ac_objext \
19405 conftest$ac_exeext conftest.$ac_ext
19406LIBS=$ac_check_lib_save_LIBS
19407fi
19408{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19409echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19410if test $ac_cv_lib_gcc___main = yes; then
19411
19412cat >>confdefs.h <<\_ACEOF
19413#define HAVE___MAIN 1
19414_ACEOF
19415
19416fi
19417
19418 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19419echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19420if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19422else
19423 ac_check_lib_save_LIBS=$LIBS
19424LIBS="-lgcc $LIBS"
19425cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
19431
19432/* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19435#ifdef __cplusplus
19436extern "C"
19437#endif
19438char __cmpdi2 ();
19439int
19440main ()
19441{
19442return __cmpdi2 ();
19443 ;
19444 return 0;
19445}
19446_ACEOF
19447rm -f conftest.$ac_objext conftest$ac_exeext
19448if { (ac_try="$ac_link"
19449case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452esac
19453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19462 { (case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19465esac
19466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_try") 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest$ac_exeext'
19472 { (case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475esac
19476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_try") 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_lib_gcc___cmpdi2=yes
19482else
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_cv_lib_gcc___cmpdi2=no
19487fi
19488
19489rm -f core conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19491LIBS=$ac_check_lib_save_LIBS
19492fi
19493{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19494echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19495if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19496
19497cat >>confdefs.h <<\_ACEOF
19498#define HAVE___CMPDI2 1
19499_ACEOF
19500
19501fi
19502
19503fi
19504
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019505if test "$llvm_cv_os_type" = "MingW" ; then
19506 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19507echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19508 cat >conftest.$ac_ext <<_ACEOF
19509#include <windows.h>
19510#include <imagehlp.h>
19511extern void foo(PENUMLOADED_MODULES_CALLBACK);
19512extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19513_ACEOF
19514rm -f conftest.$ac_objext
19515if { (ac_try="$ac_compile"
19516case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519esac
19520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_compile") 2>conftest.er1
19522 ac_status=$?
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } &&
19528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532esac
19533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542esac
19543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_try") 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548
19549 { echo "$as_me:$LINENO: result: yes" >&5
19550echo "${ECHO_T}yes" >&6; }
19551 llvm_cv_win32_elmcb_pcstr="PCSTR"
19552
19553else
19554 echo "$as_me: failed program was:" >&5
19555sed 's/^/| /' conftest.$ac_ext >&5
19556
19557
19558 { echo "$as_me:$LINENO: result: no" >&5
19559echo "${ECHO_T}no" >&6; }
19560 llvm_cv_win32_elmcb_pcstr="PSTR"
19561
19562fi
19563
19564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565
19566cat >>confdefs.h <<_ACEOF
19567#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19568_ACEOF
19569
19570fi
19571
Torok Edwin871384f2010-01-26 08:50:50 +000019572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019573{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19574echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19575if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019577else
Reid Spencera773bd52006-08-04 18:18:08 +000019578 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019579ac_cpp='$CXXCPP $CPPFLAGS'
19580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019584 cat >conftest.$ac_ext <<_ACEOF
19585/* confdefs.h. */
19586_ACEOF
19587cat confdefs.h >>conftest.$ac_ext
19588cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019589/* end confdefs.h. */
19590#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019591int
19592main ()
19593{
19594float f; isnan(f);
19595 ;
19596 return 0;
19597}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019598_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019599rm -f conftest.$ac_objext
19600if { (ac_try="$ac_compile"
19601case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19604esac
19605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_compile") 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } &&
19613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19614 { (case "(($ac_try" in
19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616 *) ac_try_echo=$ac_try;;
19617esac
19618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619 (eval "$ac_try") 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; } &&
19623 { ac_try='test -s conftest.$ac_objext'
19624 { (case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_try") 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019633 ac_cv_func_isnan_in_math_h=yes
19634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019635 echo "$as_me: failed program was:" >&5
19636sed 's/^/| /' conftest.$ac_ext >&5
19637
19638 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019639fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019640
Reid Spencera773bd52006-08-04 18:18:08 +000019641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019642 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019643ac_cpp='$CPP $CPPFLAGS'
19644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19646ac_compiler_gnu=$ac_cv_c_compiler_gnu
19647
19648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019649{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19650echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019651
19652
19653if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019655cat >>confdefs.h <<\_ACEOF
19656#define HAVE_ISNAN_IN_MATH_H 1
19657_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019658
Reid Spencerabec8f92004-10-27 23:03:44 +000019659fi
19660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019661{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19662echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19663if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019665else
Reid Spencera773bd52006-08-04 18:18:08 +000019666 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019667ac_cpp='$CXXCPP $CPPFLAGS'
19668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019672 cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019677/* end confdefs.h. */
19678#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019679int
19680main ()
19681{
19682float f; isnan(f);
19683 ;
19684 return 0;
19685}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019686_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019687rm -f conftest.$ac_objext
19688if { (ac_try="$ac_compile"
19689case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19692esac
19693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_compile") 2>conftest.er1
19695 ac_status=$?
19696 grep -v '^ *+' conftest.er1 >conftest.err
19697 rm -f conftest.er1
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19702 { (case "(($ac_try" in
19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704 *) ac_try_echo=$ac_try;;
19705esac
19706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19707 (eval "$ac_try") 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; } &&
19711 { ac_try='test -s conftest.$ac_objext'
19712 { (case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715esac
19716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_try") 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019721 ac_cv_func_isnan_in_cmath=yes
19722else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019723 echo "$as_me: failed program was:" >&5
19724sed 's/^/| /' conftest.$ac_ext >&5
19725
19726 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019728
Reid Spencera773bd52006-08-04 18:18:08 +000019729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019730 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019731ac_cpp='$CPP $CPPFLAGS'
19732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734ac_compiler_gnu=$ac_cv_c_compiler_gnu
19735
19736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019737{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19738echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019739
19740if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019742cat >>confdefs.h <<\_ACEOF
19743#define HAVE_ISNAN_IN_CMATH 1
19744_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019745
Reid Spencerabec8f92004-10-27 23:03:44 +000019746fi
19747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019748{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19749echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19750if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019752else
Reid Spencera773bd52006-08-04 18:18:08 +000019753 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019754ac_cpp='$CXXCPP $CPPFLAGS'
19755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019759 cat >conftest.$ac_ext <<_ACEOF
19760/* confdefs.h. */
19761_ACEOF
19762cat confdefs.h >>conftest.$ac_ext
19763cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019764/* end confdefs.h. */
19765#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019766int
19767main ()
19768{
19769float f; std::isnan(f);
19770 ;
19771 return 0;
19772}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019773_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019774rm -f conftest.$ac_objext
19775if { (ac_try="$ac_compile"
19776case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779esac
19780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_compile") 2>conftest.er1
19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19789 { (case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19792esac
19793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_try") 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try='test -s conftest.$ac_objext'
19799 { (case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802esac
19803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_try") 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019808 ac_cv_func_std_isnan_in_cmath=yes
19809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019810 echo "$as_me: failed program was:" >&5
19811sed 's/^/| /' conftest.$ac_ext >&5
19812
19813 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019815
Reid Spencera773bd52006-08-04 18:18:08 +000019816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019817 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019818ac_cpp='$CPP $CPPFLAGS'
19819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19821ac_compiler_gnu=$ac_cv_c_compiler_gnu
19822
19823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019824{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19825echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019826
19827if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019829cat >>confdefs.h <<\_ACEOF
19830#define HAVE_STD_ISNAN_IN_CMATH 1
19831_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019832
Reid Spencerabec8f92004-10-27 23:03:44 +000019833fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019834
19835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019836{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19837echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19838if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019840else
Reid Spencera773bd52006-08-04 18:18:08 +000019841 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019842ac_cpp='$CXXCPP $CPPFLAGS'
19843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019847 cat >conftest.$ac_ext <<_ACEOF
19848/* confdefs.h. */
19849_ACEOF
19850cat confdefs.h >>conftest.$ac_ext
19851cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019852/* end confdefs.h. */
19853#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019854int
19855main ()
19856{
19857float f; isinf(f);
19858 ;
19859 return 0;
19860}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019861_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019862rm -f conftest.$ac_objext
19863if { (ac_try="$ac_compile"
19864case "(($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_compile") 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19877 { (case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880esac
19881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_try") 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try='test -s conftest.$ac_objext'
19887 { (case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890esac
19891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_try") 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019896 ac_cv_func_isinf_in_math_h=yes
19897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019898 echo "$as_me: failed program was:" >&5
19899sed 's/^/| /' conftest.$ac_ext >&5
19900
19901 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019903
Reid Spencera773bd52006-08-04 18:18:08 +000019904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019905 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019906ac_cpp='$CPP $CPPFLAGS'
19907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909ac_compiler_gnu=$ac_cv_c_compiler_gnu
19910
19911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019912{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19913echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019914
19915if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019917cat >>confdefs.h <<\_ACEOF
19918#define HAVE_ISINF_IN_MATH_H 1
19919_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019920
Reid Spencerabec8f92004-10-27 23:03:44 +000019921fi
19922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019923{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19924echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19925if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19926 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019927else
Reid Spencera773bd52006-08-04 18:18:08 +000019928 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019929ac_cpp='$CXXCPP $CPPFLAGS'
19930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019934 cat >conftest.$ac_ext <<_ACEOF
19935/* confdefs.h. */
19936_ACEOF
19937cat confdefs.h >>conftest.$ac_ext
19938cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019939/* end confdefs.h. */
19940#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019941int
19942main ()
19943{
19944float f; isinf(f);
19945 ;
19946 return 0;
19947}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019948_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019949rm -f conftest.$ac_objext
19950if { (ac_try="$ac_compile"
19951case "(($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_compile") 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } &&
19963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19964 { (case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19967esac
19968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_try") 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977esac
19978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019983 ac_cv_func_isinf_in_cmath=yes
19984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019985 echo "$as_me: failed program was:" >&5
19986sed 's/^/| /' conftest.$ac_ext >&5
19987
19988 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019990
Reid Spencera773bd52006-08-04 18:18:08 +000019991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019992 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019993ac_cpp='$CPP $CPPFLAGS'
19994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996ac_compiler_gnu=$ac_cv_c_compiler_gnu
19997
19998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019999{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20000echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020001
20002if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020004cat >>confdefs.h <<\_ACEOF
20005#define HAVE_ISINF_IN_CMATH 1
20006_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020007
Reid Spencerabec8f92004-10-27 23:03:44 +000020008fi
20009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020010{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20011echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20012if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020014else
Reid Spencera773bd52006-08-04 18:18:08 +000020015 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020016ac_cpp='$CXXCPP $CPPFLAGS'
20017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020021 cat >conftest.$ac_ext <<_ACEOF
20022/* confdefs.h. */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020026/* end confdefs.h. */
20027#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020028int
20029main ()
20030{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020031float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020032 ;
20033 return 0;
20034}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020035_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020036rm -f conftest.$ac_objext
20037if { (ac_try="$ac_compile"
20038case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041esac
20042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_compile") 2>conftest.er1
20044 ac_status=$?
20045 grep -v '^ *+' conftest.er1 >conftest.err
20046 rm -f conftest.er1
20047 cat conftest.err >&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } &&
20050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20051 { (case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20054esac
20055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_try") 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (case "(($ac_try" in
20062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063 *) ac_try_echo=$ac_try;;
20064esac
20065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066 (eval "$ac_try") 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020070 ac_cv_func_std_isinf_in_cmath=yes
20071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020072 echo "$as_me: failed program was:" >&5
20073sed 's/^/| /' conftest.$ac_ext >&5
20074
20075 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020077
Reid Spencera773bd52006-08-04 18:18:08 +000020078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020079 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020080ac_cpp='$CPP $CPPFLAGS'
20081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084
20085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020086{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20087echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020088
20089if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020091cat >>confdefs.h <<\_ACEOF
20092#define HAVE_STD_ISINF_IN_CMATH 1
20093_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020094
Reid Spencerabec8f92004-10-27 23:03:44 +000020095fi
20096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020097{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20098echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20099if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020101else
Reid Spencera773bd52006-08-04 18:18:08 +000020102 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020103ac_cpp='$CXXCPP $CPPFLAGS'
20104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020108 cat >conftest.$ac_ext <<_ACEOF
20109/* confdefs.h. */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020113/* end confdefs.h. */
20114#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020115int
20116main ()
20117{
20118float f; finite(f);
20119 ;
20120 return 0;
20121}
Brian Gaeked59a6472004-07-21 03:33:58 +000020122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020123rm -f conftest.$ac_objext
20124if { (ac_try="$ac_compile"
20125case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20128esac
20129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_compile") 2>conftest.er1
20131 ac_status=$?
20132 grep -v '^ *+' conftest.er1 >conftest.err
20133 rm -f conftest.er1
20134 cat conftest.err >&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); } &&
20137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20138 { (case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141esac
20142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_try") 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; } &&
20147 { ac_try='test -s conftest.$ac_objext'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151esac
20152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020157 ac_cv_func_finite_in_ieeefp_h=yes
20158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020159 echo "$as_me: failed program was:" >&5
20160sed 's/^/| /' conftest.$ac_ext >&5
20161
20162 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020163fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020164
Reid Spencera773bd52006-08-04 18:18:08 +000020165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020166 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020167ac_cpp='$CPP $CPPFLAGS'
20168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20170ac_compiler_gnu=$ac_cv_c_compiler_gnu
20171
20172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020173{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20174echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020175
Brian Gaeke6802b552004-10-28 05:06:45 +000020176if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020178cat >>confdefs.h <<\_ACEOF
20179#define HAVE_FINITE_IN_IEEEFP_H 1
20180_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020181
Reid Spencerabec8f92004-10-27 23:03:44 +000020182fi
20183
20184
20185
Reid Spencer30fe5262007-01-20 07:48:49 +000020186if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020187
20188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020189for ac_header in stdlib.h unistd.h
20190do
20191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197fi
20198ac_res=`eval echo '${'$as_ac_Header'}'`
20199 { echo "$as_me:$LINENO: result: $ac_res" >&5
20200echo "${ECHO_T}$ac_res" >&6; }
20201else
20202 # Is the header compilable?
20203{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20205cat >conftest.$ac_ext <<_ACEOF
20206/* confdefs.h. */
20207_ACEOF
20208cat confdefs.h >>conftest.$ac_ext
20209cat >>conftest.$ac_ext <<_ACEOF
20210/* end confdefs.h. */
20211$ac_includes_default
20212#include <$ac_header>
20213_ACEOF
20214rm -f conftest.$ac_objext
20215if { (ac_try="$ac_compile"
20216case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20219esac
20220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_compile") 2>conftest.er1
20222 ac_status=$?
20223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20229 { (case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20232esac
20233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_try") 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20248 ac_header_compiler=yes
20249else
20250 echo "$as_me: failed program was:" >&5
20251sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020253 ac_header_compiler=no
20254fi
20255
20256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20258echo "${ECHO_T}$ac_header_compiler" >&6; }
20259
20260# Is the header present?
20261{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20262echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20263cat >conftest.$ac_ext <<_ACEOF
20264/* confdefs.h. */
20265_ACEOF
20266cat confdefs.h >>conftest.$ac_ext
20267cat >>conftest.$ac_ext <<_ACEOF
20268/* end confdefs.h. */
20269#include <$ac_header>
20270_ACEOF
20271if { (ac_try="$ac_cpp conftest.$ac_ext"
20272case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20275esac
20276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20278 ac_status=$?
20279 grep -v '^ *+' conftest.er1 >conftest.err
20280 rm -f conftest.er1
20281 cat conftest.err >&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } >/dev/null; then
20284 if test -s conftest.err; then
20285 ac_cpp_err=$ac_c_preproc_warn_flag
20286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20287 else
20288 ac_cpp_err=
20289 fi
20290else
20291 ac_cpp_err=yes
20292fi
20293if test -z "$ac_cpp_err"; then
20294 ac_header_preproc=yes
20295else
20296 echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ac_header_preproc=no
20300fi
20301
20302rm -f conftest.err conftest.$ac_ext
20303{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20304echo "${ECHO_T}$ac_header_preproc" >&6; }
20305
20306# So? What about this header?
20307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20308 yes:no: )
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20310echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20312echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20313 ac_header_preproc=yes
20314 ;;
20315 no:yes:* )
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20317echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20319echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20321echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20323echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20325echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20327echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20328 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020329## ------------------------------------ ##
20330## Report this to http://llvm.org/bugs/ ##
20331## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020332_ASBOX
20333 ) | sed "s/^/$as_me: WARNING: /" >&2
20334 ;;
20335esac
20336{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20340else
20341 eval "$as_ac_Header=\$ac_header_preproc"
20342fi
20343ac_res=`eval echo '${'$as_ac_Header'}'`
20344 { echo "$as_me:$LINENO: result: $ac_res" >&5
20345echo "${ECHO_T}$ac_res" >&6; }
20346
20347fi
20348if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020349 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020351_ACEOF
20352
20353fi
20354
20355done
20356
20357
20358for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020359do
20360as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20361{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20362echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20363if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20365else
20366 cat >conftest.$ac_ext <<_ACEOF
20367/* confdefs.h. */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h. */
20372/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20374#define $ac_func innocuous_$ac_func
20375
20376/* System header to define __stub macros and hopefully few prototypes,
20377 which can conflict with char $ac_func (); below.
20378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20379 <limits.h> exists even on freestanding compilers. */
20380
20381#ifdef __STDC__
20382# include <limits.h>
20383#else
20384# include <assert.h>
20385#endif
20386
20387#undef $ac_func
20388
20389/* Override any GCC internal prototype to avoid an error.
20390 Use char because int might match the return type of a GCC
20391 builtin and then its argument prototype would still apply. */
20392#ifdef __cplusplus
20393extern "C"
20394#endif
20395char $ac_func ();
20396/* The GNU C library defines this for functions which it implements
20397 to always fail with ENOSYS. Some functions are actually named
20398 something starting with __ and the normal name is an alias. */
20399#if defined __stub_$ac_func || defined __stub___$ac_func
20400choke me
20401#endif
20402
20403int
20404main ()
20405{
20406return $ac_func ();
20407 ;
20408 return 0;
20409}
20410_ACEOF
20411rm -f conftest.$ac_objext conftest$ac_exeext
20412if { (ac_try="$ac_link"
20413case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20416esac
20417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_link") 2>conftest.er1
20419 ac_status=$?
20420 grep -v '^ *+' conftest.er1 >conftest.err
20421 rm -f conftest.er1
20422 cat conftest.err >&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } &&
20425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20426 { (case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429esac
20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_try") 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest$ac_exeext'
20436 { (case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20439esac
20440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_try") 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20445 eval "$as_ac_var=yes"
20446else
20447 echo "$as_me: failed program was:" >&5
20448sed 's/^/| /' conftest.$ac_ext >&5
20449
20450 eval "$as_ac_var=no"
20451fi
20452
20453rm -f core conftest.err conftest.$ac_objext \
20454 conftest$ac_exeext conftest.$ac_ext
20455fi
20456ac_res=`eval echo '${'$as_ac_var'}'`
20457 { echo "$as_me:$LINENO: result: $ac_res" >&5
20458echo "${ECHO_T}$ac_res" >&6; }
20459if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020460 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020462_ACEOF
20463
20464fi
20465done
20466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020467{ echo "$as_me:$LINENO: checking for working mmap" >&5
20468echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20469if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020471else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020472 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020473 ac_cv_func_mmap_fixed_mapped=no
20474else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020475 cat >conftest.$ac_ext <<_ACEOF
20476/* confdefs.h. */
20477_ACEOF
20478cat confdefs.h >>conftest.$ac_ext
20479cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020480/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020481$ac_includes_default
20482/* malloc might have been renamed as rpl_malloc. */
20483#undef malloc
20484
20485/* Thanks to Mike Haertel and Jim Avera for this test.
20486 Here is a matrix of mmap possibilities:
20487 mmap private not fixed
20488 mmap private fixed at somewhere currently unmapped
20489 mmap private fixed at somewhere already mapped
20490 mmap shared not fixed
20491 mmap shared fixed at somewhere currently unmapped
20492 mmap shared fixed at somewhere already mapped
20493 For private mappings, we should verify that changes cannot be read()
20494 back from the file, nor mmap's back from the file at a different
20495 address. (There have been systems where private was not correctly
20496 implemented like the infamous i386 svr4.0, and systems where the
20497 VM page cache was not coherent with the file system buffer cache
20498 like early versions of FreeBSD and possibly contemporary NetBSD.)
20499 For shared mappings, we should conversely verify that changes get
20500 propagated back to all the places they're supposed to be.
20501
20502 Grep wants private fixed already mapped.
20503 The main things grep needs to know about mmap are:
20504 * does it exist and is it safe to write into the mmap'd area
20505 * how to use it (BSD variants) */
20506
20507#include <fcntl.h>
20508#include <sys/mman.h>
20509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020510#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020511char *malloc ();
20512#endif
20513
20514/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020515#if !HAVE_GETPAGESIZE
20516/* Assume that all systems that can run configure have sys/param.h. */
20517# if !HAVE_SYS_PARAM_H
20518# define HAVE_SYS_PARAM_H 1
20519# endif
20520
John Criswell7a73b802003-06-30 21:59:07 +000020521# ifdef _SC_PAGESIZE
20522# define getpagesize() sysconf(_SC_PAGESIZE)
20523# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020524# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020525# include <sys/param.h>
20526# ifdef EXEC_PAGESIZE
20527# define getpagesize() EXEC_PAGESIZE
20528# else /* no EXEC_PAGESIZE */
20529# ifdef NBPG
20530# define getpagesize() NBPG * CLSIZE
20531# ifndef CLSIZE
20532# define CLSIZE 1
20533# endif /* no CLSIZE */
20534# else /* no NBPG */
20535# ifdef NBPC
20536# define getpagesize() NBPC
20537# else /* no NBPC */
20538# ifdef PAGESIZE
20539# define getpagesize() PAGESIZE
20540# endif /* PAGESIZE */
20541# endif /* no NBPC */
20542# endif /* no NBPG */
20543# endif /* no EXEC_PAGESIZE */
20544# else /* no HAVE_SYS_PARAM_H */
20545# define getpagesize() 8192 /* punt totally */
20546# endif /* no HAVE_SYS_PARAM_H */
20547# endif /* no _SC_PAGESIZE */
20548
20549#endif /* no HAVE_GETPAGESIZE */
20550
20551int
20552main ()
20553{
20554 char *data, *data2, *data3;
20555 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020556 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020557
20558 pagesize = getpagesize ();
20559
20560 /* First, make a file with some known garbage in it. */
20561 data = (char *) malloc (pagesize);
20562 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020563 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020564 for (i = 0; i < pagesize; ++i)
20565 *(data + i) = rand ();
20566 umask (0);
20567 fd = creat ("conftest.mmap", 0600);
20568 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020569 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020570 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020572 close (fd);
20573
20574 /* Next, try to mmap the file at a fixed address which already has
20575 something else allocated at it. If we can, also make sure that
20576 we see the same garbage. */
20577 fd = open ("conftest.mmap", O_RDWR);
20578 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579 return 1;
20580 data2 = (char *) malloc (2 * pagesize);
20581 if (!data2)
20582 return 1;
20583 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020584 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020585 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020587 for (i = 0; i < pagesize; ++i)
20588 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020590
20591 /* Finally, make sure that changes to the mapped area do not
20592 percolate back to the file as seen by read(). (This is a bug on
20593 some variants of i386 svr4.0.) */
20594 for (i = 0; i < pagesize; ++i)
20595 *(data2 + i) = *(data2 + i) + 1;
20596 data3 = (char *) malloc (pagesize);
20597 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020598 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020599 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020601 for (i = 0; i < pagesize; ++i)
20602 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020603 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020604 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020605 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020606}
20607_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020608rm -f conftest$ac_exeext
20609if { (ac_try="$ac_link"
20610case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613esac
20614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_link") 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20619 { (case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20622esac
20623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_try") 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020628 ac_cv_func_mmap_fixed_mapped=yes
20629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020630 echo "$as_me: program exited with status $ac_status" >&5
20631echo "$as_me: failed program was:" >&5
20632sed 's/^/| /' conftest.$ac_ext >&5
20633
20634( exit $ac_status )
20635ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020637rm -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 +000020638fi
Reid Spencera773bd52006-08-04 18:18:08 +000020639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020640
John Criswell7a73b802003-06-30 21:59:07 +000020641fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020642{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20643echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020644if test $ac_cv_func_mmap_fixed_mapped = yes; then
20645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020646cat >>confdefs.h <<\_ACEOF
20647#define HAVE_MMAP 1
20648_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020649
20650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020651rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20654echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20655if test "${ac_cv_func_mmap_file+set}" = set; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020657else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020658 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020659ac_cpp='$CPP $CPPFLAGS'
20660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20662ac_compiler_gnu=$ac_cv_c_compiler_gnu
20663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020664 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020665 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020666else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020669 /* confdefs.h. */
20670_ACEOF
20671cat confdefs.h >>conftest.$ac_ext
20672cat >>conftest.$ac_ext <<_ACEOF
20673/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020674
John Criswell7a73b802003-06-30 21:59:07 +000020675#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020676#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020677#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020678
20679int
20680main ()
20681{
John Criswell7a73b802003-06-30 21:59:07 +000020682
20683 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020684 fd = creat ("foo",0777);
20685 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20686 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020687 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020688 ;
20689 return 0;
20690}
John Criswell7a73b802003-06-30 21:59:07 +000020691_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692rm -f conftest$ac_exeext
20693if { (ac_try="$ac_link"
20694case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20697esac
20698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_link") 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706esac
20707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
20709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020712 ac_cv_func_mmap_file=yes
20713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020714 echo "$as_me: program exited with status $ac_status" >&5
20715echo "$as_me: failed program was:" >&5
20716sed 's/^/| /' conftest.$ac_ext >&5
20717
20718( exit $ac_status )
20719ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020721rm -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 +000020722fi
Reid Spencera773bd52006-08-04 18:18:08 +000020723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020724
John Criswell7a73b802003-06-30 21:59:07 +000020725 ac_ext=c
20726ac_cpp='$CPP $CPPFLAGS'
20727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20729ac_compiler_gnu=$ac_cv_c_compiler_gnu
20730
20731
20732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020733{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20734echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020735if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020737cat >>confdefs.h <<\_ACEOF
20738#define HAVE_MMAP_FILE
20739_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020740
20741 MMAP_FILE=yes
20742
20743fi
20744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020745 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20746echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20747if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020749else
Reid Spencer582a23c2004-12-29 07:07:57 +000020750 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020751 ac_cv_need_dev_zero_for_mmap=yes
20752 else
20753 ac_cv_need_dev_zero_for_mmap=no
20754 fi
20755
20756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020757{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20758echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020759if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020761cat >>confdefs.h <<\_ACEOF
20762#define NEED_DEV_ZERO_FOR_MMAP 1
20763_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020764
20765fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020766
Reid Spencer30fe5262007-01-20 07:48:49 +000020767 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20768 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020769 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20770echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020771 fi
20772 if test "$ac_cv_func_mmap_file" = "no"
20773 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20775echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020776 fi
John Criswellb13092b2003-07-22 21:00:24 +000020777fi
John Criswell7a73b802003-06-30 21:59:07 +000020778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020779{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20780echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020781ac_ext=cpp
20782ac_cpp='$CXXCPP $CPPFLAGS'
20783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020787cat >conftest.$ac_ext <<_ACEOF
20788/* confdefs.h. */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020792/* end confdefs.h. */
20793int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020794 volatile unsigned long val = 1;
20795 __sync_synchronize();
20796 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020797 __sync_add_and_fetch(&val, 1);
20798 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020799 return 0;
20800 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020801
20802_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020803rm -f conftest.$ac_objext conftest$ac_exeext
20804if { (ac_try="$ac_link"
20805case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20808esac
20809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_link") 2>conftest.er1
20811 ac_status=$?
20812 grep -v '^ *+' conftest.er1 >conftest.err
20813 rm -f conftest.er1
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20818 { (case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20821esac
20822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_try") 2>&5
20824 ac_status=$?
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; } &&
20827 { ac_try='test -s conftest$ac_exeext'
20828 { (case "(($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_try") 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020837 ac_ext=c
20838ac_cpp='$CPP $CPPFLAGS'
20839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841ac_compiler_gnu=$ac_cv_c_compiler_gnu
20842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020843 { echo "$as_me:$LINENO: result: yes" >&5
20844echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020846cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020847#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020848_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020849
Owen Andersond4b272b2009-05-18 23:58:51 +000020850else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020851 echo "$as_me: failed program was:" >&5
20852sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020854 { echo "$as_me:$LINENO: result: no" >&5
20855echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020857cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020858#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020859_ACEOF
20860
20861 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20862echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020864
Owen Andersond4b272b2009-05-18 23:58:51 +000020865rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020866 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020867
John Criswell7a73b802003-06-30 21:59:07 +000020868
Nick Lewycky4372e692009-09-29 06:18:23 +000020869if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020870 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20871echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20872if test "${llvm_cv_linux_mixed+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020874else
20875 ac_ext=c
20876ac_cpp='$CPP $CPPFLAGS'
20877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879ac_compiler_gnu=$ac_cv_c_compiler_gnu
20880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020881 cat >conftest.$ac_ext <<_ACEOF
20882/* confdefs.h. */
20883_ACEOF
20884cat confdefs.h >>conftest.$ac_ext
20885cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020886/* end confdefs.h. */
20887#ifndef __x86_64__
20888 error: Not x86-64 even if uname says so!
20889 #endif
20890
20891int
20892main ()
20893{
20894
20895 ;
20896 return 0;
20897}
20898_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020899rm -f conftest.$ac_objext
20900if { (ac_try="$ac_compile"
20901case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904esac
20905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_compile") 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } &&
20913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20914 { (case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20917esac
20918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_try") 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; } &&
20923 { ac_try='test -s conftest.$ac_objext'
20924 { (case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927esac
20928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_try") 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020933 llvm_cv_linux_mixed=no
20934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020935 echo "$as_me: failed program was:" >&5
20936sed 's/^/| /' conftest.$ac_ext >&5
20937
20938 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020940
Nick Lewycky4372e692009-09-29 06:18:23 +000020941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 ac_ext=c
20943ac_cpp='$CPP $CPPFLAGS'
20944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946ac_compiler_gnu=$ac_cv_c_compiler_gnu
20947
20948
20949fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020950{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20951echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020952
20953 if test "$llvm_cv_linux_mixed" = "yes"; then
20954 llvm_cv_target_arch="x86"
20955 ARCH="x86"
20956 fi
20957fi
20958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020959
Reid Spencer9372f152007-07-30 20:13:24 +000020960for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020961do
20962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20963{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20965if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20967else
20968 cat >conftest.$ac_ext <<_ACEOF
20969/* confdefs.h. */
20970_ACEOF
20971cat confdefs.h >>conftest.$ac_ext
20972cat >>conftest.$ac_ext <<_ACEOF
20973/* end confdefs.h. */
20974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20976#define $ac_func innocuous_$ac_func
20977
20978/* System header to define __stub macros and hopefully few prototypes,
20979 which can conflict with char $ac_func (); below.
20980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20981 <limits.h> exists even on freestanding compilers. */
20982
20983#ifdef __STDC__
20984# include <limits.h>
20985#else
20986# include <assert.h>
20987#endif
20988
20989#undef $ac_func
20990
20991/* Override any GCC internal prototype to avoid an error.
20992 Use char because int might match the return type of a GCC
20993 builtin and then its argument prototype would still apply. */
20994#ifdef __cplusplus
20995extern "C"
20996#endif
20997char $ac_func ();
20998/* The GNU C library defines this for functions which it implements
20999 to always fail with ENOSYS. Some functions are actually named
21000 something starting with __ and the normal name is an alias. */
21001#if defined __stub_$ac_func || defined __stub___$ac_func
21002choke me
21003#endif
21004
21005int
21006main ()
21007{
21008return $ac_func ();
21009 ;
21010 return 0;
21011}
21012_ACEOF
21013rm -f conftest.$ac_objext conftest$ac_exeext
21014if { (ac_try="$ac_link"
21015case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21018esac
21019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_link") 2>conftest.er1
21021 ac_status=$?
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
21027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21028 { (case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21031esac
21032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033 (eval "$ac_try") 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest$ac_exeext'
21038 { (case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041esac
21042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_try") 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047 eval "$as_ac_var=yes"
21048else
21049 echo "$as_me: failed program was:" >&5
21050sed 's/^/| /' conftest.$ac_ext >&5
21051
21052 eval "$as_ac_var=no"
21053fi
21054
21055rm -f core conftest.err conftest.$ac_objext \
21056 conftest$ac_exeext conftest.$ac_ext
21057fi
21058ac_res=`eval echo '${'$as_ac_var'}'`
21059 { echo "$as_me:$LINENO: result: $ac_res" >&5
21060echo "${ECHO_T}$ac_res" >&6; }
21061if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021062 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021064_ACEOF
21065
21066fi
21067done
21068
21069
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021070SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021071
21072
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021073SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21074
21075
Jeff Cohen28783c32007-01-12 18:22:38 +000021076if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021077 prefix="/usr/local"
21078fi
Reid Spencere9de0912004-08-20 09:03:57 +000021079eval LLVM_PREFIX="${prefix}";
21080eval LLVM_BINDIR="${prefix}/bin";
21081eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021082eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021083eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021084eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021085eval LLVM_INCLUDEDIR="${prefix}/include";
21086eval LLVM_INFODIR="${prefix}/info";
21087eval LLVM_MANDIR="${prefix}/man";
21088LLVM_CONFIGTIME=`date`
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021100if test "${ENABLE_TIMESTAMPS}" = "0"; then
21101 LLVM_CONFIGTIME="(timestamp not enabled)"
21102fi
21103
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021104
Reid Spencere9de0912004-08-20 09:03:57 +000021105cat >>confdefs.h <<_ACEOF
21106#define LLVM_PREFIX "$LLVM_PREFIX"
21107_ACEOF
21108
21109
21110cat >>confdefs.h <<_ACEOF
21111#define LLVM_BINDIR "$LLVM_BINDIR"
21112_ACEOF
21113
21114
21115cat >>confdefs.h <<_ACEOF
21116#define LLVM_LIBDIR "$LLVM_LIBDIR"
21117_ACEOF
21118
21119
21120cat >>confdefs.h <<_ACEOF
21121#define LLVM_DATADIR "$LLVM_DATADIR"
21122_ACEOF
21123
21124
21125cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021126#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021127_ACEOF
21128
21129
21130cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021131#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021132_ACEOF
21133
21134
21135cat >>confdefs.h <<_ACEOF
21136#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21137_ACEOF
21138
21139
21140cat >>confdefs.h <<_ACEOF
21141#define LLVM_INFODIR "$LLVM_INFODIR"
21142_ACEOF
21143
21144
21145cat >>confdefs.h <<_ACEOF
21146#define LLVM_MANDIR "$LLVM_MANDIR"
21147_ACEOF
21148
21149
21150cat >>confdefs.h <<_ACEOF
21151#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21152_ACEOF
21153
21154
Eric Christopher790e11c2007-12-01 00:34:39 +000021155cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021156#define LLVM_HOSTTRIPLE "$host"
21157_ACEOF
21158
21159
21160cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021161#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021162_ACEOF
21163
21164
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021165if test "$BINDINGS_TO_BUILD" = auto ; then
21166 BINDINGS_TO_BUILD=""
21167 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21168 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21169 fi
21170fi
21171BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21172
21173
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021174ALL_BINDINGS=ocaml
21175
21176
Gordon Henriksenf0915682007-10-02 16:42:22 +000021177binding_prereqs_failed=0
21178for a_binding in $BINDINGS_TO_BUILD ; do
21179 case "$a_binding" in
21180 ocaml)
21181 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021182 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21183echo "$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 +000021184 binding_prereqs_failed=1
21185 fi
21186 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21188echo "$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 +000021189 binding_prereqs_failed=1
21190 fi
21191 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021192 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21193echo "$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 +000021194 fi
21195 if test "x$with_ocaml_libdir" != xauto ; then
21196 OCAML_LIBDIR=$with_ocaml_libdir
21197
21198 else
21199 ocaml_stdlib="`"$OCAMLC" -where`"
21200 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21201 then
21202 # ocaml stdlib is beneath our prefix; use stdlib
21203 OCAML_LIBDIR=$ocaml_stdlib
21204
21205 else
21206 # ocaml stdlib is outside our prefix; use libdir/ocaml
21207 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21208
21209 fi
21210 fi
21211 ;;
21212 esac
21213done
21214if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021215 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21216echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21217 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021218fi
21219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021220{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21221echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21222if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021224else
21225 ac_ext=cpp
21226ac_cpp='$CXXCPP $CPPFLAGS'
21227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21230
21231 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021232 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021233 cat >conftest.$ac_ext <<_ACEOF
21234/* confdefs.h. */
21235_ACEOF
21236cat confdefs.h >>conftest.$ac_ext
21237cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021238/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021239template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021240int
21241main ()
21242{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021243X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021244 ;
21245 return 0;
21246}
21247_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021248rm -f conftest.$ac_objext
21249if { (ac_try="$ac_compile"
21250case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253esac
21254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_compile") 2>conftest.er1
21256 ac_status=$?
21257 grep -v '^ *+' conftest.er1 >conftest.err
21258 rm -f conftest.er1
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } &&
21262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21263 { (case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21266esac
21267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_try") 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21276esac
21277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_try") 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021282 llvm_cv_cxx_visibility_inlines_hidden=yes
21283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021284 echo "$as_me: failed program was:" >&5
21285sed 's/^/| /' conftest.$ac_ext >&5
21286
21287 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021289
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291 CXXFLAGS="$oldcxxflags"
21292 ac_ext=c
21293ac_cpp='$CPP $CPPFLAGS'
21294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21296ac_compiler_gnu=$ac_cv_c_compiler_gnu
21297
21298
21299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21301echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021302if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21303 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21304
21305else
21306 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21307
21308fi
21309
Gordon Henriksenf0915682007-10-02 16:42:22 +000021310
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021311if test "$llvm_cv_link_use_r" = "yes" ; then
21312 RPATH="-Wl,-R"
21313else
21314 RPATH="-Wl,-rpath"
21315fi
21316
21317
21318if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21319 RDYNAMIC="-Wl,-export-dynamic"
21320else
21321 RDYNAMIC=""
21322fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021323
21324
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021325
Eric Christophera1cba682010-08-08 02:44:25 +000021326ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021327
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021328
21329
21330
21331
21332
Douglas Gregor1555a232009-06-16 20:12:29 +000021333ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21334
21335ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21336
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021337ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21338
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021339ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21340
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021341ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021342
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021343
Reid Spencera773bd52006-08-04 18:18:08 +000021344ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021345
Eric Christopher360fa9a2011-10-26 00:42:12 +000021346
Reid Spencerea949cf2006-08-16 00:45:38 +000021347ac_config_files="$ac_config_files llvm.spec"
21348
21349
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021350ac_config_files="$ac_config_files docs/doxygen.cfg"
21351
Eric Christopher63c09512012-02-02 00:16:55 +000021352
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021353if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021354 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021355fi
Eric Christopher63c09512012-02-02 00:16:55 +000021356if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021357 configh="include/clang/Config/config.h"
21358 doxy="docs/doxygen.cfg"
21359 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021360
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021361 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021362
21363fi
21364
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021365ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021366
Eric Christopher360fa9a2011-10-26 00:42:12 +000021367
Reid Spencera773bd52006-08-04 18:18:08 +000021368ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021369
Reid Spencera773bd52006-08-04 18:18:08 +000021370ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021371
21372
Reid Spencera773bd52006-08-04 18:18:08 +000021373ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021374
21375
Reid Spencera773bd52006-08-04 18:18:08 +000021376ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021377
21378
Reid Spencera773bd52006-08-04 18:18:08 +000021379ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021380
21381
Reid Spencer8b2e1412006-11-17 03:32:33 +000021382ac_config_commands="$ac_config_commands runtime/Makefile"
21383
21384
Reid Spencera773bd52006-08-04 18:18:08 +000021385ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021386
21387
Reid Spencera773bd52006-08-04 18:18:08 +000021388ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021389
21390
Bill Wendlingf24eb392009-01-04 23:12:30 +000021391ac_config_commands="$ac_config_commands unittests/Makefile"
21392
21393
Reid Spencera773bd52006-08-04 18:18:08 +000021394ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021395
21396
Reid Spencera773bd52006-08-04 18:18:08 +000021397ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021398
21399
Reid Spencera773bd52006-08-04 18:18:08 +000021400ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021401
21402
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021403ac_config_commands="$ac_config_commands bindings/Makefile"
21404
21405
21406ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21407
21408
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021409
John Criswell7a73b802003-06-30 21:59:07 +000021410cat >confcache <<\_ACEOF
21411# This file is a shell script that caches the results of configure
21412# tests run on this system so they can be shared between configure
21413# scripts and configure runs, see configure's option --config-cache.
21414# It is not useful on other systems. If it contains results you don't
21415# want to keep, you may remove or edit it.
21416#
21417# config.status only pays attention to the cache file if you give it
21418# the --recheck option to rerun configure.
21419#
John Criswell0c38eaf2003-09-10 15:17:25 +000021420# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021421# loading this file, other *unset* `ac_cv_foo' will be assigned the
21422# following values.
21423
21424_ACEOF
21425
21426# The following way of writing the cache mishandles newlines in values,
21427# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021428# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021429# Ultrix sh set writes to stderr and can't be redirected directly,
21430# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021431(
21432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21433 eval ac_val=\$$ac_var
21434 case $ac_val in #(
21435 *${as_nl}*)
21436 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021437 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21438echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021439 esac
21440 case $ac_var in #(
21441 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021442 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021443 esac ;;
21444 esac
21445 done
21446
John Criswell7a73b802003-06-30 21:59:07 +000021447 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21449 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021450 # `set' does not quote correctly, so add quotes (double-quote
21451 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021452 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021453 "s/'/'\\\\''/g;
21454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021455 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021456 *)
21457 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021459 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021460 esac |
21461 sort
21462) |
John Criswell7a73b802003-06-30 21:59:07 +000021463 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021464 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021465 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021466 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21468 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21470 :end' >>confcache
21471if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21472 if test -w "$cache_file"; then
21473 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021474 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21475echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021476 cat confcache >$cache_file
21477 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21479echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021480 fi
21481fi
21482rm -f confcache
21483
21484test "x$prefix" = xNONE && prefix=$ac_default_prefix
21485# Let make expand exec_prefix.
21486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21487
John Criswell7a73b802003-06-30 21:59:07 +000021488DEFS=-DHAVE_CONFIG_H
21489
John Criswell0c38eaf2003-09-10 15:17:25 +000021490ac_libobjs=
21491ac_ltlibobjs=
21492for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21493 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021495 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21497 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021498 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21499 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021500done
21501LIBOBJS=$ac_libobjs
21502
21503LTLIBOBJS=$ac_ltlibobjs
21504
21505
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021506if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021507 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21508Usually this means the macro was only invoked conditionally." >&5
21509echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21510Usually this means the macro was only invoked conditionally." >&2;}
21511 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021512fi
21513if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21515Usually this means the macro was only invoked conditionally." >&5
21516echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21517Usually this means the macro was only invoked conditionally." >&2;}
21518 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021519fi
John Criswell7a73b802003-06-30 21:59:07 +000021520
21521: ${CONFIG_STATUS=./config.status}
21522ac_clean_files_save=$ac_clean_files
21523ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021524{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21525echo "$as_me: creating $CONFIG_STATUS" >&6;}
21526cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021527#! $SHELL
21528# Generated by $as_me.
21529# Run this file to recreate the current configuration.
21530# Compiler output produced by configure, useful for debugging
21531# configure, is in config.log if it exists.
21532
21533debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021534ac_cs_recheck=false
21535ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021536SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021537_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021539cat >>$CONFIG_STATUS <<\_ACEOF
21540## --------------------- ##
21541## M4sh Initialization. ##
21542## --------------------- ##
21543
21544# Be Bourne compatible
21545if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021546 emulate sh
21547 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021549 # is contrary to our usage. Disable this feature.
21550 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021551 setopt NO_GLOB_SUBST
21552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021553 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021555BIN_SH=xpg4; export BIN_SH # for Tru64
21556DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021557
John Criswell7a73b802003-06-30 21:59:07 +000021558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559# PATH needs CR
21560# Avoid depending upon Character Ranges.
21561as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21562as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21563as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21564as_cr_digits='0123456789'
21565as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021566
21567# The user is always right.
21568if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021569 echo "#! /bin/sh" >conf$$.sh
21570 echo "exit 0" >>conf$$.sh
21571 chmod +x conf$$.sh
21572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21573 PATH_SEPARATOR=';'
21574 else
21575 PATH_SEPARATOR=:
21576 fi
21577 rm -f conf$$.sh
21578fi
21579
21580# Support unset when possible.
21581if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21582 as_unset=unset
21583else
21584 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021585fi
John Criswell7a73b802003-06-30 21:59:07 +000021586
Reid Spencera773bd52006-08-04 18:18:08 +000021587
21588# IFS
21589# We need space, tab and new line, in precisely that order. Quoting is
21590# there to prevent editors from complaining about space-tab.
21591# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21592# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021593as_nl='
21594'
Reid Spencera773bd52006-08-04 18:18:08 +000021595IFS=" "" $as_nl"
21596
21597# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021598case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021599 *[\\/]* ) as_myself=$0 ;;
21600 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021601for as_dir in $PATH
21602do
21603 IFS=$as_save_IFS
21604 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021605 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21606done
Reid Spencera773bd52006-08-04 18:18:08 +000021607IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021608
Reid Spencera773bd52006-08-04 18:18:08 +000021609 ;;
21610esac
21611# We did not find ourselves, most probably we were run as `sh COMMAND'
21612# in which case we are not to be found in the path.
21613if test "x$as_myself" = x; then
21614 as_myself=$0
21615fi
21616if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21618 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021619fi
21620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021621# Work around bugs in pre-3.0 UWIN ksh.
21622for as_var in ENV MAIL MAILPATH
21623do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021624done
21625PS1='$ '
21626PS2='> '
21627PS4='+ '
21628
21629# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630for as_var in \
21631 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21632 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21633 LC_TELEPHONE LC_TIME
21634do
21635 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21636 eval $as_var=C; export $as_var
21637 else
21638 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021639 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021640done
Torok Edwin871384f2010-01-26 08:50:50 +000021641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021643if expr a : '\(a\)' >/dev/null 2>&1 &&
21644 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21645 as_expr=expr
21646else
21647 as_expr=false
21648fi
21649
21650if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21651 as_basename=basename
21652else
21653 as_basename=false
21654fi
21655
21656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021657# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021658as_me=`$as_basename -- "$0" ||
21659$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21660 X"$0" : 'X\(//\)$' \| \
21661 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021663 sed '/^.*\/\([^/][^/]*\)\/*$/{
21664 s//\1/
21665 q
21666 }
21667 /^X\/\(\/\/\)$/{
21668 s//\1/
21669 q
21670 }
21671 /^X\/\(\/\).*/{
21672 s//\1/
21673 q
21674 }
21675 s/.*/./; q'`
21676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021677# CDPATH.
21678$as_unset CDPATH
21679
21680
21681
21682 as_lineno_1=$LINENO
21683 as_lineno_2=$LINENO
21684 test "x$as_lineno_1" != "x$as_lineno_2" &&
21685 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21686
21687 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21688 # uniformly replaced by the line number. The first 'sed' inserts a
21689 # line-number line after each line using $LINENO; the second 'sed'
21690 # does the real work. The second script uses 'N' to pair each
21691 # line-number line with the line containing $LINENO, and appends
21692 # trailing '-' during substitution so that $LINENO is not a special
21693 # case at line end.
21694 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21695 # scripts with optimization help from Paolo Bonzini. Blame Lee
21696 # E. McMahon (1931-1989) for sed's syntax. :-)
21697 sed -n '
21698 p
21699 /[$]LINENO/=
21700 ' <$as_myself |
21701 sed '
21702 s/[$]LINENO.*/&-/
21703 t lineno
21704 b
21705 :lineno
21706 N
21707 :loop
21708 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21709 t loop
21710 s/-\n.*//
21711 ' >$as_me.lineno &&
21712 chmod +x "$as_me.lineno" ||
21713 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21714 { (exit 1); exit 1; }; }
21715
21716 # Don't try to exec as it changes $[0], causing all sort of problems
21717 # (the dirname of $[0] is not the place where we might find the
21718 # original and so on. Autoconf is especially sensitive to this).
21719 . "./$as_me.lineno"
21720 # Exit status is that of the last command.
21721 exit
21722}
21723
21724
21725if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21726 as_dirname=dirname
21727else
21728 as_dirname=false
21729fi
Reid Spencera773bd52006-08-04 18:18:08 +000021730
21731ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021732case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021733-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021734 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021735 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021736 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021737 esac;;
21738*)
21739 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021740esac
21741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021742if expr a : '\(a\)' >/dev/null 2>&1 &&
21743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21744 as_expr=expr
21745else
21746 as_expr=false
21747fi
21748
John Criswell7a73b802003-06-30 21:59:07 +000021749rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021750if test -d conf$$.dir; then
21751 rm -f conf$$.dir/conf$$.file
21752else
21753 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756echo >conf$$.file
21757if ln -s conf$$.file conf$$ 2>/dev/null; then
21758 as_ln_s='ln -s'
21759 # ... but there are two gotchas:
21760 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21761 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21762 # In both cases, we have to default to `cp -p'.
21763 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021764 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021765elif ln conf$$.file conf$$ 2>/dev/null; then
21766 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021767else
21768 as_ln_s='cp -p'
21769fi
Reid Spencera773bd52006-08-04 18:18:08 +000021770rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21771rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021772
John Criswell0c38eaf2003-09-10 15:17:25 +000021773if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021774 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021775else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021776 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021777 as_mkdir_p=false
21778fi
21779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21781# systems may use methods other than mode bits to determine executability.
21782cat >conf$$.file <<_ASEOF
21783#! /bin/sh
21784exit 0
21785_ASEOF
21786chmod +x conf$$.file
21787if test -x conf$$.file >/dev/null 2>&1; then
21788 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021790 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021793
21794# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021795as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021796
21797# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021798as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021799
21800
John Criswell7a73b802003-06-30 21:59:07 +000021801exec 6>&1
21802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021804# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021805# values after options handling.
21806ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021807This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021808generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021809
21810 CONFIG_FILES = $CONFIG_FILES
21811 CONFIG_HEADERS = $CONFIG_HEADERS
21812 CONFIG_LINKS = $CONFIG_LINKS
21813 CONFIG_COMMANDS = $CONFIG_COMMANDS
21814 $ $0 $@
21815
Reid Spencera773bd52006-08-04 18:18:08 +000021816on `(hostname || uname -n) 2>/dev/null | sed 1q`
21817"
21818
John Criswell7a73b802003-06-30 21:59:07 +000021819_ACEOF
21820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021821cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021822# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021823config_files="$ac_config_files"
21824config_headers="$ac_config_headers"
21825config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021826
Reid Spencera773bd52006-08-04 18:18:08 +000021827_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021830ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021831\`$as_me' instantiates files from templates according to the
21832current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021834Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021835
21836 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021837 -V, --version print version number, then exit
21838 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021839 -d, --debug don't remove temporary files
21840 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841 --file=FILE[:TEMPLATE]
21842 instantiate the configuration file FILE
21843 --header=FILE[:TEMPLATE]
21844 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021845
21846Configuration files:
21847$config_files
21848
21849Configuration headers:
21850$config_headers
21851
John Criswellc764fbc2003-09-06 15:17:13 +000021852Configuration commands:
21853$config_commands
21854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021855Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021856
Reid Spencera773bd52006-08-04 18:18:08 +000021857_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021858cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021859ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021860LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021861configured by $0, generated by GNU Autoconf 2.60,
21862 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021865This config.status script is free software; the Free Software Foundation
21866gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021867
21868ac_pwd='$ac_pwd'
21869srcdir='$srcdir'
21870INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021871_ACEOF
21872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021873cat >>$CONFIG_STATUS <<\_ACEOF
21874# If no file are specified by the user, then we need to provide default
21875# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021876ac_need_defaults=:
21877while test $# != 0
21878do
21879 case $1 in
21880 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021881 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21882 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021883 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021884 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021885 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021886 ac_option=$1
21887 ac_optarg=$2
21888 ac_shift=shift
21889 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021890 esac
21891
John Criswell0c38eaf2003-09-10 15:17:25 +000021892 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021893 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21895 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021896 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021898 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021899 debug=: ;;
21900 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021901 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021903 ac_need_defaults=false;;
21904 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021905 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021907 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021908 --he | --h)
21909 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910 { echo "$as_me: error: ambiguous option: $1
21911Try \`$0 --help' for more information." >&2
21912 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021913 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21916 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21917 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021918
21919 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021920 -*) { echo "$as_me: error: unrecognized option: $1
21921Try \`$0 --help' for more information." >&2
21922 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021924 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021925 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021926
21927 esac
21928 shift
21929done
21930
John Criswell0c38eaf2003-09-10 15:17:25 +000021931ac_configure_extra_args=
21932
21933if $ac_cs_silent; then
21934 exec 6>/dev/null
21935 ac_configure_extra_args="$ac_configure_extra_args --silent"
21936fi
21937
21938_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021939cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021940if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021941 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21942 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021943 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021944 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021945fi
21946
John Criswell7a73b802003-06-30 21:59:07 +000021947_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021948cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021949exec 5>>config.log
21950{
21951 echo
21952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21953## Running $as_me. ##
21954_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021955 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021956} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021957
Reid Spencera773bd52006-08-04 18:18:08 +000021958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021959cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021960#
Reid Spencera773bd52006-08-04 18:18:08 +000021961# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021962#
Reid Spencerc0682832005-02-24 19:05:19 +000021963llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021964
21965_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021967cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021968
21969# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021970for ac_config_target in $ac_config_targets
21971do
Reid Spencera773bd52006-08-04 18:18:08 +000021972 case $ac_config_target in
21973 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021974 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021975 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21976 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021977 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021978 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021979 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021980 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021981 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021982 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021983 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21984 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021985 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021986 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21987 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21988 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21989 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21990 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021991 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021992 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21993 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021994 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021995 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21996 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21997 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021998 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21999 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022001 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22002echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22003 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022004 esac
22005done
22006
Reid Spencera773bd52006-08-04 18:18:08 +000022007
John Criswell7a73b802003-06-30 21:59:07 +000022008# If the user did not use the arguments to specify the items to instantiate,
22009# then the envvar interface is used. Set only those that are not.
22010# We use the long form for the default assignment because of an extremely
22011# bizarre bug on SunOS 4.1.3.
22012if $ac_need_defaults; then
22013 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22014 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022015 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022016fi
22017
John Criswell0c38eaf2003-09-10 15:17:25 +000022018# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022019# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022020# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022021# Hook for its removal unless debugging.
22022# Note that there is a small window in which the directory will not be cleaned:
22023# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022024$debug ||
22025{
Reid Spencera773bd52006-08-04 18:18:08 +000022026 tmp=
22027 trap 'exit_status=$?
22028 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22029' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022030 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022031}
John Criswell7a73b802003-06-30 21:59:07 +000022032# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022033
John Criswell7a73b802003-06-30 21:59:07 +000022034{
Reid Spencera773bd52006-08-04 18:18:08 +000022035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022036 test -n "$tmp" && test -d "$tmp"
22037} ||
22038{
Reid Spencera773bd52006-08-04 18:18:08 +000022039 tmp=./conf$$-$RANDOM
22040 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041} ||
22042{
22043 echo "$me: cannot create a temporary directory in ." >&2
22044 { (exit 1); exit 1; }
22045}
John Criswell7a73b802003-06-30 21:59:07 +000022046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022047#
22048# Set up the sed scripts for CONFIG_FILES section.
22049#
22050
22051# No need to generate the scripts if there are no CONFIG_FILES.
22052# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022053if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022054
22055_ACEOF
22056
Reid Spencera773bd52006-08-04 18:18:08 +000022057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058
Reid Spencera773bd52006-08-04 18:18:08 +000022059ac_delim='%!_!# '
22060for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022061 cat >conf$$subs.sed <<_ACEOF
22062SHELL!$SHELL$ac_delim
22063PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22064PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22065PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22066PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22067PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22068PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22069exec_prefix!$exec_prefix$ac_delim
22070prefix!$prefix$ac_delim
22071program_transform_name!$program_transform_name$ac_delim
22072bindir!$bindir$ac_delim
22073sbindir!$sbindir$ac_delim
22074libexecdir!$libexecdir$ac_delim
22075datarootdir!$datarootdir$ac_delim
22076datadir!$datadir$ac_delim
22077sysconfdir!$sysconfdir$ac_delim
22078sharedstatedir!$sharedstatedir$ac_delim
22079localstatedir!$localstatedir$ac_delim
22080includedir!$includedir$ac_delim
22081oldincludedir!$oldincludedir$ac_delim
22082docdir!$docdir$ac_delim
22083infodir!$infodir$ac_delim
22084htmldir!$htmldir$ac_delim
22085dvidir!$dvidir$ac_delim
22086pdfdir!$pdfdir$ac_delim
22087psdir!$psdir$ac_delim
22088libdir!$libdir$ac_delim
22089localedir!$localedir$ac_delim
22090mandir!$mandir$ac_delim
22091DEFS!$DEFS$ac_delim
22092ECHO_C!$ECHO_C$ac_delim
22093ECHO_N!$ECHO_N$ac_delim
22094ECHO_T!$ECHO_T$ac_delim
22095LIBS!$LIBS$ac_delim
22096build_alias!$build_alias$ac_delim
22097host_alias!$host_alias$ac_delim
22098target_alias!$target_alias$ac_delim
22099LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022100CC!$CC$ac_delim
22101CFLAGS!$CFLAGS$ac_delim
22102LDFLAGS!$LDFLAGS$ac_delim
22103CPPFLAGS!$CPPFLAGS$ac_delim
22104ac_ct_CC!$ac_ct_CC$ac_delim
22105EXEEXT!$EXEEXT$ac_delim
22106OBJEXT!$OBJEXT$ac_delim
22107CXX!$CXX$ac_delim
22108CXXFLAGS!$CXXFLAGS$ac_delim
22109ac_ct_CXX!$ac_ct_CXX$ac_delim
22110CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022111subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022112ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22113LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022114build!$build$ac_delim
22115build_cpu!$build_cpu$ac_delim
22116build_vendor!$build_vendor$ac_delim
22117build_os!$build_os$ac_delim
22118host!$host$ac_delim
22119host_cpu!$host_cpu$ac_delim
22120host_vendor!$host_vendor$ac_delim
22121host_os!$host_os$ac_delim
22122target!$target$ac_delim
22123target_cpu!$target_cpu$ac_delim
22124target_vendor!$target_vendor$ac_delim
22125target_os!$target_os$ac_delim
22126OS!$OS$ac_delim
22127HOST_OS!$HOST_OS$ac_delim
22128TARGET_OS!$TARGET_OS$ac_delim
22129LINKALL!$LINKALL$ac_delim
22130NOLINKALL!$NOLINKALL$ac_delim
22131LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22132LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22133ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022134HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022135ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022136GREP!$GREP$ac_delim
22137EGREP!$EGREP$ac_delim
22138LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22139BUILD_CC!$BUILD_CC$ac_delim
22140BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22141BUILD_CXX!$BUILD_CXX$ac_delim
22142CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022143ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022144ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22146ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22147DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022148ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22150EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22151DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22152DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22153JIT!$JIT$ac_delim
22154TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022155ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022156ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022157LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022158ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022162 break
22163 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022164 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22165echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22166 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022167 else
22168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022169 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022170done
22171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022172ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22173if test -n "$ac_eof"; then
22174 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22175 ac_eof=`expr $ac_eof + 1`
22176fi
22177
22178cat >>$CONFIG_STATUS <<_ACEOF
22179cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22180/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022181_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022182sed '
22183s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22184s/^/s,@/; s/!/@,|#_!!_#|/
22185:n
22186t n
22187s/'"$ac_delim"'$/,g/; t
22188s/$/\\/; p
22189N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22190' >>$CONFIG_STATUS <conf$$subs.sed
22191rm -f conf$$subs.sed
22192cat >>$CONFIG_STATUS <<_ACEOF
22193CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022194_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195
22196
22197ac_delim='%!_!# '
22198for ac_last_try in false false false false false :; do
22199 cat >conf$$subs.sed <<_ACEOF
Eric Christopher09a88732012-08-03 19:58:20 +000022200ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022201ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022202ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022203ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022204TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22205LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22206LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022207LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022208LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022209OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022210EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022211EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022212CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022213BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022214INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022215NM!$NM$ac_delim
22216ifGNUmake!$ifGNUmake$ac_delim
22217LN_S!$LN_S$ac_delim
22218CMP!$CMP$ac_delim
22219CP!$CP$ac_delim
22220DATE!$DATE$ac_delim
22221FIND!$FIND$ac_delim
22222MKDIR!$MKDIR$ac_delim
22223MV!$MV$ac_delim
22224RANLIB!$RANLIB$ac_delim
22225AR!$AR$ac_delim
22226RM!$RM$ac_delim
22227SED!$SED$ac_delim
22228TAR!$TAR$ac_delim
22229BINPWD!$BINPWD$ac_delim
22230GRAPHVIZ!$GRAPHVIZ$ac_delim
22231DOT!$DOT$ac_delim
22232FDP!$FDP$ac_delim
22233NEATO!$NEATO$ac_delim
22234TWOPI!$TWOPI$ac_delim
22235CIRCO!$CIRCO$ac_delim
22236GV!$GV$ac_delim
22237DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022238XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022239INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22240INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22241INSTALL_DATA!$INSTALL_DATA$ac_delim
22242BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022243CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022244DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022245GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022246GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022247PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022248ZIP!$ZIP$ac_delim
22249OCAMLC!$OCAMLC$ac_delim
22250OCAMLOPT!$OCAMLOPT$ac_delim
22251OCAMLDEP!$OCAMLDEP$ac_delim
22252OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022253GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022254HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022255INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22256INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22257CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22258CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22259LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022260NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22261NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022262COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022263USE_UDIS86!$USE_UDIS86$ac_delim
22264USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022265USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22266INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22267INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022268XML2CONFIG!$XML2CONFIG$ac_delim
22269LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22270LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022271HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22272HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22273MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022274SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022275SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022276LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22277LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22278LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22279LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22280LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22281LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22282LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22283LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22284LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22285LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22286BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22287ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022288OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22289ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22290RPATH!$RPATH$ac_delim
22291RDYNAMIC!$RDYNAMIC$ac_delim
22292LIBOBJS!$LIBOBJS$ac_delim
22293LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022294_ACEOF
22295
Eric Christopher09a88732012-08-03 19:58:20 +000022296 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022297 break
22298 elif $ac_last_try; then
22299 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22300echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22301 { (exit 1); exit 1; }; }
22302 else
22303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22304 fi
22305done
22306
22307ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22308if test -n "$ac_eof"; then
22309 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22310 ac_eof=`expr $ac_eof + 1`
22311fi
22312
22313cat >>$CONFIG_STATUS <<_ACEOF
22314cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022315/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22316_ACEOF
22317sed '
22318s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22319s/^/s,@/; s/!/@,|#_!!_#|/
22320:n
22321t n
22322s/'"$ac_delim"'$/,g/; t
22323s/$/\\/; p
22324N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22325' >>$CONFIG_STATUS <conf$$subs.sed
22326rm -f conf$$subs.sed
22327cat >>$CONFIG_STATUS <<_ACEOF
22328:end
22329s/|#_!!_#|//g
22330CEOF$ac_eof
22331_ACEOF
22332
22333
Reid Spencera773bd52006-08-04 18:18:08 +000022334# VPATH may cause trouble with some makes, so we remove $(srcdir),
22335# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22336# trailing colons and then remove the whole line if VPATH becomes empty
22337# (actually we leave an empty line to preserve line numbers).
22338if test "x$srcdir" = x.; then
22339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22340s/:*\$(srcdir):*/:/
22341s/:*\${srcdir}:*/:/
22342s/:*@srcdir@:*/:/
22343s/^\([^=]*=[ ]*\):*/\1/
22344s/:*$//
22345s/^[^=]*=[ ]*$//
22346}'
22347fi
22348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022349cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022350fi # test -n "$CONFIG_FILES"
22351
Reid Spencera773bd52006-08-04 18:18:08 +000022352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022353for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022354do
22355 case $ac_tag in
22356 :[FHLC]) ac_mode=$ac_tag; continue;;
22357 esac
22358 case $ac_mode$ac_tag in
22359 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022360 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22361echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22362 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022363 :[FH]-) ac_tag=-:-;;
22364 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22365 esac
22366 ac_save_IFS=$IFS
22367 IFS=:
22368 set x $ac_tag
22369 IFS=$ac_save_IFS
22370 shift
22371 ac_file=$1
22372 shift
22373
22374 case $ac_mode in
22375 :L) ac_source=$1;;
22376 :[FH])
22377 ac_file_inputs=
22378 for ac_f
22379 do
22380 case $ac_f in
22381 -) ac_f="$tmp/stdin";;
22382 *) # Look for the file first in the build tree, then in the source tree
22383 # (if the path is not absolute). The absolute path cannot be DOS-style,
22384 # because $ac_f cannot contain `:'.
22385 test -f "$ac_f" ||
22386 case $ac_f in
22387 [\\/$]*) false;;
22388 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22389 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022390 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22391echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22392 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022393 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022394 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022395 done
22396
22397 # Let's still pretend it is `configure' which instantiates (i.e., don't
22398 # use $as_me), people would be surprised to read:
22399 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022400 configure_input="Generated from "`IFS=:
22401 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022402 if test x"$ac_file" != x-; then
22403 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022404 { echo "$as_me:$LINENO: creating $ac_file" >&5
22405echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022406 fi
22407
22408 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022409 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022410 esac
22411 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022412 esac
22413
Reid Spencera773bd52006-08-04 18:18:08 +000022414 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022415$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022416 X"$ac_file" : 'X\(//\)[^/]' \| \
22417 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022418 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022419echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22421 s//\1/
22422 q
22423 }
22424 /^X\(\/\/\)[^/].*/{
22425 s//\1/
22426 q
22427 }
22428 /^X\(\/\/\)$/{
22429 s//\1/
22430 q
22431 }
22432 /^X\(\/\).*/{
22433 s//\1/
22434 q
22435 }
22436 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022437 { as_dir="$ac_dir"
22438 case $as_dir in #(
22439 -*) as_dir=./$as_dir;;
22440 esac
22441 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22442 as_dirs=
22443 while :; do
22444 case $as_dir in #(
22445 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22446 *) as_qdir=$as_dir;;
22447 esac
22448 as_dirs="'$as_qdir' $as_dirs"
22449 as_dir=`$as_dirname -- "$as_dir" ||
22450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451 X"$as_dir" : 'X\(//\)[^/]' \| \
22452 X"$as_dir" : 'X\(//\)$' \| \
22453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22454echo X"$as_dir" |
22455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22456 s//\1/
22457 q
22458 }
22459 /^X\(\/\/\)[^/].*/{
22460 s//\1/
22461 q
22462 }
22463 /^X\(\/\/\)$/{
22464 s//\1/
22465 q
22466 }
22467 /^X\(\/\).*/{
22468 s//\1/
22469 q
22470 }
22471 s/.*/./; q'`
22472 test -d "$as_dir" && break
22473 done
22474 test -z "$as_dirs" || eval "mkdir $as_dirs"
22475 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22476echo "$as_me: error: cannot create directory $as_dir" >&2;}
22477 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022478 ac_builddir=.
22479
Reid Spencera773bd52006-08-04 18:18:08 +000022480case "$ac_dir" in
22481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22482*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022484 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022486 case $ac_top_builddir_sub in
22487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22489 esac ;;
22490esac
22491ac_abs_top_builddir=$ac_pwd
22492ac_abs_builddir=$ac_pwd$ac_dir_suffix
22493# for backward compatibility:
22494ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022495
22496case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022497 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022498 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022499 ac_top_srcdir=$ac_top_builddir_sub
22500 ac_abs_top_srcdir=$ac_pwd ;;
22501 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022502 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022503 ac_top_srcdir=$srcdir
22504 ac_abs_top_srcdir=$srcdir ;;
22505 *) # Relative name.
22506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22507 ac_top_srcdir=$ac_top_build_prefix$srcdir
22508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022509esac
Reid Spencera773bd52006-08-04 18:18:08 +000022510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022511
John Criswell7a73b802003-06-30 21:59:07 +000022512
Reid Spencera773bd52006-08-04 18:18:08 +000022513 case $ac_mode in
22514 :F)
22515 #
22516 # CONFIG_FILE
22517 #
John Criswell7a73b802003-06-30 21:59:07 +000022518
22519 case $INSTALL in
22520 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022521 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022522 esac
John Criswell7a73b802003-06-30 21:59:07 +000022523_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022525cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022526# If the template does not know about datarootdir, expand it.
22527# FIXME: This hack should be removed a few years after 2.60.
22528ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022529
22530case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022531 p
22532 q
22533}
22534/@datadir@/p
22535/@docdir@/p
22536/@infodir@/p
22537/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022538/@mandir@/p
22539' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022540*datarootdir*) ac_datarootdir_seen=yes;;
22541*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022542 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22543echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022545cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022546 ac_datarootdir_hack='
22547 s&@datadir@&$datadir&g
22548 s&@docdir@&$docdir&g
22549 s&@infodir@&$infodir&g
22550 s&@localedir@&$localedir&g
22551 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022552 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022553esac
22554_ACEOF
22555
22556# Neutralize VPATH when `$srcdir' = `.'.
22557# Shell code in configure.ac might set extrasub.
22558# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022559cat >>$CONFIG_STATUS <<_ACEOF
22560 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022561$extrasub
22562_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022563cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022564:t
22565/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022566s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022567s&@top_builddir@&$ac_top_builddir_sub&;t t
22568s&@srcdir@&$ac_srcdir&;t t
22569s&@abs_srcdir@&$ac_abs_srcdir&;t t
22570s&@top_srcdir@&$ac_top_srcdir&;t t
22571s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22572s&@builddir@&$ac_builddir&;t t
22573s&@abs_builddir@&$ac_abs_builddir&;t t
22574s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22575s&@INSTALL@&$ac_INSTALL&;t t
22576$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022577" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022578
Reid Spencera773bd52006-08-04 18:18:08 +000022579test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22580 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022582 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022583which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022584echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022585which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022586
Reid Spencera773bd52006-08-04 18:18:08 +000022587 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022588 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022589 -) cat "$tmp/out"; rm -f "$tmp/out";;
22590 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22591 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022592 ;;
22593 :H)
22594 #
22595 # CONFIG_HEADER
22596 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022597_ACEOF
22598
22599# Transform confdefs.h into a sed script `conftest.defines', that
22600# substitutes the proper values into config.h.in to produce config.h.
22601rm -f conftest.defines conftest.tail
22602# First, append a space to every undef/define line, to ease matching.
22603echo 's/$/ /' >conftest.defines
22604# Then, protect against being on the right side of a sed subst, or in
22605# an unquoted here document, in config.status. If some macros were
22606# called several times there might be several #defines for the same
22607# symbol, which is useless. But do not sort them, since the last
22608# AC_DEFINE must be honored.
22609ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22610# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22611# NAME is the cpp macro being defined, VALUE is the value it is being given.
22612# PARAMS is the parameter list in the macro definition--in most cases, it's
22613# just an empty string.
22614ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22615ac_dB='\\)[ (].*,\\1define\\2'
22616ac_dC=' '
22617ac_dD=' ,'
22618
22619uniq confdefs.h |
22620 sed -n '
22621 t rset
22622 :rset
22623 s/^[ ]*#[ ]*define[ ][ ]*//
22624 t ok
22625 d
22626 :ok
22627 s/[\\&,]/\\&/g
22628 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22629 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22630 ' >>conftest.defines
22631
22632# Remove the space that was appended to ease matching.
22633# Then replace #undef with comments. This is necessary, for
22634# example, in the case of _POSIX_SOURCE, which is predefined and required
22635# on some systems where configure will not decide to define it.
22636# (The regexp can be short, since the line contains either #define or #undef.)
22637echo 's/ $//
22638s,^[ #]*u.*,/* & */,' >>conftest.defines
22639
22640# Break up conftest.defines:
22641ac_max_sed_lines=50
22642
22643# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22644# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22645# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22646# et cetera.
22647ac_in='$ac_file_inputs'
22648ac_out='"$tmp/out1"'
22649ac_nxt='"$tmp/out2"'
22650
22651while :
22652do
22653 # Write a here document:
22654 cat >>$CONFIG_STATUS <<_ACEOF
22655 # First, check the format of the line:
22656 cat >"\$tmp/defines.sed" <<\\CEOF
22657/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22658/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22659b
22660:def
22661_ACEOF
22662 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22663 echo 'CEOF
22664 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22665 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22666 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22667 grep . conftest.tail >/dev/null || break
22668 rm -f conftest.defines
22669 mv conftest.tail conftest.defines
22670done
22671rm -f conftest.defines conftest.tail
22672
22673echo "ac_result=$ac_in" >>$CONFIG_STATUS
22674cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022675 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022676 echo "/* $configure_input */" >"$tmp/config.h"
22677 cat "$ac_result" >>"$tmp/config.h"
22678 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22679 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22680echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022681 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022682 rm -f $ac_file
22683 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022684 fi
22685 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022686 echo "/* $configure_input */"
22687 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022688 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022689 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022690 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022692 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22693echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022694 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022695 esac
John Criswell7a73b802003-06-30 21:59:07 +000022696
Reid Spencera773bd52006-08-04 18:18:08 +000022697
22698 case $ac_file$ac_mode in
22699 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022700 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022701 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022702 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022703 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022704 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022705 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022706 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022707 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022708 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022709 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022710 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022711 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022712 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022713 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022714 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022715 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022716 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022717 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022718 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022719 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022721 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022723 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022724 ${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 +000022725
22726 esac
22727done # for ac_tag
22728
John Criswell7a73b802003-06-30 21:59:07 +000022729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022730{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022731_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022732chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022733ac_clean_files=$ac_clean_files_save
22734
22735
22736# configure is writing to config.log, and then calls config.status.
22737# config.status does its own redirection, appending to config.log.
22738# Unfortunately, on DOS this fails, as config.log is still kept open
22739# by configure, so config.status won't be able to write to it; its
22740# output is simply discarded. So we exec the FD to /dev/null,
22741# effectively closing config.log, so it can be properly (re)opened and
22742# appended to by config.status. When coming back to configure, we
22743# need to make the FD available again.
22744if test "$no_create" != yes; then
22745 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022746 ac_config_status_args=
22747 test "$silent" = yes &&
22748 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022749 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022751 exec 5>>config.log
22752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22753 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022754 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022755fi
22756
John Criswell12399a12003-09-30 15:55:44 +000022757#
22758# CONFIG_SUBDIRS section.
22759#
22760if test "$no_recursion" != yes; then
22761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022762 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022763 ac_sub_configure_args=
22764 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022765 eval "set x $ac_configure_args"
22766 shift
22767 for ac_arg
22768 do
John Criswell12399a12003-09-30 15:55:44 +000022769 if test -n "$ac_prev"; then
22770 ac_prev=
22771 continue
22772 fi
22773 case $ac_arg in
22774 -cache-file | --cache-file | --cache-fil | --cache-fi \
22775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22776 ac_prev=cache_file ;;
22777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22779 | --c=*)
22780 ;;
22781 --config-cache | -C)
22782 ;;
22783 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22784 ac_prev=srcdir ;;
22785 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22786 ;;
22787 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22788 ac_prev=prefix ;;
22789 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22790 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022791 *)
22792 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022793 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022794 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022795 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022796 esac
22797 done
22798
22799 # Always prepend --prefix to ensure using the same prefix
22800 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022801 ac_arg="--prefix=$prefix"
22802 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022803 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022804 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022805 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022806
22807 ac_popdir=`pwd`
22808 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22809
22810 # Do not complain, so a configure script can configure whichever
22811 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022812 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022813
Reid Spencera773bd52006-08-04 18:18:08 +000022814 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022815 echo "$as_me:$LINENO: $ac_msg" >&5
22816 echo "$ac_msg" >&6
22817 { as_dir="$ac_dir"
22818 case $as_dir in #(
22819 -*) as_dir=./$as_dir;;
22820 esac
22821 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22822 as_dirs=
22823 while :; do
22824 case $as_dir in #(
22825 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22826 *) as_qdir=$as_dir;;
22827 esac
22828 as_dirs="'$as_qdir' $as_dirs"
22829 as_dir=`$as_dirname -- "$as_dir" ||
22830$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22831 X"$as_dir" : 'X\(//\)[^/]' \| \
22832 X"$as_dir" : 'X\(//\)$' \| \
22833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22834echo X"$as_dir" |
22835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22836 s//\1/
22837 q
22838 }
22839 /^X\(\/\/\)[^/].*/{
22840 s//\1/
22841 q
22842 }
22843 /^X\(\/\/\)$/{
22844 s//\1/
22845 q
22846 }
22847 /^X\(\/\).*/{
22848 s//\1/
22849 q
22850 }
22851 s/.*/./; q'`
22852 test -d "$as_dir" && break
22853 done
22854 test -z "$as_dirs" || eval "mkdir $as_dirs"
22855 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22856echo "$as_me: error: cannot create directory $as_dir" >&2;}
22857 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022858 ac_builddir=.
22859
Reid Spencera773bd52006-08-04 18:18:08 +000022860case "$ac_dir" in
22861.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22862*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022864 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022865 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022866 case $ac_top_builddir_sub in
22867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22869 esac ;;
22870esac
22871ac_abs_top_builddir=$ac_pwd
22872ac_abs_builddir=$ac_pwd$ac_dir_suffix
22873# for backward compatibility:
22874ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022875
22876case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022877 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022878 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022879 ac_top_srcdir=$ac_top_builddir_sub
22880 ac_abs_top_srcdir=$ac_pwd ;;
22881 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022882 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022883 ac_top_srcdir=$srcdir
22884 ac_abs_top_srcdir=$srcdir ;;
22885 *) # Relative name.
22886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22887 ac_top_srcdir=$ac_top_build_prefix$srcdir
22888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022889esac
Reid Spencera773bd52006-08-04 18:18:08 +000022890ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022891
22892
Reid Spencera773bd52006-08-04 18:18:08 +000022893 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022894
22895 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022896 if test -f "$ac_srcdir/configure.gnu"; then
22897 ac_sub_configure=$ac_srcdir/configure.gnu
22898 elif test -f "$ac_srcdir/configure"; then
22899 ac_sub_configure=$ac_srcdir/configure
22900 elif test -f "$ac_srcdir/configure.in"; then
22901 # This should be Cygnus configure.
22902 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022903 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022904 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22905echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022906 ac_sub_configure=
22907 fi
22908
22909 # The recursion is here.
22910 if test -n "$ac_sub_configure"; then
22911 # Make the cache file name correct relative to the subdirectory.
22912 case $cache_file in
22913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022914 *) # Relative name.
22915 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022916 esac
22917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022918 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22919echo "$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 +000022920 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022921 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22922 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022923 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22924echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22925 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022926 fi
22927
Reid Spencera773bd52006-08-04 18:18:08 +000022928 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022929 done
22930fi
22931