blob: 4268f21a9e39bd2b46644f9b03fd4fe7b96e1a81 [file] [log] [blame]
John Criswell3ef61af2003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
John Criswell3ef61af2003-06-30 21:59:07 +00004#
Eric Christopherafbe7522011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00006#
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-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 Spencer0241e382004-11-25 04:51:04 +000011#
NAKAMURA Takumi43632a22013-01-01 10:00:19 +000012# Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +000016
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3eaf0b42003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3eaf0b42003-09-10 15:17:25 +000027fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3eaf0b42003-09-10 15:17:25 +000030
John Criswell3eaf0b42003-09-10 15:17:25 +000031
Jeffrey Yasskinbf5ce0a2010-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 Criswell3eaf0b42003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +000058fi
John Criswell3eaf0b42003-09-10 15:17:25 +000059
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +000071case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3eaf0b42003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell3eaf0b42003-09-10 15:17:25 +000081
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-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 Edwinaec06332010-01-26 08:50:50 +0000107do
Jeffrey Yasskinbf5ce0a2010-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 Edwinaec06332010-01-26 08:50:50 +0000110 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000113done
Torok Edwinaec06332010-01-26 08:50:50 +0000114
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000152
153
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell3eaf0b42003-09-10 15:17:25 +0000440 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell3eaf0b42003-09-10 15:17:25 +0000445 N
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell3eaf0b42003-09-10 15:17:25 +0000448 t loop
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell3eaf0b42003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskinbf5ce0a2010-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 Criswell3eaf0b42003-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 Spencer0b52e2f2006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell3eaf0b42003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell3eaf0b42003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskinbf5ce0a2010-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 Criswell3eaf0b42003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000494fi
Jeffrey Yasskinbf5ce0a2010-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 Criswell3eaf0b42003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell3eaf0b42003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +0000514else
Reid Spencerf184a862004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +0000528else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000530fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell3eaf0b42003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000538
539
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000542
John Criswell3ef61af2003-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 Criswell3ef61af2003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell3eaf0b42003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell3ef61af2003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell3ef61af2003-06-30 21:59:07 +0000560
John Criswell3ef61af2003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherafbe7522011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramer6900a4a2012-11-17 22:01:08 +0000564PACKAGE_VERSION='3.3svn'
565PACKAGE_STRING='LLVM 3.3svn'
Eric Christopherafbe7522011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell3ef61af2003-06-30 21:59:07 +0000567
Chandler Carruthfbdae1f2013-01-02 09:22:59 +0000568ac_unique_file="lib/IR/Module.cpp"
John Criswell3ef61af2003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell3ef61af2003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell3ef61af2003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell3ef61af2003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell3ef61af2003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell3ef61af2003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell3ef61af2003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwinaec06332010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskinbf5ce0a2010-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 Christopher58839712011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserea9dca42010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskinbf5ce0a2010-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 Malyshev7c5db452012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopher1094ded2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher04e35972012-08-03 19:47:14 +0000687ENABLE_CXX11
Roman Divackyf2bb66b2012-12-13 16:07:19 +0000688ENABLE_CLANG_ARCMT
689ENABLE_CLANG_STATIC_ANALYZER
690ENABLE_CLANG_REWRITER
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000691ENABLE_OPTIMIZED
692ENABLE_PROFILING
693DISABLE_ASSERTIONS
Eric Christopher84864012012-08-03 19:58:20 +0000694ENABLE_WERROR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000695ENABLE_EXPENSIVE_CHECKS
696EXPENSIVE_CHECKS
697DEBUG_RUNTIME
698DEBUG_SYMBOLS
Daniel Dunbar39c04622012-08-14 18:14:22 +0000699KEEP_SYMBOLS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000700JIT
701TARGET_HAS_JIT
Rafael Espindola7ac506d2010-11-12 19:24:06 +0000702ENABLE_DOCS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000703ENABLE_DOXYGEN
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +0000704LLVM_ENABLE_THREADS
NAKAMURA Takumic6fce172010-12-29 03:59:03 +0000705ENABLE_PTHREADS
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000706LLVM_ENABLE_ZLIB
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000707ENABLE_PIC
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000708ENABLE_SHARED
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +0000709ENABLE_EMBED_STDCXX
Daniel Dunbardac18242010-05-10 20:11:56 +0000710ENABLE_TIMESTAMPS
Eric Christopherc6c2b9b2012-11-19 19:31:02 +0000711ENABLE_BACKTRACES
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000712TARGETS_TO_BUILD
713LLVM_ENUM_TARGETS
714LLVM_ENUM_ASM_PRINTERS
715LLVM_ENUM_ASM_PARSERS
716LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000717OPTIMIZE_OPTION
718EXTRA_OPTIONS
Daniel Dunbar3b95df82011-06-16 22:30:41 +0000719EXTRA_LD_OPTIONS
NAKAMURA Takumi914f1922011-10-16 02:54:26 +0000720CLANG_SRC_ROOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000721BINUTILS_INCDIR
Bob Wilson3f354702011-11-28 07:59:52 +0000722INTERNAL_PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000723NM
724ifGNUmake
725LN_S
726CMP
727CP
728DATE
729FIND
730MKDIR
731MV
732RANLIB
733AR
734RM
735SED
736TAR
737BINPWD
738GRAPHVIZ
739DOT
740FDP
741NEATO
742TWOPI
743CIRCO
744GV
745DOTTY
Dan Gohmana0da8892010-09-27 16:28:34 +0000746XDOT_PY
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000747INSTALL_PROGRAM
748INSTALL_SCRIPT
749INSTALL_DATA
750BZIP2
mike-me08af302010-05-06 23:45:43 +0000751CAT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000752DOXYGEN
Daniel Dunbard1888822012-05-08 18:26:07 +0000753GROFF
Eric Christopher77560892010-12-10 01:31:51 +0000754GZIPBIN
Daniel Dunbard1888822012-05-08 18:26:07 +0000755PDFROFF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000756ZIP
757OCAMLC
758OCAMLOPT
759OCAMLDEP
760OCAMLDOC
Daniel Dunbard1888822012-05-08 18:26:07 +0000761GAS
Dan Gohmanb7edb422010-06-01 14:56:56 +0000762HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000763INSTALL_LTDL_TRUE
764INSTALL_LTDL_FALSE
765CONVENIENCE_LTDL_TRUE
766CONVENIENCE_LTDL_FALSE
767LIBADD_DL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000768NO_VARIADIC_MACROS
769NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola42e94d12012-02-28 23:32:06 +0000770COVERED_SWITCH_DEFAULT
David Greene9ff8d472013-01-09 22:11:13 +0000771NO_MAYBE_UNINITIALIZED
772NO_UNINITIALIZED
Saleem Abdulrasoola1665742013-01-30 04:44:17 +0000773PYTHON
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000774USE_UDIS86
775USE_OPROFILE
Eli Bendersky5262ad22012-03-13 08:33:15 +0000776USE_INTEL_JITEVENTS
Eric Christopherc807c532012-08-03 19:47:19 +0000777XML2CONFIG
778LIBXML2_LIBS
779LIBXML2_INC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000780HAVE_PTHREAD
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000781HAVE_LIBZ
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000782HUGE_VAL_SANITY
783MMAP_FILE
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000784SHLIBEXT
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000785SHLIBPATH_VAR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000786LLVM_PREFIX
787LLVM_BINDIR
788LLVM_LIBDIR
789LLVM_DATADIR
790LLVM_DOCSDIR
791LLVM_ETCDIR
792LLVM_INCLUDEDIR
793LLVM_INFODIR
794LLVM_MANDIR
795LLVM_CONFIGTIME
796BINDINGS_TO_BUILD
797ALL_BINDINGS
798OCAML_LIBDIR
799ENABLE_VISIBILITY_INLINES_HIDDEN
800RPATH
801RDYNAMIC
Jordan Rose3c837ab2012-10-01 18:40:32 +0000802program_prefix
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000803LIBOBJS
804LTLIBOBJS'
John Criswell3eaf0b42003-09-10 15:17:25 +0000805ac_subst_files=''
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812CPPFLAGS
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000813CXX
814CXXFLAGS
Eric Christopher58839712011-09-16 20:36:25 +0000815CCC
816CPP'
John Criswellf369e772010-03-19 21:31:39 +0000817ac_subdirs_all='projects/llvm-gcc
818projects/test-suite
819projects/llvm-test
820projects/poolalloc
821projects/llvm-poolalloc
822projects/sample
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000823projects/privbracket
Reid Spencerb4e0f9b2007-01-17 02:14:46 +0000824projects/llvm-stacker
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000825projects/llvm-reopt
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000826projects/llvm-java
827projects/llvm-tv
John Criswell4d377d82010-02-25 22:57:19 +0000828projects/safecode
Tobias Grosserea9dca42010-10-30 00:54:26 +0000829projects/llvm-kernel
830tools/polly'
John Criswell3ef61af2003-06-30 21:59:07 +0000831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000857# (The list follows the same order as the GNU Coding Standards.)
John Criswell3ef61af2003-06-30 21:59:07 +0000858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
John Criswell3ef61af2003-06-30 21:59:07 +0000863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
John Criswell3ef61af2003-06-30 21:59:07 +0000866includedir='${prefix}/include'
867oldincludedir='/usr/include'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
John Criswell3ef61af2003-06-30 21:59:07 +0000877
878ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000879ac_dashdash=
John Criswell3ef61af2003-06-30 21:59:07 +0000880for ac_option
881do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000884 eval $ac_prev=\$ac_option
John Criswell3ef61af2003-06-30 21:59:07 +0000885 ac_prev=
886 continue
887 fi
888
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
John Criswell3ef61af2003-06-30 21:59:07 +0000893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000920 -datadir | --datadir | --datadi | --datad)
John Criswell3ef61af2003-06-30 21:59:07 +0000921 ac_prev=datadir ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell3ef61af2003-06-30 21:59:07 +0000923 datadir=$ac_optarg ;;
924
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
John Criswell3ef61af2003-06-30 21:59:07 +0000932 -disable-* | --disable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000934 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000950
951 -enable-* | --enable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000953 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
John Criswell3ef61af2003-06-30 21:59:07 +0000991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
John Criswell3ef61af2003-06-30 21:59:07 +00001020 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001021 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell3ef61af2003-06-30 21:59:07 +00001022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell3ef61af2003-06-30 21:59:07 +00001025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
John Criswell3ef61af2003-06-30 21:59:07 +00001099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-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=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001156
1157 -without-* | --without-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001159 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001195 eval $ac_envvar=\$ac_optarg
John Criswell3ef61af2003-06-30 21:59:07 +00001196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001213fi
1214
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001215# Be sure to have absolute directory names.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
John Criswell3ef61af2003-06-30 21:59:07 +00001220do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001221 eval ac_val=\$$ac_var
John Criswell3ef61af2003-06-30 21:59:07 +00001222 case $ac_val in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell3ef61af2003-06-30 21:59:07 +00001225 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell3ef61af2003-06-30 21:59:07 +00001242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001262
1263
John Criswell3ef61af2003-06-30 21:59:07 +00001264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001267 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001268 ac_confdir=`$as_dirname -- "$0" ||
1269$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273echo X"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
John Criswell3ef61af2003-06-30 21:59:07 +00001291 srcdir=$ac_confdir
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001292 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell3ef61af2003-06-30 21:59:07 +00001293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001302fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
John Criswell3ef61af2003-06-30 21:59:07 +00001324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001332\`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
John Criswell3ef61af2003-06-30 21:59:07 +00001333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
John Criswell3ef61af2003-06-30 21:59:07 +00001352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001354 [$ac_default_prefix]
John Criswell3ef61af2003-06-30 21:59:07 +00001355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001356 [PREFIX]
John Criswell3ef61af2003-06-30 21:59:07 +00001357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherafbe7522011-12-21 00:52:44 +00001380 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
John Criswell3ef61af2003-06-30 21:59:07 +00001385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001398 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
John Criswell3ef61af2003-06-30 21:59:07 +00001399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserea9dca42010-10-30 00:54:26 +00001405 --enable-polly Use polly if available (default is YES)
Eric Christopher1094ded2011-11-11 22:51:42 +00001406 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher04e35972012-08-03 19:47:14 +00001407 --enable-cxx11 Use c++11 if available (default is NO)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001408 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1409 --enable-clang-static-analyzer
1410 Enable building of clang Static Analyzer (default is
1411 YES)
1412 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
Nick Lewycky86679902009-06-06 06:25:09 +00001413 --enable-optimized Compile with optimizations enabled (default is NO)
1414 --enable-profiling Compile with profiling enabled (default is NO)
1415 --enable-assertions Compile with assertion checks enabled (default is
1416 YES)
Eric Christopher84864012012-08-03 19:58:20 +00001417 --enable-werror Compile with -Werror enabled (default is NO)
David Greenecbc8ddf2007-06-28 19:36:08 +00001418 --enable-expensive-checks
Nick Lewycky86679902009-06-06 06:25:09 +00001419 Compile with expensive debug checks enabled (default
1420 is NO)
1421 --enable-debug-runtime Build runtime libs with debug symbols (default is
1422 NO)
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00001423 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1424 optimization is on and YES if it's off)
Daniel Dunbar39c04622012-08-14 18:14:22 +00001425 --enable-keep-symbols Do not strip installed executables)
Reid Spencer0241e382004-11-25 04:51:04 +00001426 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola7ac506d2010-11-12 19:24:06 +00001427 --enable-docs Build documents (default is YES)
Reid Spencer0194c9a2004-11-29 04:56:35 +00001428 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencerf85fabeb2005-08-24 10:07:20 +00001429 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00001430 --enable-pthreads Use pthreads if available (default is YES)
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00001431 --enable-zlib Use zlib for compression/decompression if available
1432 (default is YES)
Reid Spencer05a1fe52006-12-16 22:07:52 +00001433 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky38525192009-02-19 06:18:56 +00001434 is YES)
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00001435 --enable-shared Build a shared library and link tools against it
1436 (default is NO)
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00001437 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00001438 Win32 DLL (default is NO)
Daniel Dunbardac18242010-05-10 20:11:56 +00001439 --enable-timestamps Enable embedding timestamp information in build
1440 (default is YES)
Eric Christopher9fafe072012-09-21 23:03:29 +00001441 --enable-backtraces Enable embedding backtraces on crash (default is
1442 YES)
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00001443 --enable-targets Build specific host targets: all or
1444 target1,target2,... Valid targets are: host, x86,
Tim Northovere0e3aef2013-01-31 12:12:40 +00001445 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1446 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00001447 --enable-experimental-targets
1448 Build experimental host targets: disable or
1449 target1,target2,... (default=disable)
Gordon Henriksene61dd672007-10-02 09:50:32 +00001450 --enable-bindings Build specific language bindings:
1451 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00001452 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencera40c6872004-11-29 12:29:58 +00001453 --enable-ltdl-install install libltdl
John Criswell3ef61af2003-06-30 21:59:07 +00001454
1455Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00001458 --with-optimize-option Select the compiler options to use for optimized
1459 builds
Duncan Sandsef8c8ec2009-05-13 13:13:18 +00001460 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbar3b95df82011-06-16 22:30:41 +00001461 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00001462 --with-ocaml-libdir Specify install location for ocaml bindings (default
1463 is stdlib)
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00001464 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruthffae4a62010-10-19 08:21:25 +00001465 --with-clang-resource-dir
1466 Relative directory from the Clang binary for
1467 resource files
Rafael Espindolad95960b2009-11-12 05:46:09 +00001468 --with-c-include-dirs Colon separated list of directories clang will
1469 search for headers
Rafael Espindolaec217f62012-02-03 00:59:30 +00001470 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop5c9e1842012-04-16 04:11:45 +00001471 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00001472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
Eric Christopher65080cc2011-07-20 17:04:49 +00001474 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00001475 submitted (default=http://llvm.org/bugs/)
Bob Wilson3f354702011-11-28 07:59:52 +00001476 --with-internal-prefix Installation directory for internal files
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00001477 --with-python path to python
Reid Spencere5f3de32007-01-19 17:41:47 +00001478 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00001479 --with-oprofile=<prefix>
1480 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor5808c7d2012-09-28 17:35:20 +00001481 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1482
John Criswell3ef61af2003-06-30 21:59:07 +00001483
1484Some influential environment variables:
Reid Spencer0241e382004-11-25 04:51:04 +00001485 CC C compiler command
1486 CFLAGS C compiler flags
John Criswell3ef61af2003-06-30 21:59:07 +00001487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001490 you have headers in a nonstandard directory <include dir>
Reid Spencer0241e382004-11-25 04:51:04 +00001491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
Eric Christopher58839712011-09-16 20:36:25 +00001493 CPP C preprocessor
John Criswell3ef61af2003-06-30 21:59:07 +00001494
1495Use these variables to override the choices made by `configure' or to help
1496it to find libraries and programs with nonstandard names/locations.
1497
Eric Christopherafbe7522011-12-21 00:52:44 +00001498Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00001499_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001500ac_status=$?
John Criswell3ef61af2003-06-30 21:59:07 +00001501fi
1502
1503if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
John Criswell3ef61af2003-06-30 21:59:07 +00001505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001506 test -d "$ac_dir" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00001507 ac_builddir=.
1508
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001513 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001514 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +00001524
1525case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001526 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +00001527 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +00001531 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001538esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +00001540
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell3ef61af2003-06-30 21:59:07 +00001549 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001550 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell3ef61af2003-06-30 21:59:07 +00001553 done
1554fi
1555
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001556test -n "$ac_init_help" && exit $ac_status
John Criswell3ef61af2003-06-30 21:59:07 +00001557if $ac_init_version; then
1558 cat <<\_ACEOF
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001559LLVM configure 3.3svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001560generated by GNU Autoconf 2.60
John Criswell3ef61af2003-06-30 21:59:07 +00001561
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001562Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15632002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00001564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +00001566
NAKAMURA Takumi43632a22013-01-01 10:00:19 +00001567Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
John Criswell3ef61af2003-06-30 21:59:07 +00001568_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001569 exit
John Criswell3ef61af2003-06-30 21:59:07 +00001570fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001571cat >config.log <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00001572This file contains any messages produced by compilers while
1573running configure, to aid debugging if configure makes a mistake.
1574
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001575It was created by LLVM $as_me 3.3svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001576generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +00001577
1578 $ $0 $@
1579
1580_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001581exec 5>>config.log
John Criswell3ef61af2003-06-30 21:59:07 +00001582{
1583cat <<_ASUNAME
1584## --------- ##
1585## Platform. ##
1586## --------- ##
1587
1588hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593
1594/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596
1597/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1598/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1599/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001600/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell3ef61af2003-06-30 21:59:07 +00001601/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1602/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1603/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604
1605_ASUNAME
1606
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001612 echo "PATH: $as_dir"
1613done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001614IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00001615
1616} >&5
1617
1618cat >&5 <<_ACEOF
1619
1620
1621## ----------- ##
1622## Core tests. ##
1623## ----------- ##
1624
1625_ACEOF
1626
1627
1628# Keep a trace of the command line.
1629# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell3eaf0b42003-09-10 15:17:25 +00001630# Strip out --silent because we don't want to record it for future runs.
John Criswell3ef61af2003-06-30 21:59:07 +00001631# Also quote any args containing shell meta-characters.
John Criswell3eaf0b42003-09-10 15:17:25 +00001632# Make two passes to allow for proper duplicate-argument suppression.
John Criswell3ef61af2003-06-30 21:59:07 +00001633ac_configure_args=
John Criswell3eaf0b42003-09-10 15:17:25 +00001634ac_configure_args0=
1635ac_configure_args1=
John Criswell3eaf0b42003-09-10 15:17:25 +00001636ac_must_keep_next=false
1637for ac_pass in 1 2
John Criswell3ef61af2003-06-30 21:59:07 +00001638do
John Criswell3eaf0b42003-09-10 15:17:25 +00001639 for ac_arg
1640 do
1641 case $ac_arg in
1642 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644 | -silent | --silent | --silen | --sile | --sil)
1645 continue ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001646 *\'*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001647 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001648 esac
1649 case $ac_pass in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001650 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001651 2)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001652 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001653 if test $ac_must_keep_next = true; then
Reid Spencerf184a862004-09-19 23:53:36 +00001654 ac_must_keep_next=false # Got value, back to normal.
John Criswell3eaf0b42003-09-10 15:17:25 +00001655 else
Reid Spencerf184a862004-09-19 23:53:36 +00001656 case $ac_arg in
1657 *=* | --config-cache | -C | -disable-* | --disable-* \
1658 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660 | -with-* | --with-* | -without-* | --without-* | --x)
1661 case "$ac_configure_args0 " in
1662 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663 esac
1664 ;;
1665 -* ) ac_must_keep_next=true ;;
1666 esac
John Criswell3eaf0b42003-09-10 15:17:25 +00001667 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001668 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001669 ;;
1670 esac
1671 done
John Criswell3ef61af2003-06-30 21:59:07 +00001672done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001673$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell3ef61af2003-06-30 21:59:07 +00001675
1676# When interrupted or exit'd, cleanup temporary files, and complete
1677# config.log. We remove comments because anyway the quotes in there
1678# would cause problems or look ugly.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001679# WARNING: Use '\'' to represent an apostrophe within the trap.
1680# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell3ef61af2003-06-30 21:59:07 +00001681trap 'exit_status=$?
1682 # Save into config.log some information that might help in debugging.
1683 {
1684 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001685
John Criswell3ef61af2003-06-30 21:59:07 +00001686 cat <<\_ASBOX
1687## ---------------- ##
1688## Cache variables. ##
1689## ---------------- ##
1690_ASBOX
1691 echo
1692 # The following way of writing the cache mishandles newlines in values,
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001693(
1694 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695 eval ac_val=\$$ac_var
1696 case $ac_val in #(
1697 *${as_nl}*)
1698 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001699 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001701 esac
1702 case $ac_var in #(
1703 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001704 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001705 esac ;;
1706 esac
1707 done
John Criswell3ef61af2003-06-30 21:59:07 +00001708 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001709 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710 *${as_nl}ac_space=\ *)
John Criswell3ef61af2003-06-30 21:59:07 +00001711 sed -n \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001712 "s/'\''/'\''\\\\'\'''\''/g;
1713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1714 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +00001715 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +00001717 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001718 esac |
1719 sort
1720)
John Criswell3ef61af2003-06-30 21:59:07 +00001721 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001722
1723 cat <<\_ASBOX
1724## ----------------- ##
1725## Output variables. ##
1726## ----------------- ##
1727_ASBOX
1728 echo
1729 for ac_var in $ac_subst_vars
1730 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001731 eval ac_val=\$$ac_var
1732 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001734 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001735 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001736 done | sort
1737 echo
1738
1739 if test -n "$ac_subst_files"; then
1740 cat <<\_ASBOX
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001741## ------------------- ##
1742## File substitutions. ##
1743## ------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +00001744_ASBOX
1745 echo
1746 for ac_var in $ac_subst_files
1747 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001748 eval ac_val=\$$ac_var
1749 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001751 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001752 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001753 done | sort
1754 echo
1755 fi
1756
John Criswell3ef61af2003-06-30 21:59:07 +00001757 if test -s confdefs.h; then
1758 cat <<\_ASBOX
1759## ----------- ##
1760## confdefs.h. ##
1761## ----------- ##
1762_ASBOX
1763 echo
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001764 cat confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001765 echo
1766 fi
1767 test "$ac_signal" != 0 &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001768 echo "$as_me: caught signal $ac_signal"
1769 echo "$as_me: exit $exit_status"
John Criswell3ef61af2003-06-30 21:59:07 +00001770 } >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001771 rm -f core *.core core.conftest.* &&
1772 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell3ef61af2003-06-30 21:59:07 +00001773 exit $exit_status
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001774' 0
John Criswell3ef61af2003-06-30 21:59:07 +00001775for ac_signal in 1 2 13 15; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001776 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell3ef61af2003-06-30 21:59:07 +00001777done
1778ac_signal=0
1779
1780# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001781rm -f -r conftest* confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001782
1783# Predefined preprocessor variables.
1784
1785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_NAME "$PACKAGE_NAME"
1787_ACEOF
1788
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001789
John Criswell3ef61af2003-06-30 21:59:07 +00001790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792_ACEOF
1793
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001794
John Criswell3ef61af2003-06-30 21:59:07 +00001795cat >>confdefs.h <<_ACEOF
1796#define PACKAGE_VERSION "$PACKAGE_VERSION"
1797_ACEOF
1798
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001799
John Criswell3ef61af2003-06-30 21:59:07 +00001800cat >>confdefs.h <<_ACEOF
1801#define PACKAGE_STRING "$PACKAGE_STRING"
1802_ACEOF
1803
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001804
John Criswell3ef61af2003-06-30 21:59:07 +00001805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807_ACEOF
1808
1809
1810# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001811# Prefer explicitly selected file to automatically selected ones.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001812if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001813 set x "$CONFIG_SITE"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001814elif test "x$prefix" != xNONE; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001815 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001816else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001817 set x "$ac_default_prefix/share/config.site" \
1818 "$ac_default_prefix/etc/config.site"
John Criswell3ef61af2003-06-30 21:59:07 +00001819fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001820shift
1821for ac_site_file
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001822do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001823 if test -r "$ac_site_file"; then
1824 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001826 sed 's/^/| /' "$ac_site_file" >&5
1827 . "$ac_site_file"
1828 fi
1829done
1830
1831if test -r "$cache_file"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001832 # Some versions of bash will fail to source /dev/null (special
1833 # files actually), so we avoid doing that.
1834 if test -f "$cache_file"; then
1835 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836echo "$as_me: loading cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001837 case $cache_file in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001838 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839 *) . "./$cache_file";;
John Criswell3ef61af2003-06-30 21:59:07 +00001840 esac
1841 fi
1842else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844echo "$as_me: creating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001845 >$cache_file
1846fi
1847
1848# Check that the precious variables saved in the cache have kept the same
1849# value.
1850ac_cache_corrupted=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001851for ac_var in $ac_precious_vars; do
John Criswell3ef61af2003-06-30 21:59:07 +00001852 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001854 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell3ef61af2003-06-30 21:59:07 +00001856 case $ac_old_set,$ac_new_set in
1857 set,)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001858 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001860 ac_cache_corrupted=: ;;
1861 ,set)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001862 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001864 ac_cache_corrupted=: ;;
1865 ,);;
1866 *)
1867 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001868 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1871echo "$as_me: former value: $ac_old_val" >&2;}
1872 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1873echo "$as_me: current value: $ac_new_val" >&2;}
1874 ac_cache_corrupted=:
John Criswell3ef61af2003-06-30 21:59:07 +00001875 fi;;
1876 esac
1877 # Pass precious variables to config.status.
1878 if test "$ac_new_set" = set; then
1879 case $ac_new_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001880 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001881 *) ac_arg=$ac_var=$ac_new_val ;;
1882 esac
1883 case " $ac_configure_args " in
1884 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001885 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001886 esac
1887 fi
1888done
1889if $ac_cache_corrupted; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001890 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001895fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001920
John Criswell3ef61af2003-06-30 21:59:07 +00001921ac_ext=c
1922ac_cpp='$CPP $CPPFLAGS'
1923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926
1927
1928
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001929cat >>confdefs.h <<\_ACEOF
1930#define LLVM_VERSION_MAJOR 3
1931_ACEOF
1932
1933
1934cat >>confdefs.h <<\_ACEOF
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001935#define LLVM_VERSION_MINOR 3
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001936_ACEOF
1937
1938
NAKAMURA Takumi43632a22013-01-01 10:00:19 +00001939LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
Reid Spencer0241e382004-11-25 04:51:04 +00001940
1941
1942
1943
1944
1945
1946
John Criswell3ef61af2003-06-30 21:59:07 +00001947ac_aux_dir=
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001948for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001949 if test -f "$ac_dir/install-sh"; then
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/install-sh -c"
1952 break
1953 elif test -f "$ac_dir/install.sh"; then
1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/install.sh -c"
1956 break
1957 elif test -f "$ac_dir/shtool"; then
1958 ac_aux_dir=$ac_dir
1959 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 break
1961 fi
John Criswell3ef61af2003-06-30 21:59:07 +00001962done
1963if test -z "$ac_aux_dir"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001964 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1965echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1966 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001967fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001968
1969# These three variables are undocumented and unsupported,
1970# and are intended to be withdrawn in a future Autoconf release.
1971# They can cause serious problems if a builder's source tree is in a directory
1972# whose full name contains unusual characters.
1973ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1974ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1975ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976
John Criswell3ef61af2003-06-30 21:59:07 +00001977
John Criswellc933eeb2003-07-22 19:18:09 +00001978
Reid Spencerf184a862004-09-19 23:53:36 +00001979if test ${srcdir} != "." ; then
Reid Spencer0241e382004-11-25 04:51:04 +00001980 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001981 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1982echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1983 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00001984 fi
John Criswell22107a72003-09-15 17:04:06 +00001985fi
1986
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00001987${CFLAGS=}
1988${CXXFLAGS=}
1989
Nick Lewyckyc5975fc2009-09-29 05:48:51 +00001990ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +00001991ac_cpp='$CPP $CPPFLAGS'
1992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00001995if test -n "$ac_tool_prefix"; then
Eric Christopher58839712011-09-16 20:36:25 +00001996 for ac_prog in clang llvm-gcc gcc
John Criswell3ef61af2003-06-30 21:59:07 +00001997 do
1998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002004else
Reid Spencer0241e382004-11-25 04:51:04 +00002005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002017 break 2
2018 fi
2019done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002020done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002021IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002022
2023fi
2024fi
Reid Spencer0241e382004-11-25 04:51:04 +00002025CC=$ac_cv_prog_CC
2026if test -n "$CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002027 { echo "$as_me:$LINENO: result: $CC" >&5
2028echo "${ECHO_T}$CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002029else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002030 { echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002032fi
2033
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002034
Reid Spencer0241e382004-11-25 04:51:04 +00002035 test -n "$CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002036 done
2037fi
Reid Spencer0241e382004-11-25 04:51:04 +00002038if test -z "$CC"; then
2039 ac_ct_CC=$CC
Eric Christopher58839712011-09-16 20:36:25 +00002040 for ac_prog in clang llvm-gcc gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002041do
2042 # Extract the first word of "$ac_prog", so it can be a program name with args.
2043set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2046if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002048else
Reid Spencer0241e382004-11-25 04:51:04 +00002049 if test -n "$ac_ct_CC"; then
2050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002051else
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH
2054do
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002059 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002061 break 2
2062 fi
2063done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002064done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002065IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002066
2067fi
2068fi
Reid Spencer0241e382004-11-25 04:51:04 +00002069ac_ct_CC=$ac_cv_prog_ac_ct_CC
2070if test -n "$ac_ct_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002071 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2072echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002073else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002074 { echo "$as_me:$LINENO: result: no" >&5
2075echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002076fi
2077
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002078
Reid Spencer0241e382004-11-25 04:51:04 +00002079 test -n "$ac_ct_CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002080done
John Criswell3ef61af2003-06-30 21:59:07 +00002081
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002082 if test "x$ac_ct_CC" = x; then
2083 CC=""
2084 else
2085 case $cross_compiling:$ac_tool_warned in
2086yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002087{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2088whose name does not start with the host triplet. If you think this
2089configuration is useful to you, please write to autoconf@gnu.org." >&5
2090echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2091whose name does not start with the host triplet. If you think this
2092configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002093ac_tool_warned=yes ;;
2094esac
2095 CC=$ac_ct_CC
2096 fi
Reid Spencer0241e382004-11-25 04:51:04 +00002097fi
2098
John Criswell3ef61af2003-06-30 21:59:07 +00002099
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002100test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2101See \`config.log' for more details." >&5
2102echo "$as_me: error: no acceptable C compiler found in \$PATH
2103See \`config.log' for more details." >&2;}
2104 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00002105
John Criswell3ef61af2003-06-30 21:59:07 +00002106# Provide some information about the compiler.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002107echo "$as_me:$LINENO: checking for C compiler version" >&5
2108ac_compiler=`set X $ac_compile; echo $2`
2109{ (ac_try="$ac_compiler --version >&5"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002110case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler --version >&5") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002116 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119{ (ac_try="$ac_compiler -v >&5"
2120case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123esac
2124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125 (eval "$ac_compiler -v >&5") 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2129{ (ac_try="$ac_compiler -V >&5"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compiler -V >&5") 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
John Criswell3ef61af2003-06-30 21:59:07 +00002139
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002140cat >conftest.$ac_ext <<_ACEOF
2141/* confdefs.h. */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002145/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002146
John Criswell3ef61af2003-06-30 21:59:07 +00002147int
2148main ()
2149{
2150
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002156ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell3ef61af2003-06-30 21:59:07 +00002157# Try to create an executable without -o first, disregard a.out.
2158# It will help us diagnose broken compilers, and finding out an intuition
2159# of exeext.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002160{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2162ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163#
2164# List of possible output files, starting from the most likely.
2165# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2166# only as a last resort. b.out is created by i960 compilers.
2167ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2168#
2169# The IRIX 6 linker writes into existing files which may not be
2170# executable, retaining their permissions. Remove them first so a
2171# subsequent execution test works.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002172ac_rmfiles=
2173for ac_file in $ac_files
2174do
2175 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2178 esac
2179done
2180rm -f $ac_rmfiles
2181
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002182if { (ac_try="$ac_link_default"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002183case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002188 (eval "$ac_link_default") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002189 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2193# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2194# in a Makefile. We should not override ac_cv_exeext if it was cached,
2195# so that the user can short-circuit this test for compilers unknown to
2196# Autoconf.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002197for ac_file in $ac_files
John Criswell3eaf0b42003-09-10 15:17:25 +00002198do
2199 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002200 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencerf184a862004-09-19 23:53:36 +00002202 ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002203 [ab].out )
Reid Spencerf184a862004-09-19 23:53:36 +00002204 # We found the default executable, but exeext='' is most
2205 # certainly right.
2206 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002207 *.* )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002208 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002209 then :; else
2210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211 fi
2212 # We set ac_cv_exeext here because the later test for it is not
2213 # safe: cross compilers may not add the suffix if given an `-o'
2214 # argument, so we may need to know it at that point already.
2215 # Even if this section looks crufty: it has the advantage of
2216 # actually working.
Reid Spencerf184a862004-09-19 23:53:36 +00002217 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002218 * )
Reid Spencerf184a862004-09-19 23:53:36 +00002219 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002220 esac
2221done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002222test "$ac_cv_exeext" = no && ac_cv_exeext=
2223
John Criswell3ef61af2003-06-30 21:59:07 +00002224else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002225 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002226sed 's/^/| /' conftest.$ac_ext >&5
2227
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002228{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229See \`config.log' for more details." >&5
2230echo "$as_me: error: C compiler cannot create executables
2231See \`config.log' for more details." >&2;}
2232 { (exit 77); exit 77; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002233fi
John Criswell3ef61af2003-06-30 21:59:07 +00002234
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002235ac_exeext=$ac_cv_exeext
2236{ echo "$as_me:$LINENO: result: $ac_file" >&5
2237echo "${ECHO_T}$ac_file" >&6; }
2238
2239# Check that the compiler produces executables we can run. If not, either
2240# the compiler is broken, or we cross compile.
2241{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2243# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244# If not cross compiling, check that we can run a simple program.
2245if test "$cross_compiling" != yes; then
2246 if { ac_try='./$ac_file'
2247 { (case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250esac
2251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_try") 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2256 cross_compiling=no
2257 else
2258 if test "$cross_compiling" = maybe; then
2259 cross_compiling=yes
2260 else
2261 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2262If you meant to cross compile, use \`--host'.
2263See \`config.log' for more details." >&5
2264echo "$as_me: error: cannot run C compiled programs.
2265If you meant to cross compile, use \`--host'.
2266See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2268 fi
2269 fi
2270fi
2271{ echo "$as_me:$LINENO: result: yes" >&5
2272echo "${ECHO_T}yes" >&6; }
2273
2274rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell3ef61af2003-06-30 21:59:07 +00002275ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002276# Check that the compiler produces executables we can run. If not, either
2277# the compiler is broken, or we cross compile.
2278{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2279echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2280{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2281echo "${ECHO_T}$cross_compiling" >&6; }
2282
2283{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2284echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2285if { (ac_try="$ac_link"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002286case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002291 (eval "$ac_link") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002292 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002295 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2297# work properly (i.e., refer to `conftest.exe'), while it won't with
2298# `rm'.
John Criswell3eaf0b42003-09-10 15:17:25 +00002299for ac_file in conftest.exe conftest conftest.*; do
2300 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002301 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002303 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencerf184a862004-09-19 23:53:36 +00002304 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002305 * ) break;;
2306 esac
2307done
2308else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002309 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2310See \`config.log' for more details." >&5
2311echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2312See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002314fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002315
2316rm -f conftest$ac_cv_exeext
2317{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2318echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002319
2320rm -f conftest.$ac_ext
2321EXEEXT=$ac_cv_exeext
2322ac_exeext=$EXEEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002323{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2324echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2325if test "${ac_cv_objext+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00002327else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002328 cat >conftest.$ac_ext <<_ACEOF
2329/* confdefs.h. */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002333/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002334
John Criswell3ef61af2003-06-30 21:59:07 +00002335int
2336main ()
2337{
2338
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343rm -f conftest.o conftest.obj
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002344if { (ac_try="$ac_compile"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002345case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002350 (eval "$ac_compile") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002351 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002354 for ac_file in conftest.o conftest.obj conftest.*; do
2355 test -f "$ac_file" || continue;
John Criswell3ef61af2003-06-30 21:59:07 +00002356 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002358 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2359 break;;
2360 esac
2361done
2362else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002363 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002364sed 's/^/| /' conftest.$ac_ext >&5
2365
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002366{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2367See \`config.log' for more details." >&5
2368echo "$as_me: error: cannot compute suffix of object files: cannot compile
2369See \`config.log' for more details." >&2;}
2370 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002371fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002372
John Criswell3ef61af2003-06-30 21:59:07 +00002373rm -f conftest.$ac_cv_objext conftest.$ac_ext
2374fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002375{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2376echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002377OBJEXT=$ac_cv_objext
2378ac_objext=$OBJEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002379{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2380echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2381if test "${ac_cv_c_compiler_gnu+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002383else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002384 cat >conftest.$ac_ext <<_ACEOF
2385/* confdefs.h. */
2386_ACEOF
2387cat confdefs.h >>conftest.$ac_ext
2388cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002389/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002390
John Criswell3ef61af2003-06-30 21:59:07 +00002391int
2392main ()
2393{
2394#ifndef __GNUC__
2395 choke me
2396#endif
2397
2398 ;
2399 return 0;
2400}
2401_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002402rm -f conftest.$ac_objext
2403if { (ac_try="$ac_compile"
2404case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407esac
2408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_compile") 2>conftest.er1
2410 ac_status=$?
2411 grep -v '^ *+' conftest.er1 >conftest.err
2412 rm -f conftest.er1
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2417 { (case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420esac
2421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_try") 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430esac
2431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_try") 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002436 ac_compiler_gnu=yes
2437else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002438 echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 ac_compiler_gnu=no
John Criswell3ef61af2003-06-30 21:59:07 +00002442fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002443
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002445ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002446
2447fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002448{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2450GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer0241e382004-11-25 04:51:04 +00002451ac_test_CFLAGS=${CFLAGS+set}
2452ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002453{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2455if test "${ac_cv_prog_cc_g+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002457else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002458 ac_save_c_werror_flag=$ac_c_werror_flag
2459 ac_c_werror_flag=yes
2460 ac_cv_prog_cc_g=no
2461 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002462 cat >conftest.$ac_ext <<_ACEOF
2463/* confdefs.h. */
2464_ACEOF
2465cat confdefs.h >>conftest.$ac_ext
2466cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002467/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002468
John Criswell3ef61af2003-06-30 21:59:07 +00002469int
2470main ()
2471{
2472
2473 ;
2474 return 0;
2475}
2476_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002477rm -f conftest.$ac_objext
2478if { (ac_try="$ac_compile"
2479case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482esac
2483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_compile") 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2492 { (case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495esac
2496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_try") 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505esac
2506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_try") 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002511 ac_cv_prog_cc_g=yes
John Criswell3ef61af2003-06-30 21:59:07 +00002512else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516 CFLAGS=""
2517 cat >conftest.$ac_ext <<_ACEOF
2518/* confdefs.h. */
2519_ACEOF
2520cat confdefs.h >>conftest.$ac_ext
2521cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002522/* end confdefs.h. */
2523
2524int
2525main ()
2526{
2527
2528 ;
2529 return 0;
2530}
2531_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002532rm -f conftest.$ac_objext
2533if { (ac_try="$ac_compile"
2534case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_compile") 2>conftest.er1
2540 ac_status=$?
2541 grep -v '^ *+' conftest.er1 >conftest.err
2542 rm -f conftest.er1
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2547 { (case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2550esac
2551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_try") 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560esac
2561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_try") 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 :
Torok Edwinaec06332010-01-26 08:50:50 +00002567else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002568 echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002572 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002573 cat >conftest.$ac_ext <<_ACEOF
2574/* confdefs.h. */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002578/* end confdefs.h. */
2579
2580int
2581main ()
2582{
2583
2584 ;
2585 return 0;
2586}
2587_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002588rm -f conftest.$ac_objext
2589if { (ac_try="$ac_compile"
2590case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593esac
2594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_compile") 2>conftest.er1
2596 ac_status=$?
2597 grep -v '^ *+' conftest.er1 >conftest.err
2598 rm -f conftest.er1
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2603 { (case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606esac
2607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_try") 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2616esac
2617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_try") 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002622 ac_cv_prog_cc_g=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002623else
2624 echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627
John Criswell3ef61af2003-06-30 21:59:07 +00002628fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002629
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00002631fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002632
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002635
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_c_werror_flag=$ac_save_c_werror_flag
2638fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002639{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2640echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00002641if test "$ac_test_CFLAGS" = set; then
2642 CFLAGS=$ac_save_CFLAGS
2643elif test $ac_cv_prog_cc_g = yes; then
2644 if test "$GCC" = yes; then
2645 CFLAGS="-g -O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002646 else
Reid Spencer0241e382004-11-25 04:51:04 +00002647 CFLAGS="-g"
John Criswell3ef61af2003-06-30 21:59:07 +00002648 fi
2649else
Reid Spencer0241e382004-11-25 04:51:04 +00002650 if test "$GCC" = yes; then
2651 CFLAGS="-O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002652 else
Reid Spencer0241e382004-11-25 04:51:04 +00002653 CFLAGS=
John Criswell3ef61af2003-06-30 21:59:07 +00002654 fi
2655fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002656{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2657echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2658if test "${ac_cv_prog_cc_c89+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00002660else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002661 ac_cv_prog_cc_c89=no
Reid Spencer0241e382004-11-25 04:51:04 +00002662ac_save_CC=$CC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002663cat >conftest.$ac_ext <<_ACEOF
2664/* confdefs.h. */
2665_ACEOF
2666cat confdefs.h >>conftest.$ac_ext
2667cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00002668/* end confdefs.h. */
2669#include <stdarg.h>
2670#include <stdio.h>
2671#include <sys/types.h>
2672#include <sys/stat.h>
2673/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2674struct buf { int x; };
2675FILE * (*rcsopen) (struct buf *, struct stat *, int);
2676static char *e (p, i)
2677 char **p;
2678 int i;
2679{
2680 return p[i];
2681}
2682static char *f (char * (*g) (char **, int), char **p, ...)
2683{
2684 char *s;
2685 va_list v;
2686 va_start (v,p);
2687 s = g (p, va_arg (v,int));
2688 va_end (v);
2689 return s;
2690}
2691
2692/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2693 function prototypes and stuff, but not '\xHH' hex character constants.
2694 These don't provoke an error unfortunately, instead are silently treated
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002695 as 'x'. The following induces an error, until -std is added to get
Reid Spencer0241e382004-11-25 04:51:04 +00002696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2697 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002698 that's true only with -std. */
Reid Spencer0241e382004-11-25 04:51:04 +00002699int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2700
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002701/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2702 inside strings and character constants. */
2703#define FOO(x) 'x'
2704int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2705
Reid Spencer0241e382004-11-25 04:51:04 +00002706int test (int i, double x);
2707struct s1 {int (*f) (int a);};
2708struct s2 {int (*f) (double a);};
2709int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2710int argc;
2711char **argv;
2712int
2713main ()
2714{
2715return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2716 ;
2717 return 0;
2718}
2719_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002720for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer0241e382004-11-25 04:51:04 +00002722do
2723 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002724 rm -f conftest.$ac_objext
2725if { (ac_try="$ac_compile"
2726case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729esac
2730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compile") 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2739 { (case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_try") 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_try") 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002758 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002759else
2760 echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763
Reid Spencer0241e382004-11-25 04:51:04 +00002764fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002765
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002766rm -f core conftest.err conftest.$ac_objext
2767 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer0241e382004-11-25 04:51:04 +00002768done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002769rm -f conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002770CC=$ac_save_CC
2771
2772fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002773# AC_CACHE_VAL
2774case "x$ac_cv_prog_cc_c89" in
2775 x)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002776 { echo "$as_me:$LINENO: result: none needed" >&5
2777echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002778 xno)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002779 { echo "$as_me:$LINENO: result: unsupported" >&5
2780echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002781 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002782 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002783 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2784echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002785esac
2786
John Criswell3eaf0b42003-09-10 15:17:25 +00002787
Reid Spencer0241e382004-11-25 04:51:04 +00002788ac_ext=c
2789ac_cpp='$CPP $CPPFLAGS'
2790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793
Eric Christopher58839712011-09-16 20:36:25 +00002794ac_ext=cpp
2795ac_cpp='$CXXCPP $CPPFLAGS'
2796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2799if test -z "$CXX"; then
2800 if test -n "$CCC"; then
2801 CXX=$CCC
2802 else
2803 if test -n "$ac_tool_prefix"; then
2804 for ac_prog in clang++ llvm-g++ g++
2805 do
2806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810if test "${ac_cv_prog_CXX+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812else
2813 if test -n "$CXX"; then
2814 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827done
2828done
2829IFS=$as_save_IFS
2830
2831fi
2832fi
2833CXX=$ac_cv_prog_CXX
2834if test -n "$CXX"; then
2835 { echo "$as_me:$LINENO: result: $CXX" >&5
2836echo "${ECHO_T}$CXX" >&6; }
2837else
2838 { echo "$as_me:$LINENO: result: no" >&5
2839echo "${ECHO_T}no" >&6; }
2840fi
2841
2842
2843 test -n "$CXX" && break
2844 done
2845fi
2846if test -z "$CXX"; then
2847 ac_ct_CXX=$CXX
2848 for ac_prog in clang++ llvm-g++ g++
2849do
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851set dummy $ac_prog; ac_word=$2
2852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2854if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 if test -n "$ac_ct_CXX"; then
2858 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_ac_ct_CXX="$ac_prog"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871done
2872done
2873IFS=$as_save_IFS
2874
2875fi
2876fi
2877ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2878if test -n "$ac_ct_CXX"; then
2879 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2880echo "${ECHO_T}$ac_ct_CXX" >&6; }
2881else
2882 { echo "$as_me:$LINENO: result: no" >&5
2883echo "${ECHO_T}no" >&6; }
2884fi
2885
2886
2887 test -n "$ac_ct_CXX" && break
2888done
2889
2890 if test "x$ac_ct_CXX" = x; then
2891 CXX="g++"
2892 else
2893 case $cross_compiling:$ac_tool_warned in
2894yes:)
2895{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2896whose name does not start with the host triplet. If you think this
2897configuration is useful to you, please write to autoconf@gnu.org." >&5
2898echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2899whose name does not start with the host triplet. If you think this
2900configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2901ac_tool_warned=yes ;;
2902esac
2903 CXX=$ac_ct_CXX
2904 fi
2905fi
2906
2907 fi
2908fi
2909# Provide some information about the compiler.
2910echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2911ac_compiler=`set X $ac_compile; echo $2`
2912{ (ac_try="$ac_compiler --version >&5"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler --version >&5") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922{ (ac_try="$ac_compiler -v >&5"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
2927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compiler -v >&5") 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932{ (ac_try="$ac_compiler -V >&5"
2933case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936esac
2937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compiler -V >&5") 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942
2943{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2944echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2945if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947else
2948 cat >conftest.$ac_ext <<_ACEOF
2949/* confdefs.h. */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h. */
2954
2955int
2956main ()
2957{
2958#ifndef __GNUC__
2959 choke me
2960#endif
2961
2962 ;
2963 return 0;
2964}
2965_ACEOF
2966rm -f conftest.$ac_objext
2967if { (ac_try="$ac_compile"
2968case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compile") 2>conftest.er1
2974 ac_status=$?
2975 grep -v '^ *+' conftest.er1 >conftest.err
2976 rm -f conftest.er1
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2981 { (case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_try") 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; } &&
2990 { ac_try='test -s conftest.$ac_objext'
2991 { (case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994esac
2995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_try") 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_compiler_gnu=yes
3001else
3002 echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 ac_compiler_gnu=no
3006fi
3007
3008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3010
3011fi
3012{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3013echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3014GXX=`test $ac_compiler_gnu = yes && echo yes`
3015ac_test_CXXFLAGS=${CXXFLAGS+set}
3016ac_save_CXXFLAGS=$CXXFLAGS
3017{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3018echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3019if test "${ac_cv_prog_cxx_g+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021else
3022 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3023 ac_cxx_werror_flag=yes
3024 ac_cv_prog_cxx_g=no
3025 CXXFLAGS="-g"
3026 cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h. */
3032
3033int
3034main ()
3035{
3036
3037 ;
3038 return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext
3042if { (ac_try="$ac_compile"
3043case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } &&
3055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3056 { (case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
3060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_try") 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; } &&
3065 { ac_try='test -s conftest.$ac_objext'
3066 { (case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_try") 2>&5
3072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; }; then
3075 ac_cv_prog_cxx_g=yes
3076else
3077 echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080 CXXFLAGS=""
3081 cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h. */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h. */
3087
3088int
3089main ()
3090{
3091
3092 ;
3093 return 0;
3094}
3095_ACEOF
3096rm -f conftest.$ac_objext
3097if { (ac_try="$ac_compile"
3098case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; } &&
3120 { ac_try='test -s conftest.$ac_objext'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; }; then
3130 :
3131else
3132 echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3136 CXXFLAGS="-g"
3137 cat >conftest.$ac_ext <<_ACEOF
3138/* confdefs.h. */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h. */
3143
3144int
3145main ()
3146{
3147
3148 ;
3149 return 0;
3150}
3151_ACEOF
3152rm -f conftest.$ac_objext
3153if { (ac_try="$ac_compile"
3154case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_compile") 2>conftest.er1
3160 ac_status=$?
3161 grep -v '^ *+' conftest.er1 >conftest.err
3162 rm -f conftest.er1
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3167 { (case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_try") 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180esac
3181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_try") 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_prog_cxx_g=yes
3187else
3188 echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3202fi
3203{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3204echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3205if test "$ac_test_CXXFLAGS" = set; then
3206 CXXFLAGS=$ac_save_CXXFLAGS
3207elif test $ac_cv_prog_cxx_g = yes; then
3208 if test "$GXX" = yes; then
3209 CXXFLAGS="-g -O2"
3210 else
3211 CXXFLAGS="-g"
3212 fi
3213else
3214 if test "$GXX" = yes; then
3215 CXXFLAGS="-O2"
3216 else
3217 CXXFLAGS=
3218 fi
3219fi
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer0241e382004-11-25 04:51:04 +00003225
Reid Spencer0241e382004-11-25 04:51:04 +00003226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003231{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3232echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003233# On Suns, sometimes $CPP names a directory.
3234if test -n "$CPP" && test -d "$CPP"; then
3235 CPP=
3236fi
3237if test -z "$CPP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003238 if test "${ac_cv_prog_CPP+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00003240else
3241 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 do
3244 ac_preproc_ok=false
3245for ac_c_preproc_warn_flag in '' yes
3246do
3247 # Use a header file that comes with gcc, so configuring glibc
3248 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser,
3252 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003253 cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003258/* end confdefs.h. */
3259#ifdef __STDC__
3260# include <limits.h>
3261#else
3262# include <assert.h>
3263#endif
3264 Syntax error
3265_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003266if { (ac_try="$ac_cpp conftest.$ac_ext"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } >/dev/null; then
3279 if test -s conftest.err; then
3280 ac_cpp_err=$ac_c_preproc_warn_flag
3281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3282 else
3283 ac_cpp_err=
3284 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003285else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003286 ac_cpp_err=yes
3287fi
3288if test -z "$ac_cpp_err"; then
3289 :
3290else
3291 echo "$as_me: failed program was:" >&5
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
Reid Spencer0241e382004-11-25 04:51:04 +00003294 # Broken: fails on valid input.
3295continue
3296fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003297
Reid Spencer0241e382004-11-25 04:51:04 +00003298rm -f conftest.err conftest.$ac_ext
3299
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003300 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003301 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003302 cat >conftest.$ac_ext <<_ACEOF
3303/* confdefs.h. */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003307/* end confdefs.h. */
3308#include <ac_nonexistent.h>
3309_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003310if { (ac_try="$ac_cpp conftest.$ac_ext"
3311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
3315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } >/dev/null; then
3323 if test -s conftest.err; then
3324 ac_cpp_err=$ac_c_preproc_warn_flag
3325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3326 else
3327 ac_cpp_err=
3328 fi
3329else
3330 ac_cpp_err=yes
3331fi
3332if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003333 # Broken: success on invalid input.
3334continue
3335else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003336 echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
Reid Spencer0241e382004-11-25 04:51:04 +00003339 # Passes both tests.
3340ac_preproc_ok=:
3341break
3342fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003343
Reid Spencer0241e382004-11-25 04:51:04 +00003344rm -f conftest.err conftest.$ac_ext
3345
3346done
3347# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3348rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003349if $ac_preproc_ok; then
Reid Spencer0241e382004-11-25 04:51:04 +00003350 break
3351fi
3352
3353 done
3354 ac_cv_prog_CPP=$CPP
3355
3356fi
3357 CPP=$ac_cv_prog_CPP
3358else
3359 ac_cv_prog_CPP=$CPP
3360fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003361{ echo "$as_me:$LINENO: result: $CPP" >&5
3362echo "${ECHO_T}$CPP" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003363ac_preproc_ok=false
3364for ac_c_preproc_warn_flag in '' yes
3365do
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
3368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369 # <limits.h> exists even on freestanding compilers.
3370 # On the NeXT, cc -E runs the code through the compiler's parser,
3371 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003372 cat >conftest.$ac_ext <<_ACEOF
3373/* confdefs.h. */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003377/* end confdefs.h. */
3378#ifdef __STDC__
3379# include <limits.h>
3380#else
3381# include <assert.h>
3382#endif
3383 Syntax error
3384_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003385if { (ac_try="$ac_cpp conftest.$ac_ext"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null; then
3398 if test -s conftest.err; then
3399 ac_cpp_err=$ac_c_preproc_warn_flag
3400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 else
3402 ac_cpp_err=
3403 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003404else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003405 ac_cpp_err=yes
3406fi
3407if test -z "$ac_cpp_err"; then
3408 :
3409else
3410 echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
Reid Spencer0241e382004-11-25 04:51:04 +00003413 # Broken: fails on valid input.
3414continue
3415fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003416
Reid Spencer0241e382004-11-25 04:51:04 +00003417rm -f conftest.err conftest.$ac_ext
3418
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003419 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003420 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003421 cat >conftest.$ac_ext <<_ACEOF
3422/* confdefs.h. */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003426/* end confdefs.h. */
3427#include <ac_nonexistent.h>
3428_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003429if { (ac_try="$ac_cpp conftest.$ac_ext"
3430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
3434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445 else
3446 ac_cpp_err=
3447 fi
3448else
3449 ac_cpp_err=yes
3450fi
3451if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003452 # Broken: success on invalid input.
3453continue
3454else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003455 echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
Reid Spencer0241e382004-11-25 04:51:04 +00003458 # Passes both tests.
3459ac_preproc_ok=:
3460break
3461fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003462
Reid Spencer0241e382004-11-25 04:51:04 +00003463rm -f conftest.err conftest.$ac_ext
3464
3465done
3466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003468if $ac_preproc_ok; then
3469 :
Reid Spencer0241e382004-11-25 04:51:04 +00003470else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003471 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3472See \`config.log' for more details." >&5
3473echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3474See \`config.log' for more details." >&2;}
3475 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00003476fi
3477
John Criswell3ef61af2003-06-30 21:59:07 +00003478ac_ext=c
3479ac_cpp='$CPP $CPPFLAGS'
3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
John Criswell3ef61af2003-06-30 21:59:07 +00003484
Dmitri Gribenko06358bd2013-01-09 15:25:30 +00003485if test "$CXX" = "clang++" ; then
3486 { echo "$as_me:$LINENO: checking whether clang works" >&5
3487echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3488 ac_ext=cpp
3489ac_cpp='$CXXCPP $CPPFLAGS'
3490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3493
3494
3495cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h. */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h. */
3501#include <limits>
3502#if __has_include (<cxxabi.h>)
3503#include <cxxabi.h>
3504#endif
3505#if __has_include (<unwind.h>)
3506#include <unwind.h>
3507#endif
3508
3509int
3510main ()
3511{
3512
3513 ;
3514 return 0;
3515}
3516_ACEOF
3517rm -f conftest.$ac_objext
3518if { (ac_try="$ac_compile"
3519case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522esac
3523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_compile") 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3532 { (case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535esac
3536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_try") 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545esac
3546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_try") 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551
3552 { echo "$as_me:$LINENO: result: yes" >&5
3553echo "${ECHO_T}yes" >&6; }
3554
3555else
3556 echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559
3560 { echo "$as_me:$LINENO: result: no" >&5
3561echo "${ECHO_T}no" >&6; }
3562 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3563echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3564 { (exit 1); exit 1; }; }
3565
3566fi
3567
3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_ext=c
3570ac_cpp='$CPP $CPPFLAGS'
3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574
3575fi
3576
Eric Christopher58839712011-09-16 20:36:25 +00003577
3578
3579if test -d ${srcdir}/projects/llvm-gcc ; then
3580 subdirs="$subdirs projects/llvm-gcc"
3581
3582fi
3583
3584if test -d ${srcdir}/projects/test-suite ; then
3585 subdirs="$subdirs projects/test-suite"
3586
3587fi
3588
3589if test -d ${srcdir}/projects/llvm-test ; then
3590 subdirs="$subdirs projects/llvm-test"
3591
3592fi
3593
3594if test -d ${srcdir}/projects/poolalloc ; then
3595 subdirs="$subdirs projects/poolalloc"
3596
3597fi
3598
3599if test -d ${srcdir}/projects/llvm-poolalloc ; then
3600 subdirs="$subdirs projects/llvm-poolalloc"
3601
3602fi
3603
3604for i in `ls ${srcdir}/projects`
3605do
3606 if test -d ${srcdir}/projects/${i} ; then
3607 case ${i} in
3608 sample) subdirs="$subdirs projects/sample"
3609 ;;
3610 privbracket) subdirs="$subdirs projects/privbracket"
3611 ;;
3612 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3613 ;;
3614 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3615;;
3616 llvm-java) subdirs="$subdirs projects/llvm-java"
3617 ;;
3618 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3619 ;;
3620 safecode) subdirs="$subdirs projects/safecode"
3621 ;;
3622 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3623 ;;
Daniel Dunbar7ce849d2011-12-07 22:07:03 +00003624 compiler-rt) ;;
Eric Christopher58839712011-09-16 20:36:25 +00003625 llvm-gcc) ;;
3626 test-suite) ;;
3627 llvm-test) ;;
3628 poolalloc) ;;
3629 llvm-poolalloc) ;;
3630 *)
3631 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3632echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3633 ;;
3634 esac
3635 fi
3636done
3637
3638# Check whether --enable-polly was given.
3639if test "${enable_polly+set}" = set; then
3640 enableval=$enable_polly;
3641else
3642 enableval=default
3643fi
3644
3645case "$enableval" in
3646 yes) ENABLE_POLLY=1
3647 ;;
3648 no) ENABLE_POLLY=0
3649 ;;
3650 default) ENABLE_POLLY=1
3651 ;;
3652 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3653echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3654 { (exit 1); exit 1; }; } ;;
3655esac
3656
3657
3658if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3659 LLVM_HAS_POLLY=1
3660
3661 subdirs="$subdirs tools/polly"
3662
3663fi
3664
3665
3666# Make sure we can run config.sub.
3667$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3668 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3669echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3670 { (exit 1); exit 1; }; }
3671
3672{ echo "$as_me:$LINENO: checking build system type" >&5
3673echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3674if test "${ac_cv_build+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677 ac_build_alias=$build_alias
3678test "x$ac_build_alias" = x &&
3679 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3680test "x$ac_build_alias" = x &&
3681 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3682echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3683 { (exit 1); exit 1; }; }
3684ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3685 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3686echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3687 { (exit 1); exit 1; }; }
3688
3689fi
3690{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3691echo "${ECHO_T}$ac_cv_build" >&6; }
3692case $ac_cv_build in
3693*-*-*) ;;
3694*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3695echo "$as_me: error: invalid value of canonical build" >&2;}
3696 { (exit 1); exit 1; }; };;
3697esac
3698build=$ac_cv_build
3699ac_save_IFS=$IFS; IFS='-'
3700set x $ac_cv_build
3701shift
3702build_cpu=$1
3703build_vendor=$2
3704shift; shift
3705# Remember, the first character of IFS is used to create $*,
3706# except with old shells:
3707build_os=$*
3708IFS=$ac_save_IFS
3709case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3710
3711
3712{ echo "$as_me:$LINENO: checking host system type" >&5
3713echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3714if test "${ac_cv_host+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 if test "x$host_alias" = x; then
3718 ac_cv_host=$ac_cv_build
3719else
3720 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3721 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3722echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3723 { (exit 1); exit 1; }; }
3724fi
3725
3726fi
3727{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3728echo "${ECHO_T}$ac_cv_host" >&6; }
3729case $ac_cv_host in
3730*-*-*) ;;
3731*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3732echo "$as_me: error: invalid value of canonical host" >&2;}
3733 { (exit 1); exit 1; }; };;
3734esac
3735host=$ac_cv_host
3736ac_save_IFS=$IFS; IFS='-'
3737set x $ac_cv_host
3738shift
3739host_cpu=$1
3740host_vendor=$2
3741shift; shift
3742# Remember, the first character of IFS is used to create $*,
3743# except with old shells:
3744host_os=$*
3745IFS=$ac_save_IFS
3746case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3747
3748
3749{ echo "$as_me:$LINENO: checking target system type" >&5
3750echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3751if test "${ac_cv_target+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 if test "x$target_alias" = x; then
3755 ac_cv_target=$ac_cv_host
3756else
3757 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3758 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3759echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3760 { (exit 1); exit 1; }; }
3761fi
3762
3763fi
3764{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3765echo "${ECHO_T}$ac_cv_target" >&6; }
3766case $ac_cv_target in
3767*-*-*) ;;
3768*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3769echo "$as_me: error: invalid value of canonical target" >&2;}
3770 { (exit 1); exit 1; }; };;
3771esac
3772target=$ac_cv_target
3773ac_save_IFS=$IFS; IFS='-'
3774set x $ac_cv_target
3775shift
3776target_cpu=$1
3777target_vendor=$2
3778shift; shift
3779# Remember, the first character of IFS is used to create $*,
3780# except with old shells:
3781target_os=$*
3782IFS=$ac_save_IFS
3783case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3784
3785
3786# The aliases save the names the user supplied, while $host etc.
3787# will get canonicalized.
3788test -n "$target_alias" &&
3789 test "$program_prefix$program_suffix$program_transform_name" = \
3790 NONENONEs,x,x, &&
3791 program_prefix=${target_alias}-
3792
3793{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3794echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3795if test "${llvm_cv_os_type+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 case $host in
3799 *-*-aix*)
3800 llvm_cv_link_all_option="-Wl,--whole-archive"
3801 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3802 llvm_cv_os_type="AIX"
3803 llvm_cv_platform_type="Unix" ;;
3804 *-*-irix*)
3805 llvm_cv_link_all_option="-Wl,--whole-archive"
3806 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807 llvm_cv_os_type="IRIX"
3808 llvm_cv_platform_type="Unix" ;;
3809 *-*-cygwin*)
3810 llvm_cv_link_all_option="-Wl,--whole-archive"
3811 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812 llvm_cv_os_type="Cygwin"
3813 llvm_cv_platform_type="Unix" ;;
3814 *-*-darwin*)
3815 llvm_cv_link_all_option="-Wl,-all_load"
3816 llvm_cv_no_link_all_option="-Wl,-noall_load"
3817 llvm_cv_os_type="Darwin"
3818 llvm_cv_platform_type="Unix" ;;
3819 *-*-minix*)
3820 llvm_cv_link_all_option="-Wl,-all_load"
3821 llvm_cv_no_link_all_option="-Wl,-noall_load"
3822 llvm_cv_os_type="Minix"
3823 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00003824 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopher58839712011-09-16 20:36:25 +00003825 llvm_cv_link_all_option="-Wl,--whole-archive"
3826 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3827 llvm_cv_os_type="FreeBSD"
3828 llvm_cv_platform_type="Unix" ;;
3829 *-*-openbsd*)
3830 llvm_cv_link_all_option="-Wl,--whole-archive"
3831 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832 llvm_cv_os_type="OpenBSD"
3833 llvm_cv_platform_type="Unix" ;;
3834 *-*-netbsd*)
3835 llvm_cv_link_all_option="-Wl,--whole-archive"
3836 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837 llvm_cv_os_type="NetBSD"
3838 llvm_cv_platform_type="Unix" ;;
3839 *-*-dragonfly*)
3840 llvm_cv_link_all_option="-Wl,--whole-archive"
3841 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842 llvm_cv_os_type="DragonFly"
3843 llvm_cv_platform_type="Unix" ;;
3844 *-*-hpux*)
3845 llvm_cv_link_all_option="-Wl,--whole-archive"
3846 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847 llvm_cv_os_type="HP-UX"
3848 llvm_cv_platform_type="Unix" ;;
3849 *-*-interix*)
3850 llvm_cv_link_all_option="-Wl,--whole-archive"
3851 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852 llvm_cv_os_type="Interix"
3853 llvm_cv_platform_type="Unix" ;;
3854 *-*-linux*)
3855 llvm_cv_link_all_option="-Wl,--whole-archive"
3856 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857 llvm_cv_os_type="Linux"
3858 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00003859 *-*-gnu*)
3860 llvm_cv_link_all_option="-Wl,--whole-archive"
3861 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862 llvm_cv_os_type="GNU"
3863 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003864 *-*-solaris*)
3865 llvm_cv_link_all_option="-Wl,-z,allextract"
3866 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3867 llvm_cv_os_type="SunOS"
3868 llvm_cv_platform_type="Unix" ;;
3869 *-*-auroraux*)
3870 llvm_cv_link_all_option="-Wl,-z,allextract"
3871 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3872 llvm_cv_os_type="AuroraUX"
3873 llvm_cv_platform_type="Unix" ;;
3874 *-*-win32*)
3875 llvm_cv_link_all_option="-Wl,--whole-archive"
3876 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3877 llvm_cv_os_type="Win32"
3878 llvm_cv_platform_type="Win32" ;;
3879 *-*-mingw*)
3880 llvm_cv_link_all_option="-Wl,--whole-archive"
3881 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3882 llvm_cv_os_type="MingW"
3883 llvm_cv_platform_type="Win32" ;;
3884 *-*-haiku*)
3885 llvm_cv_link_all_option="-Wl,--whole-archive"
3886 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887 llvm_cv_os_type="Haiku"
3888 llvm_cv_platform_type="Unix" ;;
3889 *-unknown-eabi*)
3890 llvm_cv_link_all_option="-Wl,--whole-archive"
3891 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892 llvm_cv_os_type="Freestanding"
3893 llvm_cv_platform_type="Unix" ;;
3894 *-unknown-elf*)
3895 llvm_cv_link_all_option="-Wl,--whole-archive"
3896 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897 llvm_cv_os_type="Freestanding"
3898 llvm_cv_platform_type="Unix" ;;
3899 *)
3900 llvm_cv_link_all_option=""
3901 llvm_cv_no_link_all_option=""
3902 llvm_cv_os_type="Unknown"
3903 llvm_cv_platform_type="Unknown" ;;
3904esac
3905fi
3906{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3907echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3908
3909{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3910echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3911if test "${llvm_cv_target_os_type+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 case $target in
3915 *-*-aix*)
3916 llvm_cv_target_os_type="AIX" ;;
3917 *-*-irix*)
3918 llvm_cv_target_os_type="IRIX" ;;
3919 *-*-cygwin*)
3920 llvm_cv_target_os_type="Cygwin" ;;
3921 *-*-darwin*)
3922 llvm_cv_target_os_type="Darwin" ;;
3923 *-*-minix*)
3924 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00003925 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopher58839712011-09-16 20:36:25 +00003926 llvm_cv_target_os_type="FreeBSD" ;;
3927 *-*-openbsd*)
3928 llvm_cv_target_os_type="OpenBSD" ;;
3929 *-*-netbsd*)
3930 llvm_cv_target_os_type="NetBSD" ;;
3931 *-*-dragonfly*)
3932 llvm_cv_target_os_type="DragonFly" ;;
3933 *-*-hpux*)
3934 llvm_cv_target_os_type="HP-UX" ;;
3935 *-*-interix*)
3936 llvm_cv_target_os_type="Interix" ;;
3937 *-*-linux*)
3938 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledrue8235fe2012-04-05 19:34:15 +00003939 *-*-gnu*)
3940 llvm_cv_target_os_type="GNU" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003941 *-*-solaris*)
3942 llvm_cv_target_os_type="SunOS" ;;
3943 *-*-auroraux*)
3944 llvm_cv_target_os_type="AuroraUX" ;;
3945 *-*-win32*)
3946 llvm_cv_target_os_type="Win32" ;;
3947 *-*-mingw*)
3948 llvm_cv_target_os_type="MingW" ;;
3949 *-*-haiku*)
3950 llvm_cv_target_os_type="Haiku" ;;
3951 *-*-rtems*)
3952 llvm_cv_target_os_type="RTEMS" ;;
3953 *-*-nacl*)
3954 llvm_cv_target_os_type="NativeClient" ;;
3955 *-unknown-eabi*)
3956 llvm_cv_target_os_type="Freestanding" ;;
3957 *)
3958 llvm_cv_target_os_type="Unknown" ;;
3959esac
3960fi
3961{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3962echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3963
3964if test "$llvm_cv_os_type" = "Unknown" ; then
3965 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3966echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3967 { (exit 1); exit 1; }; }
3968fi
3969
3970OS=$llvm_cv_os_type
3971
3972HOST_OS=$llvm_cv_os_type
3973
3974TARGET_OS=$llvm_cv_target_os_type
3975
3976
3977LINKALL=$llvm_cv_link_all_option
3978
3979NOLINKALL=$llvm_cv_no_link_all_option
3980
3981
3982case $llvm_cv_platform_type in
3983 Unix)
3984
3985cat >>confdefs.h <<\_ACEOF
3986#define LLVM_ON_UNIX 1
3987_ACEOF
3988
3989 LLVM_ON_UNIX=1
3990
3991 LLVM_ON_WIN32=0
3992
3993 ;;
3994 Win32)
3995
3996cat >>confdefs.h <<\_ACEOF
3997#define LLVM_ON_WIN32 1
3998_ACEOF
3999
4000 LLVM_ON_UNIX=0
4001
4002 LLVM_ON_WIN32=1
4003
4004 ;;
4005esac
4006
4007{ echo "$as_me:$LINENO: checking target architecture" >&5
4008echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4009if test "${llvm_cv_target_arch+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 case $target in
4013 i?86-*) llvm_cv_target_arch="x86" ;;
4014 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4015 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4016 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004017 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004018 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004019 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4020 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004021 xcore-*) llvm_cv_target_arch="XCore" ;;
4022 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00004023 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004024 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00004025 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004026 *) llvm_cv_target_arch="Unknown" ;;
4027esac
4028fi
4029{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4030echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4031
4032if test "$llvm_cv_target_arch" = "Unknown" ; then
4033 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4034echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4035fi
4036
Eric Christopher58839712011-09-16 20:36:25 +00004037case "$llvm_cv_target_arch" in
4038 x86) LLVM_NATIVE_ARCH="X86" ;;
4039 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4040 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4041esac
4042
4043ARCH=$llvm_cv_target_arch
4044
4045
Danil Malyshev7c5db452012-05-17 21:07:47 +00004046case $host in
4047 i?86-*) host_arch="x86" ;;
4048 amd64-* | x86_64-*) host_arch="x86_64" ;;
4049 sparc*-*) host_arch="Sparc" ;;
4050 powerpc*-*) host_arch="PowerPC" ;;
4051 arm*-*) host_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004052 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004053 mips-* | mips64-*) host_arch="Mips" ;;
4054 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004055 xcore-*) host_arch="XCore" ;;
4056 msp430-*) host_arch="MSP430" ;;
4057 hexagon-*) host_arch="Hexagon" ;;
4058 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004059 *) host_arch="Unknown" ;;
4060esac
4061
4062if test "$host_arch" = "Unknown" ; then
4063 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4064echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4065fi
4066
4067HOST_ARCH=$host_arch
4068
4069
Eric Christopher58839712011-09-16 20:36:25 +00004070
4071
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004072{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4073echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4074if test "${ac_cv_path_GREP+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00004076else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004077 # Extract the first word of "grep ggrep" to use in msg output
4078if test -z "$GREP"; then
4079set dummy grep ggrep; ac_prog_name=$2
4080if test "${ac_cv_path_GREP+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004083 ac_path_GREP_found=false
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004084# Loop through the user's path and test for each of PROGNAME-LIST
4085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004086for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencera40c6872004-11-29 12:29:58 +00004087do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004090 for ac_prog in grep ggrep; do
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4093 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4094 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004095 # Check for GNU $ac_path_GREP
4096case `"$ac_path_GREP" --version 2>&1` in
4097*GNU*)
4098 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4099*)
4100 ac_count=0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004101 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004102 while :
4103 do
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004107 echo 'GREP' >> "conftest.nl"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004110 ac_count=`expr $ac_count + 1`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4112 # Best one so far, save it but keep looking for a better one
4113 ac_cv_path_GREP="$ac_path_GREP"
4114 ac_path_GREP_max=$ac_count
Reid Spencera40c6872004-11-29 12:29:58 +00004115 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004116 # 10*(2^10) chars as input seems more than enough
4117 test $ac_count -gt 10 && break
4118 done
4119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120esac
4121
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004122
4123 $ac_path_GREP_found && break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004124 done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004125done
4126
4127done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004128IFS=$as_save_IFS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004129
4130
4131fi
4132
4133GREP="$ac_cv_path_GREP"
4134if test -z "$GREP"; then
4135 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4136echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4137 { (exit 1); exit 1; }; }
4138fi
4139
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004140else
4141 ac_cv_path_GREP=$GREP
4142fi
Reid Spencera40c6872004-11-29 12:29:58 +00004143
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004144
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004145fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004146{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4147echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004148 GREP="$ac_cv_path_GREP"
4149
4150
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004151{ echo "$as_me:$LINENO: checking for egrep" >&5
4152echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4153if test "${ac_cv_path_EGREP+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004155else
4156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4157 then ac_cv_path_EGREP="$GREP -E"
4158 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004159 # Extract the first word of "egrep" to use in msg output
4160if test -z "$EGREP"; then
4161set dummy egrep; ac_prog_name=$2
4162if test "${ac_cv_path_EGREP+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004165 ac_path_EGREP_found=false
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004166# Loop through the user's path and test for each of PROGNAME-LIST
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004168for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004172 for ac_prog in egrep; do
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4175 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4176 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004177 # Check for GNU $ac_path_EGREP
4178case `"$ac_path_EGREP" --version 2>&1` in
4179*GNU*)
4180 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4181*)
4182 ac_count=0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004183 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004184 while :
4185 do
4186 cat "conftest.in" "conftest.in" >"conftest.tmp"
4187 mv "conftest.tmp" "conftest.in"
4188 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004189 echo 'EGREP' >> "conftest.nl"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004190 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004192 ac_count=`expr $ac_count + 1`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004193 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4194 # Best one so far, save it but keep looking for a better one
4195 ac_cv_path_EGREP="$ac_path_EGREP"
4196 ac_path_EGREP_max=$ac_count
4197 fi
4198 # 10*(2^10) chars as input seems more than enough
4199 test $ac_count -gt 10 && break
4200 done
4201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202esac
4203
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004204
4205 $ac_path_EGREP_found && break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004206 done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004207done
4208
4209done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004210IFS=$as_save_IFS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004211
4212
4213fi
4214
4215EGREP="$ac_cv_path_EGREP"
4216if test -z "$EGREP"; then
4217 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4218echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4219 { (exit 1); exit 1; }; }
4220fi
4221
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004222else
4223 ac_cv_path_EGREP=$EGREP
4224fi
4225
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004226
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004227 fi
4228fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004229{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4230echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004231 EGREP="$ac_cv_path_EGREP"
4232
4233
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004234{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4235echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4236if test "${ac_cv_header_stdc+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00004238else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004239 cat >conftest.$ac_ext <<_ACEOF
4240/* confdefs.h. */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004244/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004245#include <stdlib.h>
4246#include <stdarg.h>
4247#include <string.h>
4248#include <float.h>
4249
John Criswell3eaf0b42003-09-10 15:17:25 +00004250int
4251main ()
4252{
4253
4254 ;
4255 return 0;
4256}
John Criswell3ef61af2003-06-30 21:59:07 +00004257_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004258rm -f conftest.$ac_objext
4259if { (ac_try="$ac_compile"
4260case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00004292 ac_cv_header_stdc=yes
4293else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004294 echo "$as_me: failed program was:" >&5
4295sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 ac_cv_header_stdc=no
John Criswell3ef61af2003-06-30 21:59:07 +00004298fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004299
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00004301
4302if test $ac_cv_header_stdc = yes; then
4303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004304 cat >conftest.$ac_ext <<_ACEOF
4305/* confdefs.h. */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004309/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004310#include <string.h>
4311
4312_ACEOF
4313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004314 $EGREP "memchr" >/dev/null 2>&1; then
4315 :
John Criswell3ef61af2003-06-30 21:59:07 +00004316else
4317 ac_cv_header_stdc=no
4318fi
4319rm -f conftest*
4320
4321fi
4322
4323if test $ac_cv_header_stdc = yes; then
4324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004325 cat >conftest.$ac_ext <<_ACEOF
4326/* confdefs.h. */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004330/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004331#include <stdlib.h>
4332
4333_ACEOF
4334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004335 $EGREP "free" >/dev/null 2>&1; then
4336 :
John Criswell3ef61af2003-06-30 21:59:07 +00004337else
4338 ac_cv_header_stdc=no
4339fi
4340rm -f conftest*
4341
4342fi
4343
4344if test $ac_cv_header_stdc = yes; then
4345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004346 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +00004347 :
4348else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004349 cat >conftest.$ac_ext <<_ACEOF
4350/* confdefs.h. */
4351_ACEOF
4352cat confdefs.h >>conftest.$ac_ext
4353cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004354/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004355#include <ctype.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004356#include <stdlib.h>
John Criswell3ef61af2003-06-30 21:59:07 +00004357#if ((' ' & 0x0FF) == 0x020)
4358# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4359# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4360#else
John Criswell3eaf0b42003-09-10 15:17:25 +00004361# define ISLOWER(c) \
Reid Spencerf184a862004-09-19 23:53:36 +00004362 (('a' <= (c) && (c) <= 'i') \
4363 || ('j' <= (c) && (c) <= 'r') \
4364 || ('s' <= (c) && (c) <= 'z'))
John Criswell3ef61af2003-06-30 21:59:07 +00004365# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4366#endif
4367
4368#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4369int
4370main ()
4371{
4372 int i;
4373 for (i = 0; i < 256; i++)
4374 if (XOR (islower (i), ISLOWER (i))
Reid Spencerf184a862004-09-19 23:53:36 +00004375 || toupper (i) != TOUPPER (i))
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004376 return 2;
4377 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +00004378}
4379_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004380rm -f conftest$ac_exeext
4381if { (ac_try="$ac_link"
4382case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385esac
4386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_link") 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4391 { (case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394esac
4395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_try") 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 :
John Criswell3ef61af2003-06-30 21:59:07 +00004401else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004402 echo "$as_me: program exited with status $ac_status" >&5
4403echo "$as_me: failed program was:" >&5
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
4406( exit $ac_status )
4407ac_cv_header_stdc=no
John Criswell3ef61af2003-06-30 21:59:07 +00004408fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004410fi
4411
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004412
John Criswell3ef61af2003-06-30 21:59:07 +00004413fi
4414fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004415{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00004417if test $ac_cv_header_stdc = yes; then
4418
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004419cat >>confdefs.h <<\_ACEOF
4420#define STDC_HEADERS 1
4421_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00004422
4423fi
4424
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004425# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004426
4427
4428
4429
4430
4431
4432
4433
4434
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004435for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004437do
4438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450$ac_includes_default
4451
4452#include <$ac_header>
4453_ACEOF
4454rm -f conftest.$ac_objext
4455if { (ac_try="$ac_compile"
4456case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_compile") 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4469 { (case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472esac
4473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_try") 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (case "(($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_try") 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 eval "$as_ac_Header=yes"
4489else
4490 echo "$as_me: failed program was:" >&5
4491sed 's/^/| /' conftest.$ac_ext >&5
4492
4493 eval "$as_ac_Header=no"
4494fi
4495
4496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497fi
4498ac_res=`eval echo '${'$as_ac_Header'}'`
4499 { echo "$as_me:$LINENO: result: $ac_res" >&5
4500echo "${ECHO_T}$ac_res" >&6; }
4501if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004502 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004504_ACEOF
4505
4506fi
4507
4508done
4509
4510
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004511{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4512echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4513if test "${ac_cv_c_bigendian+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004515else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004516 # See if sys/param.h defines the BYTE_ORDER macro.
4517cat >conftest.$ac_ext <<_ACEOF
4518/* confdefs.h. */
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004519_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004520cat confdefs.h >>conftest.$ac_ext
4521cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004522/* end confdefs.h. */
4523#include <sys/types.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004524#include <sys/param.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004525
4526int
4527main ()
4528{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004529#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4530 bogus endian macros
4531#endif
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004532
4533 ;
4534 return 0;
4535}
4536_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004537rm -f conftest.$ac_objext
4538if { (ac_try="$ac_compile"
4539case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542esac
4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_compile") 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4552 { (case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_try") 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try='test -s conftest.$ac_objext'
4562 { (case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565esac
4566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567 (eval "$ac_try") 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004571 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004572cat >conftest.$ac_ext <<_ACEOF
4573/* confdefs.h. */
4574_ACEOF
4575cat confdefs.h >>conftest.$ac_ext
4576cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004577/* end confdefs.h. */
4578#include <sys/types.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004579#include <sys/param.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004580
4581int
4582main ()
4583{
4584#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004585 not big endian
4586#endif
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004587
4588 ;
4589 return 0;
4590}
4591_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004592rm -f conftest.$ac_objext
4593if { (ac_try="$ac_compile"
4594case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_compile") 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610esac
4611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try='test -s conftest.$ac_objext'
4617 { (case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620esac
4621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_try") 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004626 ac_cv_c_bigendian=yes
4627else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004628 echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwinaec06332010-01-26 08:50:50 +00004630
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004631 ac_cv_c_bigendian=no
4632fi
4633
4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635else
4636 echo "$as_me: failed program was:" >&5
4637sed 's/^/| /' conftest.$ac_ext >&5
4638
4639 # It does not; compile a test program.
4640if test "$cross_compiling" = yes; then
4641 # try to guess the endianness by grepping values into an object file
4642 ac_cv_c_bigendian=unknown
4643 cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h. */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h. */
4649short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4650short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4651void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4652short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4653short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4654void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004655int
4656main ()
4657{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004658 _ascii (); _ebcdic ();
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004659 ;
4660 return 0;
4661}
4662_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004663rm -f conftest.$ac_objext
4664if { (ac_try="$ac_compile"
4665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
4669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_compile") 2>conftest.er1
4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4678 { (case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681esac
4682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_try") 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4691esac
4692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_try") 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004698 ac_cv_c_bigendian=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004699fi
4700if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4701 if test "$ac_cv_c_bigendian" = unknown; then
4702 ac_cv_c_bigendian=no
4703 else
4704 # finding both strings is unlikely to happen, but who knows?
4705 ac_cv_c_bigendian=unknown
4706 fi
4707fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004708else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004709 echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004711
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004712
Torok Edwinaec06332010-01-26 08:50:50 +00004713fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004714
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004717 cat >conftest.$ac_ext <<_ACEOF
4718/* confdefs.h. */
4719_ACEOF
4720cat confdefs.h >>conftest.$ac_ext
4721cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004722/* end confdefs.h. */
4723$ac_includes_default
4724int
4725main ()
4726{
4727
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004728 /* Are we little or big endian? From Harbison&Steele. */
4729 union
4730 {
4731 long int l;
4732 char c[sizeof (long int)];
4733 } u;
4734 u.l = 1;
4735 return u.c[sizeof (long int) - 1] == 1;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004736
4737 ;
4738 return 0;
4739}
4740_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004741rm -f conftest$ac_exeext
4742if { (ac_try="$ac_link"
4743case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746esac
4747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_link") 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4752 { (case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755esac
4756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_try") 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004761 ac_cv_c_bigendian=no
4762else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004763 echo "$as_me: program exited with status $ac_status" >&5
4764echo "$as_me: failed program was:" >&5
4765sed 's/^/| /' conftest.$ac_ext >&5
4766
4767( exit $ac_status )
4768ac_cv_c_bigendian=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004769fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004771fi
4772
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004773
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004774fi
4775
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777fi
4778{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4779echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4780case $ac_cv_c_bigendian in
4781 yes)
4782 ENDIAN=big
4783 ;;
4784 no)
4785 ENDIAN=little
4786 ;;
4787 *)
4788 { { echo "$as_me:$LINENO: error: unknown endianness
4789presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4790echo "$as_me: error: unknown endianness
4791presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4792 { (exit 1); exit 1; }; } ;;
4793esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004794
4795
4796if test "$cross_compiling" = yes; then
4797 LLVM_CROSS_COMPILING=1
4798
4799
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004800{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4801echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4802if test "${ac_cv_build_exeext+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004804else
4805 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4806 ac_cv_build_exeext=.exe
4807else
4808 ac_build_prefix=${build_alias}-
4809
4810 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4811set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004816else
4817 if test -n "$BUILD_CC"; then
4818 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4819else
4820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004827 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004829 break 2
4830 fi
4831done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004832done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004833IFS=$as_save_IFS
4834
4835fi
4836fi
4837BUILD_CC=$ac_cv_prog_BUILD_CC
4838if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004839 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4840echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004841else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004842 { echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004844fi
4845
4846
4847 if test -z "$BUILD_CC"; then
4848 # Extract the first word of "gcc", so it can be a program name with args.
4849set dummy gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004854else
4855 if test -n "$BUILD_CC"; then
4856 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4857else
4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004865 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004867 break 2
4868 fi
4869done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004870done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004871IFS=$as_save_IFS
4872
4873fi
4874fi
4875BUILD_CC=$ac_cv_prog_BUILD_CC
4876if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004877 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4878echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004879else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004880 { echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004882fi
4883
4884
4885 if test -z "$BUILD_CC"; then
4886 # Extract the first word of "cc", so it can be a program name with args.
4887set dummy cc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004892else
4893 if test -n "$BUILD_CC"; then
4894 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4895else
4896 ac_prog_rejected=no
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4905 ac_prog_rejected=yes
4906 continue
4907 fi
4908 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004910 break 2
4911 fi
4912done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004913done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004914IFS=$as_save_IFS
4915
4916if test $ac_prog_rejected = yes; then
4917 # We found a bogon in the path, so make sure we never use it.
4918 set dummy $ac_cv_prog_BUILD_CC
4919 shift
4920 if test $# != 0; then
4921 # We chose a different compiler from the bogus one.
4922 # However, it has the same basename, so the bogon will be chosen
4923 # first if we set BUILD_CC to just the basename; use the full file name.
4924 shift
4925 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4926 fi
4927fi
4928fi
4929fi
4930BUILD_CC=$ac_cv_prog_BUILD_CC
4931if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004932 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4933echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004934else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004935 { echo "$as_me:$LINENO: result: no" >&5
4936echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004937fi
4938
4939
4940 fi
4941 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004942 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4943echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4944 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004945 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4946 rm -f conftest*
4947 echo 'int main () { return 0; }' > conftest.$ac_ext
4948 ac_cv_build_exeext=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004949 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004950 (eval $ac_build_link) 2>&5
4951 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004954 for file in conftest.*; do
4955 case $file in
Jim Grosbachbfc70b02008-09-26 17:27:58 +00004956 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004957 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4958 esac
4959 done
4960 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004961 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4962echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4963 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004964 fi
4965 rm -f conftest*
4966 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4967fi
4968fi
4969
4970BUILD_EXEEXT=""
4971test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004972{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4973echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004974ac_build_exeext=$BUILD_EXEEXT
4975
Jim Grosbach009db892008-10-02 22:56:44 +00004976 ac_build_prefix=${build_alias}-
4977 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4978set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004983else
4984 if test -n "$BUILD_CXX"; then
4985 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4986else
4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH
4989do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00004994 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004996 break 2
4997 fi
4998done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004999done
Jim Grosbach009db892008-10-02 22:56:44 +00005000IFS=$as_save_IFS
5001
5002fi
5003fi
5004BUILD_CXX=$ac_cv_prog_BUILD_CXX
5005if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005006 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5007echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005008else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005009 { echo "$as_me:$LINENO: result: no" >&5
5010echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005011fi
5012
5013
5014 if test -z "$BUILD_CXX"; then
5015 # Extract the first word of "g++", so it can be a program name with args.
5016set dummy g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5019if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00005021else
5022 if test -n "$BUILD_CXX"; then
5023 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5024else
5025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026for as_dir in $PATH
5027do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00005032 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00005034 break 2
5035 fi
5036done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005037done
Jim Grosbach009db892008-10-02 22:56:44 +00005038IFS=$as_save_IFS
5039
5040fi
5041fi
5042BUILD_CXX=$ac_cv_prog_BUILD_CXX
5043if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005044 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5045echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005046else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005047 { echo "$as_me:$LINENO: result: no" >&5
5048echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005049fi
5050
5051
5052 if test -z "$BUILD_CXX"; then
5053 # Extract the first word of "c++", so it can be a program name with args.
5054set dummy c++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5057if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00005059else
5060 if test -n "$BUILD_CXX"; then
5061 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5062else
5063 ac_prog_rejected=no
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00005071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5072 ac_prog_rejected=yes
5073 continue
5074 fi
5075 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00005077 break 2
5078 fi
5079done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005080done
Jim Grosbach009db892008-10-02 22:56:44 +00005081IFS=$as_save_IFS
5082
5083if test $ac_prog_rejected = yes; then
5084 # We found a bogon in the path, so make sure we never use it.
5085 set dummy $ac_cv_prog_BUILD_CXX
5086 shift
5087 if test $# != 0; then
5088 # We chose a different compiler from the bogus one.
5089 # However, it has the same basename, so the bogon will be chosen
5090 # first if we set BUILD_CXX to just the basename; use the full file name.
5091 shift
5092 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5093 fi
5094fi
5095fi
5096fi
5097BUILD_CXX=$ac_cv_prog_BUILD_CXX
5098if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005099 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5100echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005101else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005102 { echo "$as_me:$LINENO: result: no" >&5
5103echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005104fi
5105
5106
5107 fi
5108 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005109else
5110 LLVM_CROSS_COMPILING=0
5111
5112fi
5113
Dan Gohmande75469c2010-08-04 16:25:01 +00005114if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005115 cvsbuild="yes"
5116 optimize="no"
5117 CVSBUILD=CVSBUILD=1
5118
5119else
5120 cvsbuild="no"
5121 optimize="yes"
5122fi
5123
5124
Eric Christopher1094ded2011-11-11 22:51:42 +00005125# Check whether --enable-libcpp was given.
5126if test "${enable_libcpp+set}" = set; then
5127 enableval=$enable_libcpp;
5128else
5129 enableval=default
5130fi
5131
5132case "$enableval" in
5133 yes) ENABLE_LIBCPP=1
5134 ;;
5135 no) ENABLE_LIBCPP=0
5136 ;;
5137 default) ENABLE_LIBCPP=0
5138;;
5139 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5140echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5141 { (exit 1); exit 1; }; } ;;
5142esac
5143
Eric Christopher04e35972012-08-03 19:47:14 +00005144# Check whether --enable-cxx11 was given.
5145if test "${enable_cxx11+set}" = set; then
5146 enableval=$enable_cxx11;
5147else
5148 enableval=default
5149fi
5150
5151case "$enableval" in
5152 yes) ENABLE_CXX11=1
5153 ;;
5154 no) ENABLE_CXX11=0
5155 ;;
5156 default) ENABLE_CXX11=0
5157;;
5158 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5159echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5161esac
5162
Roman Divackyf2bb66b2012-12-13 16:07:19 +00005163clang_arcmt="yes"
5164# Check whether --enable-clang-arcmt was given.
5165if test "${enable_clang_arcmt+set}" = set; then
5166 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5167else
5168 enableval="yes"
5169fi
5170
5171case "$enableval" in
5172 yes) ENABLE_CLANG_ARCMT=1
5173 ;;
5174 no) ENABLE_CLANG_ARCMT=0
5175 ;;
5176 default) ENABLE_CLANG_ARCMT=1
5177;;
5178 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5179echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5181esac
5182
5183clang_static_analyzer="yes"
5184# Check whether --enable-clang-static-analyzer was given.
5185if test "${enable_clang_static_analyzer+set}" = set; then
5186 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5187else
5188 enableval="yes"
5189fi
5190
5191case "$enableval" in
5192 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5193 ;;
5194 no) ENABLE_CLANG_STATIC_ANALYZER=0
5195 ;;
5196 default) ENABLE_CLANG_STATIC_ANALYZER=1
5197;;
5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5199echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5200 { (exit 1); exit 1; }; } ;;
5201esac
5202
5203# Check whether --enable-clang-rewriter was given.
5204if test "${enable_clang_rewriter+set}" = set; then
5205 enableval=$enable_clang_rewriter;
5206else
5207 enableval="yes"
5208fi
5209
5210case "$enableval" in
5211 yes) ENABLE_CLANG_REWRITER=1
5212 ;;
5213 no)
Benjamin Kramerd14720d2012-12-26 10:48:49 +00005214 if test ${clang_arcmt} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00005215 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5216echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5217 { (exit 1); exit 1; }; }
5218 fi
Benjamin Kramerd14720d2012-12-26 10:48:49 +00005219 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00005220 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5221echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5222 { (exit 1); exit 1; }; }
5223 fi
5224 ENABLE_CLANG_REWRITER=0
5225
5226 ;;
5227 default) ENABLE_CLANG_REWRITER=1
5228;;
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5230echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5232esac
5233
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005234# Check whether --enable-optimized was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005235if test "${enable_optimized+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005236 enableval=$enable_optimized;
5237else
5238 enableval=$optimize
5239fi
5240
5241if test ${enableval} = "no" ; then
5242 ENABLE_OPTIMIZED=
5243
5244else
5245 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5246
5247fi
5248
David Greenec0a34a072009-04-17 14:50:39 +00005249# Check whether --enable-profiling was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005250if test "${enable_profiling+set}" = set; then
David Greenec0a34a072009-04-17 14:50:39 +00005251 enableval=$enable_profiling;
5252else
5253 enableval="no"
5254fi
5255
5256if test ${enableval} = "no" ; then
5257 ENABLE_PROFILING=
5258
5259else
5260 ENABLE_PROFILING=ENABLE_PROFILING=1
5261
5262fi
5263
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005264# Check whether --enable-assertions was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005265if test "${enable_assertions+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005266 enableval=$enable_assertions;
5267else
5268 enableval="yes"
5269fi
5270
5271if test ${enableval} = "yes" ; then
5272 DISABLE_ASSERTIONS=
5273
5274else
5275 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5276
5277fi
5278
Eric Christopher84864012012-08-03 19:58:20 +00005279# Check whether --enable-werror was given.
5280if test "${enable_werror+set}" = set; then
5281 enableval=$enable_werror;
5282else
5283 enableval="no"
5284fi
5285
5286case "$enableval" in
5287 yes) ENABLE_WERROR=1
5288 ;;
5289 no) ENABLE_WERROR=0
5290 ;;
5291 default) ENABLE_WERROR=0
5292;;
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5294echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5296esac
5297
David Greenecbc8ddf2007-06-28 19:36:08 +00005298# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005299if test "${enable_expensive_checks+set}" = set; then
David Greenecbc8ddf2007-06-28 19:36:08 +00005300 enableval=$enable_expensive_checks;
5301else
5302 enableval="no"
5303fi
5304
5305if test ${enableval} = "yes" ; then
5306 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5307
5308 EXPENSIVE_CHECKS=yes
5309
5310else
5311 ENABLE_EXPENSIVE_CHECKS=
5312
5313 EXPENSIVE_CHECKS=no
5314
5315fi
5316
Reid Spencer4b8067f2006-11-17 03:32:33 +00005317# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005318if test "${enable_debug_runtime+set}" = set; then
Reid Spencer4b8067f2006-11-17 03:32:33 +00005319 enableval=$enable_debug_runtime;
5320else
5321 enableval=no
5322fi
5323
5324if test ${enableval} = "no" ; then
5325 DEBUG_RUNTIME=
5326
5327else
5328 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5329
5330fi
5331
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005332# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005333if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005334 enableval=$enable_debug_symbols;
5335else
5336 enableval=no
5337fi
5338
5339if test ${enableval} = "no" ; then
5340 DEBUG_SYMBOLS=
5341
5342else
5343 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5344
5345fi
5346
Daniel Dunbar39c04622012-08-14 18:14:22 +00005347# Check whether --enable-keep-symbols was given.
5348if test "${enable_keep_symbols+set}" = set; then
5349 enableval=$enable_keep_symbols;
5350else
5351 enableval=no
5352fi
5353
5354if test ${enableval} = "no" ; then
5355 KEEP_SYMBOLS=
5356
5357else
5358 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5359
5360fi
5361
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005362# Check whether --enable-jit was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005363if test "${enable_jit+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005364 enableval=$enable_jit;
5365else
5366 enableval=default
5367fi
5368
5369if test ${enableval} = "no"
5370then
5371 JIT=
5372
5373else
5374 case "$llvm_cv_target_arch" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005375 x86) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005376 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005377 Sparc) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005378 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005379 PowerPC) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005380 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005381 x86_64) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005382 ;;
Eric Christopherd8530f32009-09-14 16:38:49 +00005383 ARM) TARGET_HAS_JIT=1
Reid Spencerd7c8b3c2007-01-21 06:32:59 +00005384 ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00005385 AArch64) TARGET_HAS_JIT=0
5386 ;;
Bruno Cardoso Lopesd1d9c782011-07-21 16:28:51 +00005387 Mips) TARGET_HAS_JIT=1
Tanya Lattnerbca16c82007-08-29 16:38:16 +00005388 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005389 XCore) TARGET_HAS_JIT=0
Richard Osborneca08e062008-11-07 10:59:00 +00005390 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005391 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov9173b492009-05-03 13:42:23 +00005392 ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005393 Hexagon) TARGET_HAS_JIT=0
5394 ;;
Wesley Pecke4801e42010-02-23 19:15:24 +00005395 MBlaze) TARGET_HAS_JIT=0
5396 ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005397 NVPTX) TARGET_HAS_JIT=0
5398 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005399 *) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005400 ;;
5401 esac
5402fi
5403
Rafael Espindola7ac506d2010-11-12 19:24:06 +00005404# Check whether --enable-docs was given.
5405if test "${enable_docs+set}" = set; then
5406 enableval=$enable_docs;
5407else
5408 enableval=default
5409fi
5410
5411case "$enableval" in
5412 yes) ENABLE_DOCS=1
5413 ;;
5414 no) ENABLE_DOCS=0
5415 ;;
5416 default) ENABLE_DOCS=1
5417 ;;
5418 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5419echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5420 { (exit 1); exit 1; }; } ;;
5421esac
5422
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005423# Check whether --enable-doxygen was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005424if test "${enable_doxygen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005425 enableval=$enable_doxygen;
5426else
5427 enableval=default
5428fi
5429
5430case "$enableval" in
5431 yes) ENABLE_DOXYGEN=1
5432 ;;
5433 no) ENABLE_DOXYGEN=0
5434 ;;
5435 default) ENABLE_DOXYGEN=0
5436 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005437 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5438echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5439 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005440esac
5441
5442# Check whether --enable-threads was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005443if test "${enable_threads+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005444 enableval=$enable_threads;
5445else
Reid Spencerd549edc2006-11-05 17:08:18 +00005446 enableval=default
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005447fi
5448
5449case "$enableval" in
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005450 yes) LLVM_ENABLE_THREADS=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005451 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005452 no) LLVM_ENABLE_THREADS=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005453 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005454 default) LLVM_ENABLE_THREADS=1
Reid Spencerd549edc2006-11-05 17:08:18 +00005455 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005456 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5457echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5458 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005459esac
5460
Owen Andersonaf5db832009-05-19 22:18:56 +00005461cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005462#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersonaf5db832009-05-19 22:18:56 +00005463_ACEOF
5464
5465
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00005466# Check whether --enable-pthreads was given.
5467if test "${enable_pthreads+set}" = set; then
5468 enableval=$enable_pthreads;
5469else
5470 enableval=default
5471fi
5472
5473case "$enableval" in
5474 yes) ENABLE_PTHREADS=1
5475 ;;
5476 no) ENABLE_PTHREADS=0
5477 ;;
5478 default) ENABLE_PTHREADS=1
5479 ;;
5480 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5481echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5482 { (exit 1); exit 1; }; } ;;
5483esac
5484
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00005485# Check whether --enable-zlib was given.
5486if test "${enable_zlib+set}" = set; then
5487 enableval=$enable_zlib;
5488else
5489 enableval=default
5490fi
5491
5492case "$enableval" in
5493 yes) LLVM_ENABLE_ZLIB=1
5494 ;;
5495 no) LLVM_ENABLE_ZLIB=0
5496 ;;
5497 default) LLVM_ENABLE_ZLIB=1
5498 ;;
5499 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5500echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5501 { (exit 1); exit 1; }; } ;;
5502esac
5503
5504cat >>confdefs.h <<_ACEOF
5505#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5506_ACEOF
5507
5508
Reid Spencer05a1fe52006-12-16 22:07:52 +00005509# Check whether --enable-pic was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005510if test "${enable_pic+set}" = set; then
Reid Spencer05a1fe52006-12-16 22:07:52 +00005511 enableval=$enable_pic;
5512else
5513 enableval=default
5514fi
5515
5516case "$enableval" in
5517 yes) ENABLE_PIC=1
5518 ;;
5519 no) ENABLE_PIC=0
5520 ;;
Nick Lewycky38525192009-02-19 06:18:56 +00005521 default) ENABLE_PIC=1
Reid Spencer05a1fe52006-12-16 22:07:52 +00005522 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005523 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5524echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5525 { (exit 1); exit 1; }; } ;;
Reid Spencer05a1fe52006-12-16 22:07:52 +00005526esac
5527
5528cat >>confdefs.h <<_ACEOF
5529#define ENABLE_PIC $ENABLE_PIC
5530_ACEOF
5531
5532
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00005533# Check whether --enable-shared was given.
5534if test "${enable_shared+set}" = set; then
5535 enableval=$enable_shared;
5536else
5537 enableval=default
5538fi
5539
5540case "$enableval" in
5541 yes) ENABLE_SHARED=1
5542 ;;
5543 no) ENABLE_SHARED=0
5544 ;;
5545 default) ENABLE_SHARED=0
5546 ;;
5547 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5548echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5549 { (exit 1); exit 1; }; } ;;
5550esac
5551
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005552# Check whether --enable-embed-stdcxx was given.
5553if test "${enable_embed_stdcxx+set}" = set; then
5554 enableval=$enable_embed_stdcxx;
5555else
5556 enableval=default
5557fi
5558
5559case "$enableval" in
5560 yes) ENABLE_EMBED_STDCXX=1
5561 ;;
5562 no) ENABLE_EMBED_STDCXX=0
5563 ;;
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00005564 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005565 ;;
5566 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5567echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5568 { (exit 1); exit 1; }; } ;;
5569esac
5570
Daniel Dunbardac18242010-05-10 20:11:56 +00005571# Check whether --enable-timestamps was given.
5572if test "${enable_timestamps+set}" = set; then
5573 enableval=$enable_timestamps;
5574else
5575 enableval=default
5576fi
5577
5578case "$enableval" in
5579 yes) ENABLE_TIMESTAMPS=1
5580 ;;
5581 no) ENABLE_TIMESTAMPS=0
5582 ;;
5583 default) ENABLE_TIMESTAMPS=1
5584 ;;
5585 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5586echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5587 { (exit 1); exit 1; }; } ;;
5588esac
5589
5590cat >>confdefs.h <<_ACEOF
5591#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5592_ACEOF
5593
5594
Eric Christopher9fafe072012-09-21 23:03:29 +00005595
5596# Check whether --enable-backtraces was given.
5597if test "${enable_backtraces+set}" = set; then
5598 enableval=$enable_backtraces;
5599else
5600 enableval=default
5601fi
5602
5603case "$enableval" in
Eric Christopherc6c2b9b2012-11-19 19:31:02 +00005604 yes) ENABLE_BACKTRACES=1
Eric Christopher9fafe072012-09-21 23:03:29 +00005605 ;;
Eric Christopherc6c2b9b2012-11-19 19:31:02 +00005606 no) ENABLE_BACKTRACES=0
Eric Christopher9fafe072012-09-21 23:03:29 +00005607 ;;
Eric Christopherc6c2b9b2012-11-19 19:31:02 +00005608 default) ENABLE_BACKTRACES=1
Eric Christopher9fafe072012-09-21 23:03:29 +00005609 ;;
5610 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5611echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5612 { (exit 1); exit 1; }; } ;;
5613esac
5614
5615cat >>confdefs.h <<_ACEOF
5616#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5617_ACEOF
5618
5619
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005620TARGETS_TO_BUILD=""
5621# Check whether --enable-targets was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005622if test "${enable_targets+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005623 enableval=$enable_targets;
5624else
5625 enableval=all
5626fi
5627
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005628if test "$enableval" = host-only ; then
5629 enableval=host
5630fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005631case "$enableval" in
Tim Northover43852f22013-02-04 12:32:21 +00005632 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005633 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5634 case "$a_target" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005635 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5636 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5637 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5638 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Joerg Sonnenberger981e99d2013-02-03 17:06:49 +00005639 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00005640 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005641 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindolae46f0962011-12-28 17:08:00 +00005642 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00005643 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5644 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005645 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5646 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005647 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005648 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecke4801e42010-02-23 19:15:24 +00005649 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005650 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005651 host) case "$llvm_cv_target_arch" in
5652 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5653 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5654 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5655 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jia Liu43eb48e2013-04-22 16:26:15 +00005656 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005657 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5658 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecke4801e42010-02-23 19:15:24 +00005659 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005660 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5661 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005662 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005663 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005664 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5665echo "$as_me: error: Can not set target to build" >&2;}
5666 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005667 esac ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005668 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5669echo "$as_me: error: Unrecognized target $a_target" >&2;}
5670 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005671 esac
5672 done
5673 ;;
5674esac
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00005675
5676# Check whether --enable-experimental-targets was given.
5677if test "${enable_experimental_targets+set}" = set; then
5678 enableval=$enable_experimental_targets;
5679else
5680 enableval=disable
5681fi
5682
5683
5684if test ${enableval} != "disable"
5685then
5686 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5687fi
5688
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005689TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5690
5691
Douglas Gregor43613a22009-06-17 00:43:20 +00005692for a_target in $TARGETS_TO_BUILD; do
5693 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5694
5695cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005696#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5697_ACEOF
5698
5699 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5700 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng8c886a42011-07-22 21:58:54 +00005701 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christophere7a9db12010-08-30 18:34:48 +00005702 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005703 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5704 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5705 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005706 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5707 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5708 fi
Eric Christophere7a9db12010-08-30 18:34:48 +00005709
5710cat >>confdefs.h <<_ACEOF
5711#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbaredf7b8b2010-08-03 14:26:17 +00005712_ACEOF
5713
5714
5715cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005716#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5717_ACEOF
5718
5719
5720cat >>confdefs.h <<_ACEOF
Evan Cheng8c886a42011-07-22 21:58:54 +00005721#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng2129f592011-07-19 06:37:02 +00005722_ACEOF
5723
5724
5725cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005726#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor43613a22009-06-17 00:43:20 +00005727_ACEOF
5728
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005729 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödin27e07c32011-03-09 17:25:46 +00005730
5731cat >>confdefs.h <<_ACEOF
5732#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5733_ACEOF
5734
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005735 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005736 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5737
5738cat >>confdefs.h <<_ACEOF
5739#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5740_ACEOF
5741
5742 fi
Douglas Gregor43613a22009-06-17 00:43:20 +00005743 fi
5744done
5745
Douglas Gregor1b731d52009-06-16 20:12:29 +00005746LLVM_ENUM_TARGETS=""
5747LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005748LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar32027202009-11-25 04:37:28 +00005749LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1b731d52009-06-16 20:12:29 +00005750for target_to_build in $TARGETS_TO_BUILD; do
5751 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattner28776602010-11-14 19:10:47 +00005752 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach0e854f32010-10-01 22:39:28 +00005753 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5754 fi
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005755 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5756 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5757 fi
Daniel Dunbar32027202009-11-25 04:37:28 +00005758 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5759 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5760 fi
Douglas Gregor1b731d52009-06-16 20:12:29 +00005761done
5762
5763
5764
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005765
Daniel Dunbar32027202009-11-25 04:37:28 +00005766
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005767
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005768# Check whether --with-optimize-option was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005769if test "${with_optimize_option+set}" = set; then
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005770 withval=$with_optimize_option;
5771else
5772 withval=default
5773fi
5774
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005775{ echo "$as_me:$LINENO: checking optimization flags" >&5
5776echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005777case "$withval" in
5778 default)
5779 case "$llvm_cv_os_type" in
Daniel Dunbard411fcb2010-04-30 17:12:26 +00005780 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +00005781 MingW) optimize_option=-O2 ;;
5782 *) optimize_option=-O3 ;;
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005783 esac ;;
5784 *) optimize_option="$withval" ;;
5785esac
5786OPTIMIZE_OPTION=$optimize_option
5787
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005788{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5789echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005790
5791
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005792# Check whether --with-extra-options was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005793if test "${with_extra_options+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005794 withval=$with_extra_options;
5795else
5796 withval=default
5797fi
5798
5799case "$withval" in
5800 default) EXTRA_OPTIONS= ;;
5801 *) EXTRA_OPTIONS=$withval ;;
5802esac
5803EXTRA_OPTIONS=$EXTRA_OPTIONS
5804
5805
Daniel Dunbar3b95df82011-06-16 22:30:41 +00005806
5807# Check whether --with-extra-ld-options was given.
5808if test "${with_extra_ld_options+set}" = set; then
5809 withval=$with_extra_ld_options;
5810else
5811 withval=default
5812fi
5813
5814case "$withval" in
5815 default) EXTRA_LD_OPTIONS= ;;
5816 *) EXTRA_LD_OPTIONS=$withval ;;
5817esac
5818EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5819
5820
Gordon Henriksene61dd672007-10-02 09:50:32 +00005821# Check whether --enable-bindings was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005822if test "${enable_bindings+set}" = set; then
Gordon Henriksene61dd672007-10-02 09:50:32 +00005823 enableval=$enable_bindings;
5824else
5825 enableval=default
5826fi
5827
5828BINDINGS_TO_BUILD=""
5829case "$enableval" in
Gordon Henriksenacc2a832007-10-02 10:14:42 +00005830 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005831 all ) BINDINGS_TO_BUILD="ocaml" ;;
5832 none | no) BINDINGS_TO_BUILD="" ;;
5833 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5834 case "$a_binding" in
5835 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005836 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5837echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5838 { (exit 1); exit 1; }; } ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005839 esac
5840 done
5841 ;;
5842esac
5843
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005844
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005845# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005846if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005847 withval=$with_ocaml_libdir;
5848else
5849 withval=auto
5850fi
5851
5852case "$withval" in
5853 auto) with_ocaml_libdir="$withval" ;;
5854 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005855 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5856echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5857 { (exit 1); exit 1; }; } ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005858esac
5859
5860
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005861# Check whether --with-clang-srcdir was given.
5862if test "${with_clang_srcdir+set}" = set; then
5863 withval=$with_clang_srcdir;
5864else
5865 withval="-"
5866fi
5867
5868case "$withval" in
Eric Christopher7f977de2012-02-02 00:19:05 +00005869 -) clang_src_root="" ;;
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005870 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5871 *) clang_src_root="$ac_pwd/$withval" ;;
5872esac
5873CLANG_SRC_ROOT=$clang_src_root
5874
5875
5876
Chandler Carruthffae4a62010-10-19 08:21:25 +00005877# Check whether --with-clang-resource-dir was given.
5878if test "${with_clang_resource_dir+set}" = set; then
5879 withval=$with_clang_resource_dir;
5880else
5881 withval=""
5882fi
5883
5884
5885cat >>confdefs.h <<_ACEOF
5886#define CLANG_RESOURCE_DIR "$withval"
5887_ACEOF
5888
5889
5890
Rafael Espindola662908c2009-12-07 00:27:35 +00005891# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005892if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola662908c2009-12-07 00:27:35 +00005893 withval=$with_c_include_dirs;
Rafael Espindolad95960b2009-11-12 05:46:09 +00005894else
5895 withval=""
5896fi
5897
5898
5899cat >>confdefs.h <<_ACEOF
5900#define C_INCLUDE_DIRS "$withval"
5901_ACEOF
5902
5903
Rafael Espindolaec217f62012-02-03 00:59:30 +00005904# Clang normally uses the system c++ headers and libraries. With this option,
5905# clang will use the ones provided by a gcc installation instead. This option should
5906# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindolad95960b2009-11-12 05:46:09 +00005907
Rafael Espindolaec217f62012-02-03 00:59:30 +00005908# Check whether --with-gcc-toolchain was given.
5909if test "${with_gcc_toolchain+set}" = set; then
5910 withval=$with_gcc_toolchain;
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005911else
5912 withval=""
5913fi
5914
5915
5916cat >>confdefs.h <<_ACEOF
Rafael Espindolaec217f62012-02-03 00:59:30 +00005917#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005918_ACEOF
5919
5920
5921
Sebastian Pope29a6c72012-04-30 20:06:58 +00005922# Check whether --with-default-sysroot was given.
5923if test "${with_default_sysroot+set}" = set; then
5924 withval=$with_default_sysroot;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00005925else
5926 withval=""
5927fi
5928
5929
5930cat >>confdefs.h <<_ACEOF
5931#define DEFAULT_SYSROOT "$withval"
5932_ACEOF
5933
5934
5935
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005936# Check whether --with-binutils-include was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005937if test "${with_binutils_include+set}" = set; then
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005938 withval=$with_binutils_include;
5939else
5940 withval=default
5941fi
5942
5943case "$withval" in
5944 default) WITH_BINUTILS_INCDIR=default ;;
5945 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005946 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5947echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5948 { (exit 1); exit 1; }; } ;;
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005949esac
5950if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5951 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5952
5953 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5954 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005955 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5956echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5957 { (exit 1); exit 1; }; };
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005958 fi
5959fi
5960
Eric Christopher65080cc2011-07-20 17:04:49 +00005961
5962# Check whether --with-bug-report-url was given.
5963if test "${with_bug_report_url+set}" = set; then
5964 withval=$with_bug_report_url;
5965else
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00005966 withval="http://llvm.org/bugs/"
Eric Christopher65080cc2011-07-20 17:04:49 +00005967fi
5968
5969
5970cat >>confdefs.h <<_ACEOF
5971#define BUG_REPORT_URL "$withval"
5972_ACEOF
5973
5974
Nick Lewycky86679902009-06-06 06:25:09 +00005975# Check whether --enable-libffi was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005976if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005977 enableval=$enable_libffi; case "$enableval" in
5978 yes) llvm_cv_enable_libffi="yes" ;;
5979 no) llvm_cv_enable_libffi="no" ;;
5980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005981echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5982 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005983 esac
5984else
5985 llvm_cv_enable_libffi=no
5986fi
5987
Nick Lewycky86679902009-06-06 06:25:09 +00005988
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005989
Bob Wilson3f354702011-11-28 07:59:52 +00005990# Check whether --with-internal-prefix was given.
5991if test "${with_internal_prefix+set}" = set; then
5992 withval=$with_internal_prefix;
5993else
5994 withval=""
5995fi
5996
5997INTERNAL_PREFIX=$withval
5998
5999
6000
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006001{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6002echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6003if test "${lt_cv_path_NM+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006005else
6006 if test -n "$NM"; then
6007 # Let the user override the test.
6008 lt_cv_path_NM="$NM"
6009else
6010 lt_nm_to_check="${ac_tool_prefix}nm"
6011 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6012 lt_nm_to_check="$lt_nm_to_check nm"
6013 fi
6014 for lt_tmp_nm in $lt_nm_to_check; do
6015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6016 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6017 IFS="$lt_save_ifs"
6018 test -z "$ac_dir" && ac_dir=.
6019 tmp_nm="$ac_dir/$lt_tmp_nm"
6020 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6021 # Check to see if the nm accepts a BSD-compat flag.
6022 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6023 # nm: unknown option "B" ignored
6024 # Tru64's nm complains that /dev/null is an invalid object file
6025 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6026 */dev/null* | *'Invalid file or object type'*)
6027 lt_cv_path_NM="$tmp_nm -B"
6028 break
6029 ;;
6030 *)
6031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6032 */dev/null*)
6033 lt_cv_path_NM="$tmp_nm -p"
6034 break
6035 ;;
6036 *)
6037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6038 continue # so that we can try to find one that supports BSD flags
6039 ;;
6040 esac
6041 ;;
6042 esac
6043 fi
6044 done
6045 IFS="$lt_save_ifs"
6046 done
6047 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6048fi
6049fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006050{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6051echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006052NM="$lt_cv_path_NM"
6053
6054
6055
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006056{ echo "$as_me:$LINENO: checking for GNU make" >&5
6057echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6058if test "${llvm_cv_gnu_make_command+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006060else
6061 llvm_cv_gnu_make_command=''
6062 for a in "$MAKE" make gmake gnumake ; do
6063 if test -z "$a" ; then continue ; fi ;
6064 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6065 then
6066 llvm_cv_gnu_make_command=$a ;
6067 break;
6068 fi
6069 done
6070fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006071{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6072echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006073 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6074 ifGNUmake='' ;
6075 else
6076 ifGNUmake='#' ;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006077 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6078echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006079 fi
6080
6081
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006082{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6083echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006084LN_S=$as_ln_s
6085if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006086 { echo "$as_me:$LINENO: result: yes" >&5
6087echo "${ECHO_T}yes" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006088else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006089 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6090echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006091fi
6092
6093# Extract the first word of "cmp", so it can be a program name with args.
6094set dummy cmp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097if test "${ac_cv_path_CMP+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006099else
6100 case $CMP in
6101 [\\/]* | ?:[\\/]*)
6102 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6103 ;;
6104 *)
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006112 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006114 break 2
6115 fi
6116done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006117done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006118IFS=$as_save_IFS
6119
6120 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6121 ;;
6122esac
6123fi
6124CMP=$ac_cv_path_CMP
6125if test -n "$CMP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006126 { echo "$as_me:$LINENO: result: $CMP" >&5
6127echo "${ECHO_T}$CMP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006128else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006129 { echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006131fi
6132
6133
6134# Extract the first word of "cp", so it can be a program name with args.
6135set dummy cp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138if test "${ac_cv_path_CP+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006140else
6141 case $CP in
6142 [\\/]* | ?:[\\/]*)
6143 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6144 ;;
6145 *)
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006153 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006155 break 2
6156 fi
6157done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006158done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006159IFS=$as_save_IFS
6160
6161 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6162 ;;
6163esac
6164fi
6165CP=$ac_cv_path_CP
6166if test -n "$CP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006167 { echo "$as_me:$LINENO: result: $CP" >&5
6168echo "${ECHO_T}$CP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006169else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006170 { echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006172fi
6173
6174
6175# Extract the first word of "date", so it can be a program name with args.
6176set dummy date; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179if test "${ac_cv_path_DATE+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006181else
6182 case $DATE in
6183 [\\/]* | ?:[\\/]*)
6184 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6185 ;;
6186 *)
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006194 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006196 break 2
6197 fi
6198done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006199done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006200IFS=$as_save_IFS
6201
6202 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6203 ;;
6204esac
6205fi
6206DATE=$ac_cv_path_DATE
6207if test -n "$DATE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006208 { echo "$as_me:$LINENO: result: $DATE" >&5
6209echo "${ECHO_T}$DATE" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006210else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006211 { echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006213fi
6214
6215
6216# Extract the first word of "find", so it can be a program name with args.
6217set dummy find; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220if test "${ac_cv_path_FIND+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006222else
6223 case $FIND in
6224 [\\/]* | ?:[\\/]*)
6225 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6226 ;;
6227 *)
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006235 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006237 break 2
6238 fi
6239done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006240done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006241IFS=$as_save_IFS
6242
6243 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6244 ;;
6245esac
6246fi
6247FIND=$ac_cv_path_FIND
6248if test -n "$FIND"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006249 { echo "$as_me:$LINENO: result: $FIND" >&5
6250echo "${ECHO_T}$FIND" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006251else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006252 { echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006254fi
6255
6256
6257# Extract the first word of "grep", so it can be a program name with args.
6258set dummy grep; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261if test "${ac_cv_path_GREP+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006263else
6264 case $GREP in
6265 [\\/]* | ?:[\\/]*)
6266 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6267 ;;
6268 *)
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006276 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006278 break 2
6279 fi
6280done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006281done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006282IFS=$as_save_IFS
6283
6284 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6285 ;;
6286esac
6287fi
6288GREP=$ac_cv_path_GREP
6289if test -n "$GREP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006290 { echo "$as_me:$LINENO: result: $GREP" >&5
6291echo "${ECHO_T}$GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006292else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006293 { echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006295fi
6296
6297
6298# Extract the first word of "mkdir", so it can be a program name with args.
6299set dummy mkdir; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302if test "${ac_cv_path_MKDIR+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006304else
6305 case $MKDIR in
6306 [\\/]* | ?:[\\/]*)
6307 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6308 ;;
6309 *)
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006317 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006319 break 2
6320 fi
6321done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006322done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006323IFS=$as_save_IFS
6324
6325 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6326 ;;
6327esac
6328fi
6329MKDIR=$ac_cv_path_MKDIR
6330if test -n "$MKDIR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006331 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6332echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006333else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006334 { echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006336fi
6337
6338
6339# Extract the first word of "mv", so it can be a program name with args.
6340set dummy mv; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343if test "${ac_cv_path_MV+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006345else
6346 case $MV in
6347 [\\/]* | ?:[\\/]*)
6348 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6349 ;;
6350 *)
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006358 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006360 break 2
6361 fi
6362done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006363done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006364IFS=$as_save_IFS
6365
6366 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6367 ;;
6368esac
6369fi
6370MV=$ac_cv_path_MV
6371if test -n "$MV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006372 { echo "$as_me:$LINENO: result: $MV" >&5
6373echo "${ECHO_T}$MV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006374else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006375 { echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006377fi
6378
6379
6380if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6382set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385if test "${ac_cv_prog_RANLIB+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006387else
6388 if test -n "$RANLIB"; then
6389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006400 break 2
6401 fi
6402done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006403done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006404IFS=$as_save_IFS
6405
6406fi
6407fi
6408RANLIB=$ac_cv_prog_RANLIB
6409if test -n "$RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006410 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6411echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006412else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006413 { echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006415fi
6416
6417
6418fi
6419if test -z "$ac_cv_prog_RANLIB"; then
6420 ac_ct_RANLIB=$RANLIB
6421 # Extract the first word of "ranlib", so it can be a program name with args.
6422set dummy ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006427else
6428 if test -n "$ac_ct_RANLIB"; then
6429 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006438 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006440 break 2
6441 fi
6442done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006443done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006444IFS=$as_save_IFS
6445
6446fi
6447fi
6448ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6449if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006450 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6451echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006452else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006453 { echo "$as_me:$LINENO: result: no" >&5
6454echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006455fi
6456
6457 if test "x$ac_ct_RANLIB" = x; then
6458 RANLIB=":"
6459 else
6460 case $cross_compiling:$ac_tool_warned in
6461yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006462{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6463whose name does not start with the host triplet. If you think this
6464configuration is useful to you, please write to autoconf@gnu.org." >&5
6465echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6466whose name does not start with the host triplet. If you think this
6467configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006468ac_tool_warned=yes ;;
6469esac
6470 RANLIB=$ac_ct_RANLIB
6471 fi
6472else
6473 RANLIB="$ac_cv_prog_RANLIB"
6474fi
6475
Torok Edwinaec06332010-01-26 08:50:50 +00006476if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6478set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481if test "${ac_cv_prog_AR+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006483else
6484 if test -n "$AR"; then
6485 ac_cv_prog_AR="$AR" # Let the user override the test.
6486else
6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwinaec06332010-01-26 08:50:50 +00006494 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006496 break 2
6497 fi
6498done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006499done
Torok Edwinaec06332010-01-26 08:50:50 +00006500IFS=$as_save_IFS
6501
6502fi
6503fi
6504AR=$ac_cv_prog_AR
6505if test -n "$AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006506 { echo "$as_me:$LINENO: result: $AR" >&5
6507echo "${ECHO_T}$AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006508else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006509 { echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006511fi
6512
6513
6514fi
6515if test -z "$ac_cv_prog_AR"; then
6516 ac_ct_AR=$AR
6517 # Extract the first word of "ar", so it can be a program name with args.
6518set dummy ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006523else
6524 if test -n "$ac_ct_AR"; then
6525 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6526else
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwinaec06332010-01-26 08:50:50 +00006534 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006536 break 2
6537 fi
6538done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006539done
Torok Edwinaec06332010-01-26 08:50:50 +00006540IFS=$as_save_IFS
6541
6542fi
6543fi
6544ac_ct_AR=$ac_cv_prog_ac_ct_AR
6545if test -n "$ac_ct_AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006546 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6547echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006548else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006549 { echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006551fi
6552
6553 if test "x$ac_ct_AR" = x; then
6554 AR="false"
6555 else
6556 case $cross_compiling:$ac_tool_warned in
6557yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006558{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6559whose name does not start with the host triplet. If you think this
6560configuration is useful to you, please write to autoconf@gnu.org." >&5
6561echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562whose name does not start with the host triplet. If you think this
6563configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwinaec06332010-01-26 08:50:50 +00006564ac_tool_warned=yes ;;
6565esac
6566 AR=$ac_ct_AR
6567 fi
6568else
6569 AR="$ac_cv_prog_AR"
6570fi
6571
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006572# Extract the first word of "rm", so it can be a program name with args.
6573set dummy rm; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576if test "${ac_cv_path_RM+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006578else
6579 case $RM in
6580 [\\/]* | ?:[\\/]*)
6581 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6582 ;;
6583 *)
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006591 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006593 break 2
6594 fi
6595done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006596done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006597IFS=$as_save_IFS
6598
6599 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6600 ;;
6601esac
6602fi
6603RM=$ac_cv_path_RM
6604if test -n "$RM"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006605 { echo "$as_me:$LINENO: result: $RM" >&5
6606echo "${ECHO_T}$RM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006607else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006608 { echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006610fi
6611
6612
6613# Extract the first word of "sed", so it can be a program name with args.
6614set dummy sed; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617if test "${ac_cv_path_SED+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006619else
6620 case $SED in
6621 [\\/]* | ?:[\\/]*)
6622 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6623 ;;
6624 *)
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006632 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006634 break 2
6635 fi
6636done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006637done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006638IFS=$as_save_IFS
6639
6640 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6641 ;;
6642esac
6643fi
6644SED=$ac_cv_path_SED
6645if test -n "$SED"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006646 { echo "$as_me:$LINENO: result: $SED" >&5
6647echo "${ECHO_T}$SED" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006648else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006649 { echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006651fi
6652
6653
6654# Extract the first word of "tar", so it can be a program name with args.
6655set dummy tar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_path_TAR+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006660else
6661 case $TAR in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6664 ;;
6665 *)
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006673 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006675 break 2
6676 fi
6677done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006678done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006679IFS=$as_save_IFS
6680
6681 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6682 ;;
6683esac
6684fi
6685TAR=$ac_cv_path_TAR
6686if test -n "$TAR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006687 { echo "$as_me:$LINENO: result: $TAR" >&5
6688echo "${ECHO_T}$TAR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006689else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006690 { echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006692fi
6693
6694
6695# Extract the first word of "pwd", so it can be a program name with args.
6696set dummy pwd; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699if test "${ac_cv_path_BINPWD+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006701else
6702 case $BINPWD in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6705 ;;
6706 *)
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006714 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006716 break 2
6717 fi
6718done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006719done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006720IFS=$as_save_IFS
6721
6722 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6723 ;;
6724esac
6725fi
6726BINPWD=$ac_cv_path_BINPWD
6727if test -n "$BINPWD"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006728 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6729echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006730else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006731 { echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006733fi
6734
6735
6736
6737# Extract the first word of "Graphviz", so it can be a program name with args.
6738set dummy Graphviz; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006743else
6744 case $GRAPHVIZ in
6745 [\\/]* | ?:[\\/]*)
6746 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6747 ;;
6748 *)
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006756 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006758 break 2
6759 fi
6760done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006761done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006762IFS=$as_save_IFS
6763
6764 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6765 ;;
6766esac
6767fi
6768GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6769if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006770 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6771echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006772else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006773 { echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006775fi
6776
6777
6778if test "$GRAPHVIZ" != "echo Graphviz" ; then
6779
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006780cat >>confdefs.h <<\_ACEOF
6781#define HAVE_GRAPHVIZ 1
6782_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006783
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006784 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006785 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6786 fi
6787
6788cat >>confdefs.h <<_ACEOF
6789#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6790_ACEOF
6791
6792fi
6793# Extract the first word of "dot", so it can be a program name with args.
6794set dummy dot; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797if test "${ac_cv_path_DOT+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006799else
6800 case $DOT in
6801 [\\/]* | ?:[\\/]*)
6802 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6803 ;;
6804 *)
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006812 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006814 break 2
6815 fi
6816done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006817done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006818IFS=$as_save_IFS
6819
6820 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6821 ;;
6822esac
6823fi
6824DOT=$ac_cv_path_DOT
6825if test -n "$DOT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006826 { echo "$as_me:$LINENO: result: $DOT" >&5
6827echo "${ECHO_T}$DOT" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006828else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006829 { echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006831fi
6832
6833
6834if test "$DOT" != "echo dot" ; then
6835
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006836cat >>confdefs.h <<\_ACEOF
6837#define HAVE_DOT 1
6838_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006839
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006840 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006841 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6842 fi
6843
6844cat >>confdefs.h <<_ACEOF
6845#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6846_ACEOF
6847
6848fi
David Greened93c40b62009-07-09 17:16:26 +00006849# Extract the first word of "fdp", so it can be a program name with args.
6850set dummy fdp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853if test "${ac_cv_path_FDP+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006855else
6856 case $FDP in
6857 [\\/]* | ?:[\\/]*)
6858 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6859 ;;
6860 *)
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006868 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006870 break 2
6871 fi
6872done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006873done
David Greened93c40b62009-07-09 17:16:26 +00006874IFS=$as_save_IFS
6875
6876 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6877 ;;
6878esac
6879fi
6880FDP=$ac_cv_path_FDP
6881if test -n "$FDP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006882 { echo "$as_me:$LINENO: result: $FDP" >&5
6883echo "${ECHO_T}$FDP" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006884else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006885 { echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006887fi
6888
6889
6890if test "$FDP" != "echo fdp" ; then
6891
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006892cat >>confdefs.h <<\_ACEOF
6893#define HAVE_FDP 1
6894_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006895
6896 if test "$llvm_cv_os_type" = "MingW" ; then
6897 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6898 fi
6899
6900cat >>confdefs.h <<_ACEOF
6901#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6902_ACEOF
6903
6904fi
6905# Extract the first word of "neato", so it can be a program name with args.
6906set dummy neato; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909if test "${ac_cv_path_NEATO+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006911else
6912 case $NEATO in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6915 ;;
6916 *)
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006924 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006926 break 2
6927 fi
6928done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006929done
David Greened93c40b62009-07-09 17:16:26 +00006930IFS=$as_save_IFS
6931
6932 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6933 ;;
6934esac
6935fi
6936NEATO=$ac_cv_path_NEATO
6937if test -n "$NEATO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006938 { echo "$as_me:$LINENO: result: $NEATO" >&5
6939echo "${ECHO_T}$NEATO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006940else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006941 { echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006943fi
6944
6945
6946if test "$NEATO" != "echo neato" ; then
6947
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006948cat >>confdefs.h <<\_ACEOF
6949#define HAVE_NEATO 1
6950_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006951
6952 if test "$llvm_cv_os_type" = "MingW" ; then
6953 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6954 fi
6955
6956cat >>confdefs.h <<_ACEOF
6957#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6958_ACEOF
6959
6960fi
6961# Extract the first word of "twopi", so it can be a program name with args.
6962set dummy twopi; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965if test "${ac_cv_path_TWOPI+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006967else
6968 case $TWOPI in
6969 [\\/]* | ?:[\\/]*)
6970 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6971 ;;
6972 *)
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974for as_dir in $PATH
6975do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006980 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006982 break 2
6983 fi
6984done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006985done
David Greened93c40b62009-07-09 17:16:26 +00006986IFS=$as_save_IFS
6987
6988 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6989 ;;
6990esac
6991fi
6992TWOPI=$ac_cv_path_TWOPI
6993if test -n "$TWOPI"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006994 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6995echo "${ECHO_T}$TWOPI" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006996else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006997 { echo "$as_me:$LINENO: result: no" >&5
6998echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006999fi
7000
7001
7002if test "$TWOPI" != "echo twopi" ; then
7003
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007004cat >>confdefs.h <<\_ACEOF
7005#define HAVE_TWOPI 1
7006_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00007007
7008 if test "$llvm_cv_os_type" = "MingW" ; then
7009 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7010 fi
7011
7012cat >>confdefs.h <<_ACEOF
7013#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7014_ACEOF
7015
7016fi
7017# Extract the first word of "circo", so it can be a program name with args.
7018set dummy circo; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021if test "${ac_cv_path_CIRCO+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00007023else
7024 case $CIRCO in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7027 ;;
7028 *)
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00007036 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00007038 break 2
7039 fi
7040done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007041done
David Greened93c40b62009-07-09 17:16:26 +00007042IFS=$as_save_IFS
7043
7044 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7045 ;;
7046esac
7047fi
7048CIRCO=$ac_cv_path_CIRCO
7049if test -n "$CIRCO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007050 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7051echo "${ECHO_T}$CIRCO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00007052else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007053 { echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00007055fi
7056
7057
7058if test "$CIRCO" != "echo circo" ; then
7059
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007060cat >>confdefs.h <<\_ACEOF
7061#define HAVE_CIRCO 1
7062_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00007063
7064 if test "$llvm_cv_os_type" = "MingW" ; then
7065 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7066 fi
7067
7068cat >>confdefs.h <<_ACEOF
7069#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7070_ACEOF
7071
7072fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007073for ac_prog in gv gsview32
7074do
7075 # Extract the first word of "$ac_prog", so it can be a program name with args.
7076set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079if test "${ac_cv_path_GV+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007081else
7082 case $GV in
7083 [\\/]* | ?:[\\/]*)
7084 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7085 ;;
7086 *)
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007094 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007096 break 2
7097 fi
7098done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007099done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007100IFS=$as_save_IFS
7101
7102 ;;
7103esac
7104fi
7105GV=$ac_cv_path_GV
7106if test -n "$GV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007107 { echo "$as_me:$LINENO: result: $GV" >&5
7108echo "${ECHO_T}$GV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007109else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007110 { echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007112fi
7113
7114
7115 test -n "$GV" && break
7116done
7117test -n "$GV" || GV="echo gv"
7118
7119if test "$GV" != "echo gv" ; then
7120
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007121cat >>confdefs.h <<\_ACEOF
7122#define HAVE_GV 1
7123_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007124
Jeff Cohenc5e5b272007-01-12 18:22:38 +00007125 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007126 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7127 fi
7128
7129cat >>confdefs.h <<_ACEOF
7130#define LLVM_PATH_GV "$GV${EXEEXT}"
7131_ACEOF
7132
7133fi
7134# Extract the first word of "dotty", so it can be a program name with args.
7135set dummy dotty; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138if test "${ac_cv_path_DOTTY+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007140else
7141 case $DOTTY in
7142 [\\/]* | ?:[\\/]*)
7143 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7144 ;;
7145 *)
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007153 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007155 break 2
7156 fi
7157done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007158done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007159IFS=$as_save_IFS
7160
7161 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7162 ;;
7163esac
7164fi
7165DOTTY=$ac_cv_path_DOTTY
7166if test -n "$DOTTY"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007167 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7168echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007169else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007170 { echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007172fi
7173
7174
7175if test "$DOTTY" != "echo dotty" ; then
7176
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007177cat >>confdefs.h <<\_ACEOF
7178#define HAVE_DOTTY 1
7179_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007180
Jeff Cohenc5e5b272007-01-12 18:22:38 +00007181 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007182 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7183 fi
7184
7185cat >>confdefs.h <<_ACEOF
7186#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7187_ACEOF
7188
7189fi
Dan Gohmana0da8892010-09-27 16:28:34 +00007190# Extract the first word of "xdot.py", so it can be a program name with args.
7191set dummy xdot.py; ac_word=$2
7192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194if test "${ac_cv_path_XDOT_PY+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197 case $XDOT_PY in
7198 [\\/]* | ?:[\\/]*)
7199 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7200 ;;
7201 *)
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213done
7214done
7215IFS=$as_save_IFS
7216
7217 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7218 ;;
7219esac
7220fi
7221XDOT_PY=$ac_cv_path_XDOT_PY
7222if test -n "$XDOT_PY"; then
7223 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7224echo "${ECHO_T}$XDOT_PY" >&6; }
7225else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6; }
7228fi
7229
7230
7231if test "$XDOT_PY" != "echo xdot.py" ; then
7232
7233cat >>confdefs.h <<\_ACEOF
7234#define HAVE_XDOT_PY 1
7235_ACEOF
7236
7237 if test "$llvm_cv_os_type" = "MingW" ; then
7238 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7239 fi
7240
7241cat >>confdefs.h <<_ACEOF
7242#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7243_ACEOF
7244
7245fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007246
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007247# Find a good install program. We prefer a C program (faster),
7248# so one script is as good as another. But avoid the broken or
7249# incompatible versions:
7250# SysV /etc/install, /usr/sbin/install
7251# SunOS /usr/etc/install
7252# IRIX /sbin/install
7253# AIX /bin/install
7254# AmigaOS /C/install, which installs bootblocks on floppy discs
7255# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7256# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7257# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7258# OS/2's system install, which has a completely different semantic
7259# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007260{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7261echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007262if test -z "$INSTALL"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007263if test "${ac_cv_path_install+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007265else
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007271 # Account for people who put trailing slashes in PATH elements.
7272case $as_dir/ in
7273 ./ | .// | /cC/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007276 /usr/ucb/* ) ;;
7277 *)
7278 # OSF1 and SCO ODT 3.0 have their own names for install.
7279 # Don't use installbsd from OSF since it installs stuff as root
7280 # by default.
7281 for ac_prog in ginstall scoinst install; do
7282 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007284 if test $ac_prog = install &&
7285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7286 # AIX install. It has an incompatible calling convention.
7287 :
7288 elif test $ac_prog = install &&
7289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7290 # program-specific install script used by HP pwplus--don't use.
7291 :
7292 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7294 break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007295 fi
7296 fi
7297 done
7298 done
7299 ;;
7300esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007301done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007302IFS=$as_save_IFS
7303
7304
7305fi
7306 if test "${ac_cv_path_install+set}" = set; then
7307 INSTALL=$ac_cv_path_install
7308 else
7309 # As a last resort, use the slow shell script. Don't cache a
7310 # value for INSTALL within a source directory, because that will
7311 # break other packages using the cache if that directory is
7312 # removed, or if the value is a relative name.
7313 INSTALL=$ac_install_sh
7314 fi
7315fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007316{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7317echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007318
7319# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7320# It thinks the first close brace ends the variable substitution.
7321test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7322
7323test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7324
7325test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7326
Eric Christophere3befc72010-07-22 21:13:48 +00007327case "$INSTALL" in
7328 [\\/$]* | ?:[\\/]* ) ;;
7329 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7330esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007331
7332# Extract the first word of "bzip2", so it can be a program name with args.
7333set dummy bzip2; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336if test "${ac_cv_path_BZIP2+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007338else
7339 case $BZIP2 in
7340 [\\/]* | ?:[\\/]*)
7341 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7342 ;;
7343 *)
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007351 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007353 break 2
7354 fi
7355done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007356done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007357IFS=$as_save_IFS
7358
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007359 ;;
7360esac
7361fi
7362BZIP2=$ac_cv_path_BZIP2
7363if test -n "$BZIP2"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007364 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7365echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007366else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007367 { echo "$as_me:$LINENO: result: no" >&5
7368echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007369fi
7370
7371
mike-me08af302010-05-06 23:45:43 +00007372# Extract the first word of "cat", so it can be a program name with args.
7373set dummy cat; ac_word=$2
7374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376if test "${ac_cv_path_CAT+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378else
7379 case $CAT in
7380 [\\/]* | ?:[\\/]*)
7381 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7382 ;;
7383 *)
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385for as_dir in $PATH
7386do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395done
7396done
7397IFS=$as_save_IFS
7398
7399 ;;
7400esac
7401fi
7402CAT=$ac_cv_path_CAT
7403if test -n "$CAT"; then
7404 { echo "$as_me:$LINENO: result: $CAT" >&5
7405echo "${ECHO_T}$CAT" >&6; }
7406else
7407 { echo "$as_me:$LINENO: result: no" >&5
7408echo "${ECHO_T}no" >&6; }
7409fi
7410
7411
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007412# Extract the first word of "doxygen", so it can be a program name with args.
7413set dummy doxygen; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_path_DOXYGEN+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007418else
7419 case $DOXYGEN in
7420 [\\/]* | ?:[\\/]*)
7421 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7422 ;;
7423 *)
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007431 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007433 break 2
7434 fi
7435done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007436done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007437IFS=$as_save_IFS
7438
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007439 ;;
7440esac
7441fi
7442DOXYGEN=$ac_cv_path_DOXYGEN
7443if test -n "$DOXYGEN"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007444 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7445echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007446else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007447 { echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007449fi
7450
7451
Daniel Dunbard1888822012-05-08 18:26:07 +00007452# Extract the first word of "groff", so it can be a program name with args.
7453set dummy groff; ac_word=$2
7454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456if test "${ac_cv_path_GROFF+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459 case $GROFF in
7460 [\\/]* | ?:[\\/]*)
7461 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7462 ;;
7463 *)
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7474 fi
7475done
7476done
7477IFS=$as_save_IFS
7478
7479 ;;
7480esac
7481fi
7482GROFF=$ac_cv_path_GROFF
7483if test -n "$GROFF"; then
7484 { echo "$as_me:$LINENO: result: $GROFF" >&5
7485echo "${ECHO_T}$GROFF" >&6; }
7486else
7487 { echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6; }
7489fi
7490
7491
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007492# Extract the first word of "gzip", so it can be a program name with args.
7493set dummy gzip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher77560892010-12-10 01:31:51 +00007496if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007497 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007498else
Eric Christopher77560892010-12-10 01:31:51 +00007499 case $GZIPBIN in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007500 [\\/]* | ?:[\\/]*)
Eric Christopher77560892010-12-10 01:31:51 +00007501 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007502 ;;
7503 *)
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher77560892010-12-10 01:31:51 +00007511 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007513 break 2
7514 fi
7515done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007516done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007517IFS=$as_save_IFS
7518
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007519 ;;
7520esac
7521fi
Eric Christopher77560892010-12-10 01:31:51 +00007522GZIPBIN=$ac_cv_path_GZIPBIN
7523if test -n "$GZIPBIN"; then
7524 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7525echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007526else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007527 { echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007529fi
7530
7531
Daniel Dunbard1888822012-05-08 18:26:07 +00007532# Extract the first word of "pdfroff", so it can be a program name with args.
7533set dummy pdfroff; ac_word=$2
7534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7536if test "${ac_cv_path_PDFROFF+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538else
7539 case $PDFROFF in
7540 [\\/]* | ?:[\\/]*)
7541 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7542 ;;
7543 *)
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555done
7556done
7557IFS=$as_save_IFS
7558
7559 ;;
7560esac
7561fi
7562PDFROFF=$ac_cv_path_PDFROFF
7563if test -n "$PDFROFF"; then
7564 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7565echo "${ECHO_T}$PDFROFF" >&6; }
7566else
7567 { echo "$as_me:$LINENO: result: no" >&5
7568echo "${ECHO_T}no" >&6; }
7569fi
7570
7571
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007572# Extract the first word of "zip", so it can be a program name with args.
7573set dummy zip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_ZIP+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007578else
7579 case $ZIP in
7580 [\\/]* | ?:[\\/]*)
7581 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7582 ;;
7583 *)
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007591 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007593 break 2
7594 fi
7595done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007596done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007597IFS=$as_save_IFS
7598
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007599 ;;
7600esac
7601fi
7602ZIP=$ac_cv_path_ZIP
7603if test -n "$ZIP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007604 { echo "$as_me:$LINENO: result: $ZIP" >&5
7605echo "${ECHO_T}$ZIP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007606else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007607 { echo "$as_me:$LINENO: result: no" >&5
7608echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007609fi
7610
7611
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007612for ac_prog in ocamlc
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007613do
7614 # Extract the first word of "$ac_prog", so it can be a program name with args.
7615set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618if test "${ac_cv_path_OCAMLC+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007620else
7621 case $OCAMLC in
7622 [\\/]* | ?:[\\/]*)
7623 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7624 ;;
7625 *)
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007633 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007635 break 2
7636 fi
7637done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007638done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007639IFS=$as_save_IFS
7640
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007641 ;;
7642esac
7643fi
7644OCAMLC=$ac_cv_path_OCAMLC
7645if test -n "$OCAMLC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007646 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7647echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007648else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007649 { echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007651fi
7652
7653
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007654 test -n "$OCAMLC" && break
7655done
7656
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007657for ac_prog in ocamlopt
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007658do
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007665else
7666 case $OCAMLOPT in
7667 [\\/]* | ?:[\\/]*)
7668 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7669 ;;
7670 *)
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007678 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007680 break 2
7681 fi
7682done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007683done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007684IFS=$as_save_IFS
7685
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007686 ;;
7687esac
7688fi
7689OCAMLOPT=$ac_cv_path_OCAMLOPT
7690if test -n "$OCAMLOPT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007691 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7692echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007693else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007694 { echo "$as_me:$LINENO: result: no" >&5
7695echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007696fi
7697
7698
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007699 test -n "$OCAMLOPT" && break
7700done
7701
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007702for ac_prog in ocamldep
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007703do
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksend1e16452007-09-20 16:48:18 +00007710else
7711 case $OCAMLDEP in
7712 [\\/]* | ?:[\\/]*)
7713 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7714 ;;
7715 *)
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksend1e16452007-09-20 16:48:18 +00007723 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksend1e16452007-09-20 16:48:18 +00007725 break 2
7726 fi
7727done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007728done
Gordon Henriksend1e16452007-09-20 16:48:18 +00007729IFS=$as_save_IFS
7730
Gordon Henriksend1e16452007-09-20 16:48:18 +00007731 ;;
7732esac
7733fi
7734OCAMLDEP=$ac_cv_path_OCAMLDEP
7735if test -n "$OCAMLDEP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007736 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7737echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007738else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007739 { echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007741fi
7742
7743
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007744 test -n "$OCAMLDEP" && break
7745done
7746
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007747for ac_prog in ocamldoc
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007748do
7749 # Extract the first word of "$ac_prog", so it can be a program name with args.
7750set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7753if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007755else
7756 case $OCAMLDOC in
7757 [\\/]* | ?:[\\/]*)
7758 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7759 ;;
7760 *)
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007768 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007770 break 2
7771 fi
7772done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007773done
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007774IFS=$as_save_IFS
7775
7776 ;;
7777esac
7778fi
7779OCAMLDOC=$ac_cv_path_OCAMLDOC
7780if test -n "$OCAMLDOC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007781 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7782echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007783else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007784 { echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007786fi
7787
7788
7789 test -n "$OCAMLDOC" && break
7790done
7791
Daniel Dunbard1888822012-05-08 18:26:07 +00007792for ac_prog in gas as
7793do
7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
7795set dummy $ac_prog; ac_word=$2
7796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798if test "${ac_cv_path_GAS+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801 case $GAS in
7802 [\\/]* | ?:[\\/]*)
7803 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7804 ;;
7805 *)
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817done
7818done
7819IFS=$as_save_IFS
7820
7821 ;;
7822esac
7823fi
7824GAS=$ac_cv_path_GAS
7825if test -n "$GAS"; then
7826 { echo "$as_me:$LINENO: result: $GAS" >&5
7827echo "${ECHO_T}$GAS" >&6; }
7828else
7829 { echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6; }
7831fi
7832
7833
7834 test -n "$GAS" && break
7835done
7836
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007837
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007838{ echo "$as_me:$LINENO: checking for linker version" >&5
7839echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7840if test "${llvm_cv_link_version+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843
7844 version_string="$(ld -v 2>&1 | head -1)"
7845
7846 # Check for ld64.
7847 if (echo "$version_string" | grep -q "ld64"); then
Charles Davise56294d2012-02-28 02:55:41 +00007848 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007849 else
7850 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7851 fi
7852
7853fi
7854{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7855echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7856
7857cat >>confdefs.h <<_ACEOF
7858#define HOST_LINK_VERSION "$llvm_cv_link_version"
7859_ACEOF
7860
7861
7862
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007863{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7864echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7865if test "${llvm_cv_link_use_r+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007867else
7868 ac_ext=c
7869ac_cpp='$CPP $CPPFLAGS'
7870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873
7874 oldcflags="$CFLAGS"
7875 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007876 cat >conftest.$ac_ext <<_ACEOF
7877/* confdefs.h. */
7878_ACEOF
7879cat confdefs.h >>conftest.$ac_ext
7880cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007881/* end confdefs.h. */
7882
7883int
7884main ()
7885{
Dan Gohmana1c94042010-04-25 00:12:20 +00007886
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007887 ;
7888 return 0;
7889}
7890_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007891rm -f conftest.$ac_objext conftest$ac_exeext
7892if { (ac_try="$ac_link"
7893case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_link") 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906 { (case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7909esac
7910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_try") 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919esac
7920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_try") 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007925 llvm_cv_link_use_r=yes
7926else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007927 echo "$as_me: failed program was:" >&5
7928sed 's/^/| /' conftest.$ac_ext >&5
7929
7930 llvm_cv_link_use_r=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007931fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007932
Bill Wendling02b47d92009-04-18 11:20:33 +00007933rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007934 conftest$ac_exeext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007935 CFLAGS="$oldcflags"
7936 ac_ext=c
7937ac_cpp='$CPP $CPPFLAGS'
7938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942
7943fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007944{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7945echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007946if test "$llvm_cv_link_use_r" = yes ; then
7947
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007948cat >>confdefs.h <<\_ACEOF
7949#define HAVE_LINK_R 1
7950_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007951
7952 fi
7953
7954
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007955{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7956echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7957if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007959else
7960 ac_ext=c
7961ac_cpp='$CPP $CPPFLAGS'
7962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965
7966 oldcflags="$CFLAGS"
7967 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007968 cat >conftest.$ac_ext <<_ACEOF
7969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007973/* end confdefs.h. */
7974
7975int
7976main ()
7977{
Dan Gohmana1c94042010-04-25 00:12:20 +00007978
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007979 ;
7980 return 0;
7981}
7982_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007983rm -f conftest.$ac_objext conftest$ac_exeext
7984if { (ac_try="$ac_link"
7985case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988esac
7989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_link") 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7998 { (case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001esac
8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_try") 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011esac
8012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_try") 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008017 llvm_cv_link_use_export_dynamic=yes
8018else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008019 echo "$as_me: failed program was:" >&5
8020sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 llvm_cv_link_use_export_dynamic=no
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008023fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008024
Bill Wendling02b47d92009-04-18 11:20:33 +00008025rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008026 conftest$ac_exeext conftest.$ac_ext
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008027 CFLAGS="$oldcflags"
8028 ac_ext=c
8029ac_cpp='$CPP $CPPFLAGS'
8030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034
8035fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008036{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8037echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008038if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8039
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008040cat >>confdefs.h <<\_ACEOF
8041#define HAVE_LINK_EXPORT_DYNAMIC 1
8042_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008043
8044 fi
8045
8046
Dan Gohmanb7edb422010-06-01 14:56:56 +00008047{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8048echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8049if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohmanfe051a52010-04-16 22:59:06 +00008050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 ac_ext=c
8053ac_cpp='$CPP $CPPFLAGS'
8054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056ac_compiler_gnu=$ac_cv_c_compiler_gnu
8057
8058 oldcflags="$CFLAGS"
8059
8060 # The following code is from the autoconf manual,
8061 # "11.13: Limitations of Usual Tools".
8062 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8063 # Use mktemp if possible; otherwise fall back on mkdir,
8064 # with $RANDOM to make collisions less likely.
8065 : ${TMPDIR=/tmp}
8066 {
8067 tmp=`
8068 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8069 ` &&
8070 test -n "$tmp" && test -d "$tmp"
8071 } || {
8072 tmp=$TMPDIR/foo$$-$RANDOM
8073 (umask 077 && mkdir "$tmp")
8074 } || exit $?
8075
Dan Gohmanb7edb422010-06-01 14:56:56 +00008076 echo "{" > "$tmp/export.map"
8077 echo " global: main;" >> "$tmp/export.map"
8078 echo " local: *;" >> "$tmp/export.map"
8079 echo "};" >> "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00008080
Dan Gohmanb7edb422010-06-01 14:56:56 +00008081 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00008082 cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088
8089int
8090main ()
8091{
Dan Gohmana1c94042010-04-25 00:12:20 +00008092
Dan Gohmanfe051a52010-04-16 22:59:06 +00008093 ;
8094 return 0;
8095}
8096_ACEOF
8097rm -f conftest.$ac_objext conftest$ac_exeext
8098if { (ac_try="$ac_link"
8099case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102esac
8103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_link") 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest$ac_exeext'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125esac
8126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
Dan Gohmanb7edb422010-06-01 14:56:56 +00008131 llvm_cv_link_use_version_script=yes
Dan Gohmanfe051a52010-04-16 22:59:06 +00008132else
8133 echo "$as_me: failed program was:" >&5
8134sed 's/^/| /' conftest.$ac_ext >&5
8135
Dan Gohmanc6998312010-06-01 16:22:27 +00008136 llvm_cv_link_use_version_script=no
Dan Gohmanfe051a52010-04-16 22:59:06 +00008137fi
8138
8139rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanb7edb422010-06-01 14:56:56 +00008141 rm "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00008142 rmdir "$tmp"
8143 CFLAGS="$oldcflags"
8144 ac_ext=c
8145ac_cpp='$CPP $CPPFLAGS'
8146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148ac_compiler_gnu=$ac_cv_c_compiler_gnu
8149
8150
8151fi
Dan Gohmanb7edb422010-06-01 14:56:56 +00008152{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8153echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8154if test "$llvm_cv_link_use_version_script" = yes ; then
8155 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohmanfe051a52010-04-16 22:59:06 +00008156
8157 fi
8158
8159
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008160
8161
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008162{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164if test "${ac_cv_c_const+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008166else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008167 cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008172/* end confdefs.h. */
8173
8174int
8175main ()
8176{
8177/* FIXME: Include the comments suggested by Paul. */
8178#ifndef __cplusplus
8179 /* Ultrix mips cc rejects this. */
8180 typedef int charset[2];
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008181 const charset x;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008182 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008183 char const *const *ccp;
8184 char **p;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008185 /* NEC SVR4.0.2 mips cc rejects this. */
8186 struct point {int x, y;};
8187 static struct point const zero = {0,0};
8188 /* AIX XL C 1.02.0.0 rejects this.
8189 It does not let you subtract one const X* pointer from another in
8190 an arm of an if-expression whose if-part is not a constant
8191 expression */
8192 const char *g = "string";
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008193 ccp = &g + (g ? g-g : 0);
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008194 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008195 ++ccp;
8196 p = (char**) ccp;
8197 ccp = (char const *const *) p;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008198 { /* SCO 3.2v4 cc rejects this. */
8199 char *t;
8200 char const *s = 0 ? (char *) 0 : (char const *) 0;
8201
8202 *t++ = 0;
8203 if (s) return 0;
8204 }
8205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8206 int x[] = {25, 17};
8207 const int *foo = &x[0];
8208 ++foo;
8209 }
8210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211 typedef const int *iptr;
8212 iptr p = 0;
8213 ++p;
8214 }
8215 { /* AIX XL C 1.02.0.0 rejects this saying
8216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217 struct s { int j; const int *ap[3]; };
8218 struct s *b; b->j = 5;
8219 }
8220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8221 const int foo = 10;
8222 if (!foo) return 0;
8223 }
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008224 return !x[0] && !zero.x;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008225#endif
8226
8227 ;
8228 return 0;
8229}
8230_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008231rm -f conftest.$ac_objext
8232if { (ac_try="$ac_compile"
8233case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236esac
8237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_compile") 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249esac
8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_try") 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest.$ac_objext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008265 ac_cv_c_const=yes
8266else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008267 echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 ac_cv_c_const=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008271fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008272
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008275{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008277if test $ac_cv_c_const = no; then
8278
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008279cat >>confdefs.h <<\_ACEOF
8280#define const
8281_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008282
8283fi
8284
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008285
8286
8287
8288
8289
Reid Spencera40c6872004-11-29 12:29:58 +00008290ac_header_dirent=no
8291for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008292 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8293{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00008297else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008298 cat >conftest.$ac_ext <<_ACEOF
8299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00008303/* end confdefs.h. */
8304#include <sys/types.h>
8305#include <$ac_hdr>
8306
8307int
8308main ()
8309{
8310if ((DIR *) 0)
8311return 0;
8312 ;
8313 return 0;
8314}
8315_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008316rm -f conftest.$ac_objext
8317if { (ac_try="$ac_compile"
8318case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321esac
8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331 { (case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334esac
8335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_try") 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest.$ac_objext'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8344esac
8345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00008350 eval "$as_ac_Header=yes"
8351else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008352 echo "$as_me: failed program was:" >&5
8353sed 's/^/| /' conftest.$ac_ext >&5
8354
8355 eval "$as_ac_Header=no"
Reid Spencera40c6872004-11-29 12:29:58 +00008356fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008357
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00008359fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008360ac_res=`eval echo '${'$as_ac_Header'}'`
8361 { echo "$as_me:$LINENO: result: $ac_res" >&5
8362echo "${ECHO_T}$ac_res" >&6; }
8363if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00008364 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008365#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +00008366_ACEOF
8367
8368ac_header_dirent=$ac_hdr; break
8369fi
8370
8371done
8372# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8376if test "${ac_cv_search_opendir+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00008378else
8379 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008380cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00008385/* end confdefs.h. */
8386
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008387/* Override any GCC internal prototype to avoid an error.
8388 Use char because int might match the return type of a GCC
8389 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00008390#ifdef __cplusplus
8391extern "C"
8392#endif
Reid Spencera40c6872004-11-29 12:29:58 +00008393char opendir ();
8394int
8395main ()
8396{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008397return opendir ();
Reid Spencera40c6872004-11-29 12:29:58 +00008398 ;
8399 return 0;
8400}
8401_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008402for ac_lib in '' dir; do
8403 if test -z "$ac_lib"; then
8404 ac_res="none required"
8405 else
8406 ac_res=-l$ac_lib
Reid Spencera40c6872004-11-29 12:29:58 +00008407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008408 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008409 rm -f conftest.$ac_objext conftest$ac_exeext
8410if { (ac_try="$ac_link"
8411case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414esac
8415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_link") 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427esac
8428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437esac
8438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008443 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008444else
8445 echo "$as_me: failed program was:" >&5
8446sed 's/^/| /' conftest.$ac_ext >&5
8447
8448
Reid Spencera40c6872004-11-29 12:29:58 +00008449fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008450
Bill Wendling02b47d92009-04-18 11:20:33 +00008451rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008452 conftest$ac_exeext
8453 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008454 break
Reid Spencera40c6872004-11-29 12:29:58 +00008455fi
John Criswell3ef61af2003-06-30 21:59:07 +00008456done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008457if test "${ac_cv_search_opendir+set}" = set; then
8458 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008459else
8460 ac_cv_search_opendir=no
8461fi
8462rm conftest.$ac_ext
8463LIBS=$ac_func_search_save_LIBS
8464fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008465{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008467ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008468if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell3ef61af2003-06-30 21:59:07 +00008470
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008471fi
8472
8473else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008474 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476if test "${ac_cv_search_opendir+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008478else
8479 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008480cat >conftest.$ac_ext <<_ACEOF
8481/* confdefs.h. */
8482_ACEOF
8483cat confdefs.h >>conftest.$ac_ext
8484cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008485/* end confdefs.h. */
8486
8487/* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8490#ifdef __cplusplus
8491extern "C"
8492#endif
8493char opendir ();
8494int
8495main ()
8496{
8497return opendir ();
8498 ;
8499 return 0;
8500}
8501_ACEOF
8502for ac_lib in '' x; do
8503 if test -z "$ac_lib"; then
8504 ac_res="none required"
8505 else
8506 ac_res=-l$ac_lib
8507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8508 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008509 rm -f conftest.$ac_objext conftest$ac_exeext
8510if { (ac_try="$ac_link"
8511case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514esac
8515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_link") 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527esac
8528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_try") 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537esac
8538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008543 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008544else
8545 echo "$as_me: failed program was:" >&5
8546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008549fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008550
Bill Wendling02b47d92009-04-18 11:20:33 +00008551rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008552 conftest$ac_exeext
8553 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008554 break
8555fi
8556done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008557if test "${ac_cv_search_opendir+set}" = set; then
8558 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008559else
8560 ac_cv_search_opendir=no
8561fi
8562rm conftest.$ac_ext
8563LIBS=$ac_func_search_save_LIBS
8564fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008565{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008567ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008568if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8570
8571fi
8572
8573fi
John Criswell3ef61af2003-06-30 21:59:07 +00008574
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008575
John Criswell3ef61af2003-06-30 21:59:07 +00008576for ac_header in dlfcn.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008577do
8578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584fi
8585ac_res=`eval echo '${'$as_ac_Header'}'`
8586 { echo "$as_me:$LINENO: result: $ac_res" >&5
8587echo "${ECHO_T}$ac_res" >&6; }
8588else
8589 # Is the header compilable?
8590{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8592cat >conftest.$ac_ext <<_ACEOF
8593/* confdefs.h. */
8594_ACEOF
8595cat confdefs.h >>conftest.$ac_ext
8596cat >>conftest.$ac_ext <<_ACEOF
8597/* end confdefs.h. */
8598$ac_includes_default
8599#include <$ac_header>
8600_ACEOF
8601rm -f conftest.$ac_objext
8602if { (ac_try="$ac_compile"
8603case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606esac
8607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619esac
8620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_try") 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest.$ac_objext'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629esac
8630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_header_compiler=yes
8636else
8637 echo "$as_me: failed program was:" >&5
8638sed 's/^/| /' conftest.$ac_ext >&5
8639
8640 ac_header_compiler=no
8641fi
8642
8643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645echo "${ECHO_T}$ac_header_compiler" >&6; }
8646
8647# Is the header present?
8648{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8650cat >conftest.$ac_ext <<_ACEOF
8651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h. */
8656#include <$ac_header>
8657_ACEOF
8658if { (ac_try="$ac_cpp conftest.$ac_ext"
8659case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662esac
8663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } >/dev/null; then
8671 if test -s conftest.err; then
8672 ac_cpp_err=$ac_c_preproc_warn_flag
8673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8674 else
8675 ac_cpp_err=
8676 fi
8677else
8678 ac_cpp_err=yes
8679fi
8680if test -z "$ac_cpp_err"; then
8681 ac_header_preproc=yes
8682else
8683 echo "$as_me: failed program was:" >&5
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 ac_header_preproc=no
8687fi
8688
8689rm -f conftest.err conftest.$ac_ext
8690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691echo "${ECHO_T}$ac_header_preproc" >&6; }
8692
8693# So? What about this header?
8694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695 yes:no: )
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700 ac_header_preproc=yes
8701 ;;
8702 no:yes:* )
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8715 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +00008716## ------------------------------------ ##
8717## Report this to http://llvm.org/bugs/ ##
8718## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008719_ASBOX
8720 ) | sed "s/^/$as_me: WARNING: /" >&2
8721 ;;
8722esac
8723{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
8728 eval "$as_ac_Header=\$ac_header_preproc"
8729fi
8730ac_res=`eval echo '${'$as_ac_Header'}'`
8731 { echo "$as_me:$LINENO: result: $ac_res" >&5
8732echo "${ECHO_T}$ac_res" >&6; }
8733
8734fi
8735if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +00008736 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +00008738_ACEOF
8739
8740fi
8741
8742done
8743
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008744# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008745if test "${enable_ltdl_install+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008746 enableval=$enable_ltdl_install;
8747fi
Reid Spencera40c6872004-11-29 12:29:58 +00008748
Reid Spencera40c6872004-11-29 12:29:58 +00008749
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008750
8751
8752if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencera40c6872004-11-29 12:29:58 +00008753 INSTALL_LTDL_TRUE=
8754 INSTALL_LTDL_FALSE='#'
8755else
8756 INSTALL_LTDL_TRUE='#'
8757 INSTALL_LTDL_FALSE=
8758fi
8759
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008760
8761
8762if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencera40c6872004-11-29 12:29:58 +00008763 CONVENIENCE_LTDL_TRUE=
8764 CONVENIENCE_LTDL_FALSE='#'
8765else
8766 CONVENIENCE_LTDL_TRUE='#'
8767 CONVENIENCE_LTDL_FALSE=
8768fi
8769
8770
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008771{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00008773library_names_spec=
8774libname_spec='lib$name'
8775soname_spec=
8776shrext_cmds=".so"
8777postinstall_cmds=
8778postuninstall_cmds=
8779finish_cmds=
8780finish_eval=
8781shlibpath_var=
8782shlibpath_overrides_runpath=unknown
8783version_type=none
8784dynamic_linker="$host_os ld.so"
8785sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786if test "$GCC" = yes; then
8787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789 # if the path contains ";" then we assume it to be the separator
8790 # otherwise default to the standard path separator (i.e. ":") - it is
8791 # assumed that no part of a normal pathname contains ";" but that should
8792 # okay in the real world where ";" in dirpaths is itself problematic.
8793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794 else
8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8796 fi
8797else
8798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8799fi
8800need_lib_prefix=unknown
8801hardcode_into_libs=no
8802
8803# when you set need_version to no, make sure it does not cause -set_version
8804# flags to be left without arguments
8805need_version=unknown
8806
8807case $host_os in
8808aix3*)
8809 version_type=linux
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811 shlibpath_var=LIBPATH
8812
8813 # AIX 3 has no versioning support, so we append a major version to the name.
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 ;;
8816
8817aix4* | aix5*)
8818 version_type=linux
8819 need_lib_prefix=no
8820 need_version=no
8821 hardcode_into_libs=yes
8822 if test "$host_cpu" = ia64; then
8823 # AIX 5 supports IA64
8824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 else
8827 # With GCC up to 2.95.x, collect2 would create an import file
8828 # for dependence libraries. The import file would start with
8829 # the line `#! .'. This would cause the generated library to
8830 # depend on `.', always an invalid library. This was fixed in
8831 # development snapshots of GCC prior to 3.0.
8832 case $host_os in
8833 aix4 | aix4.[01] | aix4.[01].*)
8834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8835 echo ' yes '
8836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8837 :
8838 else
8839 can_build_shared=no
8840 fi
8841 ;;
8842 esac
8843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844 # soname into executable. Probably we can add versioning support to
8845 # collect2, so additional links can be useful in future.
8846 if test "$aix_use_runtimelinking" = yes; then
8847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848 # instead of lib<name>.a to let people know that these are not
8849 # typical AIX shared libraries.
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 else
8852 # We preserve .a as extension for shared libraries through AIX4.2
8853 # and later when we are not doing run time linking.
8854 library_names_spec='${libname}${release}.a $libname.a'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 fi
8857 shlibpath_var=LIBPATH
8858 fi
8859 ;;
8860
8861amigaos*)
8862 library_names_spec='$libname.ixlibrary $libname.a'
8863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864 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'
8865 ;;
8866
8867beos*)
8868 library_names_spec='${libname}${shared_ext}'
8869 dynamic_linker="$host_os ld.so"
8870 shlibpath_var=LIBRARY_PATH
8871 ;;
8872
8873bsdi[45]*)
8874 version_type=linux
8875 need_version=no
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882 # the default ld.so.conf also contains /usr/contrib/lib and
8883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884 # libtool to hard-code these into programs
8885 ;;
8886
8887cygwin* | mingw* | pw32*)
8888 version_type=windows
8889 shrext_cmds=".dll"
8890 need_version=no
8891 need_lib_prefix=no
8892
8893 case $GCC,$host_os in
8894 yes,cygwin* | yes,mingw* | yes,pw32*)
8895 library_names_spec='$libname.dll.a'
8896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897 postinstall_cmds='base_file=`basename \${file}`~
8898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899 dldir=$destdir/`dirname \$dlpath`~
8900 test -d \$dldir || mkdir -p \$dldir~
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008901 $install_prog $dir/$dlname \$dldir/$dlname~
8902 chmod a+x \$dldir/$dlname'
Reid Spencera40c6872004-11-29 12:29:58 +00008903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904 dlpath=$dir/\$dldll~
8905 $rm \$dlpath'
8906 shlibpath_overrides_runpath=yes
8907
8908 case $host_os in
8909 cygwin*)
8910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8913 ;;
8914 mingw*)
8915 # MinGW DLLs use traditional 'lib' prefix
8916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919 # It is most probably a Windows format PATH printed by
8920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921 # path with ; separators, and with drive letters. We can handle the
8922 # drive letters (cygwin fileutils understands them), so leave them,
8923 # especially as we might pass files found there to a mingw objdump,
8924 # which wouldn't understand a cygwinified path. Ahh.
8925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8926 else
8927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8928 fi
8929 ;;
8930 pw32*)
8931 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencera40c6872004-11-29 12:29:58 +00008933 ;;
8934 esac
8935 ;;
8936
8937 *)
8938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8939 ;;
8940 esac
8941 dynamic_linker='Win32 ld.exe'
8942 # FIXME: first we should search . and the directory the executable is in
8943 shlibpath_var=PATH
8944 ;;
8945
8946darwin* | rhapsody*)
8947 dynamic_linker="$host_os dyld"
8948 version_type=darwin
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952 soname_spec='${libname}${release}${major}$shared_ext'
8953 shlibpath_overrides_runpath=yes
8954 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer28d3e722007-04-11 00:27:39 +00008955 shrext_cmds='.dylib'
Reid Spencera40c6872004-11-29 12:29:58 +00008956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957 if test "$GCC" = yes; then
8958 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"`
8959 else
8960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8961 fi
8962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8963 ;;
8964
8965dgux*)
8966 version_type=linux
8967 need_lib_prefix=no
8968 need_version=no
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 ;;
8973
Eric Christopher49709ad2011-10-26 00:42:12 +00008974freebsd1.*)
Reid Spencera40c6872004-11-29 12:29:58 +00008975 dynamic_linker=no
8976 ;;
8977
8978kfreebsd*-gnu)
8979 version_type=linux
8980 need_lib_prefix=no
8981 need_version=no
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8987 dynamic_linker='GNU ld.so'
8988 ;;
8989
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008990freebsd* | dragonfly*)
8991 # DragonFly does not have aout. When/if they implement a new
8992 # versioning mechanism, adjust this.
8993 if test -x /usr/bin/objformat; then
8994 objformat=`/usr/bin/objformat`
8995 else
8996 case $host_os in
Eric Christopher49709ad2011-10-26 00:42:12 +00008997 freebsd[123].*) objformat=aout ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008998 *) objformat=elf ;;
8999 esac
9000 fi
Reid Spencera40c6872004-11-29 12:29:58 +00009001 version_type=freebsd-$objformat
9002 case $version_type in
9003 freebsd-elf*)
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005 need_version=no
9006 need_lib_prefix=no
9007 ;;
9008 freebsd-*)
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010 need_version=yes
9011 ;;
9012 esac
9013 shlibpath_var=LD_LIBRARY_PATH
9014 case $host_os in
Eric Christopher49709ad2011-10-26 00:42:12 +00009015 freebsd2.*)
Reid Spencera40c6872004-11-29 12:29:58 +00009016 shlibpath_overrides_runpath=yes
9017 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009018 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencera40c6872004-11-29 12:29:58 +00009019 shlibpath_overrides_runpath=yes
9020 hardcode_into_libs=yes
9021 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencera40c6872004-11-29 12:29:58 +00009024 shlibpath_overrides_runpath=no
9025 hardcode_into_libs=yes
9026 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009027 freebsd*) # from 4.6 on
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9030 ;;
Reid Spencera40c6872004-11-29 12:29:58 +00009031 esac
9032 ;;
9033
9034gnu*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 hardcode_into_libs=yes
9042 ;;
9043
9044hpux9* | hpux10* | hpux11*)
9045 # Give a soname corresponding to the major version so that dld.sl refuses to
9046 # link against other versions.
9047 version_type=sunos
9048 need_lib_prefix=no
9049 need_version=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009050 case $host_cpu in
Reid Spencera40c6872004-11-29 12:29:58 +00009051 ia64*)
9052 shrext_cmds='.so'
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.so"
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 if test "X$HPUX_IA64_MODE" = X32; then
9060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061 else
9062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063 fi
9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065 ;;
9066 hppa*64*)
9067 shrext_cmds='.sl'
9068 hardcode_into_libs=yes
9069 dynamic_linker="$host_os dld.sl"
9070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076 ;;
9077 *)
9078 shrext_cmds='.sl'
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=SHLIB_PATH
9081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 ;;
9085 esac
9086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087 postinstall_cmds='chmod 555 $lib'
9088 ;;
9089
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009090interix3*)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9100 ;;
9101
Reid Spencera40c6872004-11-29 12:29:58 +00009102irix5* | irix6* | nonstopux*)
9103 case $host_os in
9104 nonstopux*) version_type=nonstopux ;;
9105 *)
9106 if test "$lt_cv_prog_gnu_ld" = yes; then
9107 version_type=linux
9108 else
9109 version_type=irix
9110 fi ;;
9111 esac
9112 need_lib_prefix=no
9113 need_version=no
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116 case $host_os in
9117 irix5* | nonstopux*)
9118 libsuff= shlibsuff=
9119 ;;
9120 *)
9121 case $LD in # libtool.m4 will add one of these switches to LD
9122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123 libsuff= shlibsuff= libmagic=32-bit;;
9124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125 libsuff=32 shlibsuff=N32 libmagic=N32;;
9126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128 *) libsuff= shlibsuff= libmagic=never-match;;
9129 esac
9130 ;;
9131 esac
9132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136 hardcode_into_libs=yes
9137 ;;
9138
9139# No shared lib support for Linux oldld, aout, or coff.
9140linux*oldld* | linux*aout* | linux*coff*)
9141 dynamic_linker=no
9142 ;;
9143
9144# This must be Linux ELF.
9145linux*)
9146 version_type=linux
9147 need_lib_prefix=no
9148 need_version=no
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 # This implies no fast_install, which is unacceptable.
9155 # Some rework will be needed to allow for fast_install
9156 # before this can be enabled.
9157 hardcode_into_libs=yes
9158
9159 # Append ld.so.conf contents to the search path
9160 if test -f /etc/ld.so.conf; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009161 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 Spencera40c6872004-11-29 12:29:58 +00009162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163 fi
9164
9165 # We used to test for /lib/ld.so.1 and disable shared libraries on
9166 # powerpc, because MkLinux only supported shared libraries with the
9167 # GNU dynamic linker. Since this was broken with cross compilers,
9168 # most powerpc-linux boxes support dynamic linking these days and
9169 # people can always --disable-shared, the test was removed, and we
9170 # assume the GNU/Linux dynamic linker is in use.
9171 dynamic_linker='GNU/Linux ld.so'
9172 ;;
9173
9174knetbsd*-gnu)
9175 version_type=linux
9176 need_lib_prefix=no
9177 need_version=no
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 hardcode_into_libs=yes
9183 dynamic_linker='GNU ld.so'
9184 ;;
9185
9186netbsd*)
9187 version_type=sunos
9188 need_lib_prefix=no
9189 need_version=no
9190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 dynamic_linker='NetBSD (a.out) ld.so'
9194 else
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 dynamic_linker='NetBSD ld.elf_so'
9198 fi
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9202 ;;
9203
9204newsos6)
9205 version_type=linux
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9209 ;;
9210
9211nto-qnx*)
9212 version_type=linux
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9219 ;;
9220
Eric Christopher22738d02012-08-06 20:52:18 +00009221openbsd* | bitrig*)
Reid Spencera40c6872004-11-29 12:29:58 +00009222 version_type=sunos
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009223 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencera40c6872004-11-29 12:29:58 +00009224 need_lib_prefix=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9226 case $host_os in
9227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228 *) need_version=no ;;
9229 esac
Reid Spencera40c6872004-11-29 12:29:58 +00009230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9234 case $host_os in
9235 openbsd2.[89] | openbsd2.[89].*)
9236 shlibpath_overrides_runpath=no
9237 ;;
9238 *)
9239 shlibpath_overrides_runpath=yes
9240 ;;
9241 esac
9242 else
9243 shlibpath_overrides_runpath=yes
9244 fi
9245 ;;
9246
9247os2*)
9248 libname_spec='$name'
9249 shrext_cmds=".dll"
9250 need_lib_prefix=no
9251 library_names_spec='$libname${shared_ext} $libname.a'
9252 dynamic_linker='OS/2 ld.exe'
9253 shlibpath_var=LIBPATH
9254 ;;
9255
9256osf3* | osf4* | osf5*)
9257 version_type=osf
9258 need_lib_prefix=no
9259 need_version=no
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9265 ;;
9266
Reid Spencera40c6872004-11-29 12:29:58 +00009267solaris*)
9268 version_type=linux
9269 need_lib_prefix=no
9270 need_version=no
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=yes
9275 hardcode_into_libs=yes
9276 # ldd complains unless libraries are executable
9277 postinstall_cmds='chmod +x $lib'
9278 ;;
9279
9280sunos4*)
9281 version_type=sunos
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=yes
9286 if test "$with_gnu_ld" = yes; then
9287 need_lib_prefix=no
9288 fi
9289 need_version=yes
9290 ;;
9291
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009292sysv4 | sysv4.3*)
Reid Spencera40c6872004-11-29 12:29:58 +00009293 version_type=linux
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 case $host_vendor in
9298 sni)
9299 shlibpath_overrides_runpath=no
9300 need_lib_prefix=no
9301 export_dynamic_flag_spec='${wl}-Blargedynsym'
9302 runpath_var=LD_RUN_PATH
9303 ;;
9304 siemens)
9305 need_lib_prefix=no
9306 ;;
9307 motorola)
9308 need_lib_prefix=no
9309 need_version=no
9310 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9312 ;;
9313 esac
9314 ;;
9315
9316sysv4*MP*)
9317 if test -d /usr/nec ;then
9318 version_type=linux
9319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320 soname_spec='$libname${shared_ext}.$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 fi
9323 ;;
9324
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326 version_type=freebsd-elf
9327 need_lib_prefix=no
9328 need_version=no
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 hardcode_into_libs=yes
9333 if test "$with_gnu_ld" = yes; then
9334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335 shlibpath_overrides_runpath=no
9336 else
9337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338 shlibpath_overrides_runpath=yes
9339 case $host_os in
9340 sco3.2v5*)
9341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9342 ;;
9343 esac
9344 fi
9345 sys_lib_dlsearch_path_spec='/usr/lib'
9346 ;;
9347
Reid Spencera40c6872004-11-29 12:29:58 +00009348uts4*)
9349 version_type=linux
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 ;;
9354
9355*)
9356 dynamic_linker=no
9357 ;;
9358esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009359{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009361test "$dynamic_linker" = no && can_build_shared=no
9362
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364if test "$GCC" = yes; then
9365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9366fi
Reid Spencera40c6872004-11-29 12:29:58 +00009367
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009368
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009369{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9371if test "${libltdl_cv_shlibext+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009373else
9374
9375module=yes
9376eval libltdl_cv_shlibext=$shrext_cmds
9377
9378fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009379{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009381if test -n "$libltdl_cv_shlibext"; then
9382
9383cat >>confdefs.h <<_ACEOF
9384#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9385_ACEOF
9386
9387fi
9388
9389
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009390{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9392if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009394else
9395 libltdl_cv_shlibpath_var="$shlibpath_var"
9396fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009397{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009399if test -n "$libltdl_cv_shlibpath_var"; then
9400
9401cat >>confdefs.h <<_ACEOF
9402#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9403_ACEOF
9404
9405fi
9406
9407
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009408{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9409echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9410if test "${libltdl_cv_sys_search_path+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009412else
9413 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9414fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009415{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009417if test -n "$libltdl_cv_sys_search_path"; then
9418 sys_search_path=
9419 for dir in $libltdl_cv_sys_search_path; do
9420 if test -z "$sys_search_path"; then
9421 sys_search_path="$dir"
9422 else
9423 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9424 fi
9425 done
9426
9427cat >>confdefs.h <<_ACEOF
9428#define LTDL_SYSSEARCHPATH "$sys_search_path"
9429_ACEOF
9430
9431fi
9432
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009433{ echo "$as_me:$LINENO: checking for objdir" >&5
9434echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9435if test "${libltdl_cv_objdir+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009437else
9438 libltdl_cv_objdir="$objdir"
9439 if test -n "$objdir"; then
9440 :
9441 else
9442 rm -f .libs 2>/dev/null
9443 mkdir .libs 2>/dev/null
9444 if test -d .libs; then
9445 libltdl_cv_objdir=.libs
9446 else
9447 # MS-DOS does not allow filenames that begin with a dot.
9448 libltdl_cv_objdir=_libs
9449 fi
9450 rmdir .libs 2>/dev/null
9451 fi
9452
9453fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009454{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009456
9457cat >>confdefs.h <<_ACEOF
9458#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9459_ACEOF
9460
9461
Reid Spencera40c6872004-11-29 12:29:58 +00009462
9463
9464
9465
9466# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009467{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9469if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009471else
9472
9473# These are sane defaults that work on at least a few old systems.
9474# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9475
9476# Character class describing NM global symbol codes.
9477symcode='[BCDEGRST]'
9478
9479# Regexp to match symbols that can be accessed directly from C.
9480sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9481
Reid Spencera40c6872004-11-29 12:29:58 +00009482# Transform an extracted symbol line into a proper C declaration
9483lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9484
9485# Transform an extracted symbol line into symbol name and symbol address
9486lt_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'"
9487
9488# Define system-specific variables.
9489case $host_os in
9490aix*)
9491 symcode='[BCDT]'
9492 ;;
9493cygwin* | mingw* | pw32*)
9494 symcode='[ABCDGISTW]'
9495 ;;
9496hpux*) # Its linker distinguishes data from code symbols
9497 if test "$host_cpu" = ia64; then
9498 symcode='[ABCDEGRST]'
9499 fi
9500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501 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'"
9502 ;;
9503linux*)
9504 if test "$host_cpu" = ia64; then
9505 symcode='[ABCDGIRSTW]'
9506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507 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'"
9508 fi
9509 ;;
9510irix* | nonstopux*)
9511 symcode='[BCDEGRST]'
9512 ;;
9513osf*)
9514 symcode='[BCDEGQRST]'
9515 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009516solaris*)
Reid Spencera40c6872004-11-29 12:29:58 +00009517 symcode='[BDRT]'
9518 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009519sco3.2v5*)
9520 symcode='[DT]'
9521 ;;
9522sysv4.2uw2*)
9523 symcode='[DT]'
9524 ;;
9525sysv5* | sco5v6* | unixware* | OpenUNIX*)
9526 symcode='[ABDT]'
9527 ;;
Reid Spencera40c6872004-11-29 12:29:58 +00009528sysv4)
9529 symcode='[DFNSTU]'
9530 ;;
9531esac
9532
9533# Handle CRLF in mingw tool chain
9534opt_cr=
9535case $build_os in
9536mingw*)
9537 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9538 ;;
9539esac
9540
9541# If we're using GNU nm, then use its standard symbol codes.
9542case `$NM -V 2>&1` in
9543*GNU* | *'with BFD'*)
9544 symcode='[ABCDGIRSTW]' ;;
9545esac
9546
9547# Try without a prefix undercore, then with it.
9548for ac_symprfx in "" "_"; do
9549
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551 symxfrm="\\1 $ac_symprfx\\2 \\2"
9552
Reid Spencera40c6872004-11-29 12:29:58 +00009553 # Write the raw and C identifiers.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencera40c6872004-11-29 12:29:58 +00009555
9556 # Check to see that the pipe works correctly.
9557 pipe_works=no
9558
9559 rm -f conftest*
9560 cat > conftest.$ac_ext <<EOF
9561#ifdef __cplusplus
9562extern "C" {
9563#endif
9564char nm_test_var;
9565void nm_test_func(){}
9566#ifdef __cplusplus
9567}
9568#endif
9569int main(){nm_test_var='a';nm_test_func();return(0);}
9570EOF
9571
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009573 (eval $ac_compile) 2>&5
9574 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009577 # Now try to grab the symbols.
9578 nlist=conftest.nm
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009579 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9581 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencera40c6872004-11-29 12:29:58 +00009584 # Try sorting and uniquifying the output.
9585 if sort "$nlist" | uniq > "$nlist"T; then
9586 mv -f "$nlist"T "$nlist"
9587 else
9588 rm -f "$nlist"T
9589 fi
9590
9591 # Make sure that we snagged all the symbols we need.
9592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594 cat <<EOF > conftest.$ac_ext
9595#ifdef __cplusplus
9596extern "C" {
9597#endif
9598
9599EOF
9600 # Now generate the symbol file.
9601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9602
9603 cat <<EOF >> conftest.$ac_ext
9604#if defined (__STDC__) && __STDC__
9605# define lt_ptr_t void *
9606#else
9607# define lt_ptr_t char *
9608# define const
9609#endif
9610
9611/* The mapping between symbol names and symbols. */
9612const struct {
9613 const char *name;
9614 lt_ptr_t address;
9615}
9616lt_preloaded_symbols[] =
9617{
9618EOF
9619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620 cat <<\EOF >> conftest.$ac_ext
9621 {0, (lt_ptr_t) 0}
9622};
9623
9624#ifdef __cplusplus
9625}
9626#endif
9627EOF
9628 # Now try linking the two files.
9629 mv conftest.$ac_objext conftstm.$ac_objext
9630 lt_save_LIBS="$LIBS"
9631 lt_save_CFLAGS="$CFLAGS"
9632 LIBS="conftstm.$ac_objext"
9633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009635 (eval $ac_link) 2>&5
9636 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencera40c6872004-11-29 12:29:58 +00009639 pipe_works=yes
9640 fi
9641 LIBS="$lt_save_LIBS"
9642 CFLAGS="$lt_save_CFLAGS"
9643 else
9644 echo "cannot find nm_test_func in $nlist" >&5
9645 fi
9646 else
9647 echo "cannot find nm_test_var in $nlist" >&5
9648 fi
9649 else
9650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9651 fi
9652 else
9653 echo "$progname: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9655 fi
9656 rm -f conftest* conftst*
9657
9658 # Do not use the global_symbol_pipe unless it works.
9659 if test "$pipe_works" = yes; then
9660 break
9661 else
9662 lt_cv_sys_global_symbol_pipe=
9663 fi
9664done
9665
9666fi
9667
9668if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669 lt_cv_sys_global_symbol_to_cdecl=
9670fi
9671if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009672 { echo "$as_me:$LINENO: result: failed" >&5
9673echo "${ECHO_T}failed" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009674else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009675 { echo "$as_me:$LINENO: result: ok" >&5
9676echo "${ECHO_T}ok" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009677fi
9678
9679
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009680{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9682if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009684else
9685 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686 libltdl_cv_preloaded_symbols=yes
9687 else
9688 libltdl_cv_preloaded_symbols=no
9689 fi
9690
9691fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009692{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009694if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9695
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009696cat >>confdefs.h <<\_ACEOF
9697#define HAVE_PRELOADED_SYMBOLS 1
9698_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009699
9700fi
9701
9702LIBADD_DL=
9703
9704ac_ext=c
9705ac_cpp='$CPP $CPPFLAGS'
9706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708ac_compiler_gnu=$ac_cv_c_compiler_gnu
9709
9710
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009711{ echo "$as_me:$LINENO: checking for shl_load" >&5
9712echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9713if test "${ac_cv_func_shl_load+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715else
9716 cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
9722/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724#define shl_load innocuous_shl_load
Reid Spencera40c6872004-11-29 12:29:58 +00009725
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009726/* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char shl_load (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9730
9731#ifdef __STDC__
9732# include <limits.h>
9733#else
9734# include <assert.h>
9735#endif
9736
9737#undef shl_load
9738
9739/* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
9742#ifdef __cplusplus
9743extern "C"
9744#endif
9745char shl_load ();
9746/* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749#if defined __stub_shl_load || defined __stub___shl_load
9750choke me
9751#endif
9752
9753int
9754main ()
9755{
9756return shl_load ();
9757 ;
9758 return 0;
9759}
9760_ACEOF
9761rm -f conftest.$ac_objext conftest$ac_exeext
9762if { (ac_try="$ac_link"
9763case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766esac
9767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776 { (case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779esac
9780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_try") 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_func_shl_load=yes
9796else
9797 echo "$as_me: failed program was:" >&5
9798sed 's/^/| /' conftest.$ac_ext >&5
9799
9800 ac_cv_func_shl_load=no
9801fi
9802
9803rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9805fi
9806{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9808if test $ac_cv_func_shl_load = yes; then
9809
9810cat >>confdefs.h <<\_ACEOF
9811#define HAVE_SHL_LOAD 1
9812_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009813
9814else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009815 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009819else
9820 ac_check_lib_save_LIBS=$LIBS
9821LIBS="-ldld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009822cat >conftest.$ac_ext <<_ACEOF
9823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009827/* end confdefs.h. */
9828
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009829/* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00009832#ifdef __cplusplus
9833extern "C"
9834#endif
Reid Spencera40c6872004-11-29 12:29:58 +00009835char shl_load ();
9836int
9837main ()
9838{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009839return shl_load ();
Reid Spencera40c6872004-11-29 12:29:58 +00009840 ;
9841 return 0;
9842}
9843_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009844rm -f conftest.$ac_objext conftest$ac_exeext
9845if { (ac_try="$ac_link"
9846case "(($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_link") 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862esac
9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009878 ac_cv_lib_dld_shl_load=yes
9879else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009880 echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883 ac_cv_lib_dld_shl_load=no
Reid Spencera40c6872004-11-29 12:29:58 +00009884fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009885
Bill Wendling02b47d92009-04-18 11:20:33 +00009886rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009887 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00009888LIBS=$ac_check_lib_save_LIBS
9889fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009890{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9892if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00009893
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009894cat >>confdefs.h <<\_ACEOF
9895#define HAVE_SHL_LOAD 1
9896_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009897
9898 LIBADD_DL="$LIBADD_DL -ldld"
9899else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009900 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9902if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009904else
9905 ac_check_lib_save_LIBS=$LIBS
9906LIBS="-ldl $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009907cat >conftest.$ac_ext <<_ACEOF
9908/* confdefs.h. */
9909_ACEOF
9910cat confdefs.h >>conftest.$ac_ext
9911cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009912/* end confdefs.h. */
9913
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009914/* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00009917#ifdef __cplusplus
9918extern "C"
9919#endif
Reid Spencera40c6872004-11-29 12:29:58 +00009920char dlopen ();
9921int
9922main ()
9923{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009924return dlopen ();
Reid Spencera40c6872004-11-29 12:29:58 +00009925 ;
9926 return 0;
9927}
9928_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009929rm -f conftest.$ac_objext conftest$ac_exeext
9930if { (ac_try="$ac_link"
9931case "(($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_link") 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944 { (case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9947esac
9948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_try") 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957esac
9958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
9960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009963 ac_cv_lib_dl_dlopen=yes
9964else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009965 echo "$as_me: failed program was:" >&5
9966sed 's/^/| /' conftest.$ac_ext >&5
9967
9968 ac_cv_lib_dl_dlopen=no
Reid Spencera40c6872004-11-29 12:29:58 +00009969fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009970
Bill Wendling02b47d92009-04-18 11:20:33 +00009971rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009972 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00009973LIBS=$ac_check_lib_save_LIBS
9974fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009975{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9977if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00009978
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009979cat >>confdefs.h <<\_ACEOF
9980#define HAVE_LIBDL 1
9981_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009982
9983 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9984else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009985 cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h. */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009990/* end confdefs.h. */
9991#if HAVE_DLFCN_H
9992# include <dlfcn.h>
9993#endif
9994
9995int
9996main ()
9997{
9998dlopen(0, 0);
9999 ;
10000 return 0;
10001}
10002_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010003rm -f conftest.$ac_objext conftest$ac_exeext
10004if { (ac_try="$ac_link"
10005case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008esac
10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10021esac
10022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031esac
10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010037
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010038cat >>confdefs.h <<\_ACEOF
10039#define HAVE_LIBDL 1
10040_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010041 libltdl_cv_func_dlopen="yes"
10042else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010043 echo "$as_me: failed program was:" >&5
10044sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10048if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010050else
10051 ac_check_lib_save_LIBS=$LIBS
10052LIBS="-lsvld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010053cat >conftest.$ac_ext <<_ACEOF
10054/* confdefs.h. */
10055_ACEOF
10056cat confdefs.h >>conftest.$ac_ext
10057cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010058/* end confdefs.h. */
10059
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010060/* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +000010063#ifdef __cplusplus
10064extern "C"
10065#endif
Reid Spencera40c6872004-11-29 12:29:58 +000010066char dlopen ();
10067int
10068main ()
10069{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010070return dlopen ();
Reid Spencera40c6872004-11-29 12:29:58 +000010071 ;
10072 return 0;
10073}
10074_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010075rm -f conftest.$ac_objext conftest$ac_exeext
10076if { (ac_try="$ac_link"
10077case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080esac
10081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_link") 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10093esac
10094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_try") 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest$ac_exeext'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010109 ac_cv_lib_svld_dlopen=yes
10110else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010111 echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 ac_cv_lib_svld_dlopen=no
Reid Spencera40c6872004-11-29 12:29:58 +000010115fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010116
Bill Wendling02b47d92009-04-18 11:20:33 +000010117rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010118 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010119LIBS=$ac_check_lib_save_LIBS
10120fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010121{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10123if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010124
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010125cat >>confdefs.h <<\_ACEOF
10126#define HAVE_LIBDL 1
10127_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010128
10129 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10130else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010131 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10133if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010135else
10136 ac_check_lib_save_LIBS=$LIBS
10137LIBS="-ldld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010138cat >conftest.$ac_ext <<_ACEOF
10139/* confdefs.h. */
10140_ACEOF
10141cat confdefs.h >>conftest.$ac_ext
10142cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010143/* end confdefs.h. */
10144
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010145/* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +000010148#ifdef __cplusplus
10149extern "C"
10150#endif
Reid Spencera40c6872004-11-29 12:29:58 +000010151char dld_link ();
10152int
10153main ()
10154{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010155return dld_link ();
Reid Spencera40c6872004-11-29 12:29:58 +000010156 ;
10157 return 0;
10158}
10159_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010160rm -f conftest.$ac_objext conftest$ac_exeext
10161if { (ac_try="$ac_link"
10162case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165esac
10166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178esac
10179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188esac
10189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010194 ac_cv_lib_dld_dld_link=yes
10195else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010196 echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199 ac_cv_lib_dld_dld_link=no
Reid Spencera40c6872004-11-29 12:29:58 +000010200fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010201
Bill Wendling02b47d92009-04-18 11:20:33 +000010202rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010203 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010204LIBS=$ac_check_lib_save_LIBS
10205fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010206{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10208if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010209
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010210cat >>confdefs.h <<\_ACEOF
10211#define HAVE_DLD 1
10212_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010213
10214 LIBADD_DL="$LIBADD_DL -ldld"
10215else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010216 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10218if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 cat >conftest.$ac_ext <<_ACEOF
10222/* confdefs.h. */
10223_ACEOF
10224cat confdefs.h >>conftest.$ac_ext
10225cat >>conftest.$ac_ext <<_ACEOF
10226/* end confdefs.h. */
10227/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10229#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencera40c6872004-11-29 12:29:58 +000010230
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010231/* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char _dyld_func_lookup (); below.
10233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234 <limits.h> exists even on freestanding compilers. */
Reid Spencera40c6872004-11-29 12:29:58 +000010235
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010236#ifdef __STDC__
10237# include <limits.h>
10238#else
10239# include <assert.h>
10240#endif
10241
10242#undef _dyld_func_lookup
10243
10244/* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10247#ifdef __cplusplus
10248extern "C"
10249#endif
10250char _dyld_func_lookup ();
10251/* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
10254#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10255choke me
10256#endif
10257
10258int
10259main ()
10260{
10261return _dyld_func_lookup ();
10262 ;
10263 return 0;
10264}
10265_ACEOF
10266rm -f conftest.$ac_objext conftest$ac_exeext
10267if { (ac_try="$ac_link"
10268case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10271esac
10272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_link") 2>conftest.er1
10274 ac_status=$?
10275 grep -v '^ *+' conftest.er1 >conftest.err
10276 rm -f conftest.er1
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281 { (case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10284esac
10285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_try") 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
10291 { (case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294esac
10295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_try") 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_cv_func__dyld_func_lookup=yes
10301else
10302 echo "$as_me: failed program was:" >&5
10303sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 ac_cv_func__dyld_func_lookup=no
Reid Spencera40c6872004-11-29 12:29:58 +000010306fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010307
Bill Wendling02b47d92009-04-18 11:20:33 +000010308rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010309 conftest$ac_exeext conftest.$ac_ext
10310fi
10311{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10313if test $ac_cv_func__dyld_func_lookup = yes; then
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define HAVE_DYLD 1
10317_ACEOF
10318
10319fi
10320
10321
10322fi
10323
10324
10325fi
10326
10327
10328fi
10329
10330rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010332
10333fi
10334
10335
10336fi
10337
10338
10339fi
10340
10341
10342if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10343then
10344 lt_save_LIBS="$LIBS"
10345 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010346
10347for ac_func in dlerror
10348do
10349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10350{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355 cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h. */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10363#define $ac_func innocuous_$ac_func
10364
10365/* System header to define __stub macros and hopefully few prototypes,
10366 which can conflict with char $ac_func (); below.
10367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368 <limits.h> exists even on freestanding compilers. */
10369
10370#ifdef __STDC__
10371# include <limits.h>
10372#else
10373# include <assert.h>
10374#endif
10375
10376#undef $ac_func
10377
10378/* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10381#ifdef __cplusplus
10382extern "C"
10383#endif
10384char $ac_func ();
10385/* The GNU C library defines this for functions which it implements
10386 to always fail with ENOSYS. Some functions are actually named
10387 something starting with __ and the normal name is an alias. */
10388#if defined __stub_$ac_func || defined __stub___$ac_func
10389choke me
10390#endif
10391
10392int
10393main ()
10394{
10395return $ac_func ();
10396 ;
10397 return 0;
10398}
10399_ACEOF
10400rm -f conftest.$ac_objext conftest$ac_exeext
10401if { (ac_try="$ac_link"
10402case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405esac
10406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415 { (case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418esac
10419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_try") 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428esac
10429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 eval "$as_ac_var=yes"
10435else
10436 echo "$as_me: failed program was:" >&5
10437sed 's/^/| /' conftest.$ac_ext >&5
10438
10439 eval "$as_ac_var=no"
10440fi
10441
10442rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444fi
10445ac_res=`eval echo '${'$as_ac_var'}'`
10446 { echo "$as_me:$LINENO: result: $ac_res" >&5
10447echo "${ECHO_T}$ac_res" >&6; }
10448if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010449 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000010451_ACEOF
10452
10453fi
10454done
10455
10456 LIBS="$lt_save_LIBS"
10457fi
10458ac_ext=c
10459ac_cpp='$CPP $CPPFLAGS'
10460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462ac_compiler_gnu=$ac_cv_c_compiler_gnu
10463
10464
10465
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010466{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10468if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010470else
10471 ac_cv_sys_symbol_underscore=no
10472 cat > conftest.$ac_ext <<EOF
10473void nm_test_func(){}
10474int main(){nm_test_func;return 0;}
10475EOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010477 (eval $ac_compile) 2>&5
10478 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010481 # Now try to grab the symbols.
10482 ac_nlist=conftest.nm
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010483 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010484 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10485 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencera40c6872004-11-29 12:29:58 +000010488 # See whether the symbols have a leading underscore.
10489 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490 ac_cv_sys_symbol_underscore=yes
10491 else
10492 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10493 :
10494 else
10495 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10496 fi
10497 fi
10498 else
10499 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10500 fi
10501 else
10502 echo "configure: failed program was:" >&5
10503 cat conftest.c >&5
10504 fi
10505 rm -rf conftest*
10506
10507fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010508{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010510
10511
10512if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513 if test x"$libltdl_cv_func_dlopen" = xyes ||
10514 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010515 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10517if test "${libltdl_cv_need_uscore+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010519else
10520 libltdl_cv_need_uscore=unknown
10521 save_LIBS="$LIBS"
10522 LIBS="$LIBS $LIBADD_DL"
10523 if test "$cross_compiling" = yes; then :
10524 libltdl_cv_need_uscore=cross
10525else
10526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527 lt_status=$lt_dlunknown
10528 cat > conftest.$ac_ext <<EOF
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000010529#line 10529 "configure"
Reid Spencera40c6872004-11-29 12:29:58 +000010530#include "confdefs.h"
10531
10532#if HAVE_DLFCN_H
10533#include <dlfcn.h>
10534#endif
10535
10536#include <stdio.h>
10537
10538#ifdef RTLD_GLOBAL
10539# define LT_DLGLOBAL RTLD_GLOBAL
10540#else
10541# ifdef DL_GLOBAL
10542# define LT_DLGLOBAL DL_GLOBAL
10543# else
10544# define LT_DLGLOBAL 0
10545# endif
10546#endif
10547
10548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549 find out it does not work in some platform. */
10550#ifndef LT_DLLAZY_OR_NOW
10551# ifdef RTLD_LAZY
10552# define LT_DLLAZY_OR_NOW RTLD_LAZY
10553# else
10554# ifdef DL_LAZY
10555# define LT_DLLAZY_OR_NOW DL_LAZY
10556# else
10557# ifdef RTLD_NOW
10558# define LT_DLLAZY_OR_NOW RTLD_NOW
10559# else
10560# ifdef DL_NOW
10561# define LT_DLLAZY_OR_NOW DL_NOW
10562# else
10563# define LT_DLLAZY_OR_NOW 0
10564# endif
10565# endif
10566# endif
10567# endif
10568#endif
10569
10570#ifdef __cplusplus
10571extern "C" void exit (int);
10572#endif
10573
10574void fnord() { int i=42;}
10575int main ()
10576{
10577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578 int status = $lt_dlunknown;
10579
10580 if (self)
10581 {
10582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10583 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584 /* dlclose (self); */
10585 }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010586 else
10587 puts (dlerror ());
Reid Spencera40c6872004-11-29 12:29:58 +000010588
10589 exit (status);
10590}
10591EOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010593 (eval $ac_link) 2>&5
10594 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010597 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencera40c6872004-11-29 12:29:58 +000010598 lt_status=$?
10599 case x$lt_status in
10600 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010602 x$lt_dlunknown|x*) ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010603 esac
10604 else :
10605 # compilation failed
10606
10607 fi
10608fi
10609rm -fr conftest*
10610
10611 LIBS="$save_LIBS"
10612
10613fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010614{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010616 fi
10617fi
10618
10619if test x"$libltdl_cv_need_uscore" = xyes; then
10620
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010621cat >>confdefs.h <<\_ACEOF
10622#define NEED_USCORE 1
10623_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010624
10625fi
10626
10627
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010628{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10630if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010632else
10633 # PORTME does your system automatically load deplibs for dlopen?
10634 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635 # For now, we just catch OSes we know something about -- in the
10636 # future, we'll try test this programmatically.
10637 libltdl_cv_sys_dlopen_deplibs=unknown
10638 case "$host_os" in
10639 aix3*|aix4.1.*|aix4.2.*)
10640 # Unknown whether this is true for these versions of AIX, but
10641 # we want this `case' here to explicitly catch those versions.
10642 libltdl_cv_sys_dlopen_deplibs=unknown
10643 ;;
10644 aix[45]*)
10645 libltdl_cv_sys_dlopen_deplibs=yes
10646 ;;
10647 darwin*)
10648 # Assuming the user has installed a libdl from somewhere, this is true
10649 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650 libltdl_cv_sys_dlopen_deplibs=yes
10651 ;;
10652 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653 # GNU and its variants, using gnu ld.so (Glibc)
10654 libltdl_cv_sys_dlopen_deplibs=yes
10655 ;;
10656 hpux10*|hpux11*)
10657 libltdl_cv_sys_dlopen_deplibs=yes
10658 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010659 interix*)
10660 libltdl_cv_sys_dlopen_deplibs=yes
10661 ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010662 irix[12345]*|irix6.[01]*)
10663 # Catch all versions of IRIX before 6.2, and indicate that we don't
10664 # know how it worked for any of those versions.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10666 ;;
10667 irix*)
10668 # The case above catches anything before 6.2, and it's known that
10669 # at 6.2 and later dlopen does load deplibs.
10670 libltdl_cv_sys_dlopen_deplibs=yes
10671 ;;
10672 netbsd*)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10674 ;;
10675 openbsd*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10677 ;;
10678 osf[1234]*)
10679 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner0ab5e2c2011-04-15 05:18:47 +000010681 # library depends on, so we explicitly say `no'.
Reid Spencera40c6872004-11-29 12:29:58 +000010682 libltdl_cv_sys_dlopen_deplibs=no
10683 ;;
10684 osf5.0|osf5.0a|osf5.1)
10685 # dlopen *does* load deplibs and with the right loader patch applied
10686 # it even uses RPATH in a shared library to search for shared objects
10687 # that the library depends on, but there's no easy way to know if that
10688 # patch is installed. Since this is the case, all we can really
10689 # say is unknown -- it depends on the patch being installed. If
10690 # it is, this changes to `yes'. Without it, it would be `no'.
10691 libltdl_cv_sys_dlopen_deplibs=unknown
10692 ;;
10693 osf*)
10694 # the two cases above should catch all versions of osf <= 5.1. Read
10695 # the comments above for what we know about them.
10696 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697 # is used to find them so we can finally say `yes'.
10698 libltdl_cv_sys_dlopen_deplibs=yes
10699 ;;
10700 solaris*)
10701 libltdl_cv_sys_dlopen_deplibs=yes
10702 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10705 ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010706 esac
10707
10708fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010709{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010711if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10712
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010713cat >>confdefs.h <<\_ACEOF
10714#define LTDL_DLOPEN_DEPLIBS 1
10715_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010716
10717fi
10718
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010719
Reid Spencera40c6872004-11-29 12:29:58 +000010720for ac_header in argz.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010721do
10722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728fi
10729ac_res=`eval echo '${'$as_ac_Header'}'`
10730 { echo "$as_me:$LINENO: result: $ac_res" >&5
10731echo "${ECHO_T}$ac_res" >&6; }
10732else
10733 # Is the header compilable?
10734{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h. */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h. */
10742$ac_includes_default
10743#include <$ac_header>
10744_ACEOF
10745rm -f conftest.$ac_objext
10746if { (ac_try="$ac_compile"
10747case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750esac
10751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763esac
10764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10773esac
10774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_header_compiler=yes
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784 ac_header_compiler=no
10785fi
10786
10787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789echo "${ECHO_T}$ac_header_compiler" >&6; }
10790
10791# Is the header present?
10792{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10794cat >conftest.$ac_ext <<_ACEOF
10795/* confdefs.h. */
10796_ACEOF
10797cat confdefs.h >>conftest.$ac_ext
10798cat >>conftest.$ac_ext <<_ACEOF
10799/* end confdefs.h. */
10800#include <$ac_header>
10801_ACEOF
10802if { (ac_try="$ac_cpp conftest.$ac_ext"
10803case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10806esac
10807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10818 else
10819 ac_cpp_err=
10820 fi
10821else
10822 ac_cpp_err=yes
10823fi
10824if test -z "$ac_cpp_err"; then
10825 ac_header_preproc=yes
10826else
10827 echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_header_preproc=no
10831fi
10832
10833rm -f conftest.err conftest.$ac_ext
10834{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835echo "${ECHO_T}$ac_header_preproc" >&6; }
10836
10837# So? What about this header?
10838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839 yes:no: )
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844 ac_header_preproc=yes
10845 ;;
10846 no:yes:* )
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10850echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10854echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10859 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000010860## ------------------------------------ ##
10861## Report this to http://llvm.org/bugs/ ##
10862## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010863_ASBOX
10864 ) | sed "s/^/$as_me: WARNING: /" >&2
10865 ;;
10866esac
10867{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871else
10872 eval "$as_ac_Header=\$ac_header_preproc"
10873fi
10874ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876echo "${ECHO_T}$ac_res" >&6; }
10877
10878fi
10879if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010880 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000010882_ACEOF
10883
10884fi
10885
10886done
10887
10888
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010889{ echo "$as_me:$LINENO: checking for error_t" >&5
10890echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10891if test "${ac_cv_type_error_t+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893else
10894 cat >conftest.$ac_ext <<_ACEOF
10895/* confdefs.h. */
10896_ACEOF
10897cat confdefs.h >>conftest.$ac_ext
10898cat >>conftest.$ac_ext <<_ACEOF
10899/* end confdefs.h. */
10900#if HAVE_ARGZ_H
Reid Spencera40c6872004-11-29 12:29:58 +000010901# include <argz.h>
10902#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010903
10904typedef error_t ac__type_new_;
10905int
10906main ()
10907{
10908if ((ac__type_new_ *) 0)
10909 return 0;
10910if (sizeof (ac__type_new_))
10911 return 0;
10912 ;
10913 return 0;
10914}
10915_ACEOF
10916rm -f conftest.$ac_objext
10917if { (ac_try="$ac_compile"
10918case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944esac
10945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 ac_cv_type_error_t=yes
10951else
10952 echo "$as_me: failed program was:" >&5
10953sed 's/^/| /' conftest.$ac_ext >&5
10954
10955 ac_cv_type_error_t=no
10956fi
10957
10958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959fi
10960{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10962if test $ac_cv_type_error_t = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010963
10964cat >>confdefs.h <<_ACEOF
10965#define HAVE_ERROR_T 1
10966_ACEOF
10967
10968
10969else
10970
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010971cat >>confdefs.h <<\_ACEOF
10972#define error_t int
10973_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010974
10975fi
10976
10977
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010978
10979
10980
10981
10982
Reid Spencera40c6872004-11-29 12:29:58 +000010983for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010984do
10985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990else
10991 cat >conftest.$ac_ext <<_ACEOF
10992/* confdefs.h. */
10993_ACEOF
10994cat confdefs.h >>conftest.$ac_ext
10995cat >>conftest.$ac_ext <<_ACEOF
10996/* end confdefs.h. */
10997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999#define $ac_func innocuous_$ac_func
11000
11001/* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
11005
11006#ifdef __STDC__
11007# include <limits.h>
11008#else
11009# include <assert.h>
11010#endif
11011
11012#undef $ac_func
11013
11014/* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017#ifdef __cplusplus
11018extern "C"
11019#endif
11020char $ac_func ();
11021/* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024#if defined __stub_$ac_func || defined __stub___$ac_func
11025choke me
11026#endif
11027
11028int
11029main ()
11030{
11031return $ac_func ();
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext conftest$ac_exeext
11037if { (ac_try="$ac_link"
11038case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11054esac
11055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064esac
11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 eval "$as_ac_var=yes"
11071else
11072 echo "$as_me: failed program was:" >&5
11073sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 eval "$as_ac_var=no"
11076fi
11077
11078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080fi
11081ac_res=`eval echo '${'$as_ac_var'}'`
11082 { echo "$as_me:$LINENO: result: $ac_res" >&5
11083echo "${ECHO_T}$ac_res" >&6; }
11084if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011085 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011087_ACEOF
11088
11089fi
11090done
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011111
11112
11113
11114
11115
11116
11117
11118
Reid Spencera40c6872004-11-29 12:29:58 +000011119for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11120 stdio.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011121do
11122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128fi
11129ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131echo "${ECHO_T}$ac_res" >&6; }
11132else
11133 # Is the header compilable?
11134{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142$ac_includes_default
11143#include <$ac_header>
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (ac_try="$ac_compile"
11147case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150esac
11151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163esac
11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173esac
11174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_header_compiler=yes
11180else
11181 echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184 ac_header_compiler=no
11185fi
11186
11187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189echo "${ECHO_T}$ac_header_compiler" >&6; }
11190
11191# Is the header present?
11192{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
11200#include <$ac_header>
11201_ACEOF
11202if { (ac_try="$ac_cpp conftest.$ac_ext"
11203case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206esac
11207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218 else
11219 ac_cpp_err=
11220 fi
11221else
11222 ac_cpp_err=yes
11223fi
11224if test -z "$ac_cpp_err"; then
11225 ac_header_preproc=yes
11226else
11227 echo "$as_me: failed program was:" >&5
11228sed 's/^/| /' conftest.$ac_ext >&5
11229
11230 ac_header_preproc=no
11231fi
11232
11233rm -f conftest.err conftest.$ac_ext
11234{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235echo "${ECHO_T}$ac_header_preproc" >&6; }
11236
11237# So? What about this header?
11238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239 yes:no: )
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244 ac_header_preproc=yes
11245 ;;
11246 no:yes:* )
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11259 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011260## ------------------------------------ ##
11261## Report this to http://llvm.org/bugs/ ##
11262## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011263_ASBOX
11264 ) | sed "s/^/$as_me: WARNING: /" >&2
11265 ;;
11266esac
11267{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271else
11272 eval "$as_ac_Header=\$ac_header_preproc"
11273fi
11274ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276echo "${ECHO_T}$ac_res" >&6; }
11277
11278fi
11279if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011280 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011282_ACEOF
11283
11284fi
11285
11286done
11287
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011288
11289
11290
11291
Reid Spencera40c6872004-11-29 12:29:58 +000011292for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011293do
11294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300fi
11301ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303echo "${ECHO_T}$ac_res" >&6; }
11304else
11305 # Is the header compilable?
11306{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308cat >conftest.$ac_ext <<_ACEOF
11309/* confdefs.h. */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
11313/* end confdefs.h. */
11314$ac_includes_default
11315#include <$ac_header>
11316_ACEOF
11317rm -f conftest.$ac_objext
11318if { (ac_try="$ac_compile"
11319case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322esac
11323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335esac
11336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345esac
11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_header_compiler=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
11356 ac_header_compiler=no
11357fi
11358
11359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361echo "${ECHO_T}$ac_header_compiler" >&6; }
11362
11363# Is the header present?
11364{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11366cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h. */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h. */
11372#include <$ac_header>
11373_ACEOF
11374if { (ac_try="$ac_cpp conftest.$ac_ext"
11375case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11378esac
11379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } >/dev/null; then
11387 if test -s conftest.err; then
11388 ac_cpp_err=$ac_c_preproc_warn_flag
11389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11390 else
11391 ac_cpp_err=
11392 fi
11393else
11394 ac_cpp_err=yes
11395fi
11396if test -z "$ac_cpp_err"; then
11397 ac_header_preproc=yes
11398else
11399 echo "$as_me: failed program was:" >&5
11400sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 ac_header_preproc=no
11403fi
11404
11405rm -f conftest.err conftest.$ac_ext
11406{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407echo "${ECHO_T}$ac_header_preproc" >&6; }
11408
11409# So? What about this header?
11410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411 yes:no: )
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416 ac_header_preproc=yes
11417 ;;
11418 no:yes:* )
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011432## ------------------------------------ ##
11433## Report this to http://llvm.org/bugs/ ##
11434## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011435_ASBOX
11436 ) | sed "s/^/$as_me: WARNING: /" >&2
11437 ;;
11438esac
11439{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444 eval "$as_ac_Header=\$ac_header_preproc"
11445fi
11446ac_res=`eval echo '${'$as_ac_Header'}'`
11447 { echo "$as_me:$LINENO: result: $ac_res" >&5
11448echo "${ECHO_T}$ac_res" >&6; }
11449
11450fi
11451if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011452 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011454_ACEOF
11455
11456fi
11457
11458done
11459
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011460
11461
Reid Spencera40c6872004-11-29 12:29:58 +000011462for ac_header in string.h strings.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011463do
11464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470fi
11471ac_res=`eval echo '${'$as_ac_Header'}'`
11472 { echo "$as_me:$LINENO: result: $ac_res" >&5
11473echo "${ECHO_T}$ac_res" >&6; }
11474else
11475 # Is the header compilable?
11476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11478cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h. */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h. */
11484$ac_includes_default
11485#include <$ac_header>
11486_ACEOF
11487rm -f conftest.$ac_objext
11488if { (ac_try="$ac_compile"
11489case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492esac
11493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_compile") 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_try") 2>&5
11518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_header_compiler=yes
11522else
11523 echo "$as_me: failed program was:" >&5
11524sed 's/^/| /' conftest.$ac_ext >&5
11525
11526 ac_header_compiler=no
11527fi
11528
11529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531echo "${ECHO_T}$ac_header_compiler" >&6; }
11532
11533# Is the header present?
11534{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536cat >conftest.$ac_ext <<_ACEOF
11537/* confdefs.h. */
11538_ACEOF
11539cat confdefs.h >>conftest.$ac_ext
11540cat >>conftest.$ac_ext <<_ACEOF
11541/* end confdefs.h. */
11542#include <$ac_header>
11543_ACEOF
11544if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11557 if test -s conftest.err; then
11558 ac_cpp_err=$ac_c_preproc_warn_flag
11559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560 else
11561 ac_cpp_err=
11562 fi
11563else
11564 ac_cpp_err=yes
11565fi
11566if test -z "$ac_cpp_err"; then
11567 ac_header_preproc=yes
11568else
11569 echo "$as_me: failed program was:" >&5
11570sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ac_header_preproc=no
11573fi
11574
11575rm -f conftest.err conftest.$ac_ext
11576{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577echo "${ECHO_T}$ac_header_preproc" >&6; }
11578
11579# So? What about this header?
11580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581 yes:no: )
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586 ac_header_preproc=yes
11587 ;;
11588 no:yes:* )
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11596echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011602## ------------------------------------ ##
11603## Report this to http://llvm.org/bugs/ ##
11604## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011605_ASBOX
11606 ) | sed "s/^/$as_me: WARNING: /" >&2
11607 ;;
11608esac
11609{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614 eval "$as_ac_Header=\$ac_header_preproc"
11615fi
11616ac_res=`eval echo '${'$as_ac_Header'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618echo "${ECHO_T}$ac_res" >&6; }
11619
11620fi
11621if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011622 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011624_ACEOF
11625 break
11626fi
11627
11628done
11629
11630
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011631
11632
Reid Spencera40c6872004-11-29 12:29:58 +000011633for ac_func in strchr index
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011634do
11635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641 cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649#define $ac_func innocuous_$ac_func
11650
11651/* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11655
11656#ifdef __STDC__
11657# include <limits.h>
11658#else
11659# include <assert.h>
11660#endif
11661
11662#undef $ac_func
11663
11664/* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11667#ifdef __cplusplus
11668extern "C"
11669#endif
11670char $ac_func ();
11671/* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674#if defined __stub_$ac_func || defined __stub___$ac_func
11675choke me
11676#endif
11677
11678int
11679main ()
11680{
11681return $ac_func ();
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext conftest$ac_exeext
11687if { (ac_try="$ac_link"
11688case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_var=yes"
11721else
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 eval "$as_ac_var=no"
11726fi
11727
11728rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11730fi
11731ac_res=`eval echo '${'$as_ac_var'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733echo "${ECHO_T}$ac_res" >&6; }
11734if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011735 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011737_ACEOF
11738 break
11739fi
11740done
11741
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011742
11743
Reid Spencera40c6872004-11-29 12:29:58 +000011744for ac_func in strrchr rindex
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011745do
11746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751else
11752 cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760#define $ac_func innocuous_$ac_func
11761
11762/* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11766
11767#ifdef __STDC__
11768# include <limits.h>
11769#else
11770# include <assert.h>
11771#endif
11772
11773#undef $ac_func
11774
11775/* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11778#ifdef __cplusplus
11779extern "C"
11780#endif
11781char $ac_func ();
11782/* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785#if defined __stub_$ac_func || defined __stub___$ac_func
11786choke me
11787#endif
11788
11789int
11790main ()
11791{
11792return $ac_func ();
11793 ;
11794 return 0;
11795}
11796_ACEOF
11797rm -f conftest.$ac_objext conftest$ac_exeext
11798if { (ac_try="$ac_link"
11799case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815esac
11816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825esac
11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 eval "$as_ac_var=yes"
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 eval "$as_ac_var=no"
11837fi
11838
11839rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841fi
11842ac_res=`eval echo '${'$as_ac_var'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844echo "${ECHO_T}$ac_res" >&6; }
11845if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011846 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011848_ACEOF
11849 break
11850fi
11851done
11852
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011853
11854
Reid Spencera40c6872004-11-29 12:29:58 +000011855for ac_func in memcpy bcopy
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011856do
11857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863 cat >conftest.$ac_ext <<_ACEOF
11864/* confdefs.h. */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h. */
11869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871#define $ac_func innocuous_$ac_func
11872
11873/* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char $ac_func (); below.
11875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876 <limits.h> exists even on freestanding compilers. */
11877
11878#ifdef __STDC__
11879# include <limits.h>
11880#else
11881# include <assert.h>
11882#endif
11883
11884#undef $ac_func
11885
11886/* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11889#ifdef __cplusplus
11890extern "C"
11891#endif
11892char $ac_func ();
11893/* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
11896#if defined __stub_$ac_func || defined __stub___$ac_func
11897choke me
11898#endif
11899
11900int
11901main ()
11902{
11903return $ac_func ();
11904 ;
11905 return 0;
11906}
11907_ACEOF
11908rm -f conftest.$ac_objext conftest$ac_exeext
11909if { (ac_try="$ac_link"
11910case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913esac
11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926esac
11927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11943else
11944 echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 eval "$as_ac_var=no"
11948fi
11949
11950rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11952fi
11953ac_res=`eval echo '${'$as_ac_var'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955echo "${ECHO_T}$ac_res" >&6; }
11956if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011957 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011959_ACEOF
11960 break
11961fi
11962done
11963
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011964
11965
Reid Spencera40c6872004-11-29 12:29:58 +000011966for ac_func in memmove strcmp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011967do
11968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973else
11974 cat >conftest.$ac_ext <<_ACEOF
11975/* confdefs.h. */
11976_ACEOF
11977cat confdefs.h >>conftest.$ac_ext
11978cat >>conftest.$ac_ext <<_ACEOF
11979/* end confdefs.h. */
11980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11982#define $ac_func innocuous_$ac_func
11983
11984/* System header to define __stub macros and hopefully few prototypes,
11985 which can conflict with char $ac_func (); below.
11986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987 <limits.h> exists even on freestanding compilers. */
11988
11989#ifdef __STDC__
11990# include <limits.h>
11991#else
11992# include <assert.h>
11993#endif
11994
11995#undef $ac_func
11996
11997/* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12000#ifdef __cplusplus
12001extern "C"
12002#endif
12003char $ac_func ();
12004/* The GNU C library defines this for functions which it implements
12005 to always fail with ENOSYS. Some functions are actually named
12006 something starting with __ and the normal name is an alias. */
12007#if defined __stub_$ac_func || defined __stub___$ac_func
12008choke me
12009#endif
12010
12011int
12012main ()
12013{
12014return $ac_func ();
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest.$ac_objext conftest$ac_exeext
12020if { (ac_try="$ac_link"
12021case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024esac
12025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_link") 2>conftest.er1
12027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest$ac_exeext'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047esac
12048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12054else
12055 echo "$as_me: failed program was:" >&5
12056sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 eval "$as_ac_var=no"
12059fi
12060
12061rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063fi
12064ac_res=`eval echo '${'$as_ac_var'}'`
12065 { echo "$as_me:$LINENO: result: $ac_res" >&5
12066echo "${ECHO_T}$ac_res" >&6; }
12067if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000012068 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000012070_ACEOF
12071
12072fi
12073done
12074
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012075
12076
12077
Reid Spencera40c6872004-11-29 12:29:58 +000012078for ac_func in closedir opendir readdir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012079do
12080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085else
12086 cat >conftest.$ac_ext <<_ACEOF
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12094#define $ac_func innocuous_$ac_func
12095
12096/* System header to define __stub macros and hopefully few prototypes,
12097 which can conflict with char $ac_func (); below.
12098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099 <limits.h> exists even on freestanding compilers. */
12100
12101#ifdef __STDC__
12102# include <limits.h>
12103#else
12104# include <assert.h>
12105#endif
12106
12107#undef $ac_func
12108
12109/* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12112#ifdef __cplusplus
12113extern "C"
12114#endif
12115char $ac_func ();
12116/* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119#if defined __stub_$ac_func || defined __stub___$ac_func
12120choke me
12121#endif
12122
12123int
12124main ()
12125{
12126return $ac_func ();
12127 ;
12128 return 0;
12129}
12130_ACEOF
12131rm -f conftest.$ac_objext conftest$ac_exeext
12132if { (ac_try="$ac_link"
12133case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136esac
12137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
12139 ac_status=$?
12140 grep -v '^ *+' conftest.er1 >conftest.err
12141 rm -f conftest.er1
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } &&
12145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146 { (case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149esac
12150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_try") 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest$ac_exeext'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 eval "$as_ac_var=yes"
12166else
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 eval "$as_ac_var=no"
12171fi
12172
12173rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175fi
12176ac_res=`eval echo '${'$as_ac_var'}'`
12177 { echo "$as_me:$LINENO: result: $ac_res" >&5
12178echo "${ECHO_T}$ac_res" >&6; }
12179if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000012180 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000012182_ACEOF
12183
12184fi
12185done
12186
12187
Douglas Gregor15436612009-05-11 18:05:52 +000012188
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012189{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12190echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000012191
Reid Spencerca06c8e2004-12-08 23:07:27 +000012192ICC=no
12193IXX=no
12194case $CC in
12195 icc*|icpc*)
12196 ICC=yes
12197 IXX=yes
12198 ;;
12199 *)
12200 ;;
12201esac
12202
Duraid Madina8604de82006-02-15 07:57:42 +000012203if test "$GCC" != "yes" && test "$ICC" != "yes"
12204then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012205 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12206echo "$as_me: error: gcc|icc required but not found" >&2;}
12207 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +000012208fi
12209
12210if test "$GXX" != "yes" && test "$IXX" != "yes"
12211then
Eric Christopher8d842da2010-12-08 02:02:14 +000012212 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12213echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012214 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +000012215fi
12216
Reid Spencerca06c8e2004-12-08 23:07:27 +000012217if test "$GCC" = "yes"
12218then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012219 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000012220
12221 /* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
12226
12227 #if !defined(__GNUC__) || __GNUC__ < 3
12228 #error Unsupported GCC version
12229 #endif
12230
Chris Lattnere115fb52008-02-05 19:43:53 +000012231
12232_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012233rm -f conftest.$ac_objext
12234if { (ac_try="$ac_compile"
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_compile") 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_objext'
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
12267 :
Chris Lattnere115fb52008-02-05 19:43:53 +000012268else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012269 echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
12272 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12273echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12274 { (exit 1); exit 1; }; }
Chris Lattnere115fb52008-02-05 19:43:53 +000012275fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012276
Chris Lattnere115fb52008-02-05 19:43:53 +000012277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000012278fi
12279
12280if test -z "$llvm_cv_gnu_make_command"
12281then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012282 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12283echo "$as_me: error: GNU Make required but not found" >&2;}
12284 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +000012285fi
12286
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012287{ echo "$as_me:$LINENO: result: ok" >&5
12288echo "${ECHO_T}ok" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000012289
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012290{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12291echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithf89ffcd2013-02-08 22:55:10 +000012292NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerougeb614dd32009-10-26 20:00:35 +000012293
Richard Smithf89ffcd2013-02-08 22:55:10 +000012294NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerougeb614dd32009-10-26 20:00:35 +000012295
Rafael Espindola42e94d12012-02-28 23:32:06 +000012296COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12297
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +000012298
12299NO_UNINITIALIZED=
12300NO_MAYBE_UNINITIALIZED=
David Greene9ff8d472013-01-09 22:11:13 +000012301if test "$GXX" = "yes"
12302then
Richard Smithf89ffcd2013-02-08 22:55:10 +000012303 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +000012304
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +000012305 if test -z "$NO_MAYBE_UNINITIALIZED"
David Greene9ff8d472013-01-09 22:11:13 +000012306 then
Richard Smithf89ffcd2013-02-08 22:55:10 +000012307 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +000012308
David Greene9ff8d472013-01-09 22:11:13 +000012309 fi
David Greene9ff8d472013-01-09 22:11:13 +000012310fi
Eric Christopher31f43542013-03-15 00:43:00 +000012311{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12312echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
David Greene9ff8d472013-01-09 22:11:13 +000012313
Julien Lerougeb614dd32009-10-26 20:00:35 +000012314
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000012315# Check whether --with-python was given.
12316if test "${with_python+set}" = set; then
12317 withval=$with_python; PYTHON="$withval"
12318fi
12319
12320
12321if test -n "$PYTHON" && test -x "$PYTHON" ; then
12322 { echo "$as_me:$LINENO: checking for python" >&5
12323echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12324 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12325echo "${ECHO_T}user defined: $with_python" >&6; }
12326else
12327 if test -n "$PYTHON" ; then
12328 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12329echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12330 fi
12331
12332 # Extract the first word of "python python2 python26", so it can be a program name with args.
12333set dummy python python2 python26; ac_word=$2
12334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12336if test "${ac_cv_path_PYTHON+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338else
12339 case $PYTHON in
12340 [\\/]* | ?:[\\/]*)
12341 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12342 ;;
12343 *)
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345for as_dir in $PATH
12346do
12347 IFS=$as_save_IFS
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12351 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 break 2
12354 fi
12355done
12356done
12357IFS=$as_save_IFS
12358
12359 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12360echo "${ECHO_T}not found" >&6; }
12361 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12362echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12363 { (exit 1); exit 1; }; }"
12364 ;;
12365esac
12366fi
12367PYTHON=$ac_cv_path_PYTHON
12368if test -n "$PYTHON"; then
12369 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12370echo "${ECHO_T}$PYTHON" >&6; }
12371else
12372 { echo "$as_me:$LINENO: result: no" >&5
12373echo "${ECHO_T}no" >&6; }
12374fi
12375
12376
12377fi
12378
12379{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12380echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12381ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12382ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12383ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12384ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12385if test "$ac_python_version_major" -eq "2" \
12386 && test "$ac_python_version_minor" -ge "5" ; then
12387 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12388echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12389else
12390 { echo "$as_me:$LINENO: result: not found" >&5
12391echo "${ECHO_T}not found" >&6; }
12392 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12393See \`config.log' for more details." >&5
12394echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12395See \`config.log' for more details." >&2;}
12396 { (exit 1); exit 1; }; }
12397fi
12398
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000012399
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012400
12401{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12402echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12403if test "${ac_cv_lib_m_sin+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerec4a7f522006-01-19 08:31:08 +000012405else
12406 ac_check_lib_save_LIBS=$LIBS
12407LIBS="-lm $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012408cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerec4a7f522006-01-19 08:31:08 +000012413/* end confdefs.h. */
12414
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012415/* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
Reid Spencerec4a7f522006-01-19 08:31:08 +000012418#ifdef __cplusplus
12419extern "C"
12420#endif
Reid Spencerec4a7f522006-01-19 08:31:08 +000012421char sin ();
12422int
12423main ()
12424{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012425return sin ();
Reid Spencerec4a7f522006-01-19 08:31:08 +000012426 ;
12427 return 0;
12428}
12429_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012430rm -f conftest.$ac_objext conftest$ac_exeext
12431if { (ac_try="$ac_link"
12432case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435esac
12436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_link") 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12445 { (case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12448esac
12449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_try") 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
12455 { (case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458esac
12459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_try") 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
Reid Spencerec4a7f522006-01-19 08:31:08 +000012464 ac_cv_lib_m_sin=yes
12465else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012466 echo "$as_me: failed program was:" >&5
12467sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 ac_cv_lib_m_sin=no
Reid Spencerec4a7f522006-01-19 08:31:08 +000012470fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012471
Bill Wendling02b47d92009-04-18 11:20:33 +000012472rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012473 conftest$ac_exeext conftest.$ac_ext
Reid Spencerec4a7f522006-01-19 08:31:08 +000012474LIBS=$ac_check_lib_save_LIBS
12475fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012476{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12477echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12478if test $ac_cv_lib_m_sin = yes; then
Reid Spencerec4a7f522006-01-19 08:31:08 +000012479 cat >>confdefs.h <<_ACEOF
12480#define HAVE_LIBM 1
12481_ACEOF
12482
12483 LIBS="-lm $LIBS"
12484
12485fi
12486
Jeff Cohenc5e5b272007-01-12 18:22:38 +000012487if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012488
12489{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12490echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12491if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +000012493else
12494 ac_check_lib_save_LIBS=$LIBS
12495LIBS="-limagehlp $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012496cat >conftest.$ac_ext <<_ACEOF
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +000012501/* end confdefs.h. */
12502
Reid Spencer187b4ad2006-06-01 19:03:21 +000012503
Reid Spencera16b9862006-06-01 16:55:59 +000012504int
12505main ()
12506{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012507return main ();
Reid Spencera16b9862006-06-01 16:55:59 +000012508 ;
12509 return 0;
12510}
12511_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012512rm -f conftest.$ac_objext conftest$ac_exeext
12513if { (ac_try="$ac_link"
12514case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517esac
12518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest$ac_exeext'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540esac
12541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +000012546 ac_cv_lib_imagehlp_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +000012547else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 ac_cv_lib_imagehlp_main=no
Reid Spencera16b9862006-06-01 16:55:59 +000012552fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012553
Bill Wendling02b47d92009-04-18 11:20:33 +000012554rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012555 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +000012556LIBS=$ac_check_lib_save_LIBS
12557fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012558{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12559echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12560if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +000012561 cat >>confdefs.h <<_ACEOF
12562#define HAVE_LIBIMAGEHLP 1
12563_ACEOF
12564
12565 LIBS="-limagehlp $LIBS"
12566
12567fi
12568
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012569
12570{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12571echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12572if test "${ac_cv_lib_psapi_main+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +000012574else
12575 ac_check_lib_save_LIBS=$LIBS
12576LIBS="-lpsapi $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012577cat >conftest.$ac_ext <<_ACEOF
12578/* confdefs.h. */
12579_ACEOF
12580cat confdefs.h >>conftest.$ac_ext
12581cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +000012582/* end confdefs.h. */
12583
Reid Spencer187b4ad2006-06-01 19:03:21 +000012584
Reid Spencera16b9862006-06-01 16:55:59 +000012585int
12586main ()
12587{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012588return main ();
Reid Spencera16b9862006-06-01 16:55:59 +000012589 ;
12590 return 0;
12591}
12592_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012593rm -f conftest.$ac_objext conftest$ac_exeext
12594if { (ac_try="$ac_link"
12595case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598esac
12599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_link") 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest$ac_exeext'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +000012627 ac_cv_lib_psapi_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +000012628else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012629 echo "$as_me: failed program was:" >&5
12630sed 's/^/| /' conftest.$ac_ext >&5
12631
12632 ac_cv_lib_psapi_main=no
Reid Spencera16b9862006-06-01 16:55:59 +000012633fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012634
Bill Wendling02b47d92009-04-18 11:20:33 +000012635rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012636 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +000012637LIBS=$ac_check_lib_save_LIBS
12638fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012639{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12640echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12641if test $ac_cv_lib_psapi_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +000012642 cat >>confdefs.h <<_ACEOF
12643#define HAVE_LIBPSAPI 1
12644_ACEOF
12645
12646 LIBS="-lpsapi $LIBS"
12647
12648fi
12649
12650fi
Reid Spencer1aa7d052005-07-12 15:24:20 +000012651
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012652{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12653echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12654if test "${ac_cv_search_dlopen+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000012656else
12657 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012658cat >conftest.$ac_ext <<_ACEOF
12659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000012663/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000012664
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012665/* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +000012668#ifdef __cplusplus
12669extern "C"
12670#endif
John Criswell3ef61af2003-06-30 21:59:07 +000012671char dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +000012672int
12673main ()
12674{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012675return dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +000012676 ;
12677 return 0;
12678}
12679_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012680for ac_lib in '' dl; do
12681 if test -z "$ac_lib"; then
12682 ac_res="none required"
12683 else
12684 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +000012685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012686 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012687 rm -f conftest.$ac_objext conftest$ac_exeext
12688if { (ac_try="$ac_link"
12689case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692esac
12693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_link") 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702 { (case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12705esac
12706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_try") 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715esac
12716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_try") 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012721 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012722else
12723 echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726
John Criswell3ef61af2003-06-30 21:59:07 +000012727fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012728
Bill Wendling02b47d92009-04-18 11:20:33 +000012729rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012730 conftest$ac_exeext
12731 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012732 break
John Criswell3ef61af2003-06-30 21:59:07 +000012733fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012734done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012735if test "${ac_cv_search_dlopen+set}" = set; then
12736 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012737else
12738 ac_cv_search_dlopen=no
12739fi
12740rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000012741LIBS=$ac_func_search_save_LIBS
12742fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012743{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12744echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012745ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012746if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +000012748
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012749cat >>confdefs.h <<\_ACEOF
12750#define HAVE_DLOPEN 1
12751_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000012752
12753else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012754 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12755echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000012756fi
12757
12758
Chandler Carruthef7f9682013-01-04 23:19:55 +000012759{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12760echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12761if test "${ac_cv_search_clock_gettime+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763else
12764 ac_func_search_save_LIBS=$LIBS
12765cat >conftest.$ac_ext <<_ACEOF
12766/* confdefs.h. */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h. */
12771
12772/* Override any GCC internal prototype to avoid an error.
12773 Use char because int might match the return type of a GCC
12774 builtin and then its argument prototype would still apply. */
12775#ifdef __cplusplus
12776extern "C"
12777#endif
12778char clock_gettime ();
12779int
12780main ()
12781{
12782return clock_gettime ();
12783 ;
12784 return 0;
12785}
12786_ACEOF
12787for ac_lib in '' rt; do
12788 if test -z "$ac_lib"; then
12789 ac_res="none required"
12790 else
12791 ac_res=-l$ac_lib
12792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12793 fi
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795if { (ac_try="$ac_link"
12796case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12799esac
12800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_link") 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12809 { (case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812esac
12813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_try") 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest$ac_exeext'
12819 { (case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822esac
12823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_try") 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_search_clock_gettime=$ac_res
12829else
12830 echo "$as_me: failed program was:" >&5
12831sed 's/^/| /' conftest.$ac_ext >&5
12832
12833
12834fi
12835
12836rm -f core conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext
12838 if test "${ac_cv_search_clock_gettime+set}" = set; then
12839 break
12840fi
12841done
12842if test "${ac_cv_search_clock_gettime+set}" = set; then
12843 :
12844else
12845 ac_cv_search_clock_gettime=no
12846fi
12847rm conftest.$ac_ext
12848LIBS=$ac_func_search_save_LIBS
12849fi
12850{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12851echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12852ac_res=$ac_cv_search_clock_gettime
12853if test "$ac_res" != no; then
12854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12855
Chandler Carruthef7f9682013-01-04 23:19:55 +000012856fi
12857
12858
Nick Lewycky86679902009-06-06 06:25:09 +000012859if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012860 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12861echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12862if test "${ac_cv_search_ffi_call+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky11e92142009-02-04 06:27:44 +000012864else
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012865 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012866cat >conftest.$ac_ext <<_ACEOF
12867/* confdefs.h. */
12868_ACEOF
12869cat confdefs.h >>conftest.$ac_ext
12870cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000012871/* end confdefs.h. */
12872
12873/* Override any GCC internal prototype to avoid an error.
12874 Use char because int might match the return type of a GCC
12875 builtin and then its argument prototype would still apply. */
12876#ifdef __cplusplus
12877extern "C"
12878#endif
12879char ffi_call ();
12880int
12881main ()
12882{
12883return ffi_call ();
12884 ;
12885 return 0;
12886}
12887_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012888for ac_lib in '' ffi; do
12889 if test -z "$ac_lib"; then
12890 ac_res="none required"
12891 else
12892 ac_res=-l$ac_lib
12893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12894 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012895 rm -f conftest.$ac_objext conftest$ac_exeext
12896if { (ac_try="$ac_link"
12897case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900esac
12901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_link") 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12910 { (case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12913esac
12914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_try") 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest$ac_exeext'
12920 { (case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12923esac
12924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012929 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012930else
12931 echo "$as_me: failed program was:" >&5
12932sed 's/^/| /' conftest.$ac_ext >&5
12933
12934
Nick Lewycky11e92142009-02-04 06:27:44 +000012935fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012936
Bill Wendling02b47d92009-04-18 11:20:33 +000012937rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012938 conftest$ac_exeext
12939 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012940 break
Nick Lewycky11e92142009-02-04 06:27:44 +000012941fi
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012942done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012943if test "${ac_cv_search_ffi_call+set}" = set; then
12944 :
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012945else
12946 ac_cv_search_ffi_call=no
12947fi
12948rm conftest.$ac_ext
12949LIBS=$ac_func_search_save_LIBS
12950fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012951{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12952echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012953ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012954if test "$ac_res" != no; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12956
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012957cat >>confdefs.h <<\_ACEOF
12958#define HAVE_FFI_CALL 1
12959_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012960
Nick Lewycky11e92142009-02-04 06:27:44 +000012961else
Jeffrey Yasskin914050b2010-02-09 23:03:44 +000012962 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12963echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12964 { (exit 1); exit 1; }; }
Nick Lewycky11e92142009-02-04 06:27:44 +000012965fi
12966
Nick Lewycky86679902009-06-06 06:25:09 +000012967fi
Nick Lewycky11e92142009-02-04 06:27:44 +000012968
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012969{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12970echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12971if test "${ac_cv_search_mallinfo+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000012973else
12974 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012975cat >conftest.$ac_ext <<_ACEOF
12976/* confdefs.h. */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000012980/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000012981
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012982/* Override any GCC internal prototype to avoid an error.
12983 Use char because int might match the return type of a GCC
12984 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +000012985#ifdef __cplusplus
12986extern "C"
12987#endif
John Criswell3ef61af2003-06-30 21:59:07 +000012988char mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +000012989int
12990main ()
12991{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012992return mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +000012993 ;
12994 return 0;
12995}
12996_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012997for ac_lib in '' malloc; do
12998 if test -z "$ac_lib"; then
12999 ac_res="none required"
13000 else
13001 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +000013002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013003 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013004 rm -f conftest.$ac_objext conftest$ac_exeext
13005if { (ac_try="$ac_link"
13006case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13009esac
13010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_link") 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } &&
13018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
13023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; } &&
13028 { ac_try='test -s conftest$ac_exeext'
13029 { (case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13032esac
13033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_try") 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013038 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013039else
13040 echo "$as_me: failed program was:" >&5
13041sed 's/^/| /' conftest.$ac_ext >&5
13042
13043
John Criswell3ef61af2003-06-30 21:59:07 +000013044fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013045
Bill Wendling02b47d92009-04-18 11:20:33 +000013046rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013047 conftest$ac_exeext
13048 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013049 break
John Criswell3ef61af2003-06-30 21:59:07 +000013050fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013051done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013052if test "${ac_cv_search_mallinfo+set}" = set; then
13053 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013054else
13055 ac_cv_search_mallinfo=no
13056fi
13057rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000013058LIBS=$ac_func_search_save_LIBS
13059fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013060{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13061echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013062ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013063if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +000013065
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013066cat >>confdefs.h <<\_ACEOF
13067#define HAVE_MALLINFO 1
13068_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000013069
13070fi
13071
13072
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000013073if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013074
13075{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13076echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13077if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer1aa7d052005-07-12 15:24:20 +000013079else
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013080 ac_check_lib_save_LIBS=$LIBS
13081LIBS="-lpthread $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013082cat >conftest.$ac_ext <<_ACEOF
13083/* confdefs.h. */
13084_ACEOF
13085cat confdefs.h >>conftest.$ac_ext
13086cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +000013087/* end confdefs.h. */
13088
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013089/* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
Reid Spencer1aa7d052005-07-12 15:24:20 +000013092#ifdef __cplusplus
13093extern "C"
13094#endif
Reid Spencer1aa7d052005-07-12 15:24:20 +000013095char pthread_mutex_init ();
13096int
13097main ()
13098{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013099return pthread_mutex_init ();
Reid Spencer1aa7d052005-07-12 15:24:20 +000013100 ;
13101 return 0;
13102}
13103_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013104rm -f conftest.$ac_objext conftest$ac_exeext
13105if { (ac_try="$ac_link"
13106case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13112 ac_status=$?
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest$ac_exeext'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013138 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer1aa7d052005-07-12 15:24:20 +000013139else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013140 echo "$as_me: failed program was:" >&5
13141sed 's/^/| /' conftest.$ac_ext >&5
13142
13143 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer1aa7d052005-07-12 15:24:20 +000013144fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013145
Bill Wendling02b47d92009-04-18 11:20:33 +000013146rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013147 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013148LIBS=$ac_check_lib_save_LIBS
Reid Spencer1aa7d052005-07-12 15:24:20 +000013149fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013150{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13151echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13152if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013153 cat >>confdefs.h <<_ACEOF
13154#define HAVE_LIBPTHREAD 1
Edward O'Callaghana5314b82009-10-13 01:01:38 +000013155_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +000013156
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013157 LIBS="-lpthread $LIBS"
13158
Reid Spencer1aa7d052005-07-12 15:24:20 +000013159fi
13160
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013161 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13162echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13163if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013165else
13166 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013167cat >conftest.$ac_ext <<_ACEOF
13168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013172/* end confdefs.h. */
13173
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013174/* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013177#ifdef __cplusplus
13178extern "C"
13179#endif
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013180char pthread_mutex_lock ();
13181int
13182main ()
13183{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013184return pthread_mutex_lock ();
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013185 ;
13186 return 0;
13187}
13188_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013189for ac_lib in '' pthread; do
13190 if test -z "$ac_lib"; then
13191 ac_res="none required"
13192 else
13193 ac_res=-l$ac_lib
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013195 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013196 rm -f conftest.$ac_objext conftest$ac_exeext
13197if { (ac_try="$ac_link"
13198case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13201esac
13202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_link") 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214esac
13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest$ac_exeext'
13221 { (case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224esac
13225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_try") 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013230 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013231else
13232 echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013236fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013237
Bill Wendling02b47d92009-04-18 11:20:33 +000013238rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013239 conftest$ac_exeext
13240 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013241 break
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013242fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013243done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013244if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13245 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013246else
13247 ac_cv_search_pthread_mutex_lock=no
13248fi
13249rm conftest.$ac_ext
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013250LIBS=$ac_func_search_save_LIBS
13251fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013252{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13253echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013254ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013255if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013257
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013258cat >>confdefs.h <<\_ACEOF
13259#define HAVE_PTHREAD_MUTEX_LOCK 1
13260_ACEOF
John Criswell71c8d5e2004-09-24 21:19:06 +000013261
13262fi
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013263
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013264 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13265echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13266if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersona149e222009-06-16 18:20:20 +000013268else
13269 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013270cat >conftest.$ac_ext <<_ACEOF
13271/* confdefs.h. */
13272_ACEOF
13273cat confdefs.h >>conftest.$ac_ext
13274cat >>conftest.$ac_ext <<_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000013275/* end confdefs.h. */
13276
13277/* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13280#ifdef __cplusplus
13281extern "C"
13282#endif
13283char pthread_rwlock_init ();
13284int
13285main ()
13286{
13287return pthread_rwlock_init ();
13288 ;
13289 return 0;
13290}
13291_ACEOF
13292for ac_lib in '' pthread; do
13293 if test -z "$ac_lib"; then
13294 ac_res="none required"
13295 else
13296 ac_res=-l$ac_lib
13297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13298 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013299 rm -f conftest.$ac_objext conftest$ac_exeext
13300if { (ac_try="$ac_link"
13301case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13304esac
13305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_link") 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13314 { (case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_try") 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s conftest$ac_exeext'
13324 { (case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327esac
13328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_try") 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
Owen Andersona149e222009-06-16 18:20:20 +000013333 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013334else
13335 echo "$as_me: failed program was:" >&5
13336sed 's/^/| /' conftest.$ac_ext >&5
13337
13338
Owen Andersona149e222009-06-16 18:20:20 +000013339fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013340
Owen Andersona149e222009-06-16 18:20:20 +000013341rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013342 conftest$ac_exeext
13343 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersona149e222009-06-16 18:20:20 +000013344 break
13345fi
13346done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013347if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13348 :
Owen Andersona149e222009-06-16 18:20:20 +000013349else
13350 ac_cv_search_pthread_rwlock_init=no
13351fi
13352rm conftest.$ac_ext
13353LIBS=$ac_func_search_save_LIBS
13354fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013355{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13356echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersona149e222009-06-16 18:20:20 +000013357ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013358if test "$ac_res" != no; then
Owen Andersona149e222009-06-16 18:20:20 +000013359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13360
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013361cat >>confdefs.h <<\_ACEOF
13362#define HAVE_PTHREAD_RWLOCK_INIT 1
13363_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000013364
13365fi
13366
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013367 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13368echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13369if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson11549832009-06-25 23:10:26 +000013371else
13372 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013373cat >conftest.$ac_ext <<_ACEOF
13374/* confdefs.h. */
13375_ACEOF
13376cat confdefs.h >>conftest.$ac_ext
13377cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000013378/* end confdefs.h. */
13379
13380/* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13383#ifdef __cplusplus
13384extern "C"
13385#endif
13386char pthread_getspecific ();
13387int
13388main ()
13389{
13390return pthread_getspecific ();
13391 ;
13392 return 0;
13393}
13394_ACEOF
13395for ac_lib in '' pthread; do
13396 if test -z "$ac_lib"; then
13397 ac_res="none required"
13398 else
13399 ac_res=-l$ac_lib
13400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13401 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013402 rm -f conftest.$ac_objext conftest$ac_exeext
13403if { (ac_try="$ac_link"
13404case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407esac
13408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_link") 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417 { (case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest$ac_exeext'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
Owen Anderson11549832009-06-25 23:10:26 +000013436 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013437else
13438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441
Owen Anderson11549832009-06-25 23:10:26 +000013442fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013443
Owen Anderson11549832009-06-25 23:10:26 +000013444rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013445 conftest$ac_exeext
13446 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson11549832009-06-25 23:10:26 +000013447 break
13448fi
13449done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013450if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13451 :
Owen Anderson11549832009-06-25 23:10:26 +000013452else
13453 ac_cv_search_pthread_getspecific=no
13454fi
13455rm conftest.$ac_ext
13456LIBS=$ac_func_search_save_LIBS
13457fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013458{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13459echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson11549832009-06-25 23:10:26 +000013460ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013461if test "$ac_res" != no; then
Owen Anderson11549832009-06-25 23:10:26 +000013462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13463
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013464cat >>confdefs.h <<\_ACEOF
13465#define HAVE_PTHREAD_GETSPECIFIC 1
13466_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000013467
13468fi
13469
Reid Spencerf85fabeb2005-08-24 10:07:20 +000013470fi
Brian Gaeked3de6c02004-02-23 21:30:37 +000013471
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000013472if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13473
13474{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13475echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13476if test "${ac_cv_lib_z_compress2+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478else
13479 ac_check_lib_save_LIBS=$LIBS
13480LIBS="-lz $LIBS"
13481cat >conftest.$ac_ext <<_ACEOF
13482/* confdefs.h. */
13483_ACEOF
13484cat confdefs.h >>conftest.$ac_ext
13485cat >>conftest.$ac_ext <<_ACEOF
13486/* end confdefs.h. */
13487
13488/* Override any GCC internal prototype to avoid an error.
13489 Use char because int might match the return type of a GCC
13490 builtin and then its argument prototype would still apply. */
13491#ifdef __cplusplus
13492extern "C"
13493#endif
13494char compress2 ();
13495int
13496main ()
13497{
13498return compress2 ();
13499 ;
13500 return 0;
13501}
13502_ACEOF
13503rm -f conftest.$ac_objext conftest$ac_exeext
13504if { (ac_try="$ac_link"
13505case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508esac
13509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_link") 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521esac
13522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest$ac_exeext'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13531esac
13532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 ac_cv_lib_z_compress2=yes
13538else
13539 echo "$as_me: failed program was:" >&5
13540sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 ac_cv_lib_z_compress2=no
13543fi
13544
13545rm -f core conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
13547LIBS=$ac_check_lib_save_LIBS
13548fi
13549{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13550echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13551if test $ac_cv_lib_z_compress2 = yes; then
13552 cat >>confdefs.h <<_ACEOF
13553#define HAVE_LIBZ 1
13554_ACEOF
13555
13556 LIBS="-lz $LIBS"
13557
13558fi
13559
13560fi
13561
Reid Spencer0241e382004-11-25 04:51:04 +000013562
Reid Spencere5f3de32007-01-19 17:41:47 +000013563# Check whether --with-udis86 was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013564if test "${with_udis86+set}" = set; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013565 withval=$with_udis86;
13566 USE_UDIS86=1
13567
13568 case "$withval" in
Reid Spencerdfda0612007-01-20 07:48:49 +000013569 /usr/lib|yes) ;;
Reid Spencere5f3de32007-01-19 17:41:47 +000013570 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13571 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013572
13573{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13574echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13575if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencere5f3de32007-01-19 17:41:47 +000013577else
13578 ac_check_lib_save_LIBS=$LIBS
13579LIBS="-ludis86 $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013580cat >conftest.$ac_ext <<_ACEOF
13581/* confdefs.h. */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
Reid Spencere5f3de32007-01-19 17:41:47 +000013585/* end confdefs.h. */
13586
13587/* Override any GCC internal prototype to avoid an error.
13588 Use char because int might match the return type of a GCC
13589 builtin and then its argument prototype would still apply. */
13590#ifdef __cplusplus
13591extern "C"
13592#endif
13593char ud_init ();
13594int
13595main ()
13596{
13597return ud_init ();
13598 ;
13599 return 0;
13600}
13601_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013602rm -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
Reid Spencere5f3de32007-01-19 17:41:47 +000013636 ac_cv_lib_udis86_ud_init=yes
13637else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013638 echo "$as_me: failed program was:" >&5
13639sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 ac_cv_lib_udis86_ud_init=no
Reid Spencere5f3de32007-01-19 17:41:47 +000013642fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013643
Bill Wendling02b47d92009-04-18 11:20:33 +000013644rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013645 conftest$ac_exeext conftest.$ac_ext
Reid Spencere5f3de32007-01-19 17:41:47 +000013646LIBS=$ac_check_lib_save_LIBS
13647fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013648{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13649echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13650if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013651 cat >>confdefs.h <<_ACEOF
13652#define HAVE_LIBUDIS86 1
13653_ACEOF
13654
13655 LIBS="-ludis86 $LIBS"
13656
13657else
13658
13659 echo "Error! You need to have libudis86 around."
13660 exit -1
13661
13662fi
13663
13664
13665else
13666 USE_UDIS86=0
13667
13668fi
13669
13670
13671cat >>confdefs.h <<_ACEOF
13672#define USE_UDIS86 $USE_UDIS86
13673_ACEOF
13674
13675
13676
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013677# Check whether --with-oprofile was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013678if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013679 withval=$with_oprofile;
13680 USE_OPROFILE=1
13681
13682 case "$withval" in
13683 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013684 no) llvm_cv_oppath=
13685 USE_OPROFILE=0
13686 ;;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013687 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher46342fe2012-08-03 17:45:31 +000013688 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013689 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000013690 case $llvm_cv_os_type in
13691 Linux)
13692 if test -n "$llvm_cv_oppath" ; then
13693 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13694 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013695echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13696if test "${ac_cv_search_bfd_init+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013698else
13699 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013700cat >conftest.$ac_ext <<_ACEOF
13701/* confdefs.h. */
13702_ACEOF
13703cat confdefs.h >>conftest.$ac_ext
13704cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013705/* end confdefs.h. */
13706
13707/* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13710#ifdef __cplusplus
13711extern "C"
13712#endif
13713char bfd_init ();
13714int
13715main ()
13716{
13717return bfd_init ();
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722for ac_lib in '' bfd; do
13723 if test -z "$ac_lib"; then
13724 ac_res="none required"
13725 else
13726 ac_res=-l$ac_lib
13727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13728 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013729 rm -f conftest.$ac_objext conftest$ac_exeext
13730if { (ac_try="$ac_link"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_link") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744 { (case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13747esac
13748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_try") 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest$ac_exeext'
13754 { (case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757esac
13758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_try") 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013763 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013764else
13765 echo "$as_me: failed program was:" >&5
13766sed 's/^/| /' conftest.$ac_ext >&5
13767
13768
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013769fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013770
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013771rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013772 conftest$ac_exeext
13773 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013774 break
13775fi
13776done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013777if test "${ac_cv_search_bfd_init+set}" = set; then
13778 :
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013779else
13780 ac_cv_search_bfd_init=no
13781fi
13782rm conftest.$ac_ext
13783LIBS=$ac_func_search_save_LIBS
13784fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013785{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13786echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013787ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013788if test "$ac_res" != no; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13790
13791fi
13792
Eli Bendersky5262ad22012-03-13 08:33:15 +000013793 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013794echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13795if test "${ac_cv_search_op_open_agent+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013797else
13798 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013799cat >conftest.$ac_ext <<_ACEOF
13800/* confdefs.h. */
13801_ACEOF
13802cat confdefs.h >>conftest.$ac_ext
13803cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013804/* end confdefs.h. */
13805
13806/* Override any GCC internal prototype to avoid an error.
13807 Use char because int might match the return type of a GCC
13808 builtin and then its argument prototype would still apply. */
13809#ifdef __cplusplus
13810extern "C"
13811#endif
13812char op_open_agent ();
13813int
13814main ()
13815{
13816return op_open_agent ();
13817 ;
13818 return 0;
13819}
13820_ACEOF
13821for ac_lib in '' opagent; do
13822 if test -z "$ac_lib"; then
13823 ac_res="none required"
13824 else
13825 ac_res=-l$ac_lib
13826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13827 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013828 rm -f conftest.$ac_objext conftest$ac_exeext
13829if { (ac_try="$ac_link"
13830case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833esac
13834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_link") 2>conftest.er1
13836 ac_status=$?
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843 { (case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13846esac
13847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_try") 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest$ac_exeext'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856esac
13857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013862 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013863else
13864 echo "$as_me: failed program was:" >&5
13865sed 's/^/| /' conftest.$ac_ext >&5
13866
13867
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013868fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013869
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013870rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013871 conftest$ac_exeext
13872 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013873 break
13874fi
13875done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013876if test "${ac_cv_search_op_open_agent+set}" = set; then
13877 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013878else
13879 ac_cv_search_op_open_agent=no
13880fi
13881rm conftest.$ac_ext
13882LIBS=$ac_func_search_save_LIBS
13883fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013884{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13885echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013886ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013887if test "$ac_res" != no; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13889
13890else
13891
Eli Bendersky5262ad22012-03-13 08:33:15 +000013892 echo "Error! You need to have libopagent around."
13893 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013894
13895fi
13896
Eli Bendersky5262ad22012-03-13 08:33:15 +000013897 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013898 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13899echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13900if test "${ac_cv_header_opagent_h+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902fi
13903{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13904echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13905else
13906 # Is the header compilable?
13907{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13908echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
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$ac_includes_default
13916#include <opagent.h>
13917_ACEOF
13918rm -f conftest.$ac_objext
13919if { (ac_try="$ac_compile"
13920case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13923esac
13924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_compile") 2>conftest.er1
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13933 { (case "(($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_try") 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest.$ac_objext'
13943 { (case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946esac
13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_try") 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_header_compiler=yes
13953else
13954 echo "$as_me: failed program was:" >&5
13955sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013956
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013957 ac_header_compiler=no
13958fi
13959
13960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13962echo "${ECHO_T}$ac_header_compiler" >&6; }
13963
13964# Is the header present?
13965{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13966echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13967cat >conftest.$ac_ext <<_ACEOF
13968/* confdefs.h. */
13969_ACEOF
13970cat confdefs.h >>conftest.$ac_ext
13971cat >>conftest.$ac_ext <<_ACEOF
13972/* end confdefs.h. */
13973#include <opagent.h>
13974_ACEOF
13975if { (ac_try="$ac_cpp conftest.$ac_ext"
13976case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979esac
13980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } >/dev/null; then
13988 if test -s conftest.err; then
13989 ac_cpp_err=$ac_c_preproc_warn_flag
13990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13991 else
13992 ac_cpp_err=
13993 fi
13994else
13995 ac_cpp_err=yes
13996fi
13997if test -z "$ac_cpp_err"; then
13998 ac_header_preproc=yes
13999else
14000 echo "$as_me: failed program was:" >&5
14001sed 's/^/| /' conftest.$ac_ext >&5
14002
14003 ac_header_preproc=no
14004fi
14005
14006rm -f conftest.err conftest.$ac_ext
14007{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008echo "${ECHO_T}$ac_header_preproc" >&6; }
14009
14010# So? What about this header?
14011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14012 yes:no: )
14013 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14014echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14016echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14017 ac_header_preproc=yes
14018 ;;
14019 no:yes:* )
14020 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14021echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14023echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14025echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14027echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14029echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14031echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14032 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000014033## ------------------------------------ ##
14034## Report this to http://llvm.org/bugs/ ##
14035## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014036_ASBOX
14037 ) | sed "s/^/$as_me: WARNING: /" >&2
14038 ;;
14039esac
14040{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14041echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14042if test "${ac_cv_header_opagent_h+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044else
14045 ac_cv_header_opagent_h=$ac_header_preproc
14046fi
14047{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14048echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14049
14050fi
14051if test $ac_cv_header_opagent_h = yes; then
14052 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014053else
14054
Eli Bendersky5262ad22012-03-13 08:33:15 +000014055 echo "Error! You need to have opagent.h around."
14056 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014057
14058fi
14059
14060
Eli Bendersky5262ad22012-03-13 08:33:15 +000014061 fi ;;
14062 *)
14063 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14064echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14065 { (exit 1); exit 1; }; } ;;
14066 esac
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014067
14068else
14069
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000014070 USE_OPROFILE=0
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014071
14072
14073fi
14074
14075
14076cat >>confdefs.h <<_ACEOF
Eli Bendersky5262ad22012-03-13 08:33:15 +000014077#define LLVM_USE_OPROFILE $USE_OPROFILE
14078_ACEOF
14079
14080
14081
14082# Check whether --with-intel-jitevents was given.
14083if test "${with_intel_jitevents+set}" = set; then
14084 withval=$with_intel_jitevents;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000014085 case "$withval" in
14086 yes) USE_INTEL_JITEVENTS=1
14087;;
14088 no) USE_INTEL_JITEVENTS=0
14089;;
14090 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14091echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14092 { (exit 1); exit 1; }; };;
14093 esac
14094
Eli Bendersky5262ad22012-03-13 08:33:15 +000014095 case $llvm_cv_os_type in
14096 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000014097 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14098echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14099 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000014100 esac
14101
Eli Bendersky5262ad22012-03-13 08:33:15 +000014102 case "$llvm_cv_target_arch" in
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000014103 x86|x86_64) ;;
14104 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14105echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14106 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000014107 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000014108
14109else
14110
14111 USE_INTEL_JITEVENTS=0
14112
14113
14114fi
14115
14116
14117cat >>confdefs.h <<_ACEOF
14118#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014119_ACEOF
14120
14121
Eric Christopherc807c532012-08-03 19:47:19 +000014122for ac_prog in xml2-config
14123do
14124 # Extract the first word of "$ac_prog", so it can be a program name with args.
14125set dummy $ac_prog; ac_word=$2
14126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14128if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130else
14131 if test -n "$XML2CONFIG"; then
14132 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14133else
14134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135for as_dir in $PATH
14136do
14137 IFS=$as_save_IFS
14138 test -z "$as_dir" && as_dir=.
14139 for ac_exec_ext in '' $ac_executable_extensions; do
14140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14141 ac_cv_prog_XML2CONFIG="$ac_prog"
14142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14143 break 2
14144 fi
14145done
14146done
14147IFS=$as_save_IFS
14148
14149fi
14150fi
14151XML2CONFIG=$ac_cv_prog_XML2CONFIG
14152if test -n "$XML2CONFIG"; then
14153 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14154echo "${ECHO_T}$XML2CONFIG" >&6; }
14155else
14156 { echo "$as_me:$LINENO: result: no" >&5
14157echo "${ECHO_T}no" >&6; }
14158fi
14159
14160
14161 test -n "$XML2CONFIG" && break
14162done
14163
14164
14165{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14166echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14167if test "x$XML2CONFIG" = "x"; then
14168 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14169echo "${ECHO_T}xml2-config not found" >&6; }
14170else
14171 LIBXML2_INC=`$XML2CONFIG --cflags`
14172 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14173echo "${ECHO_T}$LIBXML2_INC" >&6; }
14174 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14175echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14176if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14178else
14179 ac_check_lib_save_LIBS=$LIBS
14180LIBS="-lxml2 $LIBS"
14181cat >conftest.$ac_ext <<_ACEOF
14182/* confdefs.h. */
14183_ACEOF
14184cat confdefs.h >>conftest.$ac_ext
14185cat >>conftest.$ac_ext <<_ACEOF
14186/* end confdefs.h. */
14187
14188/* Override any GCC internal prototype to avoid an error.
14189 Use char because int might match the return type of a GCC
14190 builtin and then its argument prototype would still apply. */
14191#ifdef __cplusplus
14192extern "C"
14193#endif
14194char xmlReadFile ();
14195int
14196main ()
14197{
14198return xmlReadFile ();
14199 ;
14200 return 0;
14201}
14202_ACEOF
14203rm -f conftest.$ac_objext conftest$ac_exeext
14204if { (ac_try="$ac_link"
14205case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208esac
14209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_link") 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221esac
14222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest$ac_exeext'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231esac
14232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_lib_xml2_xmlReadFile=yes
14238else
14239 echo "$as_me: failed program was:" >&5
14240sed 's/^/| /' conftest.$ac_ext >&5
14241
14242 ac_cv_lib_xml2_xmlReadFile=no
14243fi
14244
14245rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14247LIBS=$ac_check_lib_save_LIBS
14248fi
14249{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14250echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14251if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14252
14253cat >>confdefs.h <<\_ACEOF
14254#define CLANG_HAVE_LIBXML 1
14255_ACEOF
14256
14257 LIBXML2_LIBS="-lxml2"
14258fi
14259
14260fi
14261
14262
14263
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014264
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014265
14266
14267
14268
14269
Reid Spencer8bc110c2004-12-25 07:31:29 +000014270ac_header_dirent=no
14271for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014272 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14273{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14274echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014277else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014278 cat >conftest.$ac_ext <<_ACEOF
14279/* confdefs.h. */
14280_ACEOF
14281cat confdefs.h >>conftest.$ac_ext
14282cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014283/* end confdefs.h. */
14284#include <sys/types.h>
14285#include <$ac_hdr>
14286
14287int
14288main ()
14289{
14290if ((DIR *) 0)
14291return 0;
14292 ;
14293 return 0;
14294}
14295_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014296rm -f conftest.$ac_objext
14297if { (ac_try="$ac_compile"
14298case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301esac
14302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_compile") 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311 { (case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14314esac
14315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_try") 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14324esac
14325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014330 eval "$as_ac_Header=yes"
14331else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014332 echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 eval "$as_ac_Header=no"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014336fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014337
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014339fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014340ac_res=`eval echo '${'$as_ac_Header'}'`
14341 { echo "$as_me:$LINENO: result: $ac_res" >&5
14342echo "${ECHO_T}$ac_res" >&6; }
14343if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014344 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014345#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000014346_ACEOF
14347
14348ac_header_dirent=$ac_hdr; break
14349fi
14350
14351done
14352# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14353if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014354 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14355echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14356if test "${ac_cv_search_opendir+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014358else
14359 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014360cat >conftest.$ac_ext <<_ACEOF
14361/* confdefs.h. */
14362_ACEOF
14363cat confdefs.h >>conftest.$ac_ext
14364cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014365/* end confdefs.h. */
14366
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014367/* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000014370#ifdef __cplusplus
14371extern "C"
14372#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014373char opendir ();
14374int
14375main ()
14376{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014377return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000014378 ;
14379 return 0;
14380}
14381_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014382for ac_lib in '' dir; do
14383 if test -z "$ac_lib"; then
14384 ac_res="none required"
14385 else
14386 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000014387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014388 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014389 rm -f conftest.$ac_objext conftest$ac_exeext
14390if { (ac_try="$ac_link"
14391case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394esac
14395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_link") 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407esac
14408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } &&
14413 { ac_try='test -s conftest$ac_exeext'
14414 { (case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417esac
14418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_try") 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014423 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014424else
14425 echo "$as_me: failed program was:" >&5
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
14428
Reid Spencer8bc110c2004-12-25 07:31:29 +000014429fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014430
Bill Wendling02b47d92009-04-18 11:20:33 +000014431rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014432 conftest$ac_exeext
14433 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014434 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000014435fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014436done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014437if test "${ac_cv_search_opendir+set}" = set; then
14438 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014439else
14440 ac_cv_search_opendir=no
14441fi
14442rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014443LIBS=$ac_func_search_save_LIBS
14444fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014445{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014447ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014448if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014450
14451fi
14452
14453else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014454 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14455echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14456if test "${ac_cv_search_opendir+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014458else
14459 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014460cat >conftest.$ac_ext <<_ACEOF
14461/* confdefs.h. */
14462_ACEOF
14463cat confdefs.h >>conftest.$ac_ext
14464cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014465/* end confdefs.h. */
14466
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014467/* Override any GCC internal prototype to avoid an error.
14468 Use char because int might match the return type of a GCC
14469 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000014470#ifdef __cplusplus
14471extern "C"
14472#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014473char opendir ();
14474int
14475main ()
14476{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014477return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000014478 ;
14479 return 0;
14480}
14481_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014482for ac_lib in '' x; do
14483 if test -z "$ac_lib"; then
14484 ac_res="none required"
14485 else
14486 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000014487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014488 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014489 rm -f conftest.$ac_objext conftest$ac_exeext
14490if { (ac_try="$ac_link"
14491case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494esac
14495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_link") 2>conftest.er1
14497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14504 { (case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14507esac
14508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509 (eval "$ac_try") 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest$ac_exeext'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14517esac
14518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014523 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014524else
14525 echo "$as_me: failed program was:" >&5
14526sed 's/^/| /' conftest.$ac_ext >&5
14527
14528
Reid Spencer8bc110c2004-12-25 07:31:29 +000014529fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014530
Bill Wendling02b47d92009-04-18 11:20:33 +000014531rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014532 conftest$ac_exeext
14533 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014534 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000014535fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014536done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014537if test "${ac_cv_search_opendir+set}" = set; then
14538 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014539else
14540 ac_cv_search_opendir=no
14541fi
14542rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014543LIBS=$ac_func_search_save_LIBS
14544fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014545{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14546echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014547ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014548if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014550
14551fi
14552
14553fi
14554
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014555{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14556echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14557if test "${ac_cv_header_mmap_anon+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014559else
14560 ac_ext=c
14561ac_cpp='$CPP $CPPFLAGS'
14562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14564ac_compiler_gnu=$ac_cv_c_compiler_gnu
14565
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014566 cat >conftest.$ac_ext <<_ACEOF
14567/* confdefs.h. */
14568_ACEOF
14569cat confdefs.h >>conftest.$ac_ext
14570cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014571/* end confdefs.h. */
14572#include <sys/mman.h>
14573#include <unistd.h>
14574#include <fcntl.h>
14575int
14576main ()
14577{
14578mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14579 ;
14580 return 0;
14581}
14582_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014583rm -f conftest.$ac_objext
14584if { (ac_try="$ac_compile"
14585case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14588esac
14589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_compile") 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14598 { (case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14601esac
14602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_try") 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; } &&
14607 { ac_try='test -s conftest.$ac_objext'
14608 { (case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14611esac
14612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_try") 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014617 ac_cv_header_mmap_anon=yes
14618else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014619 echo "$as_me: failed program was:" >&5
14620sed 's/^/| /' conftest.$ac_ext >&5
14621
14622 ac_cv_header_mmap_anon=no
Reid Spencer8bc110c2004-12-25 07:31:29 +000014623fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014624
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014626 ac_ext=c
14627ac_cpp='$CPP $CPPFLAGS'
14628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630ac_compiler_gnu=$ac_cv_c_compiler_gnu
14631
14632
14633fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014634{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14635echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000014636if test "$ac_cv_header_mmap_anon" = yes; then
14637
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014638cat >>confdefs.h <<\_ACEOF
14639#define HAVE_MMAP_ANONYMOUS 1
14640_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014641
14642fi
14643
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014644{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14645echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14646if test "${ac_cv_header_stat_broken+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014648else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014649 cat >conftest.$ac_ext <<_ACEOF
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014654/* end confdefs.h. */
14655#include <sys/types.h>
14656#include <sys/stat.h>
14657
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014658#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014659# if S_ISBLK (S_IFDIR)
14660You lose.
14661# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014662#endif
14663
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014664#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014665# if S_ISBLK (S_IFCHR)
14666You lose.
14667# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014668#endif
14669
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014670#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014671# if S_ISLNK (S_IFREG)
14672You lose.
14673# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014674#endif
14675
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014676#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014677# if S_ISSOCK (S_IFREG)
14678You lose.
14679# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014680#endif
14681
14682_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14684 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwinaec06332010-01-26 08:50:50 +000014685 ac_cv_header_stat_broken=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014686else
14687 ac_cv_header_stat_broken=no
Mikhail Glushenkov4308aa52009-04-18 09:59:26 +000014688fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014689rm -f conftest*
14690
Reid Spencer8bc110c2004-12-25 07:31:29 +000014691fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014692{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14693echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000014694if test $ac_cv_header_stat_broken = yes; then
14695
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014696cat >>confdefs.h <<\_ACEOF
14697#define STAT_MACROS_BROKEN 1
14698_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014699
14700fi
14701
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014702{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14703echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14704if test "${ac_cv_header_sys_wait_h+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000014706else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014707 cat >conftest.$ac_ext <<_ACEOF
14708/* confdefs.h. */
14709_ACEOF
14710cat confdefs.h >>conftest.$ac_ext
14711cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000014712/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000014713#include <sys/types.h>
14714#include <sys/wait.h>
14715#ifndef WEXITSTATUS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014716# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell3ef61af2003-06-30 21:59:07 +000014717#endif
14718#ifndef WIFEXITED
14719# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14720#endif
14721
John Criswell3ef61af2003-06-30 21:59:07 +000014722int
14723main ()
14724{
14725 int s;
14726 wait (&s);
14727 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14728 ;
14729 return 0;
14730}
14731_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014732rm -f conftest.$ac_objext
14733if { (ac_try="$ac_compile"
14734case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737esac
14738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_compile") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760esac
14761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000014766 ac_cv_header_sys_wait_h=yes
14767else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014768 echo "$as_me: failed program was:" >&5
14769sed 's/^/| /' conftest.$ac_ext >&5
14770
14771 ac_cv_header_sys_wait_h=no
John Criswell3ef61af2003-06-30 21:59:07 +000014772fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014773
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000014775fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014776{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14777echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000014778if test $ac_cv_header_sys_wait_h = yes; then
14779
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014780cat >>confdefs.h <<\_ACEOF
14781#define HAVE_SYS_WAIT_H 1
14782_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000014783
14784fi
14785
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014786{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14787echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14788if test "${ac_cv_header_time+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014790else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014791 cat >conftest.$ac_ext <<_ACEOF
14792/* confdefs.h. */
14793_ACEOF
14794cat confdefs.h >>conftest.$ac_ext
14795cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014796/* end confdefs.h. */
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014797#include <sys/types.h>
Reid Spencer0241e382004-11-25 04:51:04 +000014798#include <sys/time.h>
14799#include <time.h>
14800
14801int
14802main ()
14803{
14804if ((struct tm *) 0)
14805return 0;
14806 ;
14807 return 0;
14808}
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014809_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014810rm -f conftest.$ac_objext
14811if { (ac_try="$ac_compile"
14812case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815esac
14816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_compile") 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
14824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14825 { (case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14828esac
14829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_try") 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try='test -s conftest.$ac_objext'
14835 { (case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838esac
14839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_try") 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000014844 ac_cv_header_time=yes
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014845else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014846 echo "$as_me: failed program was:" >&5
14847sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_cv_header_time=no
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014850fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014851
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000014853fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014854{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14855echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000014856if test $ac_cv_header_time = yes; then
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014857
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014858cat >>confdefs.h <<\_ACEOF
14859#define TIME_WITH_SYS_TIME 1
14860_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014861
14862fi
14863
Reid Spencer0241e382004-11-25 04:51:04 +000014864
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014865
14866
14867
14868
14869
14870
Eric Christopher15a4e5e2013-04-27 22:23:16 +000014871
Joerg Sonnenberger66241832013-04-27 22:12:32 +000014872for ac_header in cxxabi.h dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014873do
14874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880fi
14881ac_res=`eval echo '${'$as_ac_Header'}'`
14882 { echo "$as_me:$LINENO: result: $ac_res" >&5
14883echo "${ECHO_T}$ac_res" >&6; }
14884else
14885 # Is the header compilable?
14886{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14888cat >conftest.$ac_ext <<_ACEOF
14889/* confdefs.h. */
14890_ACEOF
14891cat confdefs.h >>conftest.$ac_ext
14892cat >>conftest.$ac_ext <<_ACEOF
14893/* end confdefs.h. */
14894$ac_includes_default
14895#include <$ac_header>
14896_ACEOF
14897rm -f conftest.$ac_objext
14898if { (ac_try="$ac_compile"
14899case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14902esac
14903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_compile") 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912 { (case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915esac
14916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_try") 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925esac
14926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_try") 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 ac_header_compiler=yes
14932else
14933 echo "$as_me: failed program was:" >&5
14934sed 's/^/| /' conftest.$ac_ext >&5
14935
14936 ac_header_compiler=no
14937fi
14938
14939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941echo "${ECHO_T}$ac_header_compiler" >&6; }
14942
14943# Is the header present?
14944{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14946cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952#include <$ac_header>
14953_ACEOF
14954if { (ac_try="$ac_cpp conftest.$ac_ext"
14955case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958esac
14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14961 ac_status=$?
14962 grep -v '^ *+' conftest.er1 >conftest.err
14963 rm -f conftest.er1
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } >/dev/null; then
14967 if test -s conftest.err; then
14968 ac_cpp_err=$ac_c_preproc_warn_flag
14969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14970 else
14971 ac_cpp_err=
14972 fi
14973else
14974 ac_cpp_err=yes
14975fi
14976if test -z "$ac_cpp_err"; then
14977 ac_header_preproc=yes
14978else
14979 echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
14982 ac_header_preproc=no
14983fi
14984
14985rm -f conftest.err conftest.$ac_ext
14986{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987echo "${ECHO_T}$ac_header_preproc" >&6; }
14988
14989# So? What about this header?
14990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991 yes:no: )
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14996 ac_header_preproc=yes
14997 ;;
14998 no:yes:* )
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15011 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015012## ------------------------------------ ##
15013## Report this to http://llvm.org/bugs/ ##
15014## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015015_ASBOX
15016 ) | sed "s/^/$as_me: WARNING: /" >&2
15017 ;;
15018esac
15019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15023else
15024 eval "$as_ac_Header=\$ac_header_preproc"
15025fi
15026ac_res=`eval echo '${'$as_ac_Header'}'`
15027 { echo "$as_me:$LINENO: result: $ac_res" >&5
15028echo "${ECHO_T}$ac_res" >&6; }
15029
15030fi
15031if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000015032 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0241e382004-11-25 04:51:04 +000015034_ACEOF
Brian Gaeke4eea32f2004-02-23 22:07:00 +000015035
15036fi
Brian Gaeke4eea32f2004-02-23 22:07:00 +000015037
Reid Spencer8bc110c2004-12-25 07:31:29 +000015038done
Brian Gaeke4eea32f2004-02-23 22:07:00 +000015039
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015040
15041
15042
15043
15044
15045
Douglas Gregorb81294d2009-05-18 17:21:34 +000015046for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015047do
15048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054fi
15055ac_res=`eval echo '${'$as_ac_Header'}'`
15056 { echo "$as_me:$LINENO: result: $ac_res" >&5
15057echo "${ECHO_T}$ac_res" >&6; }
15058else
15059 # Is the header compilable?
15060{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15062cat >conftest.$ac_ext <<_ACEOF
15063/* confdefs.h. */
15064_ACEOF
15065cat confdefs.h >>conftest.$ac_ext
15066cat >>conftest.$ac_ext <<_ACEOF
15067/* end confdefs.h. */
15068$ac_includes_default
15069#include <$ac_header>
15070_ACEOF
15071rm -f conftest.$ac_objext
15072if { (ac_try="$ac_compile"
15073case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15076esac
15077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_compile") 2>conftest.er1
15079 ac_status=$?
15080 grep -v '^ *+' conftest.er1 >conftest.err
15081 rm -f conftest.er1
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089esac
15090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest.$ac_objext'
15096 { (case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15099esac
15100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_try") 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_header_compiler=yes
15106else
15107 echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_header_compiler=no
15111fi
15112
15113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115echo "${ECHO_T}$ac_header_compiler" >&6; }
15116
15117# Is the header present?
15118{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15120cat >conftest.$ac_ext <<_ACEOF
15121/* confdefs.h. */
15122_ACEOF
15123cat confdefs.h >>conftest.$ac_ext
15124cat >>conftest.$ac_ext <<_ACEOF
15125/* end confdefs.h. */
15126#include <$ac_header>
15127_ACEOF
15128if { (ac_try="$ac_cpp conftest.$ac_ext"
15129case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132esac
15133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } >/dev/null; then
15141 if test -s conftest.err; then
15142 ac_cpp_err=$ac_c_preproc_warn_flag
15143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15144 else
15145 ac_cpp_err=
15146 fi
15147else
15148 ac_cpp_err=yes
15149fi
15150if test -z "$ac_cpp_err"; then
15151 ac_header_preproc=yes
15152else
15153 echo "$as_me: failed program was:" >&5
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
15156 ac_header_preproc=no
15157fi
15158
15159rm -f conftest.err conftest.$ac_ext
15160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15161echo "${ECHO_T}$ac_header_preproc" >&6; }
15162
15163# So? What about this header?
15164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15165 yes:no: )
15166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15170 ac_header_preproc=yes
15171 ;;
15172 no:yes:* )
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15185 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015186## ------------------------------------ ##
15187## Report this to http://llvm.org/bugs/ ##
15188## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015189_ASBOX
15190 ) | sed "s/^/$as_me: WARNING: /" >&2
15191 ;;
15192esac
15193{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15197else
15198 eval "$as_ac_Header=\$ac_header_preproc"
15199fi
15200ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202echo "${ECHO_T}$ac_res" >&6; }
15203
15204fi
15205if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000015206 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000015208_ACEOF
15209
15210fi
15211
15212done
15213
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015214
15215
Douglas Gregorb81294d2009-05-18 17:21:34 +000015216for ac_header in utime.h windows.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015217do
15218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15224fi
15225ac_res=`eval echo '${'$as_ac_Header'}'`
15226 { echo "$as_me:$LINENO: result: $ac_res" >&5
15227echo "${ECHO_T}$ac_res" >&6; }
15228else
15229 # Is the header compilable?
15230{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15232cat >conftest.$ac_ext <<_ACEOF
15233/* confdefs.h. */
15234_ACEOF
15235cat confdefs.h >>conftest.$ac_ext
15236cat >>conftest.$ac_ext <<_ACEOF
15237/* end confdefs.h. */
15238$ac_includes_default
15239#include <$ac_header>
15240_ACEOF
15241rm -f conftest.$ac_objext
15242if { (ac_try="$ac_compile"
15243case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15246esac
15247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_compile") 2>conftest.er1
15249 ac_status=$?
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15256 { (case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15259esac
15260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_try") 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; } &&
15265 { ac_try='test -s conftest.$ac_objext'
15266 { (case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269esac
15270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_try") 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_header_compiler=yes
15276else
15277 echo "$as_me: failed program was:" >&5
15278sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 ac_header_compiler=no
15281fi
15282
15283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15285echo "${ECHO_T}$ac_header_compiler" >&6; }
15286
15287# Is the header present?
15288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15290cat >conftest.$ac_ext <<_ACEOF
15291/* confdefs.h. */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h. */
15296#include <$ac_header>
15297_ACEOF
15298if { (ac_try="$ac_cpp conftest.$ac_ext"
15299case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302esac
15303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } >/dev/null; then
15311 if test -s conftest.err; then
15312 ac_cpp_err=$ac_c_preproc_warn_flag
15313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15314 else
15315 ac_cpp_err=
15316 fi
15317else
15318 ac_cpp_err=yes
15319fi
15320if test -z "$ac_cpp_err"; then
15321 ac_header_preproc=yes
15322else
15323 echo "$as_me: failed program was:" >&5
15324sed 's/^/| /' conftest.$ac_ext >&5
15325
15326 ac_header_preproc=no
15327fi
15328
15329rm -f conftest.err conftest.$ac_ext
15330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15331echo "${ECHO_T}$ac_header_preproc" >&6; }
15332
15333# So? What about this header?
15334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15335 yes:no: )
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15340 ac_header_preproc=yes
15341 ;;
15342 no:yes:* )
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015356## ------------------------------------ ##
15357## Report this to http://llvm.org/bugs/ ##
15358## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015359_ASBOX
15360 ) | sed "s/^/$as_me: WARNING: /" >&2
15361 ;;
15362esac
15363{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15367else
15368 eval "$as_ac_Header=\$ac_header_preproc"
15369fi
15370ac_res=`eval echo '${'$as_ac_Header'}'`
15371 { echo "$as_me:$LINENO: result: $ac_res" >&5
15372echo "${ECHO_T}$ac_res" >&6; }
15373
15374fi
15375if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000015376 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000015378_ACEOF
15379
15380fi
15381
15382done
Reid Spencer8bc110c2004-12-25 07:31:29 +000015383
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015384
15385
15386
15387
Daniel Dunbar7840c542011-02-03 02:40:02 +000015388
15389for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015390do
15391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397fi
15398ac_res=`eval echo '${'$as_ac_Header'}'`
15399 { echo "$as_me:$LINENO: result: $ac_res" >&5
15400echo "${ECHO_T}$ac_res" >&6; }
15401else
15402 # Is the header compilable?
15403{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405cat >conftest.$ac_ext <<_ACEOF
15406/* confdefs.h. */
15407_ACEOF
15408cat confdefs.h >>conftest.$ac_ext
15409cat >>conftest.$ac_ext <<_ACEOF
15410/* end confdefs.h. */
15411$ac_includes_default
15412#include <$ac_header>
15413_ACEOF
15414rm -f conftest.$ac_objext
15415if { (ac_try="$ac_compile"
15416case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419esac
15420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_compile") 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15432esac
15433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15442esac
15443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_try") 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15448 ac_header_compiler=yes
15449else
15450 echo "$as_me: failed program was:" >&5
15451sed 's/^/| /' conftest.$ac_ext >&5
15452
15453 ac_header_compiler=no
15454fi
15455
15456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458echo "${ECHO_T}$ac_header_compiler" >&6; }
15459
15460# Is the header present?
15461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
15469#include <$ac_header>
15470_ACEOF
15471if { (ac_try="$ac_cpp conftest.$ac_ext"
15472case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475esac
15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } >/dev/null; then
15484 if test -s conftest.err; then
15485 ac_cpp_err=$ac_c_preproc_warn_flag
15486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15487 else
15488 ac_cpp_err=
15489 fi
15490else
15491 ac_cpp_err=yes
15492fi
15493if test -z "$ac_cpp_err"; then
15494 ac_header_preproc=yes
15495else
15496 echo "$as_me: failed program was:" >&5
15497sed 's/^/| /' conftest.$ac_ext >&5
15498
15499 ac_header_preproc=no
15500fi
15501
15502rm -f conftest.err conftest.$ac_ext
15503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504echo "${ECHO_T}$ac_header_preproc" >&6; }
15505
15506# So? What about this header?
15507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508 yes:no: )
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513 ac_header_preproc=yes
15514 ;;
15515 no:yes:* )
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15528 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015529## ------------------------------------ ##
15530## Report this to http://llvm.org/bugs/ ##
15531## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015532_ASBOX
15533 ) | sed "s/^/$as_me: WARNING: /" >&2
15534 ;;
15535esac
15536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540else
15541 eval "$as_ac_Header=\$ac_header_preproc"
15542fi
15543ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result: $ac_res" >&5
15545echo "${ECHO_T}$ac_res" >&6; }
15546
15547fi
15548if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000015549 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswellb92c7c22004-07-19 16:12:29 +000015551_ACEOF
John Criswellb92c7c22004-07-19 16:12:29 +000015552
15553fi
John Criswellb92c7c22004-07-19 16:12:29 +000015554
Reid Spencer0241e382004-11-25 04:51:04 +000015555done
15556
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015557
15558
15559
15560
Douglas Gregor15436612009-05-11 18:05:52 +000015561for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015562do
15563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569fi
15570ac_res=`eval echo '${'$as_ac_Header'}'`
15571 { echo "$as_me:$LINENO: result: $ac_res" >&5
15572echo "${ECHO_T}$ac_res" >&6; }
15573else
15574 # Is the header compilable?
15575{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577cat >conftest.$ac_ext <<_ACEOF
15578/* confdefs.h. */
15579_ACEOF
15580cat confdefs.h >>conftest.$ac_ext
15581cat >>conftest.$ac_ext <<_ACEOF
15582/* end confdefs.h. */
15583$ac_includes_default
15584#include <$ac_header>
15585_ACEOF
15586rm -f conftest.$ac_objext
15587if { (ac_try="$ac_compile"
15588case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591esac
15592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15594 ac_status=$?
15595 grep -v '^ *+' conftest.er1 >conftest.err
15596 rm -f conftest.er1
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601 { (case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604esac
15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_try") 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15614esac
15615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_header_compiler=yes
15621else
15622 echo "$as_me: failed program was:" >&5
15623sed 's/^/| /' conftest.$ac_ext >&5
15624
15625 ac_header_compiler=no
15626fi
15627
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630echo "${ECHO_T}$ac_header_compiler" >&6; }
15631
15632# Is the header present?
15633{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635cat >conftest.$ac_ext <<_ACEOF
15636/* confdefs.h. */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h. */
15641#include <$ac_header>
15642_ACEOF
15643if { (ac_try="$ac_cpp conftest.$ac_ext"
15644case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647esac
15648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650 ac_status=$?
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } >/dev/null; then
15656 if test -s conftest.err; then
15657 ac_cpp_err=$ac_c_preproc_warn_flag
15658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15659 else
15660 ac_cpp_err=
15661 fi
15662else
15663 ac_cpp_err=yes
15664fi
15665if test -z "$ac_cpp_err"; then
15666 ac_header_preproc=yes
15667else
15668 echo "$as_me: failed program was:" >&5
15669sed 's/^/| /' conftest.$ac_ext >&5
15670
15671 ac_header_preproc=no
15672fi
15673
15674rm -f conftest.err conftest.$ac_ext
15675{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676echo "${ECHO_T}$ac_header_preproc" >&6; }
15677
15678# So? What about this header?
15679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680 yes:no: )
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685 ac_header_preproc=yes
15686 ;;
15687 no:yes:* )
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015701## ------------------------------------ ##
15702## Report this to http://llvm.org/bugs/ ##
15703## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015704_ASBOX
15705 ) | sed "s/^/$as_me: WARNING: /" >&2
15706 ;;
15707esac
15708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15712else
15713 eval "$as_ac_Header=\$ac_header_preproc"
15714fi
15715ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717echo "${ECHO_T}$ac_res" >&6; }
15718
15719fi
15720if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner973917a2005-11-14 06:57:34 +000015721 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner973917a2005-11-14 06:57:34 +000015723_ACEOF
15724
15725fi
15726
15727done
15728
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000015729
15730for ac_header in valgrind/valgrind.h
15731do
15732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15738fi
15739ac_res=`eval echo '${'$as_ac_Header'}'`
15740 { echo "$as_me:$LINENO: result: $ac_res" >&5
15741echo "${ECHO_T}$ac_res" >&6; }
15742else
15743 # Is the header compilable?
15744{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15745echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15746cat >conftest.$ac_ext <<_ACEOF
15747/* confdefs.h. */
15748_ACEOF
15749cat confdefs.h >>conftest.$ac_ext
15750cat >>conftest.$ac_ext <<_ACEOF
15751/* end confdefs.h. */
15752$ac_includes_default
15753#include <$ac_header>
15754_ACEOF
15755rm -f conftest.$ac_objext
15756if { (ac_try="$ac_compile"
15757case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15760esac
15761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_compile") 2>conftest.er1
15763 ac_status=$?
15764 grep -v '^ *+' conftest.er1 >conftest.err
15765 rm -f conftest.er1
15766 cat conftest.err >&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } &&
15769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15770 { (case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15773esac
15774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_try") 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; } &&
15779 { ac_try='test -s conftest.$ac_objext'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783esac
15784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_header_compiler=yes
15790else
15791 echo "$as_me: failed program was:" >&5
15792sed 's/^/| /' conftest.$ac_ext >&5
15793
15794 ac_header_compiler=no
15795fi
15796
15797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15798{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15799echo "${ECHO_T}$ac_header_compiler" >&6; }
15800
15801# Is the header present?
15802{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15804cat >conftest.$ac_ext <<_ACEOF
15805/* confdefs.h. */
15806_ACEOF
15807cat confdefs.h >>conftest.$ac_ext
15808cat >>conftest.$ac_ext <<_ACEOF
15809/* end confdefs.h. */
15810#include <$ac_header>
15811_ACEOF
15812if { (ac_try="$ac_cpp conftest.$ac_ext"
15813case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15816esac
15817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } >/dev/null; then
15825 if test -s conftest.err; then
15826 ac_cpp_err=$ac_c_preproc_warn_flag
15827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15828 else
15829 ac_cpp_err=
15830 fi
15831else
15832 ac_cpp_err=yes
15833fi
15834if test -z "$ac_cpp_err"; then
15835 ac_header_preproc=yes
15836else
15837 echo "$as_me: failed program was:" >&5
15838sed 's/^/| /' conftest.$ac_ext >&5
15839
15840 ac_header_preproc=no
15841fi
15842
15843rm -f conftest.err conftest.$ac_ext
15844{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15845echo "${ECHO_T}$ac_header_preproc" >&6; }
15846
15847# So? What about this header?
15848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15849 yes:no: )
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15854 ac_header_preproc=yes
15855 ;;
15856 no:yes:* )
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15860echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15864echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15869 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015870## ------------------------------------ ##
15871## Report this to http://llvm.org/bugs/ ##
15872## ------------------------------------ ##
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000015873_ASBOX
15874 ) | sed "s/^/$as_me: WARNING: /" >&2
15875 ;;
15876esac
15877{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15881else
15882 eval "$as_ac_Header=\$ac_header_preproc"
15883fi
15884ac_res=`eval echo '${'$as_ac_Header'}'`
15885 { echo "$as_me:$LINENO: result: $ac_res" >&5
15886echo "${ECHO_T}$ac_res" >&6; }
15887
15888fi
15889if test `eval echo '${'$as_ac_Header'}'` = yes; then
15890 cat >>confdefs.h <<_ACEOF
15891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15892_ACEOF
15893
15894fi
15895
15896done
15897
Dan Gohmandf257772010-09-17 20:08:35 +000015898
15899for ac_header in fenv.h
15900do
15901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907fi
15908ac_res=`eval echo '${'$as_ac_Header'}'`
15909 { echo "$as_me:$LINENO: result: $ac_res" >&5
15910echo "${ECHO_T}$ac_res" >&6; }
15911else
15912 # Is the header compilable?
15913{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15915cat >conftest.$ac_ext <<_ACEOF
15916/* confdefs.h. */
15917_ACEOF
15918cat confdefs.h >>conftest.$ac_ext
15919cat >>conftest.$ac_ext <<_ACEOF
15920/* end confdefs.h. */
15921$ac_includes_default
15922#include <$ac_header>
15923_ACEOF
15924rm -f conftest.$ac_objext
15925if { (ac_try="$ac_compile"
15926case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929esac
15930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_compile") 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
15938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15939 { (case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15942esac
15943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_try") 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
15949 { (case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15952esac
15953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_try") 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_header_compiler=yes
15959else
15960 echo "$as_me: failed program was:" >&5
15961sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 ac_header_compiler=no
15964fi
15965
15966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15968echo "${ECHO_T}$ac_header_compiler" >&6; }
15969
15970# Is the header present?
15971{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15973cat >conftest.$ac_ext <<_ACEOF
15974/* confdefs.h. */
15975_ACEOF
15976cat confdefs.h >>conftest.$ac_ext
15977cat >>conftest.$ac_ext <<_ACEOF
15978/* end confdefs.h. */
15979#include <$ac_header>
15980_ACEOF
15981if { (ac_try="$ac_cpp conftest.$ac_ext"
15982case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985esac
15986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } >/dev/null; then
15994 if test -s conftest.err; then
15995 ac_cpp_err=$ac_c_preproc_warn_flag
15996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15997 else
15998 ac_cpp_err=
15999 fi
16000else
16001 ac_cpp_err=yes
16002fi
16003if test -z "$ac_cpp_err"; then
16004 ac_header_preproc=yes
16005else
16006 echo "$as_me: failed program was:" >&5
16007sed 's/^/| /' conftest.$ac_ext >&5
16008
16009 ac_header_preproc=no
16010fi
16011
16012rm -f conftest.err conftest.$ac_ext
16013{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16014echo "${ECHO_T}$ac_header_preproc" >&6; }
16015
16016# So? What about this header?
16017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16018 yes:no: )
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16023 ac_header_preproc=yes
16024 ;;
16025 no:yes:* )
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16038 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016039## ------------------------------------ ##
16040## Report this to http://llvm.org/bugs/ ##
16041## ------------------------------------ ##
Dan Gohmandf257772010-09-17 20:08:35 +000016042_ASBOX
16043 ) | sed "s/^/$as_me: WARNING: /" >&2
16044 ;;
16045esac
16046{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16050else
16051 eval "$as_ac_Header=\$ac_header_preproc"
16052fi
16053ac_res=`eval echo '${'$as_ac_Header'}'`
16054 { echo "$as_me:$LINENO: result: $ac_res" >&5
16055echo "${ECHO_T}$ac_res" >&6; }
16056
16057fi
16058if test `eval echo '${'$as_ac_Header'}'` = yes; then
16059 cat >>confdefs.h <<_ACEOF
16060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16061_ACEOF
16062
16063fi
16064
16065done
16066
Joerg Sonnenberger8a1177f2013-03-25 13:13:33 +000016067{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16068echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16069if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16071else
16072 cat >conftest.$ac_ext <<_ACEOF
16073/* confdefs.h. */
16074_ACEOF
16075cat confdefs.h >>conftest.$ac_ext
16076cat >>conftest.$ac_ext <<_ACEOF
16077/* end confdefs.h. */
16078#include <fenv.h>
16079
16080int
16081main ()
16082{
16083#ifndef FE_ALL_EXCEPT
16084 char *p = (char *) FE_ALL_EXCEPT;
16085 return !p;
16086#endif
16087
16088 ;
16089 return 0;
16090}
16091_ACEOF
16092rm -f conftest.$ac_objext
16093if { (ac_try="$ac_compile"
16094case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097esac
16098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_compile") 2>conftest.er1
16100 ac_status=$?
16101 grep -v '^ *+' conftest.er1 >conftest.err
16102 rm -f conftest.er1
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16107 { (case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16110esac
16111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_try") 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; } &&
16116 { ac_try='test -s conftest.$ac_objext'
16117 { (case "(($ac_try" in
16118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119 *) ac_try_echo=$ac_try;;
16120esac
16121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122 (eval "$ac_try") 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16127else
16128 echo "$as_me: failed program was:" >&5
16129sed 's/^/| /' conftest.$ac_ext >&5
16130
16131 ac_cv_have_decl_FE_ALL_EXCEPT=no
16132fi
16133
16134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135fi
16136{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16137echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16138if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16139
16140cat >>confdefs.h <<_ACEOF
16141#define HAVE_DECL_FE_ALL_EXCEPT 1
16142_ACEOF
16143
16144
16145else
16146 cat >>confdefs.h <<_ACEOF
16147#define HAVE_DECL_FE_ALL_EXCEPT 0
16148_ACEOF
16149
16150
16151fi
16152{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16153echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16154if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156else
16157 cat >conftest.$ac_ext <<_ACEOF
16158/* confdefs.h. */
16159_ACEOF
16160cat confdefs.h >>conftest.$ac_ext
16161cat >>conftest.$ac_ext <<_ACEOF
16162/* end confdefs.h. */
16163#include <fenv.h>
16164
16165int
16166main ()
16167{
16168#ifndef FE_INEXACT
16169 char *p = (char *) FE_INEXACT;
16170 return !p;
16171#endif
16172
16173 ;
16174 return 0;
16175}
16176_ACEOF
16177rm -f conftest.$ac_objext
16178if { (ac_try="$ac_compile"
16179case "(($ac_try" in
16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16182esac
16183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_compile") 2>conftest.er1
16185 ac_status=$?
16186 grep -v '^ *+' conftest.er1 >conftest.err
16187 rm -f conftest.er1
16188 cat conftest.err >&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
16191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16195esac
16196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; } &&
16201 { ac_try='test -s conftest.$ac_objext'
16202 { (case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16205esac
16206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_try") 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_cv_have_decl_FE_INEXACT=yes
16212else
16213 echo "$as_me: failed program was:" >&5
16214sed 's/^/| /' conftest.$ac_ext >&5
16215
16216 ac_cv_have_decl_FE_INEXACT=no
16217fi
16218
16219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220fi
16221{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16222echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16223if test $ac_cv_have_decl_FE_INEXACT = yes; then
16224
16225cat >>confdefs.h <<_ACEOF
16226#define HAVE_DECL_FE_INEXACT 1
16227_ACEOF
16228
16229
16230else
16231 cat >>confdefs.h <<_ACEOF
16232#define HAVE_DECL_FE_INEXACT 0
16233_ACEOF
16234
16235
16236fi
16237
16238
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000016239if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016240
16241for ac_header in pthread.h
16242do
16243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249fi
16250ac_res=`eval echo '${'$as_ac_Header'}'`
16251 { echo "$as_me:$LINENO: result: $ac_res" >&5
16252echo "${ECHO_T}$ac_res" >&6; }
16253else
16254 # Is the header compilable?
16255{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16257cat >conftest.$ac_ext <<_ACEOF
16258/* confdefs.h. */
16259_ACEOF
16260cat confdefs.h >>conftest.$ac_ext
16261cat >>conftest.$ac_ext <<_ACEOF
16262/* end confdefs.h. */
16263$ac_includes_default
16264#include <$ac_header>
16265_ACEOF
16266rm -f conftest.$ac_objext
16267if { (ac_try="$ac_compile"
16268case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16271esac
16272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_compile") 2>conftest.er1
16274 ac_status=$?
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284esac
16285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; } &&
16290 { ac_try='test -s conftest.$ac_objext'
16291 { (case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16294esac
16295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296 (eval "$ac_try") 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ac_header_compiler=yes
16301else
16302 echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 ac_header_compiler=no
16306fi
16307
16308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16309{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16310echo "${ECHO_T}$ac_header_compiler" >&6; }
16311
16312# Is the header present?
16313{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16315cat >conftest.$ac_ext <<_ACEOF
16316/* confdefs.h. */
16317_ACEOF
16318cat confdefs.h >>conftest.$ac_ext
16319cat >>conftest.$ac_ext <<_ACEOF
16320/* end confdefs.h. */
16321#include <$ac_header>
16322_ACEOF
16323if { (ac_try="$ac_cpp conftest.$ac_ext"
16324case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16327esac
16328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16330 ac_status=$?
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } >/dev/null; then
16336 if test -s conftest.err; then
16337 ac_cpp_err=$ac_c_preproc_warn_flag
16338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16339 else
16340 ac_cpp_err=
16341 fi
16342else
16343 ac_cpp_err=yes
16344fi
16345if test -z "$ac_cpp_err"; then
16346 ac_header_preproc=yes
16347else
16348 echo "$as_me: failed program was:" >&5
16349sed 's/^/| /' conftest.$ac_ext >&5
16350
16351 ac_header_preproc=no
16352fi
16353
16354rm -f conftest.err conftest.$ac_ext
16355{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16356echo "${ECHO_T}$ac_header_preproc" >&6; }
16357
16358# So? What about this header?
16359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16360 yes:no: )
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16365 ac_header_preproc=yes
16366 ;;
16367 no:yes:* )
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16380 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016381## ------------------------------------ ##
16382## Report this to http://llvm.org/bugs/ ##
16383## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016384_ASBOX
16385 ) | sed "s/^/$as_me: WARNING: /" >&2
16386 ;;
16387esac
16388{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16392else
16393 eval "$as_ac_Header=\$ac_header_preproc"
16394fi
16395ac_res=`eval echo '${'$as_ac_Header'}'`
16396 { echo "$as_me:$LINENO: result: $ac_res" >&5
16397echo "${ECHO_T}$ac_res" >&6; }
16398
16399fi
16400if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000016401 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000016403_ACEOF
16404 HAVE_PTHREAD=1
Reid Spencerd4399922006-12-01 00:37:14 +000016405
16406else
16407 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000016408
16409fi
16410
Reid Spencerb8135562007-08-17 05:45:26 +000016411done
Reid Spencerd4399922006-12-01 00:37:14 +000016412
16413else
16414 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000016415
16416fi
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000016417if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16418
16419for ac_header in zlib.h
16420do
16421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427fi
16428ac_res=`eval echo '${'$as_ac_Header'}'`
16429 { echo "$as_me:$LINENO: result: $ac_res" >&5
16430echo "${ECHO_T}$ac_res" >&6; }
16431else
16432 # Is the header compilable?
16433{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16434echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16435cat >conftest.$ac_ext <<_ACEOF
16436/* confdefs.h. */
16437_ACEOF
16438cat confdefs.h >>conftest.$ac_ext
16439cat >>conftest.$ac_ext <<_ACEOF
16440/* end confdefs.h. */
16441$ac_includes_default
16442#include <$ac_header>
16443_ACEOF
16444rm -f conftest.$ac_objext
16445if { (ac_try="$ac_compile"
16446case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16449esac
16450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_compile") 2>conftest.er1
16452 ac_status=$?
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16459 { (case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462esac
16463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_try") 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; } &&
16468 { ac_try='test -s conftest.$ac_objext'
16469 { (case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16472esac
16473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_try") 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 ac_header_compiler=yes
16479else
16480 echo "$as_me: failed program was:" >&5
16481sed 's/^/| /' conftest.$ac_ext >&5
16482
16483 ac_header_compiler=no
16484fi
16485
16486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16488echo "${ECHO_T}$ac_header_compiler" >&6; }
16489
16490# Is the header present?
16491{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16493cat >conftest.$ac_ext <<_ACEOF
16494/* confdefs.h. */
16495_ACEOF
16496cat confdefs.h >>conftest.$ac_ext
16497cat >>conftest.$ac_ext <<_ACEOF
16498/* end confdefs.h. */
16499#include <$ac_header>
16500_ACEOF
16501if { (ac_try="$ac_cpp conftest.$ac_ext"
16502case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505esac
16506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16508 ac_status=$?
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } >/dev/null; then
16514 if test -s conftest.err; then
16515 ac_cpp_err=$ac_c_preproc_warn_flag
16516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16517 else
16518 ac_cpp_err=
16519 fi
16520else
16521 ac_cpp_err=yes
16522fi
16523if test -z "$ac_cpp_err"; then
16524 ac_header_preproc=yes
16525else
16526 echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529 ac_header_preproc=no
16530fi
16531
16532rm -f conftest.err conftest.$ac_ext
16533{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16534echo "${ECHO_T}$ac_header_preproc" >&6; }
16535
16536# So? What about this header?
16537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16538 yes:no: )
16539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16543 ac_header_preproc=yes
16544 ;;
16545 no:yes:* )
16546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16558 ( cat <<\_ASBOX
16559## ------------------------------------ ##
16560## Report this to http://llvm.org/bugs/ ##
16561## ------------------------------------ ##
16562_ASBOX
16563 ) | sed "s/^/$as_me: WARNING: /" >&2
16564 ;;
16565esac
16566{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16570else
16571 eval "$as_ac_Header=\$ac_header_preproc"
16572fi
16573ac_res=`eval echo '${'$as_ac_Header'}'`
16574 { echo "$as_me:$LINENO: result: $ac_res" >&5
16575echo "${ECHO_T}$ac_res" >&6; }
16576
16577fi
16578if test `eval echo '${'$as_ac_Header'}'` = yes; then
16579 cat >>confdefs.h <<_ACEOF
16580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16581_ACEOF
16582 HAVE_LIBZ=1
16583
16584else
16585 HAVE_LIBZ=0
16586
16587fi
16588
16589done
16590
16591else
16592 HAVE_LIBZ=0
16593
16594fi
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000016595
Nick Lewycky86679902009-06-06 06:25:09 +000016596if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016597
16598
16599for ac_header in ffi.h ffi/ffi.h
16600do
16601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607fi
16608ac_res=`eval echo '${'$as_ac_Header'}'`
16609 { echo "$as_me:$LINENO: result: $ac_res" >&5
16610echo "${ECHO_T}$ac_res" >&6; }
16611else
16612 # Is the header compilable?
16613{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16615cat >conftest.$ac_ext <<_ACEOF
16616/* confdefs.h. */
16617_ACEOF
16618cat confdefs.h >>conftest.$ac_ext
16619cat >>conftest.$ac_ext <<_ACEOF
16620/* end confdefs.h. */
16621$ac_includes_default
16622#include <$ac_header>
16623_ACEOF
16624rm -f conftest.$ac_objext
16625if { (ac_try="$ac_compile"
16626case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16629esac
16630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_compile") 2>conftest.er1
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16639 { (case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642esac
16643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_try") 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; } &&
16648 { ac_try='test -s conftest.$ac_objext'
16649 { (case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16652esac
16653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_try") 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_header_compiler=yes
16659else
16660 echo "$as_me: failed program was:" >&5
16661sed 's/^/| /' conftest.$ac_ext >&5
16662
16663 ac_header_compiler=no
16664fi
16665
16666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16668echo "${ECHO_T}$ac_header_compiler" >&6; }
16669
16670# Is the header present?
16671{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16673cat >conftest.$ac_ext <<_ACEOF
16674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h. */
16679#include <$ac_header>
16680_ACEOF
16681if { (ac_try="$ac_cpp conftest.$ac_ext"
16682case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
16688 ac_status=$?
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } >/dev/null; then
16694 if test -s conftest.err; then
16695 ac_cpp_err=$ac_c_preproc_warn_flag
16696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16697 else
16698 ac_cpp_err=
16699 fi
16700else
16701 ac_cpp_err=yes
16702fi
16703if test -z "$ac_cpp_err"; then
16704 ac_header_preproc=yes
16705else
16706 echo "$as_me: failed program was:" >&5
16707sed 's/^/| /' conftest.$ac_ext >&5
16708
16709 ac_header_preproc=no
16710fi
16711
16712rm -f conftest.err conftest.$ac_ext
16713{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16714echo "${ECHO_T}$ac_header_preproc" >&6; }
16715
16716# So? What about this header?
16717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16718 yes:no: )
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16723 ac_header_preproc=yes
16724 ;;
16725 no:yes:* )
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16729echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16733echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16738 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016739## ------------------------------------ ##
16740## Report this to http://llvm.org/bugs/ ##
16741## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016742_ASBOX
16743 ) | sed "s/^/$as_me: WARNING: /" >&2
16744 ;;
16745esac
16746{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750else
16751 eval "$as_ac_Header=\$ac_header_preproc"
16752fi
16753ac_res=`eval echo '${'$as_ac_Header'}'`
16754 { echo "$as_me:$LINENO: result: $ac_res" >&5
16755echo "${ECHO_T}$ac_res" >&6; }
16756
16757fi
16758if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky11e92142009-02-04 06:27:44 +000016759 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky11e92142009-02-04 06:27:44 +000016761_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000016762
16763fi
16764
16765done
16766
Nick Lewycky86679902009-06-06 06:25:09 +000016767fi
Nick Lewycky11e92142009-02-04 06:27:44 +000016768
Nick Lewyckyc94134d2009-01-20 00:52:24 +000016769
Eric Christophere9c1bb62010-06-22 21:01:04 +000016770for ac_header in CrashReporterClient.h
16771do
16772as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778fi
16779ac_res=`eval echo '${'$as_ac_Header'}'`
16780 { echo "$as_me:$LINENO: result: $ac_res" >&5
16781echo "${ECHO_T}$ac_res" >&6; }
16782else
16783 # Is the header compilable?
16784{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16786cat >conftest.$ac_ext <<_ACEOF
16787/* confdefs.h. */
16788_ACEOF
16789cat confdefs.h >>conftest.$ac_ext
16790cat >>conftest.$ac_ext <<_ACEOF
16791/* end confdefs.h. */
16792$ac_includes_default
16793#include <$ac_header>
16794_ACEOF
16795rm -f conftest.$ac_objext
16796if { (ac_try="$ac_compile"
16797case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800esac
16801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_compile") 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813esac
16814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest.$ac_objext'
16820 { (case "(($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_try") 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_header_compiler=yes
16830else
16831 echo "$as_me: failed program was:" >&5
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ac_header_compiler=no
16835fi
16836
16837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16839echo "${ECHO_T}$ac_header_compiler" >&6; }
16840
16841# Is the header present?
16842{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16844cat >conftest.$ac_ext <<_ACEOF
16845/* confdefs.h. */
16846_ACEOF
16847cat confdefs.h >>conftest.$ac_ext
16848cat >>conftest.$ac_ext <<_ACEOF
16849/* end confdefs.h. */
16850#include <$ac_header>
16851_ACEOF
16852if { (ac_try="$ac_cpp conftest.$ac_ext"
16853case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } >/dev/null; then
16865 if test -s conftest.err; then
16866 ac_cpp_err=$ac_c_preproc_warn_flag
16867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16868 else
16869 ac_cpp_err=
16870 fi
16871else
16872 ac_cpp_err=yes
16873fi
16874if test -z "$ac_cpp_err"; then
16875 ac_header_preproc=yes
16876else
16877 echo "$as_me: failed program was:" >&5
16878sed 's/^/| /' conftest.$ac_ext >&5
16879
16880 ac_header_preproc=no
16881fi
16882
16883rm -f conftest.err conftest.$ac_ext
16884{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16885echo "${ECHO_T}$ac_header_preproc" >&6; }
16886
16887# So? What about this header?
16888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16889 yes:no: )
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16894 ac_header_preproc=yes
16895 ;;
16896 no:yes:* )
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16909 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016910## ------------------------------------ ##
16911## Report this to http://llvm.org/bugs/ ##
16912## ------------------------------------ ##
Eric Christophere9c1bb62010-06-22 21:01:04 +000016913_ASBOX
16914 ) | sed "s/^/$as_me: WARNING: /" >&2
16915 ;;
16916esac
16917{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921else
16922 eval "$as_ac_Header=\$ac_header_preproc"
16923fi
16924ac_res=`eval echo '${'$as_ac_Header'}'`
16925 { echo "$as_me:$LINENO: result: $ac_res" >&5
16926echo "${ECHO_T}$ac_res" >&6; }
16927
16928fi
16929if test `eval echo '${'$as_ac_Header'}'` = yes; then
16930 cat >>confdefs.h <<_ACEOF
16931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16932_ACEOF
16933
16934fi
16935
16936done
16937
16938
Eric Christopherba4f7722010-12-07 02:05:42 +000016939{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16940echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000016941cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016942
16943 /* confdefs.h. */
Eric Christopherca466732010-12-03 07:45:22 +000016944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016948
16949 extern const char *__crashreporter_info__;
16950 int main() {
16951 __crashreporter_info__ = "test";
16952 return 0;
16953 }
16954
Eric Christopherca466732010-12-03 07:45:22 +000016955
Eric Christopherca466732010-12-03 07:45:22 +000016956_ACEOF
16957rm -f conftest.$ac_objext conftest$ac_exeext
16958if { (ac_try="$ac_link"
16959case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962esac
16963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972 { (case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_try") 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest$ac_exeext'
16982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016991
Eric Christopherba4f7722010-12-07 02:05:42 +000016992 { echo "$as_me:$LINENO: result: yes" >&5
16993echo "${ECHO_T}yes" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000016994
16995cat >>confdefs.h <<\_ACEOF
16996#define HAVE_CRASHREPORTER_INFO 1
16997_ACEOF
16998
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000016999
Eric Christopherba4f7722010-12-07 02:05:42 +000017000else
17001 echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017004
17005 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopherba4f7722010-12-07 02:05:42 +000017006echo "${ECHO_T}no" >&6; }
17007
17008cat >>confdefs.h <<\_ACEOF
17009#define HAVE_CRASHREPORTER_INFO 0
17010_ACEOF
17011
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017012
Eric Christopherca466732010-12-03 07:45:22 +000017013fi
Eric Christophere9c1bb62010-06-22 21:01:04 +000017014
Eric Christopherba4f7722010-12-07 02:05:42 +000017015rm -f core conftest.err conftest.$ac_objext \
17016 conftest$ac_exeext conftest.$ac_ext
17017
17018
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000017019
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017020 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17021echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17022if test "${ac_cv_huge_val_sanity+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer128ae102006-11-03 18:04:08 +000017024else
17025
Reid Spencer7b7ab9c2006-11-03 19:49:16 +000017026 ac_ext=cpp
17027ac_cpp='$CXXCPP $CPPFLAGS'
17028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencer128ae102006-11-03 18:04:08 +000017031
Eric Christopherf0ee6a12010-03-02 05:06:54 +000017032 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher8e52bdc2012-04-02 06:54:01 +000017033 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017034 if test "$cross_compiling" = yes; then
Reid Spencer128ae102006-11-03 18:04:08 +000017035 ac_cv_huge_val_sanity=yes
17036else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017037 cat >conftest.$ac_ext <<_ACEOF
17038/* confdefs.h. */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer128ae102006-11-03 18:04:08 +000017042/* end confdefs.h. */
17043#include <math.h>
17044int
17045main ()
17046{
17047double x = HUGE_VAL; return x != x;
17048 ;
17049 return 0;
17050}
17051_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017052rm -f conftest$ac_exeext
17053if { (ac_try="$ac_link"
17054case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057esac
17058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_link") 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17063 { (case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066esac
17067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_try") 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
Reid Spencer128ae102006-11-03 18:04:08 +000017072 ac_cv_huge_val_sanity=yes
17073else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017074 echo "$as_me: program exited with status $ac_status" >&5
17075echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
17078( exit $ac_status )
17079ac_cv_huge_val_sanity=no
Reid Spencer128ae102006-11-03 18:04:08 +000017080fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer128ae102006-11-03 18:04:08 +000017082fi
17083
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017084
Eric Christopherf0ee6a12010-03-02 05:06:54 +000017085 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencer128ae102006-11-03 18:04:08 +000017086 ac_ext=c
17087ac_cpp='$CPP $CPPFLAGS'
17088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090ac_compiler_gnu=$ac_cv_c_compiler_gnu
17091
17092
17093fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017094{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17095echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencer128ae102006-11-03 18:04:08 +000017096 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17097
17098
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017099{ echo "$as_me:$LINENO: checking for pid_t" >&5
17100echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17101if test "${ac_cv_type_pid_t+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17103else
17104 cat >conftest.$ac_ext <<_ACEOF
17105/* confdefs.h. */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h. */
17110$ac_includes_default
17111typedef pid_t ac__type_new_;
17112int
17113main ()
17114{
17115if ((ac__type_new_ *) 0)
17116 return 0;
17117if (sizeof (ac__type_new_))
17118 return 0;
17119 ;
17120 return 0;
17121}
17122_ACEOF
17123rm -f conftest.$ac_objext
17124if { (ac_try="$ac_compile"
17125case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17128esac
17129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_compile") 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151esac
17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_type_pid_t=yes
17158else
17159 echo "$as_me: failed program was:" >&5
17160sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000017161
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017162 ac_cv_type_pid_t=no
17163fi
17164
17165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17166fi
17167{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17168echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17169if test $ac_cv_type_pid_t = yes; then
17170 :
John Criswell3ef61af2003-06-30 21:59:07 +000017171else
17172
17173cat >>confdefs.h <<_ACEOF
17174#define pid_t int
17175_ACEOF
17176
17177fi
17178
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017179{ echo "$as_me:$LINENO: checking for size_t" >&5
17180echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17181if test "${ac_cv_type_size_t+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17183else
17184 cat >conftest.$ac_ext <<_ACEOF
17185/* confdefs.h. */
17186_ACEOF
17187cat confdefs.h >>conftest.$ac_ext
17188cat >>conftest.$ac_ext <<_ACEOF
17189/* end confdefs.h. */
17190$ac_includes_default
17191typedef size_t ac__type_new_;
17192int
17193main ()
17194{
17195if ((ac__type_new_ *) 0)
17196 return 0;
17197if (sizeof (ac__type_new_))
17198 return 0;
17199 ;
17200 return 0;
17201}
17202_ACEOF
17203rm -f conftest.$ac_objext
17204if { (ac_try="$ac_compile"
17205case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17208esac
17209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_compile") 2>conftest.er1
17211 ac_status=$?
17212 grep -v '^ *+' conftest.er1 >conftest.err
17213 rm -f conftest.er1
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221esac
17222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest.$ac_objext'
17228 { (case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17231esac
17232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_try") 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_cv_type_size_t=yes
17238else
17239 echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000017241
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017242 ac_cv_type_size_t=no
17243fi
17244
17245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246fi
17247{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17248echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17249if test $ac_cv_type_size_t = yes; then
17250 :
John Criswell3ef61af2003-06-30 21:59:07 +000017251else
17252
17253cat >>confdefs.h <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017254#define size_t unsigned int
John Criswell3ef61af2003-06-30 21:59:07 +000017255_ACEOF
17256
17257fi
17258
Reid Spencer0241e382004-11-25 04:51:04 +000017259
17260cat >>confdefs.h <<_ACEOF
Torok Edwinaec06332010-01-26 08:50:50 +000017261#define RETSIGTYPE void
Reid Spencer0241e382004-11-25 04:51:04 +000017262_ACEOF
17263
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017264{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17265echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17266if test "${ac_cv_struct_tm+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000017268else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017269 cat >conftest.$ac_ext <<_ACEOF
17270/* confdefs.h. */
17271_ACEOF
17272cat confdefs.h >>conftest.$ac_ext
17273cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000017274/* end confdefs.h. */
17275#include <sys/types.h>
17276#include <time.h>
17277
17278int
17279main ()
17280{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017281struct tm *tp; tp->tm_sec;
Reid Spencer0241e382004-11-25 04:51:04 +000017282 ;
17283 return 0;
17284}
17285_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017286rm -f conftest.$ac_objext
17287if { (ac_try="$ac_compile"
17288case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291esac
17292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_compile") 2>conftest.er1
17294 ac_status=$?
17295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17301 { (case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17304esac
17305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_try") 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest.$ac_objext'
17311 { (case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17314esac
17315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_try") 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000017320 ac_cv_struct_tm=time.h
17321else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017322 echo "$as_me: failed program was:" >&5
17323sed 's/^/| /' conftest.$ac_ext >&5
17324
17325 ac_cv_struct_tm=sys/time.h
Reid Spencer0241e382004-11-25 04:51:04 +000017326fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017327
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000017329fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017330{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17331echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000017332if test $ac_cv_struct_tm = sys/time.h; then
17333
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017334cat >>confdefs.h <<\_ACEOF
17335#define TM_IN_SYS_TIME 1
17336_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000017337
17338fi
17339
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017340{ echo "$as_me:$LINENO: checking for int64_t" >&5
17341echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17342if test "${ac_cv_type_int64_t+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344else
17345 cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h. */
17351$ac_includes_default
17352typedef int64_t ac__type_new_;
17353int
17354main ()
17355{
17356if ((ac__type_new_ *) 0)
17357 return 0;
17358if (sizeof (ac__type_new_))
17359 return 0;
17360 ;
17361 return 0;
17362}
17363_ACEOF
17364rm -f conftest.$ac_objext
17365if { (ac_try="$ac_compile"
17366case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_compile") 2>conftest.er1
17372 ac_status=$?
17373 grep -v '^ *+' conftest.er1 >conftest.err
17374 rm -f conftest.er1
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
17378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17379 { (case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382esac
17383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_try") 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; } &&
17388 { ac_try='test -s conftest.$ac_objext'
17389 { (case "(($ac_try" in
17390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391 *) ac_try_echo=$ac_try;;
17392esac
17393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394 (eval "$ac_try") 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; }; then
17398 ac_cv_type_int64_t=yes
17399else
17400 echo "$as_me: failed program was:" >&5
17401sed 's/^/| /' conftest.$ac_ext >&5
17402
17403 ac_cv_type_int64_t=no
17404fi
17405
17406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407fi
17408{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17409echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17410if test $ac_cv_type_int64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000017411
17412cat >>confdefs.h <<_ACEOF
17413#define HAVE_INT64_T 1
17414_ACEOF
17415
17416
17417else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017418 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17419echo "$as_me: error: Type int64_t required but not found" >&2;}
17420 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000017421fi
17422
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017423{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17424echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17425if test "${ac_cv_type_uint64_t+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17427else
17428 cat >conftest.$ac_ext <<_ACEOF
17429/* confdefs.h. */
17430_ACEOF
17431cat confdefs.h >>conftest.$ac_ext
17432cat >>conftest.$ac_ext <<_ACEOF
17433/* end confdefs.h. */
17434$ac_includes_default
17435typedef uint64_t ac__type_new_;
17436int
17437main ()
17438{
17439if ((ac__type_new_ *) 0)
17440 return 0;
17441if (sizeof (ac__type_new_))
17442 return 0;
17443 ;
17444 return 0;
17445}
17446_ACEOF
17447rm -f conftest.$ac_objext
17448if { (ac_try="$ac_compile"
17449case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17452esac
17453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_compile") 2>conftest.er1
17455 ac_status=$?
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -f conftest.er1
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17462 { (case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465esac
17466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_try") 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest.$ac_objext'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475esac
17476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_type_uint64_t=yes
17482else
17483 echo "$as_me: failed program was:" >&5
17484sed 's/^/| /' conftest.$ac_ext >&5
17485
17486 ac_cv_type_uint64_t=no
17487fi
17488
17489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490fi
17491{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17492echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17493if test $ac_cv_type_uint64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000017494
17495cat >>confdefs.h <<_ACEOF
17496#define HAVE_UINT64_T 1
17497_ACEOF
17498
17499
17500else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017501 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17502echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17503if test "${ac_cv_type_u_int64_t+set}" = set; then
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17505else
17506 cat >conftest.$ac_ext <<_ACEOF
17507/* confdefs.h. */
17508_ACEOF
17509cat confdefs.h >>conftest.$ac_ext
17510cat >>conftest.$ac_ext <<_ACEOF
17511/* end confdefs.h. */
17512$ac_includes_default
17513typedef u_int64_t ac__type_new_;
17514int
17515main ()
17516{
17517if ((ac__type_new_ *) 0)
17518 return 0;
17519if (sizeof (ac__type_new_))
17520 return 0;
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext
17526if { (ac_try="$ac_compile"
17527case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17530esac
17531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_compile") 2>conftest.er1
17533 ac_status=$?
17534 grep -v '^ *+' conftest.er1 >conftest.err
17535 rm -f conftest.er1
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17540 { (case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17543esac
17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_try") 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest.$ac_objext'
17550 { (case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553esac
17554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_try") 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_type_u_int64_t=yes
17560else
17561 echo "$as_me: failed program was:" >&5
17562sed 's/^/| /' conftest.$ac_ext >&5
17563
17564 ac_cv_type_u_int64_t=no
17565fi
17566
17567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568fi
17569{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17570echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17571if test $ac_cv_type_u_int64_t = yes; then
John Criswelld672a3d2004-09-02 18:44:44 +000017572
17573cat >>confdefs.h <<_ACEOF
17574#define HAVE_U_INT64_T 1
17575_ACEOF
17576
17577
Misha Brukmancb46e662004-09-02 23:02:30 +000017578else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017579 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17580echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17581 { (exit 1); exit 1; }; }
Misha Brukmancb46e662004-09-02 23:02:30 +000017582fi
17583
John Criswelld672a3d2004-09-02 18:44:44 +000017584fi
17585
Reid Spencer0241e382004-11-25 04:51:04 +000017586
17587
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017588
17589
17590
17591
17592
17593
17594
Reid Spencera609b652006-01-23 08:15:53 +000017595for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017596do
17597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17598{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17600if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17602else
17603 cat >conftest.$ac_ext <<_ACEOF
17604/* confdefs.h. */
17605_ACEOF
17606cat confdefs.h >>conftest.$ac_ext
17607cat >>conftest.$ac_ext <<_ACEOF
17608/* end confdefs.h. */
17609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17611#define $ac_func innocuous_$ac_func
17612
17613/* System header to define __stub macros and hopefully few prototypes,
17614 which can conflict with char $ac_func (); below.
17615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17616 <limits.h> exists even on freestanding compilers. */
17617
17618#ifdef __STDC__
17619# include <limits.h>
17620#else
17621# include <assert.h>
17622#endif
17623
17624#undef $ac_func
17625
17626/* Override any GCC internal prototype to avoid an error.
17627 Use char because int might match the return type of a GCC
17628 builtin and then its argument prototype would still apply. */
17629#ifdef __cplusplus
17630extern "C"
17631#endif
17632char $ac_func ();
17633/* The GNU C library defines this for functions which it implements
17634 to always fail with ENOSYS. Some functions are actually named
17635 something starting with __ and the normal name is an alias. */
17636#if defined __stub_$ac_func || defined __stub___$ac_func
17637choke me
17638#endif
17639
17640int
17641main ()
17642{
17643return $ac_func ();
17644 ;
17645 return 0;
17646}
17647_ACEOF
17648rm -f conftest.$ac_objext conftest$ac_exeext
17649if { (ac_try="$ac_link"
17650case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653esac
17654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_link") 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663 { (case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17666esac
17667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_try") 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest$ac_exeext'
17673 { (case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676esac
17677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_try") 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 eval "$as_ac_var=yes"
17683else
17684 echo "$as_me: failed program was:" >&5
17685sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 eval "$as_ac_var=no"
17688fi
17689
17690rm -f core conftest.err conftest.$ac_objext \
17691 conftest$ac_exeext conftest.$ac_ext
17692fi
17693ac_res=`eval echo '${'$as_ac_var'}'`
17694 { echo "$as_me:$LINENO: result: $ac_res" >&5
17695echo "${ECHO_T}$ac_res" >&6; }
17696if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000017697 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000017699_ACEOF
17700
17701fi
Reid Spencer0241e382004-11-25 04:51:04 +000017702done
John Criswell3ef61af2003-06-30 21:59:07 +000017703
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017704
17705
17706
17707
Reid Spencerdf523642007-07-13 10:05:30 +000017708for ac_func in powf fmodf strtof round
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017709do
17710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17711{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17715else
17716 cat >conftest.$ac_ext <<_ACEOF
17717/* confdefs.h. */
17718_ACEOF
17719cat confdefs.h >>conftest.$ac_ext
17720cat >>conftest.$ac_ext <<_ACEOF
17721/* end confdefs.h. */
17722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17724#define $ac_func innocuous_$ac_func
17725
17726/* System header to define __stub macros and hopefully few prototypes,
17727 which can conflict with char $ac_func (); below.
17728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17729 <limits.h> exists even on freestanding compilers. */
17730
17731#ifdef __STDC__
17732# include <limits.h>
17733#else
17734# include <assert.h>
17735#endif
17736
17737#undef $ac_func
17738
17739/* Override any GCC internal prototype to avoid an error.
17740 Use char because int might match the return type of a GCC
17741 builtin and then its argument prototype would still apply. */
17742#ifdef __cplusplus
17743extern "C"
17744#endif
17745char $ac_func ();
17746/* The GNU C library defines this for functions which it implements
17747 to always fail with ENOSYS. Some functions are actually named
17748 something starting with __ and the normal name is an alias. */
17749#if defined __stub_$ac_func || defined __stub___$ac_func
17750choke me
17751#endif
17752
17753int
17754main ()
17755{
17756return $ac_func ();
17757 ;
17758 return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext conftest$ac_exeext
17762if { (ac_try="$ac_link"
17763case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_link") 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17776 { (case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17779esac
17780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_try") 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest$ac_exeext'
17786 { (case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789esac
17790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_try") 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 eval "$as_ac_var=yes"
17796else
17797 echo "$as_me: failed program was:" >&5
17798sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 eval "$as_ac_var=no"
17801fi
17802
17803rm -f core conftest.err conftest.$ac_objext \
17804 conftest$ac_exeext conftest.$ac_ext
17805fi
17806ac_res=`eval echo '${'$as_ac_var'}'`
17807 { echo "$as_me:$LINENO: result: $ac_res" >&5
17808echo "${ECHO_T}$ac_res" >&6; }
17809if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf523642007-07-13 10:05:30 +000017810 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf523642007-07-13 10:05:30 +000017812_ACEOF
17813
17814fi
17815done
17816
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017817
17818
17819
17820
17821
Owen Anderson132ae8b2013-02-07 00:21:34 +000017822for ac_func in log log2 log10 exp exp2
17823do
17824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17825{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17827if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17829else
17830 cat >conftest.$ac_ext <<_ACEOF
17831/* confdefs.h. */
17832_ACEOF
17833cat confdefs.h >>conftest.$ac_ext
17834cat >>conftest.$ac_ext <<_ACEOF
17835/* end confdefs.h. */
17836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17838#define $ac_func innocuous_$ac_func
17839
17840/* System header to define __stub macros and hopefully few prototypes,
17841 which can conflict with char $ac_func (); below.
17842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17843 <limits.h> exists even on freestanding compilers. */
17844
17845#ifdef __STDC__
17846# include <limits.h>
17847#else
17848# include <assert.h>
17849#endif
17850
17851#undef $ac_func
17852
17853/* Override any GCC internal prototype to avoid an error.
17854 Use char because int might match the return type of a GCC
17855 builtin and then its argument prototype would still apply. */
17856#ifdef __cplusplus
17857extern "C"
17858#endif
17859char $ac_func ();
17860/* The GNU C library defines this for functions which it implements
17861 to always fail with ENOSYS. Some functions are actually named
17862 something starting with __ and the normal name is an alias. */
17863#if defined __stub_$ac_func || defined __stub___$ac_func
17864choke me
17865#endif
17866
17867int
17868main ()
17869{
17870return $ac_func ();
17871 ;
17872 return 0;
17873}
17874_ACEOF
17875rm -f conftest.$ac_objext conftest$ac_exeext
17876if { (ac_try="$ac_link"
17877case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17880esac
17881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_link") 2>conftest.er1
17883 ac_status=$?
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
17889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17890 { (case "(($ac_try" in
17891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892 *) ac_try_echo=$ac_try;;
17893esac
17894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895 (eval "$ac_try") 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest$ac_exeext'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903esac
17904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 eval "$as_ac_var=yes"
17910else
17911 echo "$as_me: failed program was:" >&5
17912sed 's/^/| /' conftest.$ac_ext >&5
17913
17914 eval "$as_ac_var=no"
17915fi
17916
17917rm -f core conftest.err conftest.$ac_objext \
17918 conftest$ac_exeext conftest.$ac_ext
17919fi
17920ac_res=`eval echo '${'$as_ac_var'}'`
17921 { echo "$as_me:$LINENO: result: $ac_res" >&5
17922echo "${ECHO_T}$ac_res" >&6; }
17923if test `eval echo '${'$as_ac_var'}'` = yes; then
17924 cat >>confdefs.h <<_ACEOF
17925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17926_ACEOF
17927
17928fi
17929done
17930
17931
17932
17933
17934
17935
Reid Spenceredd2ccc2007-02-16 19:17:20 +000017936for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017937do
17938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17939{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17941if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17943else
17944 cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h. */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h. */
17950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17952#define $ac_func innocuous_$ac_func
17953
17954/* System header to define __stub macros and hopefully few prototypes,
17955 which can conflict with char $ac_func (); below.
17956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17957 <limits.h> exists even on freestanding compilers. */
17958
17959#ifdef __STDC__
17960# include <limits.h>
17961#else
17962# include <assert.h>
17963#endif
17964
17965#undef $ac_func
17966
17967/* Override any GCC internal prototype to avoid an error.
17968 Use char because int might match the return type of a GCC
17969 builtin and then its argument prototype would still apply. */
17970#ifdef __cplusplus
17971extern "C"
17972#endif
17973char $ac_func ();
17974/* The GNU C library defines this for functions which it implements
17975 to always fail with ENOSYS. Some functions are actually named
17976 something starting with __ and the normal name is an alias. */
17977#if defined __stub_$ac_func || defined __stub___$ac_func
17978choke me
17979#endif
17980
17981int
17982main ()
17983{
17984return $ac_func ();
17985 ;
17986 return 0;
17987}
17988_ACEOF
17989rm -f conftest.$ac_objext conftest$ac_exeext
17990if { (ac_try="$ac_link"
17991case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17994esac
17995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_link") 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18004 { (case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007esac
18008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_try") 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; } &&
18013 { ac_try='test -s conftest$ac_exeext'
18014 { (case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18017esac
18018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_try") 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 eval "$as_ac_var=yes"
18024else
18025 echo "$as_me: failed program was:" >&5
18026sed 's/^/| /' conftest.$ac_ext >&5
18027
18028 eval "$as_ac_var=no"
18029fi
18030
18031rm -f core conftest.err conftest.$ac_objext \
18032 conftest$ac_exeext conftest.$ac_ext
18033fi
18034ac_res=`eval echo '${'$as_ac_var'}'`
18035 { echo "$as_me:$LINENO: result: $ac_res" >&5
18036echo "${ECHO_T}$ac_res" >&6; }
18037if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018038 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018040_ACEOF
18041
18042fi
18043done
18044
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018045
18046
18047
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018048for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018049do
18050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18051{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18053if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055else
18056 cat >conftest.$ac_ext <<_ACEOF
18057/* confdefs.h. */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h. */
18062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18064#define $ac_func innocuous_$ac_func
18065
18066/* System header to define __stub macros and hopefully few prototypes,
18067 which can conflict with char $ac_func (); below.
18068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069 <limits.h> exists even on freestanding compilers. */
18070
18071#ifdef __STDC__
18072# include <limits.h>
18073#else
18074# include <assert.h>
18075#endif
18076
18077#undef $ac_func
18078
18079/* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18082#ifdef __cplusplus
18083extern "C"
18084#endif
18085char $ac_func ();
18086/* The GNU C library defines this for functions which it implements
18087 to always fail with ENOSYS. Some functions are actually named
18088 something starting with __ and the normal name is an alias. */
18089#if defined __stub_$ac_func || defined __stub___$ac_func
18090choke me
18091#endif
18092
18093int
18094main ()
18095{
18096return $ac_func ();
18097 ;
18098 return 0;
18099}
18100_ACEOF
18101rm -f conftest.$ac_objext conftest$ac_exeext
18102if { (ac_try="$ac_link"
18103case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18106esac
18107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_link") 2>conftest.er1
18109 ac_status=$?
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18116 { (case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18119esac
18120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_try") 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest$ac_exeext'
18126 { (case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129esac
18130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_try") 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 eval "$as_ac_var=yes"
18136else
18137 echo "$as_me: failed program was:" >&5
18138sed 's/^/| /' conftest.$ac_ext >&5
18139
18140 eval "$as_ac_var=no"
18141fi
18142
18143rm -f core conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18145fi
18146ac_res=`eval echo '${'$as_ac_var'}'`
18147 { echo "$as_me:$LINENO: result: $ac_res" >&5
18148echo "${ECHO_T}$ac_res" >&6; }
18149if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera609b652006-01-23 08:15:53 +000018150 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera609b652006-01-23 08:15:53 +000018152_ACEOF
18153
18154fi
18155done
18156
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018157
18158
18159
18160
18161
Eric Christopherdea3bda2010-04-16 05:14:21 +000018162
Benjamin Kramere1effb02011-11-22 12:31:53 +000018163
18164for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018165do
18166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18171else
18172 cat >conftest.$ac_ext <<_ACEOF
18173/* confdefs.h. */
18174_ACEOF
18175cat confdefs.h >>conftest.$ac_ext
18176cat >>conftest.$ac_ext <<_ACEOF
18177/* end confdefs.h. */
18178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18180#define $ac_func innocuous_$ac_func
18181
18182/* System header to define __stub macros and hopefully few prototypes,
18183 which can conflict with char $ac_func (); below.
18184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18185 <limits.h> exists even on freestanding compilers. */
18186
18187#ifdef __STDC__
18188# include <limits.h>
18189#else
18190# include <assert.h>
18191#endif
18192
18193#undef $ac_func
18194
18195/* Override any GCC internal prototype to avoid an error.
18196 Use char because int might match the return type of a GCC
18197 builtin and then its argument prototype would still apply. */
18198#ifdef __cplusplus
18199extern "C"
18200#endif
18201char $ac_func ();
18202/* The GNU C library defines this for functions which it implements
18203 to always fail with ENOSYS. Some functions are actually named
18204 something starting with __ and the normal name is an alias. */
18205#if defined __stub_$ac_func || defined __stub___$ac_func
18206choke me
18207#endif
18208
18209int
18210main ()
18211{
18212return $ac_func ();
18213 ;
18214 return 0;
18215}
18216_ACEOF
18217rm -f conftest.$ac_objext conftest$ac_exeext
18218if { (ac_try="$ac_link"
18219case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18222esac
18223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_link") 2>conftest.er1
18225 ac_status=$?
18226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -f conftest.er1
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18235esac
18236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18245esac
18246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_try") 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 eval "$as_ac_var=yes"
18252else
18253 echo "$as_me: failed program was:" >&5
18254sed 's/^/| /' conftest.$ac_ext >&5
18255
18256 eval "$as_ac_var=no"
18257fi
18258
18259rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261fi
18262ac_res=`eval echo '${'$as_ac_var'}'`
18263 { echo "$as_me:$LINENO: result: $ac_res" >&5
18264echo "${ECHO_T}$ac_res" >&6; }
18265if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000018266 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000018268_ACEOF
18269
18270fi
18271done
Reid Spencera609b652006-01-23 08:15:53 +000018272
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018273
18274
18275
Daniel Dunbar407a85e2012-05-05 16:36:16 +000018276
18277for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018278do
18279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18280{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18284else
18285 cat >conftest.$ac_ext <<_ACEOF
18286/* confdefs.h. */
18287_ACEOF
18288cat confdefs.h >>conftest.$ac_ext
18289cat >>conftest.$ac_ext <<_ACEOF
18290/* end confdefs.h. */
18291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18293#define $ac_func innocuous_$ac_func
18294
18295/* System header to define __stub macros and hopefully few prototypes,
18296 which can conflict with char $ac_func (); below.
18297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298 <limits.h> exists even on freestanding compilers. */
18299
18300#ifdef __STDC__
18301# include <limits.h>
18302#else
18303# include <assert.h>
18304#endif
18305
18306#undef $ac_func
18307
18308/* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18311#ifdef __cplusplus
18312extern "C"
18313#endif
18314char $ac_func ();
18315/* The GNU C library defines this for functions which it implements
18316 to always fail with ENOSYS. Some functions are actually named
18317 something starting with __ and the normal name is an alias. */
18318#if defined __stub_$ac_func || defined __stub___$ac_func
18319choke me
18320#endif
18321
18322int
18323main ()
18324{
18325return $ac_func ();
18326 ;
18327 return 0;
18328}
18329_ACEOF
18330rm -f conftest.$ac_objext conftest$ac_exeext
18331if { (ac_try="$ac_link"
18332case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335esac
18336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_link") 2>conftest.er1
18338 ac_status=$?
18339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
18344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18345 { (case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18348esac
18349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_try") 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18364 eval "$as_ac_var=yes"
18365else
18366 echo "$as_me: failed program was:" >&5
18367sed 's/^/| /' conftest.$ac_ext >&5
18368
18369 eval "$as_ac_var=no"
18370fi
18371
18372rm -f core conftest.err conftest.$ac_objext \
18373 conftest$ac_exeext conftest.$ac_ext
18374fi
18375ac_res=`eval echo '${'$as_ac_var'}'`
18376 { echo "$as_me:$LINENO: result: $ac_res" >&5
18377echo "${ECHO_T}$ac_res" >&6; }
18378if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb6681582004-12-27 06:15:02 +000018379 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb6681582004-12-27 06:15:02 +000018381_ACEOF
18382
18383fi
18384done
18385
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018386
18387
18388
18389
Chris Lattner81479022005-11-14 07:25:50 +000018390for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018391do
18392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18393{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18395if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18397else
18398 cat >conftest.$ac_ext <<_ACEOF
18399/* confdefs.h. */
18400_ACEOF
18401cat confdefs.h >>conftest.$ac_ext
18402cat >>conftest.$ac_ext <<_ACEOF
18403/* end confdefs.h. */
18404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18406#define $ac_func innocuous_$ac_func
18407
18408/* System header to define __stub macros and hopefully few prototypes,
18409 which can conflict with char $ac_func (); below.
18410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18411 <limits.h> exists even on freestanding compilers. */
18412
18413#ifdef __STDC__
18414# include <limits.h>
18415#else
18416# include <assert.h>
18417#endif
18418
18419#undef $ac_func
18420
18421/* Override any GCC internal prototype to avoid an error.
18422 Use char because int might match the return type of a GCC
18423 builtin and then its argument prototype would still apply. */
18424#ifdef __cplusplus
18425extern "C"
18426#endif
18427char $ac_func ();
18428/* The GNU C library defines this for functions which it implements
18429 to always fail with ENOSYS. Some functions are actually named
18430 something starting with __ and the normal name is an alias. */
18431#if defined __stub_$ac_func || defined __stub___$ac_func
18432choke me
18433#endif
18434
18435int
18436main ()
18437{
18438return $ac_func ();
18439 ;
18440 return 0;
18441}
18442_ACEOF
18443rm -f conftest.$ac_objext conftest$ac_exeext
18444if { (ac_try="$ac_link"
18445case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18448esac
18449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_link") 2>conftest.er1
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18461esac
18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest$ac_exeext'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471esac
18472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 eval "$as_ac_var=yes"
18478else
18479 echo "$as_me: failed program was:" >&5
18480sed 's/^/| /' conftest.$ac_ext >&5
18481
18482 eval "$as_ac_var=no"
18483fi
18484
18485rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18487fi
18488ac_res=`eval echo '${'$as_ac_var'}'`
18489 { echo "$as_me:$LINENO: result: $ac_res" >&5
18490echo "${ECHO_T}$ac_res" >&6; }
18491if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000018492 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000018494_ACEOF
18495
18496fi
Reid Spencer0241e382004-11-25 04:51:04 +000018497done
John Criswell3ef61af2003-06-30 21:59:07 +000018498
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018499
18500
18501
18502
Daniel Dunbar7840c542011-02-03 02:40:02 +000018503
18504for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018505do
18506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18507{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18509if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18511else
18512 cat >conftest.$ac_ext <<_ACEOF
18513/* confdefs.h. */
18514_ACEOF
18515cat confdefs.h >>conftest.$ac_ext
18516cat >>conftest.$ac_ext <<_ACEOF
18517/* end confdefs.h. */
18518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18520#define $ac_func innocuous_$ac_func
18521
18522/* System header to define __stub macros and hopefully few prototypes,
18523 which can conflict with char $ac_func (); below.
18524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18525 <limits.h> exists even on freestanding compilers. */
18526
18527#ifdef __STDC__
18528# include <limits.h>
18529#else
18530# include <assert.h>
18531#endif
18532
18533#undef $ac_func
18534
18535/* Override any GCC internal prototype to avoid an error.
18536 Use char because int might match the return type of a GCC
18537 builtin and then its argument prototype would still apply. */
18538#ifdef __cplusplus
18539extern "C"
18540#endif
18541char $ac_func ();
18542/* The GNU C library defines this for functions which it implements
18543 to always fail with ENOSYS. Some functions are actually named
18544 something starting with __ and the normal name is an alias. */
18545#if defined __stub_$ac_func || defined __stub___$ac_func
18546choke me
18547#endif
18548
18549int
18550main ()
18551{
18552return $ac_func ();
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext conftest$ac_exeext
18558if { (ac_try="$ac_link"
18559case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18562esac
18563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_link") 2>conftest.er1
18565 ac_status=$?
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
18571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18572 { (case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575esac
18576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_try") 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest$ac_exeext'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585esac
18586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 eval "$as_ac_var=yes"
18592else
18593 echo "$as_me: failed program was:" >&5
18594sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 eval "$as_ac_var=no"
18597fi
18598
18599rm -f core conftest.err conftest.$ac_objext \
18600 conftest$ac_exeext conftest.$ac_ext
18601fi
18602ac_res=`eval echo '${'$as_ac_var'}'`
18603 { echo "$as_me:$LINENO: result: $ac_res" >&5
18604echo "${ECHO_T}$ac_res" >&6; }
18605if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera31ac4e2006-06-05 16:11:07 +000018606 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera31ac4e2006-06-05 16:11:07 +000018608_ACEOF
18609
18610fi
18611done
18612
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018613{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18614echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18615if test "${llvm_cv_c_printf_a+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000018617else
Reid Spencerf184a862004-09-19 23:53:36 +000018618 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000018619ac_cpp='$CPP $CPPFLAGS'
18620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622ac_compiler_gnu=$ac_cv_c_compiler_gnu
18623
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018624 if test "$cross_compiling" = yes; then
Reid Spencer8de46052004-11-27 22:01:43 +000018625 llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000018626else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018627 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerf184a862004-09-19 23:53:36 +000018628
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018629 /* confdefs.h. */
18630_ACEOF
18631cat confdefs.h >>conftest.$ac_ext
18632cat >>conftest.$ac_ext <<_ACEOF
18633/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000018634
John Criswell42859552003-10-13 16:22:01 +000018635#include <stdio.h>
Reid Spencerf184a862004-09-19 23:53:36 +000018636#include <stdlib.h>
18637
John Criswell42859552003-10-13 16:22:01 +000018638int
18639main ()
18640{
18641
Reid Spencerf184a862004-09-19 23:53:36 +000018642volatile double A, B;
18643char Buffer[100];
18644A = 1;
18645A /= 10.0;
18646sprintf(Buffer, "%a", A);
18647B = atof(Buffer);
18648if (A != B)
18649 return (1);
18650if (A != 0x1.999999999999ap-4)
18651 return (1);
18652return (0);
John Criswell42859552003-10-13 16:22:01 +000018653 ;
18654 return 0;
18655}
18656_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018657rm -f conftest$ac_exeext
18658if { (ac_try="$ac_link"
18659case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662esac
18663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_link") 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18668 { (case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18671esac
18672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_try") 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
Reid Spencer8de46052004-11-27 22:01:43 +000018677 llvm_cv_c_printf_a=yes
John Criswell42859552003-10-13 16:22:01 +000018678else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018679 echo "$as_me: program exited with status $ac_status" >&5
18680echo "$as_me: failed program was:" >&5
18681sed 's/^/| /' conftest.$ac_ext >&5
18682
18683( exit $ac_status )
18684llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000018685fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell42859552003-10-13 16:22:01 +000018687fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018688
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018689
Reid Spencerf184a862004-09-19 23:53:36 +000018690 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000018691ac_cpp='$CPP $CPPFLAGS'
18692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18694ac_compiler_gnu=$ac_cv_c_compiler_gnu
18695
Reid Spencer0241e382004-11-25 04:51:04 +000018696fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018697{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18698echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer8de46052004-11-27 22:01:43 +000018699 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswell42859552003-10-13 16:22:01 +000018700
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018701cat >>confdefs.h <<\_ACEOF
18702#define HAVE_PRINTF_A 1
18703_ACEOF
John Criswell42859552003-10-13 16:22:01 +000018704
Reid Spencerf184a862004-09-19 23:53:36 +000018705 fi
John Criswell42859552003-10-13 16:22:01 +000018706
Reid Spencer0241e382004-11-25 04:51:04 +000018707
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018708
18709 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018710echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18711if test "${ac_cv_func_rand48+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000018713else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018714
18715 ac_ext=cpp
Reid Spencer0241e382004-11-25 04:51:04 +000018716ac_cpp='$CXXCPP $CPPFLAGS'
18717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18720
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018721 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018722/* confdefs.h. */
18723_ACEOF
18724cat confdefs.h >>conftest.$ac_ext
18725cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000018726/* end confdefs.h. */
18727#include <stdlib.h>
18728int
18729main ()
18730{
18731srand48(0);lrand48();drand48();
18732 ;
18733 return 0;
18734}
18735_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018736rm -f conftest.$ac_objext
18737if { (ac_try="$ac_compile"
18738case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741esac
18742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_compile") 2>conftest.er1
18744 ac_status=$?
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18751 { (case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754esac
18755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_try") 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest.$ac_objext'
18761 { (case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764esac
18765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_try") 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000018770 ac_cv_func_rand48=yes
18771else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018772 echo "$as_me: failed program was:" >&5
18773sed 's/^/| /' conftest.$ac_ext >&5
18774
18775 ac_cv_func_rand48=no
Reid Spencer0241e382004-11-25 04:51:04 +000018776fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018777
Reid Spencer0b52e2f2006-08-04 18:18:08 +000018778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018779 ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +000018780ac_cpp='$CPP $CPPFLAGS'
18781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18783ac_compiler_gnu=$ac_cv_c_compiler_gnu
18784
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000018785
Reid Spencer0241e382004-11-25 04:51:04 +000018786fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018787{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18788echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000018789
18790if test "$ac_cv_func_rand48" = "yes" ; then
18791
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018792cat >>confdefs.h <<\_ACEOF
18793#define HAVE_RAND48 1
18794_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000018795
18796fi
John Criswell3b4195f32004-02-13 21:57:29 +000018797
18798
NAKAMURA Takumi189111802011-02-09 04:18:48 +000018799{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18800echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18801if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804 cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
18810$ac_includes_default
18811int
18812main ()
18813{
18814#ifndef strerror_s
18815 char *p = (char *) strerror_s;
18816 return !p;
18817#endif
18818
18819 ;
18820 return 0;
18821}
18822_ACEOF
18823rm -f conftest.$ac_objext
18824if { (ac_try="$ac_compile"
18825case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828esac
18829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_compile") 2>conftest.er1
18831 ac_status=$?
18832 grep -v '^ *+' conftest.er1 >conftest.err
18833 rm -f conftest.er1
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } &&
18837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18838 { (case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18841esac
18842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_try") 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
18848 { (case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851esac
18852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_try") 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_have_decl_strerror_s=yes
18858else
18859 echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 ac_cv_have_decl_strerror_s=no
18863fi
18864
18865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866fi
18867{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18868echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18869if test $ac_cv_have_decl_strerror_s = yes; then
18870
18871cat >>confdefs.h <<_ACEOF
18872#define HAVE_DECL_STRERROR_S 1
18873_ACEOF
18874
18875
18876else
18877 cat >>confdefs.h <<_ACEOF
18878#define HAVE_DECL_STRERROR_S 0
18879_ACEOF
18880
18881
18882fi
18883
18884
18885
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000018886if test "$llvm_cv_os_type" = "MingW" ; then
18887 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18888echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18889if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891else
18892 ac_check_lib_save_LIBS=$LIBS
18893LIBS="-lgcc $LIBS"
18894cat >conftest.$ac_ext <<_ACEOF
18895/* confdefs.h. */
18896_ACEOF
18897cat confdefs.h >>conftest.$ac_ext
18898cat >>conftest.$ac_ext <<_ACEOF
18899/* end confdefs.h. */
18900
18901/* Override any GCC internal prototype to avoid an error.
18902 Use char because int might match the return type of a GCC
18903 builtin and then its argument prototype would still apply. */
18904#ifdef __cplusplus
18905extern "C"
18906#endif
18907char _alloca ();
18908int
18909main ()
18910{
18911return _alloca ();
18912 ;
18913 return 0;
18914}
18915_ACEOF
18916rm -f conftest.$ac_objext conftest$ac_exeext
18917if { (ac_try="$ac_link"
18918case "(($ac_try" in
18919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920 *) ac_try_echo=$ac_try;;
18921esac
18922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18923 (eval "$ac_link") 2>conftest.er1
18924 ac_status=$?
18925 grep -v '^ *+' conftest.er1 >conftest.err
18926 rm -f conftest.er1
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18931 { (case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934esac
18935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_try") 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest$ac_exeext'
18941 { (case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18944esac
18945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_try") 2>&5
18947 ac_status=$?
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950 ac_cv_lib_gcc__alloca=yes
18951else
18952 echo "$as_me: failed program was:" >&5
18953sed 's/^/| /' conftest.$ac_ext >&5
18954
18955 ac_cv_lib_gcc__alloca=no
18956fi
18957
18958rm -f core conftest.err conftest.$ac_objext \
18959 conftest$ac_exeext conftest.$ac_ext
18960LIBS=$ac_check_lib_save_LIBS
18961fi
18962{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18963echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18964if test $ac_cv_lib_gcc__alloca = yes; then
18965
18966cat >>confdefs.h <<\_ACEOF
18967#define HAVE__ALLOCA 1
18968_ACEOF
18969
18970fi
18971
18972 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18973echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18974if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976else
18977 ac_check_lib_save_LIBS=$LIBS
18978LIBS="-lgcc $LIBS"
18979cat >conftest.$ac_ext <<_ACEOF
18980/* confdefs.h. */
18981_ACEOF
18982cat confdefs.h >>conftest.$ac_ext
18983cat >>conftest.$ac_ext <<_ACEOF
18984/* end confdefs.h. */
18985
18986/* Override any GCC internal prototype to avoid an error.
18987 Use char because int might match the return type of a GCC
18988 builtin and then its argument prototype would still apply. */
18989#ifdef __cplusplus
18990extern "C"
18991#endif
18992char __alloca ();
18993int
18994main ()
18995{
18996return __alloca ();
18997 ;
18998 return 0;
18999}
19000_ACEOF
19001rm -f conftest.$ac_objext conftest$ac_exeext
19002if { (ac_try="$ac_link"
19003case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19006esac
19007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_link") 2>conftest.er1
19009 ac_status=$?
19010 grep -v '^ *+' conftest.er1 >conftest.err
19011 rm -f conftest.er1
19012 cat conftest.err >&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); } &&
19015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19016 { (case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019esac
19020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_try") 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; } &&
19025 { ac_try='test -s conftest$ac_exeext'
19026 { (case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19029esac
19030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_try") 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 ac_cv_lib_gcc___alloca=yes
19036else
19037 echo "$as_me: failed program was:" >&5
19038sed 's/^/| /' conftest.$ac_ext >&5
19039
19040 ac_cv_lib_gcc___alloca=no
19041fi
19042
19043rm -f core conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
19045LIBS=$ac_check_lib_save_LIBS
19046fi
19047{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19048echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19049if test $ac_cv_lib_gcc___alloca = yes; then
19050
19051cat >>confdefs.h <<\_ACEOF
19052#define HAVE___ALLOCA 1
19053_ACEOF
19054
19055fi
19056
19057 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19058echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19059if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19061else
19062 ac_check_lib_save_LIBS=$LIBS
19063LIBS="-lgcc $LIBS"
19064cat >conftest.$ac_ext <<_ACEOF
19065/* confdefs.h. */
19066_ACEOF
19067cat confdefs.h >>conftest.$ac_ext
19068cat >>conftest.$ac_ext <<_ACEOF
19069/* end confdefs.h. */
19070
19071/* Override any GCC internal prototype to avoid an error.
19072 Use char because int might match the return type of a GCC
19073 builtin and then its argument prototype would still apply. */
19074#ifdef __cplusplus
19075extern "C"
19076#endif
19077char __chkstk ();
19078int
19079main ()
19080{
19081return __chkstk ();
19082 ;
19083 return 0;
19084}
19085_ACEOF
19086rm -f conftest.$ac_objext conftest$ac_exeext
19087if { (ac_try="$ac_link"
19088case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19091esac
19092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_link") 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19101 { (case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19104esac
19105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_try") 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest$ac_exeext'
19111 { (case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19114esac
19115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116 (eval "$ac_try") 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_lib_gcc___chkstk=yes
19121else
19122 echo "$as_me: failed program was:" >&5
19123sed 's/^/| /' conftest.$ac_ext >&5
19124
19125 ac_cv_lib_gcc___chkstk=no
19126fi
19127
19128rm -f core conftest.err conftest.$ac_objext \
19129 conftest$ac_exeext conftest.$ac_ext
19130LIBS=$ac_check_lib_save_LIBS
19131fi
19132{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19133echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19134if test $ac_cv_lib_gcc___chkstk = yes; then
19135
19136cat >>confdefs.h <<\_ACEOF
19137#define HAVE___CHKSTK 1
19138_ACEOF
19139
19140fi
19141
19142 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19143echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19144if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19146else
19147 ac_check_lib_save_LIBS=$LIBS
19148LIBS="-lgcc $LIBS"
19149cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h. */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h. */
19155
19156/* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19159#ifdef __cplusplus
19160extern "C"
19161#endif
19162char ___chkstk ();
19163int
19164main ()
19165{
19166return ___chkstk ();
19167 ;
19168 return 0;
19169}
19170_ACEOF
19171rm -f conftest.$ac_objext conftest$ac_exeext
19172if { (ac_try="$ac_link"
19173case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176esac
19177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_link") 2>conftest.er1
19179 ac_status=$?
19180 grep -v '^ *+' conftest.er1 >conftest.err
19181 rm -f conftest.er1
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189esac
19190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; } &&
19195 { ac_try='test -s conftest$ac_exeext'
19196 { (case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19199esac
19200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_try") 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_cv_lib_gcc____chkstk=yes
19206else
19207 echo "$as_me: failed program was:" >&5
19208sed 's/^/| /' conftest.$ac_ext >&5
19209
19210 ac_cv_lib_gcc____chkstk=no
19211fi
19212
19213rm -f core conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
19215LIBS=$ac_check_lib_save_LIBS
19216fi
19217{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19218echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19219if test $ac_cv_lib_gcc____chkstk = yes; then
19220
19221cat >>confdefs.h <<\_ACEOF
19222#define HAVE____CHKSTK 1
19223_ACEOF
19224
19225fi
19226
19227
19228 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19229echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19230if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232else
19233 ac_check_lib_save_LIBS=$LIBS
19234LIBS="-lgcc $LIBS"
19235cat >conftest.$ac_ext <<_ACEOF
19236/* confdefs.h. */
19237_ACEOF
19238cat confdefs.h >>conftest.$ac_ext
19239cat >>conftest.$ac_ext <<_ACEOF
19240/* end confdefs.h. */
19241
19242/* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19245#ifdef __cplusplus
19246extern "C"
19247#endif
19248char __ashldi3 ();
19249int
19250main ()
19251{
19252return __ashldi3 ();
19253 ;
19254 return 0;
19255}
19256_ACEOF
19257rm -f conftest.$ac_objext conftest$ac_exeext
19258if { (ac_try="$ac_link"
19259case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262esac
19263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_link") 2>conftest.er1
19265 ac_status=$?
19266 grep -v '^ *+' conftest.er1 >conftest.err
19267 rm -f conftest.er1
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } &&
19271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19272 { (case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19275esac
19276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_try") 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; } &&
19281 { ac_try='test -s conftest$ac_exeext'
19282 { (case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19285esac
19286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_try") 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291 ac_cv_lib_gcc___ashldi3=yes
19292else
19293 echo "$as_me: failed program was:" >&5
19294sed 's/^/| /' conftest.$ac_ext >&5
19295
19296 ac_cv_lib_gcc___ashldi3=no
19297fi
19298
19299rm -f core conftest.err conftest.$ac_objext \
19300 conftest$ac_exeext conftest.$ac_ext
19301LIBS=$ac_check_lib_save_LIBS
19302fi
19303{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19304echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19305if test $ac_cv_lib_gcc___ashldi3 = yes; then
19306
19307cat >>confdefs.h <<\_ACEOF
19308#define HAVE___ASHLDI3 1
19309_ACEOF
19310
19311fi
19312
19313 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19314echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19315if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19317else
19318 ac_check_lib_save_LIBS=$LIBS
19319LIBS="-lgcc $LIBS"
19320cat >conftest.$ac_ext <<_ACEOF
19321/* confdefs.h. */
19322_ACEOF
19323cat confdefs.h >>conftest.$ac_ext
19324cat >>conftest.$ac_ext <<_ACEOF
19325/* end confdefs.h. */
19326
19327/* Override any GCC internal prototype to avoid an error.
19328 Use char because int might match the return type of a GCC
19329 builtin and then its argument prototype would still apply. */
19330#ifdef __cplusplus
19331extern "C"
19332#endif
19333char __ashrdi3 ();
19334int
19335main ()
19336{
19337return __ashrdi3 ();
19338 ;
19339 return 0;
19340}
19341_ACEOF
19342rm -f conftest.$ac_objext conftest$ac_exeext
19343if { (ac_try="$ac_link"
19344case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19347esac
19348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_link") 2>conftest.er1
19350 ac_status=$?
19351 grep -v '^ *+' conftest.er1 >conftest.err
19352 rm -f conftest.er1
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360esac
19361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest$ac_exeext'
19367 { (case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19370esac
19371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 ac_cv_lib_gcc___ashrdi3=yes
19377else
19378 echo "$as_me: failed program was:" >&5
19379sed 's/^/| /' conftest.$ac_ext >&5
19380
19381 ac_cv_lib_gcc___ashrdi3=no
19382fi
19383
19384rm -f core conftest.err conftest.$ac_objext \
19385 conftest$ac_exeext conftest.$ac_ext
19386LIBS=$ac_check_lib_save_LIBS
19387fi
19388{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19389echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19390if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19391
19392cat >>confdefs.h <<\_ACEOF
19393#define HAVE___ASHRDI3 1
19394_ACEOF
19395
19396fi
19397
19398 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19399echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19400if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19402else
19403 ac_check_lib_save_LIBS=$LIBS
19404LIBS="-lgcc $LIBS"
19405cat >conftest.$ac_ext <<_ACEOF
19406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h. */
19411
19412/* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415#ifdef __cplusplus
19416extern "C"
19417#endif
19418char __divdi3 ();
19419int
19420main ()
19421{
19422return __divdi3 ();
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427rm -f conftest.$ac_objext conftest$ac_exeext
19428if { (ac_try="$ac_link"
19429case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432esac
19433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_link") 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445esac
19446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest$ac_exeext'
19452 { (case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455esac
19456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_try") 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_cv_lib_gcc___divdi3=yes
19462else
19463 echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466 ac_cv_lib_gcc___divdi3=no
19467fi
19468
19469rm -f core conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
19471LIBS=$ac_check_lib_save_LIBS
19472fi
19473{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19474echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19475if test $ac_cv_lib_gcc___divdi3 = yes; then
19476
19477cat >>confdefs.h <<\_ACEOF
19478#define HAVE___DIVDI3 1
19479_ACEOF
19480
19481fi
19482
19483 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19484echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19485if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487else
19488 ac_check_lib_save_LIBS=$LIBS
19489LIBS="-lgcc $LIBS"
19490cat >conftest.$ac_ext <<_ACEOF
19491/* confdefs.h. */
19492_ACEOF
19493cat confdefs.h >>conftest.$ac_ext
19494cat >>conftest.$ac_ext <<_ACEOF
19495/* end confdefs.h. */
19496
19497/* Override any GCC internal prototype to avoid an error.
19498 Use char because int might match the return type of a GCC
19499 builtin and then its argument prototype would still apply. */
19500#ifdef __cplusplus
19501extern "C"
19502#endif
19503char __fixdfdi ();
19504int
19505main ()
19506{
19507return __fixdfdi ();
19508 ;
19509 return 0;
19510}
19511_ACEOF
19512rm -f conftest.$ac_objext conftest$ac_exeext
19513if { (ac_try="$ac_link"
19514case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517esac
19518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_link") 2>conftest.er1
19520 ac_status=$?
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
19526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19527 { (case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19530esac
19531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_try") 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; } &&
19536 { ac_try='test -s conftest$ac_exeext'
19537 { (case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19540esac
19541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_try") 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 ac_cv_lib_gcc___fixdfdi=yes
19547else
19548 echo "$as_me: failed program was:" >&5
19549sed 's/^/| /' conftest.$ac_ext >&5
19550
19551 ac_cv_lib_gcc___fixdfdi=no
19552fi
19553
19554rm -f core conftest.err conftest.$ac_objext \
19555 conftest$ac_exeext conftest.$ac_ext
19556LIBS=$ac_check_lib_save_LIBS
19557fi
19558{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19559echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19560if test $ac_cv_lib_gcc___fixdfdi = yes; then
19561
19562cat >>confdefs.h <<\_ACEOF
19563#define HAVE___FIXDFDI 1
19564_ACEOF
19565
19566fi
19567
19568 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19569echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19570if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573 ac_check_lib_save_LIBS=$LIBS
19574LIBS="-lgcc $LIBS"
19575cat >conftest.$ac_ext <<_ACEOF
19576/* confdefs.h. */
19577_ACEOF
19578cat confdefs.h >>conftest.$ac_ext
19579cat >>conftest.$ac_ext <<_ACEOF
19580/* end confdefs.h. */
19581
19582/* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
19585#ifdef __cplusplus
19586extern "C"
19587#endif
19588char __fixsfdi ();
19589int
19590main ()
19591{
19592return __fixsfdi ();
19593 ;
19594 return 0;
19595}
19596_ACEOF
19597rm -f conftest.$ac_objext conftest$ac_exeext
19598if { (ac_try="$ac_link"
19599case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602esac
19603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_link") 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615esac
19616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest$ac_exeext'
19622 { (case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625esac
19626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_try") 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_cv_lib_gcc___fixsfdi=yes
19632else
19633 echo "$as_me: failed program was:" >&5
19634sed 's/^/| /' conftest.$ac_ext >&5
19635
19636 ac_cv_lib_gcc___fixsfdi=no
19637fi
19638
19639rm -f core conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
19641LIBS=$ac_check_lib_save_LIBS
19642fi
19643{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19644echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19645if test $ac_cv_lib_gcc___fixsfdi = yes; then
19646
19647cat >>confdefs.h <<\_ACEOF
19648#define HAVE___FIXSFDI 1
19649_ACEOF
19650
19651fi
19652
19653 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19654echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19655if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657else
19658 ac_check_lib_save_LIBS=$LIBS
19659LIBS="-lgcc $LIBS"
19660cat >conftest.$ac_ext <<_ACEOF
19661/* confdefs.h. */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
19665/* end confdefs.h. */
19666
19667/* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19670#ifdef __cplusplus
19671extern "C"
19672#endif
19673char __floatdidf ();
19674int
19675main ()
19676{
19677return __floatdidf ();
19678 ;
19679 return 0;
19680}
19681_ACEOF
19682rm -f conftest.$ac_objext conftest$ac_exeext
19683if { (ac_try="$ac_link"
19684case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687esac
19688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19697 { (case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700esac
19701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_try") 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest$ac_exeext'
19707 { (case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710esac
19711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_try") 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 ac_cv_lib_gcc___floatdidf=yes
19717else
19718 echo "$as_me: failed program was:" >&5
19719sed 's/^/| /' conftest.$ac_ext >&5
19720
19721 ac_cv_lib_gcc___floatdidf=no
19722fi
19723
19724rm -f core conftest.err conftest.$ac_objext \
19725 conftest$ac_exeext conftest.$ac_ext
19726LIBS=$ac_check_lib_save_LIBS
19727fi
19728{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19729echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19730if test $ac_cv_lib_gcc___floatdidf = yes; then
19731
19732cat >>confdefs.h <<\_ACEOF
19733#define HAVE___FLOATDIDF 1
19734_ACEOF
19735
19736fi
19737
19738 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19739echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19740if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19742else
19743 ac_check_lib_save_LIBS=$LIBS
19744LIBS="-lgcc $LIBS"
19745cat >conftest.$ac_ext <<_ACEOF
19746/* confdefs.h. */
19747_ACEOF
19748cat confdefs.h >>conftest.$ac_ext
19749cat >>conftest.$ac_ext <<_ACEOF
19750/* end confdefs.h. */
19751
19752/* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19755#ifdef __cplusplus
19756extern "C"
19757#endif
19758char __lshrdi3 ();
19759int
19760main ()
19761{
19762return __lshrdi3 ();
19763 ;
19764 return 0;
19765}
19766_ACEOF
19767rm -f conftest.$ac_objext conftest$ac_exeext
19768if { (ac_try="$ac_link"
19769case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772esac
19773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_link") 2>conftest.er1
19775 ac_status=$?
19776 grep -v '^ *+' conftest.er1 >conftest.err
19777 rm -f conftest.er1
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785esac
19786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; } &&
19791 { ac_try='test -s conftest$ac_exeext'
19792 { (case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795esac
19796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_try") 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cv_lib_gcc___lshrdi3=yes
19802else
19803 echo "$as_me: failed program was:" >&5
19804sed 's/^/| /' conftest.$ac_ext >&5
19805
19806 ac_cv_lib_gcc___lshrdi3=no
19807fi
19808
19809rm -f core conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext conftest.$ac_ext
19811LIBS=$ac_check_lib_save_LIBS
19812fi
19813{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19814echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19815if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19816
19817cat >>confdefs.h <<\_ACEOF
19818#define HAVE___LSHRDI3 1
19819_ACEOF
19820
19821fi
19822
19823 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19824echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19825if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827else
19828 ac_check_lib_save_LIBS=$LIBS
19829LIBS="-lgcc $LIBS"
19830cat >conftest.$ac_ext <<_ACEOF
19831/* confdefs.h. */
19832_ACEOF
19833cat confdefs.h >>conftest.$ac_ext
19834cat >>conftest.$ac_ext <<_ACEOF
19835/* end confdefs.h. */
19836
19837/* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19840#ifdef __cplusplus
19841extern "C"
19842#endif
19843char __moddi3 ();
19844int
19845main ()
19846{
19847return __moddi3 ();
19848 ;
19849 return 0;
19850}
19851_ACEOF
19852rm -f conftest.$ac_objext conftest$ac_exeext
19853if { (ac_try="$ac_link"
19854case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857esac
19858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_link") 2>conftest.er1
19860 ac_status=$?
19861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } &&
19866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19867 { (case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870esac
19871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_try") 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19886 ac_cv_lib_gcc___moddi3=yes
19887else
19888 echo "$as_me: failed program was:" >&5
19889sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 ac_cv_lib_gcc___moddi3=no
19892fi
19893
19894rm -f core conftest.err conftest.$ac_objext \
19895 conftest$ac_exeext conftest.$ac_ext
19896LIBS=$ac_check_lib_save_LIBS
19897fi
19898{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19899echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19900if test $ac_cv_lib_gcc___moddi3 = yes; then
19901
19902cat >>confdefs.h <<\_ACEOF
19903#define HAVE___MODDI3 1
19904_ACEOF
19905
19906fi
19907
19908 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19909echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19910if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912else
19913 ac_check_lib_save_LIBS=$LIBS
19914LIBS="-lgcc $LIBS"
19915cat >conftest.$ac_ext <<_ACEOF
19916/* confdefs.h. */
19917_ACEOF
19918cat confdefs.h >>conftest.$ac_ext
19919cat >>conftest.$ac_ext <<_ACEOF
19920/* end confdefs.h. */
19921
19922/* Override any GCC internal prototype to avoid an error.
19923 Use char because int might match the return type of a GCC
19924 builtin and then its argument prototype would still apply. */
19925#ifdef __cplusplus
19926extern "C"
19927#endif
19928char __udivdi3 ();
19929int
19930main ()
19931{
19932return __udivdi3 ();
19933 ;
19934 return 0;
19935}
19936_ACEOF
19937rm -f conftest.$ac_objext conftest$ac_exeext
19938if { (ac_try="$ac_link"
19939case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942esac
19943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19952 { (case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19955esac
19956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_try") 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest$ac_exeext'
19962 { (case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965esac
19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_try") 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_cv_lib_gcc___udivdi3=yes
19972else
19973 echo "$as_me: failed program was:" >&5
19974sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 ac_cv_lib_gcc___udivdi3=no
19977fi
19978
19979rm -f core conftest.err conftest.$ac_objext \
19980 conftest$ac_exeext conftest.$ac_ext
19981LIBS=$ac_check_lib_save_LIBS
19982fi
19983{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19984echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19985if test $ac_cv_lib_gcc___udivdi3 = yes; then
19986
19987cat >>confdefs.h <<\_ACEOF
19988#define HAVE___UDIVDI3 1
19989_ACEOF
19990
19991fi
19992
19993 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19994echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19995if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19997else
19998 ac_check_lib_save_LIBS=$LIBS
19999LIBS="-lgcc $LIBS"
20000cat >conftest.$ac_ext <<_ACEOF
20001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
20006
20007/* Override any GCC internal prototype to avoid an error.
20008 Use char because int might match the return type of a GCC
20009 builtin and then its argument prototype would still apply. */
20010#ifdef __cplusplus
20011extern "C"
20012#endif
20013char __umoddi3 ();
20014int
20015main ()
20016{
20017return __umoddi3 ();
20018 ;
20019 return 0;
20020}
20021_ACEOF
20022rm -f conftest.$ac_objext conftest$ac_exeext
20023if { (ac_try="$ac_link"
20024case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20027esac
20028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_link") 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037 { (case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20040esac
20041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_try") 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest$ac_exeext'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20050esac
20051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 ac_cv_lib_gcc___umoddi3=yes
20057else
20058 echo "$as_me: failed program was:" >&5
20059sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 ac_cv_lib_gcc___umoddi3=no
20062fi
20063
20064rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20066LIBS=$ac_check_lib_save_LIBS
20067fi
20068{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20069echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20070if test $ac_cv_lib_gcc___umoddi3 = yes; then
20071
20072cat >>confdefs.h <<\_ACEOF
20073#define HAVE___UMODDI3 1
20074_ACEOF
20075
20076fi
20077
20078
20079 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20080echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20081if test "${ac_cv_lib_gcc___main+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20083else
20084 ac_check_lib_save_LIBS=$LIBS
20085LIBS="-lgcc $LIBS"
20086cat >conftest.$ac_ext <<_ACEOF
20087/* confdefs.h. */
20088_ACEOF
20089cat confdefs.h >>conftest.$ac_ext
20090cat >>conftest.$ac_ext <<_ACEOF
20091/* end confdefs.h. */
20092
20093/* Override any GCC internal prototype to avoid an error.
20094 Use char because int might match the return type of a GCC
20095 builtin and then its argument prototype would still apply. */
20096#ifdef __cplusplus
20097extern "C"
20098#endif
20099char __main ();
20100int
20101main ()
20102{
20103return __main ();
20104 ;
20105 return 0;
20106}
20107_ACEOF
20108rm -f conftest.$ac_objext conftest$ac_exeext
20109if { (ac_try="$ac_link"
20110case "(($ac_try" in
20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112 *) ac_try_echo=$ac_try;;
20113esac
20114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_link") 2>conftest.er1
20116 ac_status=$?
20117 grep -v '^ *+' conftest.er1 >conftest.err
20118 rm -f conftest.er1
20119 cat conftest.err >&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } &&
20122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20123 { (case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20126esac
20127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_try") 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; } &&
20132 { ac_try='test -s conftest$ac_exeext'
20133 { (case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20136esac
20137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_try") 2>&5
20139 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; }; then
20142 ac_cv_lib_gcc___main=yes
20143else
20144 echo "$as_me: failed program was:" >&5
20145sed 's/^/| /' conftest.$ac_ext >&5
20146
20147 ac_cv_lib_gcc___main=no
20148fi
20149
20150rm -f core conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152LIBS=$ac_check_lib_save_LIBS
20153fi
20154{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20155echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20156if test $ac_cv_lib_gcc___main = yes; then
20157
20158cat >>confdefs.h <<\_ACEOF
20159#define HAVE___MAIN 1
20160_ACEOF
20161
20162fi
20163
20164 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20165echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20166if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20168else
20169 ac_check_lib_save_LIBS=$LIBS
20170LIBS="-lgcc $LIBS"
20171cat >conftest.$ac_ext <<_ACEOF
20172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h. */
20177
20178/* Override any GCC internal prototype to avoid an error.
20179 Use char because int might match the return type of a GCC
20180 builtin and then its argument prototype would still apply. */
20181#ifdef __cplusplus
20182extern "C"
20183#endif
20184char __cmpdi2 ();
20185int
20186main ()
20187{
20188return __cmpdi2 ();
20189 ;
20190 return 0;
20191}
20192_ACEOF
20193rm -f conftest.$ac_objext conftest$ac_exeext
20194if { (ac_try="$ac_link"
20195case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20198esac
20199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_link") 2>conftest.er1
20201 ac_status=$?
20202 grep -v '^ *+' conftest.er1 >conftest.err
20203 rm -f conftest.er1
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20208 { (case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211esac
20212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_try") 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try='test -s conftest$ac_exeext'
20218 { (case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221esac
20222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_try") 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_lib_gcc___cmpdi2=yes
20228else
20229 echo "$as_me: failed program was:" >&5
20230sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 ac_cv_lib_gcc___cmpdi2=no
20233fi
20234
20235rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237LIBS=$ac_check_lib_save_LIBS
20238fi
20239{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20240echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20241if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20242
20243cat >>confdefs.h <<\_ACEOF
20244#define HAVE___CMPDI2 1
20245_ACEOF
20246
20247fi
20248
20249fi
20250
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000020251if test "$llvm_cv_os_type" = "MingW" ; then
20252 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20253echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20254 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020255
20256 /* confdefs.h. */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h. */
20261
20262 #include <windows.h>
20263 #include <imagehlp.h>
20264 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20265 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20266
20267
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000020268_ACEOF
20269rm -f conftest.$ac_objext
20270if { (ac_try="$ac_compile"
20271case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274esac
20275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20277 ac_status=$?
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } &&
20283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20284 { (case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20287esac
20288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_try") 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest.$ac_objext'
20294 { (case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297esac
20298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_try") 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; }; then
20303
20304 { echo "$as_me:$LINENO: result: yes" >&5
20305echo "${ECHO_T}yes" >&6; }
20306 llvm_cv_win32_elmcb_pcstr="PCSTR"
20307
20308else
20309 echo "$as_me: failed program was:" >&5
20310sed 's/^/| /' conftest.$ac_ext >&5
20311
20312
20313 { echo "$as_me:$LINENO: result: no" >&5
20314echo "${ECHO_T}no" >&6; }
20315 llvm_cv_win32_elmcb_pcstr="PSTR"
20316
20317fi
20318
20319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320
20321cat >>confdefs.h <<_ACEOF
20322#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20323_ACEOF
20324
20325fi
20326
Torok Edwinaec06332010-01-26 08:50:50 +000020327
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020328
20329 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020330echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20331if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000020333else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020334
20335 ac_ext=cpp
John Criswell3ef61af2003-06-30 21:59:07 +000020336ac_cpp='$CXXCPP $CPPFLAGS'
20337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20340
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020341 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020342/* confdefs.h. */
20343_ACEOF
20344cat confdefs.h >>conftest.$ac_ext
20345cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020346/* end confdefs.h. */
20347#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000020348int
20349main ()
20350{
20351float f; isnan(f);
20352 ;
20353 return 0;
20354}
Brian Gaekec77683c2004-06-22 23:47:13 +000020355_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020356rm -f conftest.$ac_objext
20357if { (ac_try="$ac_compile"
20358case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20361esac
20362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_compile") 2>conftest.er1
20364 ac_status=$?
20365 grep -v '^ *+' conftest.er1 >conftest.err
20366 rm -f conftest.er1
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20371 { (case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20374esac
20375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_try") 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; } &&
20380 { ac_try='test -s conftest.$ac_objext'
20381 { (case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20384esac
20385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_try") 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020390 ac_cv_func_isnan_in_math_h=yes
20391else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395 ac_cv_func_isnan_in_math_h=no
Brian Gaekec77683c2004-06-22 23:47:13 +000020396fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020397
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020399 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000020400ac_cpp='$CPP $CPPFLAGS'
20401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20403ac_compiler_gnu=$ac_cv_c_compiler_gnu
20404
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020405
Brian Gaekec77683c2004-06-22 23:47:13 +000020406fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020407{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20408echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020409
20410
20411if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020412
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020413cat >>confdefs.h <<\_ACEOF
20414#define HAVE_ISNAN_IN_MATH_H 1
20415_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020416
Reid Spencerf9676532004-10-27 23:03:44 +000020417fi
20418
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020419
20420 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020421echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20422if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000020424else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020425
20426 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000020427ac_cpp='$CXXCPP $CPPFLAGS'
20428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20431
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020432 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020433/* confdefs.h. */
20434_ACEOF
20435cat confdefs.h >>conftest.$ac_ext
20436cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020437/* end confdefs.h. */
20438#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020439int
20440main ()
20441{
20442float f; isnan(f);
20443 ;
20444 return 0;
20445}
Brian Gaekec77683c2004-06-22 23:47:13 +000020446_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020447rm -f conftest.$ac_objext
20448if { (ac_try="$ac_compile"
20449case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_compile") 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20462 { (case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465esac
20466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_try") 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475esac
20476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_try") 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020481 ac_cv_func_isnan_in_cmath=yes
20482else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020483 echo "$as_me: failed program was:" >&5
20484sed 's/^/| /' conftest.$ac_ext >&5
20485
20486 ac_cv_func_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000020487fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020488
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020490 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000020491ac_cpp='$CPP $CPPFLAGS'
20492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020496
Brian Gaekec77683c2004-06-22 23:47:13 +000020497fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020498{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20499echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020500
20501if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020502
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020503cat >>confdefs.h <<\_ACEOF
20504#define HAVE_ISNAN_IN_CMATH 1
20505_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020506
Reid Spencerf9676532004-10-27 23:03:44 +000020507fi
20508
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020509
20510 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020511echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20512if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000020514else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020515
20516 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000020517ac_cpp='$CXXCPP $CPPFLAGS'
20518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20521
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020522 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020523/* confdefs.h. */
20524_ACEOF
20525cat confdefs.h >>conftest.$ac_ext
20526cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020527/* end confdefs.h. */
20528#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020529int
20530main ()
20531{
20532float f; std::isnan(f);
20533 ;
20534 return 0;
20535}
Brian Gaekec77683c2004-06-22 23:47:13 +000020536_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020537rm -f conftest.$ac_objext
20538if { (ac_try="$ac_compile"
20539case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542esac
20543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_compile") 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
20551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555esac
20556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest.$ac_objext'
20562 { (case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20565esac
20566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_try") 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020571 ac_cv_func_std_isnan_in_cmath=yes
20572else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020573 echo "$as_me: failed program was:" >&5
20574sed 's/^/| /' conftest.$ac_ext >&5
20575
20576 ac_cv_func_std_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000020577fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020578
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020580 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000020581ac_cpp='$CPP $CPPFLAGS'
20582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584ac_compiler_gnu=$ac_cv_c_compiler_gnu
20585
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020586
Brian Gaekec77683c2004-06-22 23:47:13 +000020587fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020588{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20589echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020590
20591if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020592
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020593cat >>confdefs.h <<\_ACEOF
20594#define HAVE_STD_ISNAN_IN_CMATH 1
20595_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020596
Reid Spencerf9676532004-10-27 23:03:44 +000020597fi
Brian Gaekec77683c2004-06-22 23:47:13 +000020598
20599
NAKAMURA Takumif7148bd2013-01-30 01:37:49 +000020600
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020601
20602 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020603echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20604if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020606else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020607
20608 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020609ac_cpp='$CXXCPP $CPPFLAGS'
20610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20613
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020614 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020615/* confdefs.h. */
20616_ACEOF
20617cat confdefs.h >>conftest.$ac_ext
20618cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020619/* end confdefs.h. */
20620#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000020621int
20622main ()
20623{
20624float f; isinf(f);
20625 ;
20626 return 0;
20627}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020628_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020629rm -f conftest.$ac_objext
20630if { (ac_try="$ac_compile"
20631case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634esac
20635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_compile") 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647esac
20648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; } &&
20653 { ac_try='test -s conftest.$ac_objext'
20654 { (case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20657esac
20658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_try") 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020663 ac_cv_func_isinf_in_math_h=yes
20664else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020665 echo "$as_me: failed program was:" >&5
20666sed 's/^/| /' conftest.$ac_ext >&5
20667
20668 ac_cv_func_isinf_in_math_h=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020669fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020670
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020672 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020673ac_cpp='$CPP $CPPFLAGS'
20674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20676ac_compiler_gnu=$ac_cv_c_compiler_gnu
20677
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020678
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020679fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020680{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20681echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020682
20683if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020684
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020685cat >>confdefs.h <<\_ACEOF
20686#define HAVE_ISINF_IN_MATH_H 1
20687_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020688
Reid Spencerf9676532004-10-27 23:03:44 +000020689fi
20690
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020691
20692 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020693echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20694if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020696else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020697
20698 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020699ac_cpp='$CXXCPP $CPPFLAGS'
20700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20703
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020704 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020705/* confdefs.h. */
20706_ACEOF
20707cat confdefs.h >>conftest.$ac_ext
20708cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020709/* end confdefs.h. */
20710#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020711int
20712main ()
20713{
20714float f; isinf(f);
20715 ;
20716 return 0;
20717}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020718_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020719rm -f conftest.$ac_objext
20720if { (ac_try="$ac_compile"
20721case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724esac
20725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20734 { (case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737esac
20738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_try") 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; } &&
20743 { ac_try='test -s conftest.$ac_objext'
20744 { (case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20747esac
20748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_try") 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020753 ac_cv_func_isinf_in_cmath=yes
20754else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020755 echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
20758 ac_cv_func_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020759fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020760
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020762 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020763ac_cpp='$CPP $CPPFLAGS'
20764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20766ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020768
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020769fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020770{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20771echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020772
20773if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020774
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020775cat >>confdefs.h <<\_ACEOF
20776#define HAVE_ISINF_IN_CMATH 1
20777_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020778
Reid Spencerf9676532004-10-27 23:03:44 +000020779fi
20780
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020781
20782 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020783echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20784if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020786else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020787
20788 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020789ac_cpp='$CXXCPP $CPPFLAGS'
20790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20793
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020794 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020795/* confdefs.h. */
20796_ACEOF
20797cat confdefs.h >>conftest.$ac_ext
20798cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020799/* end confdefs.h. */
20800#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020801int
20802main ()
20803{
Eric Christophereb75cc22012-03-26 02:09:01 +000020804float f; std::isinf(f);
Reid Spencerf9676532004-10-27 23:03:44 +000020805 ;
20806 return 0;
20807}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020808_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020809rm -f conftest.$ac_objext
20810if { (ac_try="$ac_compile"
20811case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20814esac
20815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_compile") 2>conftest.er1
20817 ac_status=$?
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20824 { (case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20827esac
20828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_try") 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; } &&
20833 { ac_try='test -s conftest.$ac_objext'
20834 { (case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20837esac
20838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_try") 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020843 ac_cv_func_std_isinf_in_cmath=yes
20844else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020845 echo "$as_me: failed program was:" >&5
20846sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020849fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020850
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020852 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020853ac_cpp='$CPP $CPPFLAGS'
20854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856ac_compiler_gnu=$ac_cv_c_compiler_gnu
20857
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020858
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020859fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020860{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20861echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020862
20863if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020864
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020865cat >>confdefs.h <<\_ACEOF
20866#define HAVE_STD_ISINF_IN_CMATH 1
20867_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000020868
Reid Spencerf9676532004-10-27 23:03:44 +000020869fi
20870
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020871
20872 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020873echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20874if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekea8704452004-07-21 03:33:58 +000020876else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020877
20878 ac_ext=cpp
Brian Gaekea8704452004-07-21 03:33:58 +000020879ac_cpp='$CXXCPP $CPPFLAGS'
20880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20883
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020884 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020885/* confdefs.h. */
20886_ACEOF
20887cat confdefs.h >>conftest.$ac_ext
20888cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000020889/* end confdefs.h. */
20890#include <ieeefp.h>
Reid Spencerf9676532004-10-27 23:03:44 +000020891int
20892main ()
20893{
20894float f; finite(f);
20895 ;
20896 return 0;
20897}
Brian Gaekea8704452004-07-21 03:33:58 +000020898_ACEOF
Jeffrey Yasskinbf5ce0a2010-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_cxx_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
Brian Gaekea8704452004-07-21 03:33:58 +000020933 ac_cv_func_finite_in_ieeefp_h=yes
20934else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020935 echo "$as_me: failed program was:" >&5
20936sed 's/^/| /' conftest.$ac_ext >&5
20937
20938 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaekea8704452004-07-21 03:33:58 +000020939fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020940
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020942 ac_ext=c
Brian Gaekea8704452004-07-21 03:33:58 +000020943ac_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
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020948
Brian Gaekea8704452004-07-21 03:33:58 +000020949fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020950{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20951echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020952
Brian Gaekeae050e02004-10-28 05:06:45 +000020953if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaekea8704452004-07-21 03:33:58 +000020954
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020955cat >>confdefs.h <<\_ACEOF
20956#define HAVE_FINITE_IN_IEEEFP_H 1
20957_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000020958
Reid Spencerf9676532004-10-27 23:03:44 +000020959fi
20960
20961
20962
Reid Spencerdfda0612007-01-20 07:48:49 +000020963if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell3ef61af2003-06-30 21:59:07 +000020964
20965
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020966for ac_header in stdlib.h unistd.h
20967do
20968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20974fi
20975ac_res=`eval echo '${'$as_ac_Header'}'`
20976 { echo "$as_me:$LINENO: result: $ac_res" >&5
20977echo "${ECHO_T}$ac_res" >&6; }
20978else
20979 # Is the header compilable?
20980{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20982cat >conftest.$ac_ext <<_ACEOF
20983/* confdefs.h. */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h. */
20988$ac_includes_default
20989#include <$ac_header>
20990_ACEOF
20991rm -f conftest.$ac_objext
20992if { (ac_try="$ac_compile"
20993case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20996esac
20997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_compile") 2>conftest.er1
20999 ac_status=$?
21000 grep -v '^ *+' conftest.er1 >conftest.err
21001 rm -f conftest.er1
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21006 { (case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009esac
21010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_try") 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
21016 { (case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019esac
21020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_try") 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_header_compiler=yes
21026else
21027 echo "$as_me: failed program was:" >&5
21028sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000021029
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021030 ac_header_compiler=no
21031fi
21032
21033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21035echo "${ECHO_T}$ac_header_compiler" >&6; }
21036
21037# Is the header present?
21038{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21040cat >conftest.$ac_ext <<_ACEOF
21041/* confdefs.h. */
21042_ACEOF
21043cat confdefs.h >>conftest.$ac_ext
21044cat >>conftest.$ac_ext <<_ACEOF
21045/* end confdefs.h. */
21046#include <$ac_header>
21047_ACEOF
21048if { (ac_try="$ac_cpp conftest.$ac_ext"
21049case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052esac
21053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } >/dev/null; then
21061 if test -s conftest.err; then
21062 ac_cpp_err=$ac_c_preproc_warn_flag
21063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21064 else
21065 ac_cpp_err=
21066 fi
21067else
21068 ac_cpp_err=yes
21069fi
21070if test -z "$ac_cpp_err"; then
21071 ac_header_preproc=yes
21072else
21073 echo "$as_me: failed program was:" >&5
21074sed 's/^/| /' conftest.$ac_ext >&5
21075
21076 ac_header_preproc=no
21077fi
21078
21079rm -f conftest.err conftest.$ac_ext
21080{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21081echo "${ECHO_T}$ac_header_preproc" >&6; }
21082
21083# So? What about this header?
21084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21085 yes:no: )
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21090 ac_header_preproc=yes
21091 ;;
21092 no:yes:* )
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21096echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21100echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21105 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000021106## ------------------------------------ ##
21107## Report this to http://llvm.org/bugs/ ##
21108## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021109_ASBOX
21110 ) | sed "s/^/$as_me: WARNING: /" >&2
21111 ;;
21112esac
21113{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21117else
21118 eval "$as_ac_Header=\$ac_header_preproc"
21119fi
21120ac_res=`eval echo '${'$as_ac_Header'}'`
21121 { echo "$as_me:$LINENO: result: $ac_res" >&5
21122echo "${ECHO_T}$ac_res" >&6; }
21123
21124fi
21125if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000021126 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000021128_ACEOF
21129
21130fi
21131
21132done
21133
21134
21135for ac_func in getpagesize
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021136do
21137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21138{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21140if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21142else
21143 cat >conftest.$ac_ext <<_ACEOF
21144/* confdefs.h. */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h. */
21149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21151#define $ac_func innocuous_$ac_func
21152
21153/* System header to define __stub macros and hopefully few prototypes,
21154 which can conflict with char $ac_func (); below.
21155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21156 <limits.h> exists even on freestanding compilers. */
21157
21158#ifdef __STDC__
21159# include <limits.h>
21160#else
21161# include <assert.h>
21162#endif
21163
21164#undef $ac_func
21165
21166/* Override any GCC internal prototype to avoid an error.
21167 Use char because int might match the return type of a GCC
21168 builtin and then its argument prototype would still apply. */
21169#ifdef __cplusplus
21170extern "C"
21171#endif
21172char $ac_func ();
21173/* The GNU C library defines this for functions which it implements
21174 to always fail with ENOSYS. Some functions are actually named
21175 something starting with __ and the normal name is an alias. */
21176#if defined __stub_$ac_func || defined __stub___$ac_func
21177choke me
21178#endif
21179
21180int
21181main ()
21182{
21183return $ac_func ();
21184 ;
21185 return 0;
21186}
21187_ACEOF
21188rm -f conftest.$ac_objext conftest$ac_exeext
21189if { (ac_try="$ac_link"
21190case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21193esac
21194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_link") 2>conftest.er1
21196 ac_status=$?
21197 grep -v '^ *+' conftest.er1 >conftest.err
21198 rm -f conftest.er1
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } &&
21202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21203 { (case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21206esac
21207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_try") 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; } &&
21212 { ac_try='test -s conftest$ac_exeext'
21213 { (case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21216esac
21217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_try") 2>&5
21219 ac_status=$?
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; }; then
21222 eval "$as_ac_var=yes"
21223else
21224 echo "$as_me: failed program was:" >&5
21225sed 's/^/| /' conftest.$ac_ext >&5
21226
21227 eval "$as_ac_var=no"
21228fi
21229
21230rm -f core conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
21232fi
21233ac_res=`eval echo '${'$as_ac_var'}'`
21234 { echo "$as_me:$LINENO: result: $ac_res" >&5
21235echo "${ECHO_T}$ac_res" >&6; }
21236if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000021237 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000021239_ACEOF
21240
21241fi
21242done
21243
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021244{ echo "$as_me:$LINENO: checking for working mmap" >&5
21245echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21246if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21247 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000021248else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021249 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000021250 ac_cv_func_mmap_fixed_mapped=no
21251else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021252 cat >conftest.$ac_ext <<_ACEOF
21253/* confdefs.h. */
21254_ACEOF
21255cat confdefs.h >>conftest.$ac_ext
21256cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000021257/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000021258$ac_includes_default
21259/* malloc might have been renamed as rpl_malloc. */
21260#undef malloc
21261
21262/* Thanks to Mike Haertel and Jim Avera for this test.
21263 Here is a matrix of mmap possibilities:
21264 mmap private not fixed
21265 mmap private fixed at somewhere currently unmapped
21266 mmap private fixed at somewhere already mapped
21267 mmap shared not fixed
21268 mmap shared fixed at somewhere currently unmapped
21269 mmap shared fixed at somewhere already mapped
21270 For private mappings, we should verify that changes cannot be read()
21271 back from the file, nor mmap's back from the file at a different
21272 address. (There have been systems where private was not correctly
21273 implemented like the infamous i386 svr4.0, and systems where the
21274 VM page cache was not coherent with the file system buffer cache
21275 like early versions of FreeBSD and possibly contemporary NetBSD.)
21276 For shared mappings, we should conversely verify that changes get
21277 propagated back to all the places they're supposed to be.
21278
21279 Grep wants private fixed already mapped.
21280 The main things grep needs to know about mmap are:
21281 * does it exist and is it safe to write into the mmap'd area
21282 * how to use it (BSD variants) */
21283
21284#include <fcntl.h>
21285#include <sys/mman.h>
21286
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021287#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +000021288char *malloc ();
21289#endif
21290
21291/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021292#if !HAVE_GETPAGESIZE
21293/* Assume that all systems that can run configure have sys/param.h. */
21294# if !HAVE_SYS_PARAM_H
21295# define HAVE_SYS_PARAM_H 1
21296# endif
21297
John Criswell3ef61af2003-06-30 21:59:07 +000021298# ifdef _SC_PAGESIZE
21299# define getpagesize() sysconf(_SC_PAGESIZE)
21300# else /* no _SC_PAGESIZE */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021301# if HAVE_SYS_PARAM_H
John Criswell3ef61af2003-06-30 21:59:07 +000021302# include <sys/param.h>
21303# ifdef EXEC_PAGESIZE
21304# define getpagesize() EXEC_PAGESIZE
21305# else /* no EXEC_PAGESIZE */
21306# ifdef NBPG
21307# define getpagesize() NBPG * CLSIZE
21308# ifndef CLSIZE
21309# define CLSIZE 1
21310# endif /* no CLSIZE */
21311# else /* no NBPG */
21312# ifdef NBPC
21313# define getpagesize() NBPC
21314# else /* no NBPC */
21315# ifdef PAGESIZE
21316# define getpagesize() PAGESIZE
21317# endif /* PAGESIZE */
21318# endif /* no NBPC */
21319# endif /* no NBPG */
21320# endif /* no EXEC_PAGESIZE */
21321# else /* no HAVE_SYS_PARAM_H */
21322# define getpagesize() 8192 /* punt totally */
21323# endif /* no HAVE_SYS_PARAM_H */
21324# endif /* no _SC_PAGESIZE */
21325
21326#endif /* no HAVE_GETPAGESIZE */
21327
21328int
21329main ()
21330{
21331 char *data, *data2, *data3;
21332 int i, pagesize;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021333 int fd;
John Criswell3ef61af2003-06-30 21:59:07 +000021334
21335 pagesize = getpagesize ();
21336
21337 /* First, make a file with some known garbage in it. */
21338 data = (char *) malloc (pagesize);
21339 if (!data)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021340 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021341 for (i = 0; i < pagesize; ++i)
21342 *(data + i) = rand ();
21343 umask (0);
21344 fd = creat ("conftest.mmap", 0600);
21345 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021346 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021347 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021348 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021349 close (fd);
21350
21351 /* Next, try to mmap the file at a fixed address which already has
21352 something else allocated at it. If we can, also make sure that
21353 we see the same garbage. */
21354 fd = open ("conftest.mmap", O_RDWR);
21355 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021356 return 1;
21357 data2 = (char *) malloc (2 * pagesize);
21358 if (!data2)
21359 return 1;
21360 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell3ef61af2003-06-30 21:59:07 +000021361 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencerf184a862004-09-19 23:53:36 +000021362 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021363 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021364 for (i = 0; i < pagesize; ++i)
21365 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021366 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021367
21368 /* Finally, make sure that changes to the mapped area do not
21369 percolate back to the file as seen by read(). (This is a bug on
21370 some variants of i386 svr4.0.) */
21371 for (i = 0; i < pagesize; ++i)
21372 *(data2 + i) = *(data2 + i) + 1;
21373 data3 = (char *) malloc (pagesize);
21374 if (!data3)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021375 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021376 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021377 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021378 for (i = 0; i < pagesize; ++i)
21379 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021380 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021381 close (fd);
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021382 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +000021383}
21384_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021385rm -f conftest$ac_exeext
21386if { (ac_try="$ac_link"
21387case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21390esac
21391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_link") 2>&5
21393 ac_status=$?
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21396 { (case "(($ac_try" in
21397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398 *) ac_try_echo=$ac_try;;
21399esac
21400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21401 (eval "$ac_try") 2>&5
21402 ac_status=$?
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000021405 ac_cv_func_mmap_fixed_mapped=yes
21406else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021407 echo "$as_me: program exited with status $ac_status" >&5
21408echo "$as_me: failed program was:" >&5
21409sed 's/^/| /' conftest.$ac_ext >&5
21410
21411( exit $ac_status )
21412ac_cv_func_mmap_fixed_mapped=no
John Criswell3ef61af2003-06-30 21:59:07 +000021413fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000021415fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021416
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021417
John Criswell3ef61af2003-06-30 21:59:07 +000021418fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021419{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21420echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000021421if test $ac_cv_func_mmap_fixed_mapped = yes; then
21422
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021423cat >>confdefs.h <<\_ACEOF
21424#define HAVE_MMAP 1
21425_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000021426
21427fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021428rm -f conftest.mmap
John Criswell3ef61af2003-06-30 21:59:07 +000021429
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021430 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21431echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21432if test "${ac_cv_func_mmap_file+set}" = set; then
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000021434else
Reid Spencerf184a862004-09-19 23:53:36 +000021435 ac_ext=c
John Criswell3ef61af2003-06-30 21:59:07 +000021436ac_cpp='$CPP $CPPFLAGS'
21437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21439ac_compiler_gnu=$ac_cv_c_compiler_gnu
21440
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021441 if test "$cross_compiling" = yes; then
Reid Spencer5a6815d2004-09-21 17:14:44 +000021442 ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000021443else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021444 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerac16ea92004-09-20 04:09:56 +000021445
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021446 /* confdefs.h. */
21447_ACEOF
21448cat confdefs.h >>conftest.$ac_ext
21449cat >>conftest.$ac_ext <<_ACEOF
21450/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000021451
John Criswell3ef61af2003-06-30 21:59:07 +000021452#include <sys/types.h>
John Criswelle3a9bd82003-10-09 15:44:28 +000021453#include <sys/mman.h>
John Criswell3ef61af2003-06-30 21:59:07 +000021454#include <fcntl.h>
Reid Spencerac16ea92004-09-20 04:09:56 +000021455
21456int
21457main ()
21458{
John Criswell3ef61af2003-06-30 21:59:07 +000021459
21460 int fd;
Reid Spencerac16ea92004-09-20 04:09:56 +000021461 fd = creat ("foo",0777);
21462 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21463 unlink ("foo");
Reid Spencer5a6815d2004-09-21 17:14:44 +000021464 return (fd != (int) MAP_FAILED);
Reid Spencerac16ea92004-09-20 04:09:56 +000021465 ;
21466 return 0;
21467}
John Criswell3ef61af2003-06-30 21:59:07 +000021468_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021469rm -f conftest$ac_exeext
21470if { (ac_try="$ac_link"
21471case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21474esac
21475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_link") 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21480 { (case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21483esac
21484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_try") 2>&5
21486 ac_status=$?
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000021489 ac_cv_func_mmap_file=yes
21490else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021491 echo "$as_me: program exited with status $ac_status" >&5
21492echo "$as_me: failed program was:" >&5
21493sed 's/^/| /' conftest.$ac_ext >&5
21494
21495( exit $ac_status )
21496ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000021497fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000021499fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021500
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021501
John Criswell3ef61af2003-06-30 21:59:07 +000021502 ac_ext=c
21503ac_cpp='$CPP $CPPFLAGS'
21504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506ac_compiler_gnu=$ac_cv_c_compiler_gnu
21507
21508
21509fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021510{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21511echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000021512if test "$ac_cv_func_mmap_file" = yes; then
John Criswelle3a9bd82003-10-09 15:44:28 +000021513
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021514cat >>confdefs.h <<\_ACEOF
21515#define HAVE_MMAP_FILE
21516_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000021517
21518 MMAP_FILE=yes
21519
21520fi
21521
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021522 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21523echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21524if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6681582004-12-27 06:15:02 +000021526else
Reid Spencer3d745d42004-12-29 07:07:57 +000021527 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencerb6681582004-12-27 06:15:02 +000021528 ac_cv_need_dev_zero_for_mmap=yes
21529 else
21530 ac_cv_need_dev_zero_for_mmap=no
21531 fi
21532
21533fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021534{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21535echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencerb6681582004-12-27 06:15:02 +000021536if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21537
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021538cat >>confdefs.h <<\_ACEOF
21539#define NEED_DEV_ZERO_FOR_MMAP 1
21540_ACEOF
Reid Spencerb6681582004-12-27 06:15:02 +000021541
21542fi
Reid Spencerf184a862004-09-19 23:53:36 +000021543
Reid Spencerdfda0612007-01-20 07:48:49 +000021544 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21545 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021546 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21547echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000021548 fi
21549 if test "$ac_cv_func_mmap_file" = "no"
21550 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021551 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21552echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000021553 fi
John Criswellb65ddad2003-07-22 21:00:24 +000021554fi
John Criswell3ef61af2003-06-30 21:59:07 +000021555
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021556{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21557echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7eb8112010-07-28 20:26:43 +000021558ac_ext=cpp
21559ac_cpp='$CXXCPP $CPPFLAGS'
21560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21563
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021564cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021565
21566 /* confdefs.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021567_ACEOF
21568cat confdefs.h >>conftest.$ac_ext
21569cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonb9509c52009-05-18 23:58:51 +000021570/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021571
21572 int main() {
21573 volatile unsigned long val = 1;
21574 __sync_synchronize();
21575 __sync_val_compare_and_swap(&val, 1, 0);
21576 __sync_add_and_fetch(&val, 1);
21577 __sync_sub_and_fetch(&val, 1);
21578 return 0;
21579 }
21580
Owen Andersonb9509c52009-05-18 23:58:51 +000021581
21582_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021583rm -f conftest.$ac_objext conftest$ac_exeext
21584if { (ac_try="$ac_link"
21585case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21588esac
21589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_link") 2>conftest.er1
21591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021598 { (case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21601esac
21602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_try") 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; } &&
21607 { ac_try='test -s conftest$ac_exeext'
21608 { (case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21611esac
21612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613 (eval "$ac_try") 2>&5
21614 ac_status=$?
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }; then
Eric Christopherf7eb8112010-07-28 20:26:43 +000021617
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021618 { echo "$as_me:$LINENO: result: yes" >&5
21619echo "${ECHO_T}yes" >&6; }
Owen Andersonaf5db832009-05-19 22:18:56 +000021620
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021621cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000021622#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021623_ACEOF
Owen Andersonaf5db832009-05-19 22:18:56 +000021624
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021625
Owen Andersonb9509c52009-05-18 23:58:51 +000021626else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021627 echo "$as_me: failed program was:" >&5
21628sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonb9509c52009-05-18 23:58:51 +000021629
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021630
21631 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021632echo "${ECHO_T}no" >&6; }
Owen Andersonb9509c52009-05-18 23:58:51 +000021633
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021634cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000021635#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021636_ACEOF
21637
21638 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21639echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021640
Owen Andersonb9509c52009-05-18 23:58:51 +000021641fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021642
Owen Andersonb9509c52009-05-18 23:58:51 +000021643rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021644 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021645ac_ext=c
21646ac_cpp='$CPP $CPPFLAGS'
21647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649ac_compiler_gnu=$ac_cv_c_compiler_gnu
21650
Owen Andersonb9509c52009-05-18 23:58:51 +000021651
John Criswell3ef61af2003-06-30 21:59:07 +000021652
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021653if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021654 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21655echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21656if test "${llvm_cv_linux_mixed+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021658else
21659 ac_ext=c
21660ac_cpp='$CPP $CPPFLAGS'
21661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21663ac_compiler_gnu=$ac_cv_c_compiler_gnu
21664
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021665 cat >conftest.$ac_ext <<_ACEOF
21666/* confdefs.h. */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021670/* end confdefs.h. */
21671#ifndef __x86_64__
21672 error: Not x86-64 even if uname says so!
21673 #endif
21674
21675int
21676main ()
21677{
21678
21679 ;
21680 return 0;
21681}
21682_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021683rm -f conftest.$ac_objext
21684if { (ac_try="$ac_compile"
21685case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688esac
21689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
21691 ac_status=$?
21692 grep -v '^ *+' conftest.er1 >conftest.err
21693 rm -f conftest.er1
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } &&
21697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21701esac
21702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try='test -s conftest.$ac_objext'
21708 { (case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21711esac
21712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_try") 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; }; then
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021717 llvm_cv_linux_mixed=no
21718else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021719 echo "$as_me: failed program was:" >&5
21720sed 's/^/| /' conftest.$ac_ext >&5
21721
21722 llvm_cv_linux_mixed=yes
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021723fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021724
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 ac_ext=c
21727ac_cpp='$CPP $CPPFLAGS'
21728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21730ac_compiler_gnu=$ac_cv_c_compiler_gnu
21731
21732
21733fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021734{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21735echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky9b3f7162009-09-29 06:18:23 +000021736
21737 if test "$llvm_cv_linux_mixed" = "yes"; then
21738 llvm_cv_target_arch="x86"
21739 ARCH="x86"
21740 fi
21741fi
21742
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021743
Reid Spencer32046f72007-07-30 20:13:24 +000021744for ac_func in __dso_handle
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021745do
21746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751else
21752 cat >conftest.$ac_ext <<_ACEOF
21753/* confdefs.h. */
21754_ACEOF
21755cat confdefs.h >>conftest.$ac_ext
21756cat >>conftest.$ac_ext <<_ACEOF
21757/* end confdefs.h. */
21758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21760#define $ac_func innocuous_$ac_func
21761
21762/* System header to define __stub macros and hopefully few prototypes,
21763 which can conflict with char $ac_func (); below.
21764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21765 <limits.h> exists even on freestanding compilers. */
21766
21767#ifdef __STDC__
21768# include <limits.h>
21769#else
21770# include <assert.h>
21771#endif
21772
21773#undef $ac_func
21774
21775/* Override any GCC internal prototype to avoid an error.
21776 Use char because int might match the return type of a GCC
21777 builtin and then its argument prototype would still apply. */
21778#ifdef __cplusplus
21779extern "C"
21780#endif
21781char $ac_func ();
21782/* The GNU C library defines this for functions which it implements
21783 to always fail with ENOSYS. Some functions are actually named
21784 something starting with __ and the normal name is an alias. */
21785#if defined __stub_$ac_func || defined __stub___$ac_func
21786choke me
21787#endif
21788
21789int
21790main ()
21791{
21792return $ac_func ();
21793 ;
21794 return 0;
21795}
21796_ACEOF
21797rm -f conftest.$ac_objext conftest$ac_exeext
21798if { (ac_try="$ac_link"
21799case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802esac
21803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
21805 ac_status=$?
21806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
21811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21812 { (case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21815esac
21816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_try") 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s conftest$ac_exeext'
21822 { (case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825esac
21826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_try") 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 eval "$as_ac_var=yes"
21832else
21833 echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
21836 eval "$as_ac_var=no"
21837fi
21838
21839rm -f core conftest.err conftest.$ac_objext \
21840 conftest$ac_exeext conftest.$ac_ext
21841fi
21842ac_res=`eval echo '${'$as_ac_var'}'`
21843 { echo "$as_me:$LINENO: result: $ac_res" >&5
21844echo "${ECHO_T}$ac_res" >&6; }
21845if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer32046f72007-07-30 20:13:24 +000021846 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer32046f72007-07-30 20:13:24 +000021848_ACEOF
21849
21850fi
21851done
21852
21853
Reid Spencera40c6872004-11-29 12:29:58 +000021854SHLIBEXT=$libltdl_cv_shlibext
Brian Gaekea2404522004-01-21 19:39:29 +000021855
21856
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000021857SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21858
21859
Jeff Cohenc5e5b272007-01-12 18:22:38 +000021860if test "${prefix}" = "NONE" ; then
Reid Spencer40f1b132006-05-16 08:53:32 +000021861 prefix="/usr/local"
21862fi
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021863eval LLVM_PREFIX="${prefix}";
21864eval LLVM_BINDIR="${prefix}/bin";
21865eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer0194c9a2004-11-29 04:56:35 +000021866eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb3762a02010-03-02 05:17:21 +000021867eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer0194c9a2004-11-29 04:56:35 +000021868eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021869eval LLVM_INCLUDEDIR="${prefix}/include";
21870eval LLVM_INFODIR="${prefix}/info";
21871eval LLVM_MANDIR="${prefix}/man";
21872LLVM_CONFIGTIME=`date`
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
Daniel Dunbar9370ecf2012-03-02 16:24:21 +000021884if test "${ENABLE_TIMESTAMPS}" = "0"; then
21885 LLVM_CONFIGTIME="(timestamp not enabled)"
21886fi
21887
Reid Spencer0241e382004-11-25 04:51:04 +000021888
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021889cat >>confdefs.h <<_ACEOF
21890#define LLVM_PREFIX "$LLVM_PREFIX"
21891_ACEOF
21892
21893
21894cat >>confdefs.h <<_ACEOF
21895#define LLVM_BINDIR "$LLVM_BINDIR"
21896_ACEOF
21897
21898
21899cat >>confdefs.h <<_ACEOF
21900#define LLVM_LIBDIR "$LLVM_LIBDIR"
21901_ACEOF
21902
21903
21904cat >>confdefs.h <<_ACEOF
21905#define LLVM_DATADIR "$LLVM_DATADIR"
21906_ACEOF
21907
21908
21909cat >>confdefs.h <<_ACEOF
Gordon Henriksen80f35e02007-10-03 12:07:14 +000021910#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021911_ACEOF
21912
21913
21914cat >>confdefs.h <<_ACEOF
Reid Spencer288adf12004-08-20 09:10:31 +000021915#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000021916_ACEOF
21917
21918
21919cat >>confdefs.h <<_ACEOF
21920#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21921_ACEOF
21922
21923
21924cat >>confdefs.h <<_ACEOF
21925#define LLVM_INFODIR "$LLVM_INFODIR"
21926_ACEOF
21927
21928
21929cat >>confdefs.h <<_ACEOF
21930#define LLVM_MANDIR "$LLVM_MANDIR"
21931_ACEOF
21932
21933
21934cat >>confdefs.h <<_ACEOF
21935#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21936_ACEOF
21937
21938
Eric Christophere62b4412007-12-01 00:34:39 +000021939cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi43652ae2012-07-22 03:04:52 +000021940#define LLVM_HOSTTRIPLE "$host"
21941_ACEOF
21942
21943
21944cat >>confdefs.h <<_ACEOF
Sebastian Popec2fb222011-11-01 21:31:44 +000021945#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christophere62b4412007-12-01 00:34:39 +000021946_ACEOF
21947
21948
Gordon Henriksene61dd672007-10-02 09:50:32 +000021949if test "$BINDINGS_TO_BUILD" = auto ; then
21950 BINDINGS_TO_BUILD=""
21951 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21952 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21953 fi
21954fi
21955BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21956
21957
Gordon Henriksene61dd672007-10-02 09:50:32 +000021958ALL_BINDINGS=ocaml
21959
21960
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000021961binding_prereqs_failed=0
21962for a_binding in $BINDINGS_TO_BUILD ; do
21963 case "$a_binding" in
21964 ocaml)
21965 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021966 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21967echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000021968 binding_prereqs_failed=1
21969 fi
21970 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021971 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21972echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000021973 binding_prereqs_failed=1
21974 fi
21975 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021976 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21977echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000021978 fi
21979 if test "x$with_ocaml_libdir" != xauto ; then
21980 OCAML_LIBDIR=$with_ocaml_libdir
21981
21982 else
21983 ocaml_stdlib="`"$OCAMLC" -where`"
21984 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21985 then
21986 # ocaml stdlib is beneath our prefix; use stdlib
21987 OCAML_LIBDIR=$ocaml_stdlib
21988
21989 else
21990 # ocaml stdlib is outside our prefix; use libdir/ocaml
21991 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21992
21993 fi
21994 fi
21995 ;;
21996 esac
21997done
21998if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021999 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22000echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22001 { (exit 1); exit 1; }; }
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022002fi
22003
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022004{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22005echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22006if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022008else
22009 ac_ext=cpp
22010ac_cpp='$CXXCPP $CPPFLAGS'
22011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22014
22015 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi652e0132012-02-19 12:05:12 +000022016 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022017 cat >conftest.$ac_ext <<_ACEOF
22018/* confdefs.h. */
22019_ACEOF
22020cat confdefs.h >>conftest.$ac_ext
22021cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022022/* end confdefs.h. */
Benjamin Kramer54671a72011-12-22 22:50:44 +000022023template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022024int
22025main ()
22026{
Benjamin Kramer942b2872011-12-22 22:25:26 +000022027X<int>().f();
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022028 ;
22029 return 0;
22030}
22031_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022032rm -f conftest.$ac_objext
22033if { (ac_try="$ac_compile"
22034case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22037esac
22038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_compile") 2>conftest.er1
22040 ac_status=$?
22041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
22046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22047 { (case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050esac
22051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_try") 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } &&
22056 { ac_try='test -s conftest.$ac_objext'
22057 { (case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22060esac
22061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_try") 2>&5
22063 ac_status=$?
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022066 llvm_cv_cxx_visibility_inlines_hidden=yes
22067else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022068 echo "$as_me: failed program was:" >&5
22069sed 's/^/| /' conftest.$ac_ext >&5
22070
22071 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022072fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022073
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 CXXFLAGS="$oldcxxflags"
22076 ac_ext=c
22077ac_cpp='$CPP $CPPFLAGS'
22078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080ac_compiler_gnu=$ac_cv_c_compiler_gnu
22081
22082
22083fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022084{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22085echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022086if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22087 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22088
22089else
22090 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22091
22092fi
22093
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022094
Nick Lewyckyc540cc62009-03-05 08:20:44 +000022095if test "$llvm_cv_link_use_r" = "yes" ; then
22096 RPATH="-Wl,-R"
22097else
22098 RPATH="-Wl,-rpath"
22099fi
22100
22101
22102if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22103 RDYNAMIC="-Wl,-export-dynamic"
22104else
22105 RDYNAMIC=""
22106fi
Nick Lewyckyed8472e2009-03-03 04:55:29 +000022107
22108
Reid Spencer0241e382004-11-25 04:51:04 +000022109
Eric Christopher97014d82010-08-08 02:44:25 +000022110ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer0241e382004-11-25 04:51:04 +000022111
Eric Christopher41983c62010-08-08 09:20:39 +000022112
22113
22114
22115
22116
Douglas Gregor1b731d52009-06-16 20:12:29 +000022117ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22118
22119ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22120
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000022121ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22122
Daniel Dunbar32027202009-11-25 04:37:28 +000022123ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22124
Michael J. Spencer447762d2010-11-29 18:16:10 +000022125ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer0241e382004-11-25 04:51:04 +000022126
Reid Spencer0241e382004-11-25 04:51:04 +000022127
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022128ac_config_files="$ac_config_files Makefile.config"
Reid Spencer0241e382004-11-25 04:51:04 +000022129
Eric Christopher49709ad2011-10-26 00:42:12 +000022130
Reid Spencer1277ba22006-08-16 00:45:38 +000022131ac_config_files="$ac_config_files llvm.spec"
22132
22133
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000022134ac_config_files="$ac_config_files docs/doxygen.cfg"
22135
Eric Christopherf1329892012-02-02 00:16:55 +000022136
Dylan Noblesmithe21a3b22012-02-04 02:41:36 +000022137if test "${clang_src_root}" = ""; then
Eric Christopherdc51a5d2012-02-02 01:11:30 +000022138 clang_src_root="$srcdir/tools/clang"
Eric Christopher7f977de2012-02-02 00:19:05 +000022139fi
Eric Christopherf1329892012-02-02 00:16:55 +000022140if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000022141 configh="include/clang/Config/config.h"
22142 doxy="docs/doxygen.cfg"
22143 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopherf1329892012-02-02 00:16:55 +000022144
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000022145 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000022146
22147fi
22148
Torok Edwin229f8d72011-10-14 20:38:02 +000022149ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencer6f682b72006-03-22 15:59:55 +000022150
Eric Christopher49709ad2011-10-26 00:42:12 +000022151
Jordan Rose3c837ab2012-10-01 18:40:32 +000022152test "x$program_prefix" = "xNONE" && program_prefix=""
22153
22154
22155
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022156ac_config_commands="$ac_config_commands setup"
Reid Spencereeedeaf2005-02-24 19:05:19 +000022157
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022158ac_config_commands="$ac_config_commands Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022159
22160
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022161ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer0241e382004-11-25 04:51:04 +000022162
22163
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022164ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022165
22166
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022167ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022168
22169
Reid Spencer4b8067f2006-11-17 03:32:33 +000022170ac_config_commands="$ac_config_commands runtime/Makefile"
22171
22172
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022173ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022174
22175
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022176ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer0241e382004-11-25 04:51:04 +000022177
22178
Bill Wendling7c53a182009-01-04 23:12:30 +000022179ac_config_commands="$ac_config_commands unittests/Makefile"
22180
22181
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022182ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022183
22184
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022185ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022186
22187
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022188ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022189
22190
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000022191ac_config_commands="$ac_config_commands bindings/Makefile"
22192
22193
22194ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22195
22196
Reid Spencer0241e382004-11-25 04:51:04 +000022197
John Criswell3ef61af2003-06-30 21:59:07 +000022198cat >confcache <<\_ACEOF
22199# This file is a shell script that caches the results of configure
22200# tests run on this system so they can be shared between configure
22201# scripts and configure runs, see configure's option --config-cache.
22202# It is not useful on other systems. If it contains results you don't
22203# want to keep, you may remove or edit it.
22204#
22205# config.status only pays attention to the cache file if you give it
22206# the --recheck option to rerun configure.
22207#
John Criswell3eaf0b42003-09-10 15:17:25 +000022208# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell3ef61af2003-06-30 21:59:07 +000022209# loading this file, other *unset* `ac_cv_foo' will be assigned the
22210# following values.
22211
22212_ACEOF
22213
22214# The following way of writing the cache mishandles newlines in values,
22215# but we know of no workaround that is simple, portable, and efficient.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022216# So, we kill variables containing newlines.
John Criswell3ef61af2003-06-30 21:59:07 +000022217# Ultrix sh set writes to stderr and can't be redirected directly,
22218# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022219(
22220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22221 eval ac_val=\$$ac_var
22222 case $ac_val in #(
22223 *${as_nl}*)
22224 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022225 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22226echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022227 esac
22228 case $ac_var in #(
22229 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022230 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022231 esac ;;
22232 esac
22233 done
22234
John Criswell3ef61af2003-06-30 21:59:07 +000022235 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22237 *${as_nl}ac_space=\ *)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022238 # `set' does not quote correctly, so add quotes (double-quote
22239 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell3ef61af2003-06-30 21:59:07 +000022240 sed -n \
Reid Spencerf184a862004-09-19 23:53:36 +000022241 "s/'/'\\\\''/g;
22242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022243 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +000022244 *)
22245 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +000022247 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022248 esac |
22249 sort
22250) |
John Criswell3ef61af2003-06-30 21:59:07 +000022251 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022252 /^ac_cv_env_/b end
John Criswell3ef61af2003-06-30 21:59:07 +000022253 t clear
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022254 :clear
John Criswell3ef61af2003-06-30 21:59:07 +000022255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22256 t end
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22258 :end' >>confcache
22259if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22260 if test -w "$cache_file"; then
22261 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022262 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22263echo "$as_me: updating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000022264 cat confcache >$cache_file
22265 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022266 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22267echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000022268 fi
22269fi
22270rm -f confcache
22271
22272test "x$prefix" = xNONE && prefix=$ac_default_prefix
22273# Let make expand exec_prefix.
22274test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22275
John Criswell3ef61af2003-06-30 21:59:07 +000022276DEFS=-DHAVE_CONFIG_H
22277
John Criswell3eaf0b42003-09-10 15:17:25 +000022278ac_libobjs=
22279ac_ltlibobjs=
22280for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22281 # 1. Remove the extension, and $U if already installed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022282 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022283 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22285 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022286 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22287 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell3eaf0b42003-09-10 15:17:25 +000022288done
22289LIBOBJS=$ac_libobjs
22290
22291LTLIBOBJS=$ac_ltlibobjs
22292
22293
Reid Spencera40c6872004-11-29 12:29:58 +000022294if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022295 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22296Usually this means the macro was only invoked conditionally." >&5
22297echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22298Usually this means the macro was only invoked conditionally." >&2;}
22299 { (exit 1); exit 1; }; }
Reid Spencera40c6872004-11-29 12:29:58 +000022300fi
22301if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022302 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22303Usually this means the macro was only invoked conditionally." >&5
22304echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22305Usually this means the macro was only invoked conditionally." >&2;}
22306 { (exit 1); exit 1; }; }
Reid Spencera40c6872004-11-29 12:29:58 +000022307fi
John Criswell3ef61af2003-06-30 21:59:07 +000022308
22309: ${CONFIG_STATUS=./config.status}
22310ac_clean_files_save=$ac_clean_files
22311ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022312{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22313echo "$as_me: creating $CONFIG_STATUS" >&6;}
22314cat >$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022315#! $SHELL
22316# Generated by $as_me.
22317# Run this file to recreate the current configuration.
22318# Compiler output produced by configure, useful for debugging
22319# configure, is in config.log if it exists.
22320
22321debug=false
John Criswell3eaf0b42003-09-10 15:17:25 +000022322ac_cs_recheck=false
22323ac_cs_silent=false
John Criswell3ef61af2003-06-30 21:59:07 +000022324SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022325_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022326
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022327cat >>$CONFIG_STATUS <<\_ACEOF
22328## --------------------- ##
22329## M4sh Initialization. ##
22330## --------------------- ##
22331
22332# Be Bourne compatible
22333if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3ef61af2003-06-30 21:59:07 +000022334 emulate sh
22335 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022336 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000022337 # is contrary to our usage. Disable this feature.
22338 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022339 setopt NO_GLOB_SUBST
22340else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022341 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3ef61af2003-06-30 21:59:07 +000022342fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022343BIN_SH=xpg4; export BIN_SH # for Tru64
22344DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3ef61af2003-06-30 21:59:07 +000022345
John Criswell3ef61af2003-06-30 21:59:07 +000022346
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022347# PATH needs CR
22348# Avoid depending upon Character Ranges.
22349as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22350as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22351as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22352as_cr_digits='0123456789'
22353as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3ef61af2003-06-30 21:59:07 +000022354
22355# The user is always right.
22356if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022357 echo "#! /bin/sh" >conf$$.sh
22358 echo "exit 0" >>conf$$.sh
22359 chmod +x conf$$.sh
22360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22361 PATH_SEPARATOR=';'
22362 else
22363 PATH_SEPARATOR=:
22364 fi
22365 rm -f conf$$.sh
22366fi
22367
22368# Support unset when possible.
22369if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22370 as_unset=unset
22371else
22372 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022373fi
John Criswell3ef61af2003-06-30 21:59:07 +000022374
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022375
22376# IFS
22377# We need space, tab and new line, in precisely that order. Quoting is
22378# there to prevent editors from complaining about space-tab.
22379# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22380# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022381as_nl='
22382'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022383IFS=" "" $as_nl"
22384
22385# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022386case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022387 *[\\/]* ) as_myself=$0 ;;
22388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3ef61af2003-06-30 21:59:07 +000022389for as_dir in $PATH
22390do
22391 IFS=$as_save_IFS
22392 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022393 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22394done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022395IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +000022396
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022397 ;;
22398esac
22399# We did not find ourselves, most probably we were run as `sh COMMAND'
22400# in which case we are not to be found in the path.
22401if test "x$as_myself" = x; then
22402 as_myself=$0
22403fi
22404if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022405 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22406 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022407fi
22408
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022409# Work around bugs in pre-3.0 UWIN ksh.
22410for as_var in ENV MAIL MAILPATH
22411do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022412done
22413PS1='$ '
22414PS2='> '
22415PS4='+ '
22416
22417# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022418for as_var in \
22419 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22420 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22421 LC_TELEPHONE LC_TIME
22422do
22423 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22424 eval $as_var=C; export $as_var
22425 else
22426 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +000022427 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022428done
Torok Edwinaec06332010-01-26 08:50:50 +000022429
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022430# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022431if expr a : '\(a\)' >/dev/null 2>&1 &&
22432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22433 as_expr=expr
22434else
22435 as_expr=false
22436fi
22437
22438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22439 as_basename=basename
22440else
22441 as_basename=false
22442fi
22443
22444
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022445# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022446as_me=`$as_basename -- "$0" ||
22447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22448 X"$0" : 'X\(//\)$' \| \
22449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022450echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022451 sed '/^.*\/\([^/][^/]*\)\/*$/{
22452 s//\1/
22453 q
22454 }
22455 /^X\/\(\/\/\)$/{
22456 s//\1/
22457 q
22458 }
22459 /^X\/\(\/\).*/{
22460 s//\1/
22461 q
22462 }
22463 s/.*/./; q'`
22464
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022465# CDPATH.
22466$as_unset CDPATH
22467
22468
22469
22470 as_lineno_1=$LINENO
22471 as_lineno_2=$LINENO
22472 test "x$as_lineno_1" != "x$as_lineno_2" &&
22473 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22474
22475 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22476 # uniformly replaced by the line number. The first 'sed' inserts a
22477 # line-number line after each line using $LINENO; the second 'sed'
22478 # does the real work. The second script uses 'N' to pair each
22479 # line-number line with the line containing $LINENO, and appends
22480 # trailing '-' during substitution so that $LINENO is not a special
22481 # case at line end.
22482 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22483 # scripts with optimization help from Paolo Bonzini. Blame Lee
22484 # E. McMahon (1931-1989) for sed's syntax. :-)
22485 sed -n '
22486 p
22487 /[$]LINENO/=
22488 ' <$as_myself |
22489 sed '
22490 s/[$]LINENO.*/&-/
22491 t lineno
22492 b
22493 :lineno
22494 N
22495 :loop
22496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22497 t loop
22498 s/-\n.*//
22499 ' >$as_me.lineno &&
22500 chmod +x "$as_me.lineno" ||
22501 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22502 { (exit 1); exit 1; }; }
22503
22504 # Don't try to exec as it changes $[0], causing all sort of problems
22505 # (the dirname of $[0] is not the place where we might find the
22506 # original and so on. Autoconf is especially sensitive to this).
22507 . "./$as_me.lineno"
22508 # Exit status is that of the last command.
22509 exit
22510}
22511
22512
22513if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22514 as_dirname=dirname
22515else
22516 as_dirname=false
22517fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022518
22519ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022520case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022521-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022522 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022524 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022525 esac;;
22526*)
22527 ECHO_N='-n';;
John Criswell3ef61af2003-06-30 21:59:07 +000022528esac
22529
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022530if expr a : '\(a\)' >/dev/null 2>&1 &&
22531 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22532 as_expr=expr
22533else
22534 as_expr=false
22535fi
22536
John Criswell3ef61af2003-06-30 21:59:07 +000022537rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022538if test -d conf$$.dir; then
22539 rm -f conf$$.dir/conf$$.file
22540else
22541 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022542 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022543fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022544echo >conf$$.file
22545if ln -s conf$$.file conf$$ 2>/dev/null; then
22546 as_ln_s='ln -s'
22547 # ... but there are two gotchas:
22548 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22549 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22550 # In both cases, we have to default to `cp -p'.
22551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3ef61af2003-06-30 21:59:07 +000022552 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022553elif ln conf$$.file conf$$ 2>/dev/null; then
22554 as_ln_s=ln
John Criswell3ef61af2003-06-30 21:59:07 +000022555else
22556 as_ln_s='cp -p'
22557fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022558rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22559rmdir conf$$.dir 2>/dev/null
John Criswell3ef61af2003-06-30 21:59:07 +000022560
John Criswell3eaf0b42003-09-10 15:17:25 +000022561if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022562 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +000022563else
Reid Spencerf184a862004-09-19 23:53:36 +000022564 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +000022565 as_mkdir_p=false
22566fi
22567
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022568# Find out whether ``test -x'' works. Don't use a zero-byte file, as
22569# systems may use methods other than mode bits to determine executability.
22570cat >conf$$.file <<_ASEOF
22571#! /bin/sh
22572exit 0
22573_ASEOF
22574chmod +x conf$$.file
22575if test -x conf$$.file >/dev/null 2>&1; then
22576 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022577else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022578 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022579fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022580rm -f conf$$.file
John Criswell3ef61af2003-06-30 21:59:07 +000022581
22582# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +000022583as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000022584
22585# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +000022586as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000022587
22588
John Criswell3ef61af2003-06-30 21:59:07 +000022589exec 6>&1
22590
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022591# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell3ef61af2003-06-30 21:59:07 +000022592# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022593# values after options handling.
22594ac_log="
Benjamin Kramer6900a4a2012-11-17 22:01:08 +000022595This file was extended by LLVM $as_me 3.3svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022596generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +000022597
22598 CONFIG_FILES = $CONFIG_FILES
22599 CONFIG_HEADERS = $CONFIG_HEADERS
22600 CONFIG_LINKS = $CONFIG_LINKS
22601 CONFIG_COMMANDS = $CONFIG_COMMANDS
22602 $ $0 $@
22603
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022604on `(hostname || uname -n) 2>/dev/null | sed 1q`
22605"
22606
John Criswell3ef61af2003-06-30 21:59:07 +000022607_ACEOF
22608
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022609cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022610# Files that config.status was made for.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022611config_files="$ac_config_files"
22612config_headers="$ac_config_headers"
22613config_commands="$ac_config_commands"
John Criswell3ef61af2003-06-30 21:59:07 +000022614
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022615_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022616
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022617cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022618ac_cs_usage="\
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022619\`$as_me' instantiates files from templates according to the
22620current configuration.
John Criswell3ef61af2003-06-30 21:59:07 +000022621
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022622Usage: $0 [OPTIONS] [FILE]...
John Criswell3ef61af2003-06-30 21:59:07 +000022623
22624 -h, --help print this help, then exit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022625 -V, --version print version number, then exit
22626 -q, --quiet do not print progress messages
John Criswell3ef61af2003-06-30 21:59:07 +000022627 -d, --debug don't remove temporary files
22628 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022629 --file=FILE[:TEMPLATE]
22630 instantiate the configuration file FILE
22631 --header=FILE[:TEMPLATE]
22632 instantiate the configuration header FILE
John Criswell3ef61af2003-06-30 21:59:07 +000022633
22634Configuration files:
22635$config_files
22636
22637Configuration headers:
22638$config_headers
22639
John Criswell3bac9bc2003-09-06 15:17:13 +000022640Configuration commands:
22641$config_commands
22642
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022643Report bugs to <bug-autoconf@gnu.org>."
John Criswell3ef61af2003-06-30 21:59:07 +000022644
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022645_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022646cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022647ac_cs_version="\\
Benjamin Kramer6900a4a2012-11-17 22:01:08 +000022648LLVM config.status 3.3svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022649configured by $0, generated by GNU Autoconf 2.60,
22650 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell3ef61af2003-06-30 21:59:07 +000022651
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022652Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +000022653This config.status script is free software; the Free Software Foundation
22654gives unlimited permission to copy, distribute and modify it."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022655
22656ac_pwd='$ac_pwd'
22657srcdir='$srcdir'
22658INSTALL='$INSTALL'
John Criswell3ef61af2003-06-30 21:59:07 +000022659_ACEOF
22660
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022661cat >>$CONFIG_STATUS <<\_ACEOF
22662# If no file are specified by the user, then we need to provide default
22663# value. By we need to know if files were specified by the user.
John Criswell3ef61af2003-06-30 21:59:07 +000022664ac_need_defaults=:
22665while test $# != 0
22666do
22667 case $1 in
22668 --*=*)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022669 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell3eaf0b42003-09-10 15:17:25 +000022671 ac_shift=:
John Criswell3ef61af2003-06-30 21:59:07 +000022672 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022673 *)
John Criswell3eaf0b42003-09-10 15:17:25 +000022674 ac_option=$1
22675 ac_optarg=$2
22676 ac_shift=shift
22677 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022678 esac
22679
John Criswell3eaf0b42003-09-10 15:17:25 +000022680 case $ac_option in
John Criswell3ef61af2003-06-30 21:59:07 +000022681 # Handling of the options.
John Criswell3eaf0b42003-09-10 15:17:25 +000022682 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22683 ac_cs_recheck=: ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022684 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022685 echo "$ac_cs_version"; exit ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022686 --debug | --debu | --deb | --de | --d | -d )
John Criswell3ef61af2003-06-30 21:59:07 +000022687 debug=: ;;
22688 --file | --fil | --fi | --f )
John Criswell3eaf0b42003-09-10 15:17:25 +000022689 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022690 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000022691 ac_need_defaults=false;;
22692 --header | --heade | --head | --hea )
John Criswell3eaf0b42003-09-10 15:17:25 +000022693 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022694 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000022695 ac_need_defaults=false;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022696 --he | --h)
22697 # Conflict between --help and --header
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022698 { echo "$as_me: error: ambiguous option: $1
22699Try \`$0 --help' for more information." >&2
22700 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022701 --help | --hel | -h )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022702 echo "$ac_cs_usage"; exit ;;
John Criswell3eaf0b42003-09-10 15:17:25 +000022703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22705 ac_cs_silent=: ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022706
22707 # This is an error.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022708 -*) { echo "$as_me: error: unrecognized option: $1
22709Try \`$0 --help' for more information." >&2
22710 { (exit 1); exit 1; }; } ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022711
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022712 *) ac_config_targets="$ac_config_targets $1"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022713 ac_need_defaults=false ;;
John Criswell3ef61af2003-06-30 21:59:07 +000022714
22715 esac
22716 shift
22717done
22718
John Criswell3eaf0b42003-09-10 15:17:25 +000022719ac_configure_extra_args=
22720
22721if $ac_cs_silent; then
22722 exec 6>/dev/null
22723 ac_configure_extra_args="$ac_configure_extra_args --silent"
22724fi
22725
22726_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022727cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000022728if \$ac_cs_recheck; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022729 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22730 CONFIG_SHELL=$SHELL
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022731 export CONFIG_SHELL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022732 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell3eaf0b42003-09-10 15:17:25 +000022733fi
22734
John Criswell3ef61af2003-06-30 21:59:07 +000022735_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022736cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022737exec 5>>config.log
22738{
22739 echo
22740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22741## Running $as_me. ##
22742_ASBOX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022743 echo "$ac_log"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022744} >&5
John Criswell3ef61af2003-06-30 21:59:07 +000022745
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022746_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022747cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3bac9bc2003-09-06 15:17:13 +000022748#
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022749# INIT-COMMANDS
John Criswell3bac9bc2003-09-06 15:17:13 +000022750#
Reid Spencereeedeaf2005-02-24 19:05:19 +000022751llvm_src="${srcdir}"
John Criswell3bac9bc2003-09-06 15:17:13 +000022752
22753_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022754
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022755cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022756
22757# Handling of arguments.
John Criswell3ef61af2003-06-30 21:59:07 +000022758for ac_config_target in $ac_config_targets
22759do
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022760 case $ac_config_target in
22761 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christopher97014d82010-08-08 02:44:25 +000022762 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1b731d52009-06-16 20:12:29 +000022763 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22764 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000022765 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar32027202009-11-25 04:37:28 +000022766 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer447762d2010-11-29 18:16:10 +000022767 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022768 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1277ba22006-08-16 00:45:38 +000022769 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000022770 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000022771 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22772 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher49709ad2011-10-26 00:42:12 +000022773 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022774 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22775 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22776 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22777 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22778 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer4b8067f2006-11-17 03:32:33 +000022779 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022780 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22781 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000022782 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022783 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22784 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22785 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000022786 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22787 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022788
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022789 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22790echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22791 { (exit 1); exit 1; }; };;
John Criswell3ef61af2003-06-30 21:59:07 +000022792 esac
22793done
22794
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022795
John Criswell3ef61af2003-06-30 21:59:07 +000022796# If the user did not use the arguments to specify the items to instantiate,
22797# then the envvar interface is used. Set only those that are not.
22798# We use the long form for the default assignment because of an extremely
22799# bizarre bug on SunOS 4.1.3.
22800if $ac_need_defaults; then
22801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswell3bac9bc2003-09-06 15:17:13 +000022803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell3ef61af2003-06-30 21:59:07 +000022804fi
22805
John Criswell3eaf0b42003-09-10 15:17:25 +000022806# Have a temporary directory for convenience. Make it in the build tree
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022807# simply because there is no reason against having it here, and in addition,
John Criswell3eaf0b42003-09-10 15:17:25 +000022808# creating and moving files from /tmp can sometimes cause problems.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022809# Hook for its removal unless debugging.
22810# Note that there is a small window in which the directory will not be cleaned:
22811# after its creation but before its name has been assigned to `$tmp'.
John Criswell3ef61af2003-06-30 21:59:07 +000022812$debug ||
22813{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022814 tmp=
22815 trap 'exit_status=$?
22816 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22817' 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022818 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell3ef61af2003-06-30 21:59:07 +000022819}
John Criswell3ef61af2003-06-30 21:59:07 +000022820# Create a (secure) tmp directory for tmp files.
John Criswell3eaf0b42003-09-10 15:17:25 +000022821
John Criswell3ef61af2003-06-30 21:59:07 +000022822{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022823 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell3ef61af2003-06-30 21:59:07 +000022824 test -n "$tmp" && test -d "$tmp"
22825} ||
22826{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022827 tmp=./conf$$-$RANDOM
22828 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022829} ||
22830{
22831 echo "$me: cannot create a temporary directory in ." >&2
22832 { (exit 1); exit 1; }
22833}
John Criswell3ef61af2003-06-30 21:59:07 +000022834
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022835#
22836# Set up the sed scripts for CONFIG_FILES section.
22837#
22838
22839# No need to generate the scripts if there are no CONFIG_FILES.
22840# This happens for instance when ./config.status config.h
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022841if test -n "$CONFIG_FILES"; then
John Criswell3ef61af2003-06-30 21:59:07 +000022842
22843_ACEOF
22844
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022845
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022846
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022847ac_delim='%!_!# '
22848for ac_last_try in false false false false false :; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022849 cat >conf$$subs.sed <<_ACEOF
22850SHELL!$SHELL$ac_delim
22851PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22852PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22853PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22854PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22855PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22856PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22857exec_prefix!$exec_prefix$ac_delim
22858prefix!$prefix$ac_delim
22859program_transform_name!$program_transform_name$ac_delim
22860bindir!$bindir$ac_delim
22861sbindir!$sbindir$ac_delim
22862libexecdir!$libexecdir$ac_delim
22863datarootdir!$datarootdir$ac_delim
22864datadir!$datadir$ac_delim
22865sysconfdir!$sysconfdir$ac_delim
22866sharedstatedir!$sharedstatedir$ac_delim
22867localstatedir!$localstatedir$ac_delim
22868includedir!$includedir$ac_delim
22869oldincludedir!$oldincludedir$ac_delim
22870docdir!$docdir$ac_delim
22871infodir!$infodir$ac_delim
22872htmldir!$htmldir$ac_delim
22873dvidir!$dvidir$ac_delim
22874pdfdir!$pdfdir$ac_delim
22875psdir!$psdir$ac_delim
22876libdir!$libdir$ac_delim
22877localedir!$localedir$ac_delim
22878mandir!$mandir$ac_delim
22879DEFS!$DEFS$ac_delim
22880ECHO_C!$ECHO_C$ac_delim
22881ECHO_N!$ECHO_N$ac_delim
22882ECHO_T!$ECHO_T$ac_delim
22883LIBS!$LIBS$ac_delim
22884build_alias!$build_alias$ac_delim
22885host_alias!$host_alias$ac_delim
22886target_alias!$target_alias$ac_delim
22887LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000022888CC!$CC$ac_delim
22889CFLAGS!$CFLAGS$ac_delim
22890LDFLAGS!$LDFLAGS$ac_delim
22891CPPFLAGS!$CPPFLAGS$ac_delim
22892ac_ct_CC!$ac_ct_CC$ac_delim
22893EXEEXT!$EXEEXT$ac_delim
22894OBJEXT!$OBJEXT$ac_delim
22895CXX!$CXX$ac_delim
22896CXXFLAGS!$CXXFLAGS$ac_delim
22897ac_ct_CXX!$ac_ct_CXX$ac_delim
22898CPP!$CPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022899subdirs!$subdirs$ac_delim
Tobias Grosserea9dca42010-10-30 00:54:26 +000022900ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22901LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022902build!$build$ac_delim
22903build_cpu!$build_cpu$ac_delim
22904build_vendor!$build_vendor$ac_delim
22905build_os!$build_os$ac_delim
22906host!$host$ac_delim
22907host_cpu!$host_cpu$ac_delim
22908host_vendor!$host_vendor$ac_delim
22909host_os!$host_os$ac_delim
22910target!$target$ac_delim
22911target_cpu!$target_cpu$ac_delim
22912target_vendor!$target_vendor$ac_delim
22913target_os!$target_os$ac_delim
22914OS!$OS$ac_delim
22915HOST_OS!$HOST_OS$ac_delim
22916TARGET_OS!$TARGET_OS$ac_delim
22917LINKALL!$LINKALL$ac_delim
22918NOLINKALL!$NOLINKALL$ac_delim
22919LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22920LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22921ARCH!$ARCH$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000022922HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022923ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022924GREP!$GREP$ac_delim
22925EGREP!$EGREP$ac_delim
22926LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22927BUILD_CC!$BUILD_CC$ac_delim
22928BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22929BUILD_CXX!$BUILD_CXX$ac_delim
22930CVSBUILD!$CVSBUILD$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000022931ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000022932ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000022933ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22934ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22935ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022936ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22937ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22938DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000022939ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022940ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22941EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22942DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22943DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000022944KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022945JIT!$JIT$ac_delim
22946TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022947_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022948
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022949 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022950 break
22951 elif $ac_last_try; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022952 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22953echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22954 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022955 else
22956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell3ef61af2003-06-30 21:59:07 +000022957 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022958done
22959
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022960ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22961if test -n "$ac_eof"; then
22962 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22963 ac_eof=`expr $ac_eof + 1`
22964fi
22965
22966cat >>$CONFIG_STATUS <<_ACEOF
22967cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022969_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022970sed '
22971s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22972s/^/s,@/; s/!/@,|#_!!_#|/
22973:n
22974t n
22975s/'"$ac_delim"'$/,g/; t
22976s/$/\\/; p
22977N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22978' >>$CONFIG_STATUS <conf$$subs.sed
22979rm -f conf$$subs.sed
22980cat >>$CONFIG_STATUS <<_ACEOF
22981CEOF$ac_eof
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022982_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022983
22984
22985ac_delim='%!_!# '
22986for ac_last_try in false false false false false :; do
22987 cat >conf$$subs.sed <<_ACEOF
Roman Divackyf2bb66b2012-12-13 16:07:19 +000022988ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22989ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22990LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000022991ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000022992LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000022993ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000022994ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000022995ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000022996ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherc6c2b9b2012-11-19 19:31:02 +000022997ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000022998TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22999LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23000LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +000023001LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumic6fce172010-12-29 03:59:03 +000023002LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000023003OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000023004EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbar3b95df82011-06-16 22:30:41 +000023005EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumi914f1922011-10-16 02:54:26 +000023006CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000023007BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilson3f354702011-11-28 07:59:52 +000023008INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023009NM!$NM$ac_delim
23010ifGNUmake!$ifGNUmake$ac_delim
23011LN_S!$LN_S$ac_delim
23012CMP!$CMP$ac_delim
23013CP!$CP$ac_delim
23014DATE!$DATE$ac_delim
23015FIND!$FIND$ac_delim
23016MKDIR!$MKDIR$ac_delim
23017MV!$MV$ac_delim
23018RANLIB!$RANLIB$ac_delim
23019AR!$AR$ac_delim
23020RM!$RM$ac_delim
23021SED!$SED$ac_delim
23022TAR!$TAR$ac_delim
23023BINPWD!$BINPWD$ac_delim
23024GRAPHVIZ!$GRAPHVIZ$ac_delim
23025DOT!$DOT$ac_delim
23026FDP!$FDP$ac_delim
23027NEATO!$NEATO$ac_delim
23028TWOPI!$TWOPI$ac_delim
23029CIRCO!$CIRCO$ac_delim
23030GV!$GV$ac_delim
23031DOTTY!$DOTTY$ac_delim
Dan Gohmana0da8892010-09-27 16:28:34 +000023032XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023033INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23034INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23035INSTALL_DATA!$INSTALL_DATA$ac_delim
23036BZIP2!$BZIP2$ac_delim
mike-me08af302010-05-06 23:45:43 +000023037CAT!$CAT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023038DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000023039GROFF!$GROFF$ac_delim
Eric Christopher77560892010-12-10 01:31:51 +000023040GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000023041PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023042ZIP!$ZIP$ac_delim
23043OCAMLC!$OCAMLC$ac_delim
23044OCAMLOPT!$OCAMLOPT$ac_delim
23045OCAMLDEP!$OCAMLDEP$ac_delim
23046OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000023047GAS!$GAS$ac_delim
Dan Gohmanb7edb422010-06-01 14:56:56 +000023048HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023049INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23050INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23051CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23052CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23053LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023054NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23055NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola42e94d12012-02-28 23:32:06 +000023056COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000023057NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23058NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000023059PYTHON!$PYTHON$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023060USE_UDIS86!$USE_UDIS86$ac_delim
23061USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky5262ad22012-03-13 08:33:15 +000023062USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopherc807c532012-08-03 19:47:19 +000023063XML2CONFIG!$XML2CONFIG$ac_delim
23064LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23065LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023066HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000023067HAVE_LIBZ!$HAVE_LIBZ$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023068HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23069MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023070SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000023071SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023072LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23073LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23074LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23075LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23076LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23077LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23078LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23079LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23080LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23081LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23082BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23083ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christopher155137b2011-09-20 23:58:15 +000023084OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023085_ACEOF
23086
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023088 break
23089 elif $ac_last_try; then
23090 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23091echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23092 { (exit 1); exit 1; }; }
23093 else
23094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23095 fi
23096done
23097
23098ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23099if test -n "$ac_eof"; then
23100 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23101 ac_eof=`expr $ac_eof + 1`
23102fi
23103
23104cat >>$CONFIG_STATUS <<_ACEOF
23105cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023106/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23107_ACEOF
23108sed '
23109s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23110s/^/s,@/; s/!/@,|#_!!_#|/
23111:n
23112t n
23113s/'"$ac_delim"'$/,g/; t
23114s/$/\\/; p
23115N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23116' >>$CONFIG_STATUS <conf$$subs.sed
23117rm -f conf$$subs.sed
23118cat >>$CONFIG_STATUS <<_ACEOF
23119CEOF$ac_eof
23120_ACEOF
23121
23122
23123ac_delim='%!_!# '
23124for ac_last_try in false false false false false :; do
23125 cat >conf$$subs.sed <<_ACEOF
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000023126ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23127RPATH!$RPATH$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000023128RDYNAMIC!$RDYNAMIC$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000023129program_prefix!$program_prefix$ac_delim
23130LIBOBJS!$LIBOBJS$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023131LTLIBOBJS!$LTLIBOBJS$ac_delim
23132_ACEOF
23133
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000023134 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023135 break
23136 elif $ac_last_try; then
23137 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23138echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23139 { (exit 1); exit 1; }; }
23140 else
23141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23142 fi
23143done
23144
23145ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23146if test -n "$ac_eof"; then
23147 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23148 ac_eof=`expr $ac_eof + 1`
23149fi
23150
23151cat >>$CONFIG_STATUS <<_ACEOF
23152cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose2998d252012-09-26 00:01:00 +000023153/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grosser61cb2452010-11-10 16:31:34 +000023154_ACEOF
23155sed '
23156s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23157s/^/s,@/; s/!/@,|#_!!_#|/
23158:n
23159t n
23160s/'"$ac_delim"'$/,g/; t
23161s/$/\\/; p
23162N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23163' >>$CONFIG_STATUS <conf$$subs.sed
23164rm -f conf$$subs.sed
23165cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose2998d252012-09-26 00:01:00 +000023166:end
23167s/|#_!!_#|//g
Tobias Grosser61cb2452010-11-10 16:31:34 +000023168CEOF$ac_eof
23169_ACEOF
23170
23171
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023172# VPATH may cause trouble with some makes, so we remove $(srcdir),
23173# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23174# trailing colons and then remove the whole line if VPATH becomes empty
23175# (actually we leave an empty line to preserve line numbers).
23176if test "x$srcdir" = x.; then
23177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23178s/:*\$(srcdir):*/:/
23179s/:*\${srcdir}:*/:/
23180s/:*@srcdir@:*/:/
23181s/^\([^=]*=[ ]*\):*/\1/
23182s/:*$//
23183s/^[^=]*=[ ]*$//
23184}'
23185fi
23186
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023187cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023188fi # test -n "$CONFIG_FILES"
23189
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023190
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023191for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023192do
23193 case $ac_tag in
23194 :[FHLC]) ac_mode=$ac_tag; continue;;
23195 esac
23196 case $ac_mode$ac_tag in
23197 :[FHL]*:*);;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023198 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23199echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23200 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023201 :[FH]-) ac_tag=-:-;;
23202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23203 esac
23204 ac_save_IFS=$IFS
23205 IFS=:
23206 set x $ac_tag
23207 IFS=$ac_save_IFS
23208 shift
23209 ac_file=$1
23210 shift
23211
23212 case $ac_mode in
23213 :L) ac_source=$1;;
23214 :[FH])
23215 ac_file_inputs=
23216 for ac_f
23217 do
23218 case $ac_f in
23219 -) ac_f="$tmp/stdin";;
23220 *) # Look for the file first in the build tree, then in the source tree
23221 # (if the path is not absolute). The absolute path cannot be DOS-style,
23222 # because $ac_f cannot contain `:'.
23223 test -f "$ac_f" ||
23224 case $ac_f in
23225 [\\/$]*) false;;
23226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23227 esac ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023228 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23229echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23230 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023231 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023232 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023233 done
23234
23235 # Let's still pretend it is `configure' which instantiates (i.e., don't
23236 # use $as_me), people would be surprised to read:
23237 # /* config.h. Generated by config.status. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023238 configure_input="Generated from "`IFS=:
23239 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023240 if test x"$ac_file" != x-; then
23241 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023242 { echo "$as_me:$LINENO: creating $ac_file" >&5
23243echo "$as_me: creating $ac_file" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023244 fi
23245
23246 case $ac_tag in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023247 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023248 esac
23249 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023250 esac
23251
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023252 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell3ef61af2003-06-30 21:59:07 +000023253$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencerf184a862004-09-19 23:53:36 +000023254 X"$ac_file" : 'X\(//\)[^/]' \| \
23255 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023256 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023257echo X"$ac_file" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23259 s//\1/
23260 q
23261 }
23262 /^X\(\/\/\)[^/].*/{
23263 s//\1/
23264 q
23265 }
23266 /^X\(\/\/\)$/{
23267 s//\1/
23268 q
23269 }
23270 /^X\(\/\).*/{
23271 s//\1/
23272 q
23273 }
23274 s/.*/./; q'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023275 { as_dir="$ac_dir"
23276 case $as_dir in #(
23277 -*) as_dir=./$as_dir;;
23278 esac
23279 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23280 as_dirs=
23281 while :; do
23282 case $as_dir in #(
23283 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23284 *) as_qdir=$as_dir;;
23285 esac
23286 as_dirs="'$as_qdir' $as_dirs"
23287 as_dir=`$as_dirname -- "$as_dir" ||
23288$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23289 X"$as_dir" : 'X\(//\)[^/]' \| \
23290 X"$as_dir" : 'X\(//\)$' \| \
23291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23292echo X"$as_dir" |
23293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23294 s//\1/
23295 q
23296 }
23297 /^X\(\/\/\)[^/].*/{
23298 s//\1/
23299 q
23300 }
23301 /^X\(\/\/\)$/{
23302 s//\1/
23303 q
23304 }
23305 /^X\(\/\).*/{
23306 s//\1/
23307 q
23308 }
23309 s/.*/./; q'`
23310 test -d "$as_dir" && break
23311 done
23312 test -z "$as_dirs" || eval "mkdir $as_dirs"
23313 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23314echo "$as_me: error: cannot create directory $as_dir" >&2;}
23315 { (exit 1); exit 1; }; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000023316 ac_builddir=.
23317
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023318case "$ac_dir" in
23319.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23320*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023322 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023323 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023324 case $ac_top_builddir_sub in
23325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23327 esac ;;
23328esac
23329ac_abs_top_builddir=$ac_pwd
23330ac_abs_builddir=$ac_pwd$ac_dir_suffix
23331# for backward compatibility:
23332ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +000023333
23334case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023335 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +000023336 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023337 ac_top_srcdir=$ac_top_builddir_sub
23338 ac_abs_top_srcdir=$ac_pwd ;;
23339 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +000023340 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023341 ac_top_srcdir=$srcdir
23342 ac_abs_top_srcdir=$srcdir ;;
23343 *) # Relative name.
23344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23345 ac_top_srcdir=$ac_top_build_prefix$srcdir
23346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023347esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023348ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +000023349
John Criswell3ef61af2003-06-30 21:59:07 +000023350
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023351 case $ac_mode in
23352 :F)
23353 #
23354 # CONFIG_FILE
23355 #
John Criswell3ef61af2003-06-30 21:59:07 +000023356
23357 case $INSTALL in
23358 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023359 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023360 esac
John Criswell3ef61af2003-06-30 21:59:07 +000023361_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023362
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023363cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023364# If the template does not know about datarootdir, expand it.
23365# FIXME: This hack should be removed a few years after 2.60.
23366ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023367
23368case `sed -n '/datarootdir/ {
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023369 p
23370 q
23371}
23372/@datadir@/p
23373/@docdir@/p
23374/@infodir@/p
23375/@localedir@/p
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023376/@mandir@/p
23377' $ac_file_inputs` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023378*datarootdir*) ac_datarootdir_seen=yes;;
23379*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023380 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23381echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023382_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023383cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023384 ac_datarootdir_hack='
23385 s&@datadir@&$datadir&g
23386 s&@docdir@&$docdir&g
23387 s&@infodir@&$infodir&g
23388 s&@localedir@&$localedir&g
23389 s&@mandir@&$mandir&g
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023390 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023391esac
23392_ACEOF
23393
23394# Neutralize VPATH when `$srcdir' = `.'.
23395# Shell code in configure.ac might set extrasub.
23396# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023397cat >>$CONFIG_STATUS <<_ACEOF
23398 sed "$ac_vpsub
John Criswell3ef61af2003-06-30 21:59:07 +000023399$extrasub
23400_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023401cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023402:t
23403/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023404s&@configure_input@&$configure_input&;t t
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023405s&@top_builddir@&$ac_top_builddir_sub&;t t
23406s&@srcdir@&$ac_srcdir&;t t
23407s&@abs_srcdir@&$ac_abs_srcdir&;t t
23408s&@top_srcdir@&$ac_top_srcdir&;t t
23409s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23410s&@builddir@&$ac_builddir&;t t
23411s&@abs_builddir@&$ac_abs_builddir&;t t
23412s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23413s&@INSTALL@&$ac_INSTALL&;t t
23414$ac_datarootdir_hack
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023415" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell3ef61af2003-06-30 21:59:07 +000023416
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023417test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23418 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023420 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023421which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023422echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023423which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000023424
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023425 rm -f "$tmp/stdin"
John Criswell3ef61af2003-06-30 21:59:07 +000023426 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023427 -) cat "$tmp/out"; rm -f "$tmp/out";;
23428 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23429 esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023430 ;;
23431 :H)
23432 #
23433 # CONFIG_HEADER
23434 #
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023435_ACEOF
23436
23437# Transform confdefs.h into a sed script `conftest.defines', that
23438# substitutes the proper values into config.h.in to produce config.h.
23439rm -f conftest.defines conftest.tail
23440# First, append a space to every undef/define line, to ease matching.
23441echo 's/$/ /' >conftest.defines
23442# Then, protect against being on the right side of a sed subst, or in
23443# an unquoted here document, in config.status. If some macros were
23444# called several times there might be several #defines for the same
23445# symbol, which is useless. But do not sort them, since the last
23446# AC_DEFINE must be honored.
23447ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23448# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23449# NAME is the cpp macro being defined, VALUE is the value it is being given.
23450# PARAMS is the parameter list in the macro definition--in most cases, it's
23451# just an empty string.
23452ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23453ac_dB='\\)[ (].*,\\1define\\2'
23454ac_dC=' '
23455ac_dD=' ,'
23456
23457uniq confdefs.h |
23458 sed -n '
23459 t rset
23460 :rset
23461 s/^[ ]*#[ ]*define[ ][ ]*//
23462 t ok
23463 d
23464 :ok
23465 s/[\\&,]/\\&/g
23466 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23467 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23468 ' >>conftest.defines
23469
23470# Remove the space that was appended to ease matching.
23471# Then replace #undef with comments. This is necessary, for
23472# example, in the case of _POSIX_SOURCE, which is predefined and required
23473# on some systems where configure will not decide to define it.
23474# (The regexp can be short, since the line contains either #define or #undef.)
23475echo 's/ $//
23476s,^[ #]*u.*,/* & */,' >>conftest.defines
23477
23478# Break up conftest.defines:
23479ac_max_sed_lines=50
23480
23481# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23482# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23483# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23484# et cetera.
23485ac_in='$ac_file_inputs'
23486ac_out='"$tmp/out1"'
23487ac_nxt='"$tmp/out2"'
23488
23489while :
23490do
23491 # Write a here document:
23492 cat >>$CONFIG_STATUS <<_ACEOF
23493 # First, check the format of the line:
23494 cat >"\$tmp/defines.sed" <<\\CEOF
23495/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23496/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23497b
23498:def
23499_ACEOF
23500 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23501 echo 'CEOF
23502 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23503 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23504 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23505 grep . conftest.tail >/dev/null || break
23506 rm -f conftest.defines
23507 mv conftest.tail conftest.defines
23508done
23509rm -f conftest.defines conftest.tail
23510
23511echo "ac_result=$ac_in" >>$CONFIG_STATUS
23512cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023513 if test x"$ac_file" != x-; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023514 echo "/* $configure_input */" >"$tmp/config.h"
23515 cat "$ac_result" >>"$tmp/config.h"
23516 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23517 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23518echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000023519 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023520 rm -f $ac_file
23521 mv "$tmp/config.h" $ac_file
John Criswell3ef61af2003-06-30 21:59:07 +000023522 fi
23523 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023524 echo "/* $configure_input */"
23525 cat "$ac_result"
John Criswell3ef61af2003-06-30 21:59:07 +000023526 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023527 rm -f "$tmp/out12"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023528 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000023529
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023530 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23531echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023532 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000023533 esac
John Criswell3ef61af2003-06-30 21:59:07 +000023534
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023535
23536 case $ac_file$ac_mode in
23537 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023538 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023539 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwind70eebe2009-08-28 16:12:48 +000023540 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023541 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023542 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023543 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023544 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer4b8067f2006-11-17 03:32:33 +000023545 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023546 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023547 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023548 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023549 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwind70eebe2009-08-28 16:12:48 +000023550 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000023551 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023552 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023553 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023554 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023555 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023556 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023557 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023558 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000023559 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023560 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000023561 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwind70eebe2009-08-28 16:12:48 +000023562 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023563
23564 esac
23565done # for ac_tag
23566
John Criswell3ef61af2003-06-30 21:59:07 +000023567
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023568{ (exit 0); exit 0; }
John Criswell3ef61af2003-06-30 21:59:07 +000023569_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023570chmod +x $CONFIG_STATUS
John Criswell3ef61af2003-06-30 21:59:07 +000023571ac_clean_files=$ac_clean_files_save
23572
23573
23574# configure is writing to config.log, and then calls config.status.
23575# config.status does its own redirection, appending to config.log.
23576# Unfortunately, on DOS this fails, as config.log is still kept open
23577# by configure, so config.status won't be able to write to it; its
23578# output is simply discarded. So we exec the FD to /dev/null,
23579# effectively closing config.log, so it can be properly (re)opened and
23580# appended to by config.status. When coming back to configure, we
23581# need to make the FD available again.
23582if test "$no_create" != yes; then
23583 ac_cs_success=:
John Criswell3eaf0b42003-09-10 15:17:25 +000023584 ac_config_status_args=
23585 test "$silent" = yes &&
23586 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell3ef61af2003-06-30 21:59:07 +000023587 exec 5>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +000023588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell3ef61af2003-06-30 21:59:07 +000023589 exec 5>>config.log
23590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23591 # would make configure fail if this is the last instruction.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023592 $ac_cs_success || { (exit 1); exit 1; }
John Criswell3ef61af2003-06-30 21:59:07 +000023593fi
23594
John Criswell2b3771e2003-09-30 15:55:44 +000023595#
23596# CONFIG_SUBDIRS section.
23597#
23598if test "$no_recursion" != yes; then
23599
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023600 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell2b3771e2003-09-30 15:55:44 +000023601 ac_sub_configure_args=
23602 ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023603 eval "set x $ac_configure_args"
23604 shift
23605 for ac_arg
23606 do
John Criswell2b3771e2003-09-30 15:55:44 +000023607 if test -n "$ac_prev"; then
23608 ac_prev=
23609 continue
23610 fi
23611 case $ac_arg in
23612 -cache-file | --cache-file | --cache-fil | --cache-fi \
23613 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23614 ac_prev=cache_file ;;
23615 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23616 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23617 | --c=*)
23618 ;;
23619 --config-cache | -C)
23620 ;;
23621 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23622 ac_prev=srcdir ;;
23623 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23624 ;;
23625 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23626 ac_prev=prefix ;;
23627 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23628 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023629 *)
23630 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023631 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023632 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023633 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell2b3771e2003-09-30 15:55:44 +000023634 esac
23635 done
23636
23637 # Always prepend --prefix to ensure using the same prefix
23638 # in subdir configurations.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023639 ac_arg="--prefix=$prefix"
23640 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023641 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023642 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023643 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell2b3771e2003-09-30 15:55:44 +000023644
23645 ac_popdir=`pwd`
23646 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23647
23648 # Do not complain, so a configure script can configure whichever
23649 # parts of a large source tree are present.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023650 test -d "$srcdir/$ac_dir" || continue
John Criswell2b3771e2003-09-30 15:55:44 +000023651
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023652 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023653 echo "$as_me:$LINENO: $ac_msg" >&5
23654 echo "$ac_msg" >&6
23655 { as_dir="$ac_dir"
23656 case $as_dir in #(
23657 -*) as_dir=./$as_dir;;
23658 esac
23659 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23660 as_dirs=
23661 while :; do
23662 case $as_dir in #(
23663 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23664 *) as_qdir=$as_dir;;
23665 esac
23666 as_dirs="'$as_qdir' $as_dirs"
23667 as_dir=`$as_dirname -- "$as_dir" ||
23668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23669 X"$as_dir" : 'X\(//\)[^/]' \| \
23670 X"$as_dir" : 'X\(//\)$' \| \
23671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23672echo X"$as_dir" |
23673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23674 s//\1/
23675 q
23676 }
23677 /^X\(\/\/\)[^/].*/{
23678 s//\1/
23679 q
23680 }
23681 /^X\(\/\/\)$/{
23682 s//\1/
23683 q
23684 }
23685 /^X\(\/\).*/{
23686 s//\1/
23687 q
23688 }
23689 s/.*/./; q'`
23690 test -d "$as_dir" && break
23691 done
23692 test -z "$as_dirs" || eval "mkdir $as_dirs"
23693 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23694echo "$as_me: error: cannot create directory $as_dir" >&2;}
23695 { (exit 1); exit 1; }; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000023696 ac_builddir=.
23697
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023698case "$ac_dir" in
23699.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23700*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023701 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023702 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023703 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023704 case $ac_top_builddir_sub in
23705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23707 esac ;;
23708esac
23709ac_abs_top_builddir=$ac_pwd
23710ac_abs_builddir=$ac_pwd$ac_dir_suffix
23711# for backward compatibility:
23712ac_top_builddir=$ac_top_build_prefix
John Criswell2b3771e2003-09-30 15:55:44 +000023713
23714case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023715 .) # We are building in place.
John Criswell2b3771e2003-09-30 15:55:44 +000023716 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023717 ac_top_srcdir=$ac_top_builddir_sub
23718 ac_abs_top_srcdir=$ac_pwd ;;
23719 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell2b3771e2003-09-30 15:55:44 +000023720 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023721 ac_top_srcdir=$srcdir
23722 ac_abs_top_srcdir=$srcdir ;;
23723 *) # Relative name.
23724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23725 ac_top_srcdir=$ac_top_build_prefix$srcdir
23726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell2b3771e2003-09-30 15:55:44 +000023727esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023728ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell2b3771e2003-09-30 15:55:44 +000023729
23730
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023731 cd "$ac_dir"
John Criswell2b3771e2003-09-30 15:55:44 +000023732
23733 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023734 if test -f "$ac_srcdir/configure.gnu"; then
23735 ac_sub_configure=$ac_srcdir/configure.gnu
23736 elif test -f "$ac_srcdir/configure"; then
23737 ac_sub_configure=$ac_srcdir/configure
23738 elif test -f "$ac_srcdir/configure.in"; then
23739 # This should be Cygnus configure.
23740 ac_sub_configure=$ac_aux_dir/configure
John Criswell2b3771e2003-09-30 15:55:44 +000023741 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023742 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23743echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell2b3771e2003-09-30 15:55:44 +000023744 ac_sub_configure=
23745 fi
23746
23747 # The recursion is here.
23748 if test -n "$ac_sub_configure"; then
23749 # Make the cache file name correct relative to the subdirectory.
23750 case $cache_file in
23751 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023752 *) # Relative name.
23753 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell2b3771e2003-09-30 15:55:44 +000023754 esac
23755
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023756 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23757echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell2b3771e2003-09-30 15:55:44 +000023758 # The eval makes quoting arguments work.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023759 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23760 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023761 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23762echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23763 { (exit 1); exit 1; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000023764 fi
23765
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023766 cd "$ac_popdir"
John Criswell2b3771e2003-09-30 15:55:44 +000023767 done
23768fi
23769