blob: 3664774fe97a4c6dc64d8125f8f5a9a5474d90dd [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000687ENABLE_CXX11
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000688ENABLE_OPTIMIZED
689ENABLE_PROFILING
690DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000691ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_EXPENSIVE_CHECKS
693EXPENSIVE_CHECKS
694DEBUG_RUNTIME
695DEBUG_SYMBOLS
Daniel Dunbar7126ee02012-08-14 18:14:22 +0000696KEEP_SYMBOLS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000697JIT
698TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000699ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000701LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000702ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000704ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000705ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000706ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000707TARGETS_TO_BUILD
708LLVM_ENUM_TARGETS
709LLVM_ENUM_ASM_PRINTERS
710LLVM_ENUM_ASM_PARSERS
711LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712OPTIMIZE_OPTION
713EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000714EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000715CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000716BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000717INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000718NM
719ifGNUmake
720LN_S
721CMP
722CP
723DATE
724FIND
725MKDIR
726MV
727RANLIB
728AR
729RM
730SED
731TAR
732BINPWD
733GRAPHVIZ
734DOT
735FDP
736NEATO
737TWOPI
738CIRCO
739GV
740DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000741XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000742INSTALL_PROGRAM
743INSTALL_SCRIPT
744INSTALL_DATA
745BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000746CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000748GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000749GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000750PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000756GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000757HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000765COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766USE_UDIS86
767USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000768USE_INTEL_JITEVENTS
769INTEL_JITEVENTS_INCDIR
770INTEL_JITEVENTS_LIBDIR
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000771XML2CONFIG
772LIBXML2_LIBS
773LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774HAVE_PTHREAD
775HUGE_VAL_SANITY
776MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000778SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVM_PREFIX
780LLVM_BINDIR
781LLVM_LIBDIR
782LLVM_DATADIR
783LLVM_DOCSDIR
784LLVM_ETCDIR
785LLVM_INCLUDEDIR
786LLVM_INFODIR
787LLVM_MANDIR
788LLVM_CONFIGTIME
789BINDINGS_TO_BUILD
790ALL_BINDINGS
791OCAML_LIBDIR
792ENABLE_VISIBILITY_INLINES_HIDDEN
793RPATH
794RDYNAMIC
Sebastian Popba48ceb2012-09-25 21:15:08 +0000795program_prefix
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000796LIBOBJS
797LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000798ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000799 ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000806CXX
807CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000808CCC
809CPP'
John Criswell0157f502010-03-19 21:31:39 +0000810ac_subdirs_all='projects/llvm-gcc
811projects/test-suite
812projects/llvm-test
813projects/poolalloc
814projects/llvm-poolalloc
815projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000817projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000819projects/llvm-java
820projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000821projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000822projects/llvm-kernel
823tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000824
825# Initialize some variables set by options.
826ac_init_help=
827ac_init_version=false
828# The variables have the same names as the options, with
829# dashes changed to underlines.
830cache_file=/dev/null
831exec_prefix=NONE
832no_create=
833no_recursion=
834prefix=NONE
835program_prefix=NONE
836program_suffix=NONE
837program_transform_name=s,x,x,
838silent=
839site=
840srcdir=
841verbose=
842x_includes=NONE
843x_libraries=NONE
844
845# Installation directory options.
846# These are left unexpanded so users can "make install exec_prefix=/foo"
847# and all the variables that are supposed to be based on exec_prefix
848# by default will actually change.
849# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000850# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000851bindir='${exec_prefix}/bin'
852sbindir='${exec_prefix}/sbin'
853libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000854datarootdir='${prefix}/share'
855datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000856sysconfdir='${prefix}/etc'
857sharedstatedir='${prefix}/com'
858localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000859includedir='${prefix}/include'
860oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000870
871ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000872ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000873for ac_option
874do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000877 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000878 ac_prev=
879 continue
880 fi
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_option in
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *) ac_optarg=yes ;;
885 esac
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000914 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000916 datadir=$ac_optarg ;;
917
Reid Spencera773bd52006-08-04 18:18:08 +0000918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
John Criswell7a73b802003-06-30 21:59:07 +0000925 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000926 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000927 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000943
944 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000945 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000946 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000947 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
Reid Spencera773bd52006-08-04 18:18:08 +0000978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
John Criswell7a73b802003-06-30 21:59:07 +0000984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
Reid Spencera773bd52006-08-04 18:18:08 +00001008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
John Criswell7a73b802003-06-30 21:59:07 +00001013 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
Reid Spencera773bd52006-08-04 18:18:08 +00001082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
John Criswell7a73b802003-06-30 21:59:07 +00001092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001142 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001143 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package| sed 's/-/_/g'`
1148 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001149
1150 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001152 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package | sed 's/-/_/g'`
1157 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001158
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1162
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1169
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001177 -*) { echo "$as_me: error: unrecognized option: $ac_option
1178Try \`$0 --help' for more information." >&2
1179 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001185 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001188 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001189 export $ac_envvar ;;
1190
1191 *)
1192 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001195 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 ;;
1198
1199 esac
1200done
1201
1202if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204 { echo "$as_me: error: missing argument to $ac_option" >&2
1205 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001206fi
1207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001208# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001209for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001213do
Reid Spencera773bd52006-08-04 18:18:08 +00001214 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001215 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001218 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001219 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001234 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
Reid Spencera773bd52006-08-04 18:18:08 +00001247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: Working directory cannot be determined" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001253 { echo "$as_me: error: pwd does not report name of working directory" >&2
1254 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001255
1256
John Criswell7a73b802003-06-30 21:59:07 +00001257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001260 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001261 ac_confdir=`$as_dirname -- "$0" ||
1262$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$0" : 'X\(//\)[^/]' \| \
1264 X"$0" : 'X\(//\)$' \| \
1265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001284 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001285 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001295fi
Reid Spencera773bd52006-08-04 18:18:08 +00001296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001298 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001300 pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
John Criswell7a73b802003-06-30 21:59:07 +00001317
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001325\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001326
1327Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332Defaults for the options are specified in brackets.
1333
1334Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
John Criswell7a73b802003-06-30 21:59:07 +00001345Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001347 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001349 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001350
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
1355
1356For better control, use the options below.
1357
1358Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001373 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001378_ACEOF
1379
1380 cat <<\_ACEOF
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001391 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001392 esac
1393 cat <<\_ACEOF
1394
1395Optional Features:
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001398 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001399 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001400 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001401 --enable-optimized Compile with optimizations enabled (default is NO)
1402 --enable-profiling Compile with profiling enabled (default is NO)
1403 --enable-assertions Compile with assertion checks enabled (default is
1404 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001405 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001406 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001407 Compile with expensive debug checks enabled (default
1408 is NO)
1409 --enable-debug-runtime Build runtime libs with debug symbols (default is
1410 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001411 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1412 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001413 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001414 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001415 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001416 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001417 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001418 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001419 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001420 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001421 --enable-shared Build a shared library and link tools against it
1422 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001423 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001424 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001425 --enable-timestamps Enable embedding timestamp information in build
1426 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001427 --enable-backtraces Enable embedding backtraces on crash (default is
1428 YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001429 --enable-targets Build specific host targets: all or
1430 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001431 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001432 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001433 --enable-experimental-targets
1434 Build experimental host targets: disable or
1435 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001436 --enable-bindings Build specific language bindings:
1437 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001438 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001439 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001440
1441Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001444 --with-optimize-option Select the compiler options to use for optimized
1445 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001446 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001447 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001448 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001450 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001451 --with-clang-resource-dir
1452 Relative directory from the Clang binary for
1453 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001454 --with-c-include-dirs Colon separated list of directories clang will
1455 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001456 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001457 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001458 --with-binutils-include Specify path to binutils/include/ containing
1459 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001460 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001461 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001462 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001463 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001464 --with-oprofile=<prefix>
1465 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001466 --with-intel-jitevents=<vtune-amplifier-dir>
1467 Specify location of run-time support library for
1468 Intel JIT API
1469 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001470
1471Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001472 CC C compiler command
1473 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001476 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001477 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001480 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
Eric Christopherf33ab862011-12-21 00:52:44 +00001485Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001486_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001487ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001493 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001494 ac_builddir=.
1495
Reid Spencera773bd52006-08-04 18:18:08 +00001496case "$ac_dir" in
1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001500 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001501 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506esac
1507ac_abs_top_builddir=$ac_pwd
1508ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509# for backward compatibility:
1510ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001511
1512case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001513 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001514 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001518 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001525esac
Reid Spencera773bd52006-08-04 18:18:08 +00001526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001527
Reid Spencera773bd52006-08-04 18:18:08 +00001528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001536 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001540 done
1541fi
1542
Reid Spencera773bd52006-08-04 18:18:08 +00001543test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001544if $ac_init_version; then
1545 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001546LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001547generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001549Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15502002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001551This configure script is free software; the Free Software Foundation
1552gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001553
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001554Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001556 exit
John Criswell7a73b802003-06-30 21:59:07 +00001557fi
Reid Spencera773bd52006-08-04 18:18:08 +00001558cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001559This file contains any messages produced by compilers while
1560running configure, to aid debugging if configure makes a mistake.
1561
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001562It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001563generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001564
1565 $ $0 $@
1566
1567_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001568exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001569{
1570cat <<_ASUNAME
1571## --------- ##
1572## Platform. ##
1573## --------- ##
1574
1575hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579uname -v = `(uname -v) 2>/dev/null || echo unknown`
1580
1581/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1583
1584/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1585/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1586/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001587/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001588/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1589/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1590/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1591
1592_ASUNAME
1593
1594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595for as_dir in $PATH
1596do
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001599 echo "PATH: $as_dir"
1600done
Reid Spencera773bd52006-08-04 18:18:08 +00001601IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001602
1603} >&5
1604
1605cat >&5 <<_ACEOF
1606
1607
1608## ----------- ##
1609## Core tests. ##
1610## ----------- ##
1611
1612_ACEOF
1613
1614
1615# Keep a trace of the command line.
1616# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001617# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001618# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001619# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001620ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001621ac_configure_args0=
1622ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001623ac_must_keep_next=false
1624for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001625do
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 for ac_arg
1627 do
1628 case $ac_arg in
1629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631 | -silent | --silent | --silen | --sile | --sil)
1632 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001633 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001634 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 esac
1636 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001637 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001639 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001641 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001643 case $ac_arg in
1644 *=* | --config-cache | -C | -disable-* | --disable-* \
1645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647 | -with-* | --with-* | -without-* | --without-* | --x)
1648 case "$ac_configure_args0 " in
1649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650 esac
1651 ;;
1652 -* ) ac_must_keep_next=true ;;
1653 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001654 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001655 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001656 ;;
1657 esac
1658 done
John Criswell7a73b802003-06-30 21:59:07 +00001659done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001660$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001662
1663# When interrupted or exit'd, cleanup temporary files, and complete
1664# config.log. We remove comments because anyway the quotes in there
1665# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001666# WARNING: Use '\'' to represent an apostrophe within the trap.
1667# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001668trap 'exit_status=$?
1669 # Save into config.log some information that might help in debugging.
1670 {
1671 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001672
John Criswell7a73b802003-06-30 21:59:07 +00001673 cat <<\_ASBOX
1674## ---------------- ##
1675## Cache variables. ##
1676## ---------------- ##
1677_ASBOX
1678 echo
1679 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001680(
1681 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682 eval ac_val=\$$ac_var
1683 case $ac_val in #(
1684 *${as_nl}*)
1685 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001686 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1687echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001688 esac
1689 case $ac_var in #(
1690 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001691 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001692 esac ;;
1693 esac
1694 done
John Criswell7a73b802003-06-30 21:59:07 +00001695 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001696 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1697 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001698 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001699 "s/'\''/'\''\\\\'\'''\''/g;
1700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1701 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001702 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001704 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001705 esac |
1706 sort
1707)
John Criswell7a73b802003-06-30 21:59:07 +00001708 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001709
1710 cat <<\_ASBOX
1711## ----------------- ##
1712## Output variables. ##
1713## ----------------- ##
1714_ASBOX
1715 echo
1716 for ac_var in $ac_subst_vars
1717 do
Reid Spencera773bd52006-08-04 18:18:08 +00001718 eval ac_val=\$$ac_var
1719 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001720 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001721 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001722 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001723 done | sort
1724 echo
1725
1726 if test -n "$ac_subst_files"; then
1727 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001728## ------------------- ##
1729## File substitutions. ##
1730## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001731_ASBOX
1732 echo
1733 for ac_var in $ac_subst_files
1734 do
Reid Spencera773bd52006-08-04 18:18:08 +00001735 eval ac_val=\$$ac_var
1736 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001738 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001739 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 done | sort
1741 echo
1742 fi
1743
John Criswell7a73b802003-06-30 21:59:07 +00001744 if test -s confdefs.h; then
1745 cat <<\_ASBOX
1746## ----------- ##
1747## confdefs.h. ##
1748## ----------- ##
1749_ASBOX
1750 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001751 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001752 echo
1753 fi
1754 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001755 echo "$as_me: caught signal $ac_signal"
1756 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001757 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001758 rm -f core *.core core.conftest.* &&
1759 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001760 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001761' 0
John Criswell7a73b802003-06-30 21:59:07 +00001762for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001763 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001764done
1765ac_signal=0
1766
1767# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001768rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001769
1770# Predefined preprocessor variables.
1771
1772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_NAME "$PACKAGE_NAME"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_VERSION "$PACKAGE_VERSION"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_STRING "$PACKAGE_STRING"
1789_ACEOF
1790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791
John Criswell7a73b802003-06-30 21:59:07 +00001792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1794_ACEOF
1795
1796
1797# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001799if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001801elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001802 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001803else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001804 set x "$ac_default_prefix/share/config.site" \
1805 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807shift
1808for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001809do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 if test -r "$ac_site_file"; then
1811 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1812echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001813 sed 's/^/| /' "$ac_site_file" >&5
1814 . "$ac_site_file"
1815 fi
1816done
1817
1818if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001819 # Some versions of bash will fail to source /dev/null (special
1820 # files actually), so we avoid doing that.
1821 if test -f "$cache_file"; then
1822 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1823echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001824 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001825 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1826 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001827 esac
1828 fi
1829else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001830 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1831echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001832 >$cache_file
1833fi
1834
1835# Check that the precious variables saved in the cache have kept the same
1836# value.
1837ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001838for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001839 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1840 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001841 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1842 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001843 case $ac_old_set,$ac_new_set in
1844 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1846echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001847 ac_cache_corrupted=: ;;
1848 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001849 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1850echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001851 ac_cache_corrupted=: ;;
1852 ,);;
1853 *)
1854 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1856echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1858echo "$as_me: former value: $ac_old_val" >&2;}
1859 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1860echo "$as_me: current value: $ac_new_val" >&2;}
1861 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001862 fi;;
1863 esac
1864 # Pass precious variables to config.status.
1865 if test "$ac_new_set" = set; then
1866 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001868 *) ac_arg=$ac_var=$ac_new_val ;;
1869 esac
1870 case " $ac_configure_args " in
1871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001872 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001873 esac
1874 fi
1875done
1876if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1881 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
Reid Spencera773bd52006-08-04 18:18:08 +00001907
John Criswell7a73b802003-06-30 21:59:07 +00001908ac_ext=c
1909ac_cpp='$CPP $CPPFLAGS'
1910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913
1914
1915
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001916cat >>confdefs.h <<\_ACEOF
1917#define LLVM_VERSION_MAJOR 3
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001922#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001923_ACEOF
1924
1925
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001926LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001927
1928
1929
1930
1931
1932
1933
John Criswell7a73b802003-06-30 21:59:07 +00001934ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001935for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
John Criswell7a73b802003-06-30 21:59:07 +00001949done
1950if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001954fi
Reid Spencera773bd52006-08-04 18:18:08 +00001955
1956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963
John Criswell7a73b802003-06-30 21:59:07 +00001964
John Criswell392aaa32003-07-22 19:18:09 +00001965
Reid Spencer2706f8c2004-09-19 23:53:36 +00001966if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001971 fi
John Criswell93e1c722003-09-15 17:04:06 +00001972fi
1973
Nick Lewycky83fc4472009-09-29 05:48:51 +00001974ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001975ac_cpp='$CPP $CPPFLAGS'
1976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001979if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001980 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001981 do
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001988else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001991else
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002001 break 2
2002 fi
2003done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002004done
Reid Spencera773bd52006-08-04 18:18:08 +00002005IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002006
2007fi
2008fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002011 { echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002013else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002014 { echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002016fi
2017
Reid Spencera773bd52006-08-04 18:18:08 +00002018
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002019 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002020 done
2021fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002022if test -z "$CC"; then
2023 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002024 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002025do
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002032else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002045 break 2
2046 fi
2047done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002048done
Reid Spencera773bd52006-08-04 18:18:08 +00002049IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002050
2051fi
2052fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002053ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002057else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002058 { echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002060fi
2061
Reid Spencera773bd52006-08-04 18:18:08 +00002062
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002064done
John Criswell7a73b802003-06-30 21:59:07 +00002065
Reid Spencera773bd52006-08-04 18:18:08 +00002066 if test "x$ac_ct_CC" = x; then
2067 CC=""
2068 else
2069 case $cross_compiling:$ac_tool_warned in
2070yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072whose name does not start with the host triplet. If you think this
2073configuration is useful to you, please write to autoconf@gnu.org." >&5
2074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075whose name does not start with the host triplet. If you think this
2076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002077ac_tool_warned=yes ;;
2078esac
2079 CC=$ac_ct_CC
2080 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081fi
2082
John Criswell7a73b802003-06-30 21:59:07 +00002083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002089
John Criswell7a73b802003-06-30 21:59:07 +00002090# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002091echo "$as_me:$LINENO: checking for C compiler version" >&5
2092ac_compiler=`set X $ac_compile; echo $2`
2093{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002100 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103{ (ac_try="$ac_compiler -v >&5"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113{ (ac_try="$ac_compiler -V >&5"
2114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
2118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002124cat >conftest.$ac_ext <<_ACEOF
2125/* confdefs.h. */
2126_ACEOF
2127cat confdefs.h >>conftest.$ac_ext
2128cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002130
John Criswell7a73b802003-06-30 21:59:07 +00002131int
2132main ()
2133{
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002140ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002141# Try to create an executable without -o first, disregard a.out.
2142# It will help us diagnose broken compilers, and finding out an intuition
2143# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002144{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147#
2148# List of possible output files, starting from the most likely.
2149# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150# only as a last resort. b.out is created by i960 compilers.
2151ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152#
2153# The IRIX 6 linker writes into existing files which may not be
2154# executable, retaining their permissions. Remove them first so a
2155# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002156ac_rmfiles=
2157for ac_file in $ac_files
2158do
2159 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 esac
2163done
2164rm -f $ac_rmfiles
2165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002167case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002172 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002173 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178# in a Makefile. We should not override ac_cv_exeext if it was cached,
2179# so that the user can short-circuit this test for compilers unknown to
2180# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002181for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002182do
2183 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002184 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002186 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 # We found the default executable, but exeext='' is most
2189 # certainly right.
2190 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002193 then :; else
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 fi
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2200 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002201 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002202 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002203 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002204 esac
2205done
Reid Spencera773bd52006-08-04 18:18:08 +00002206test "$ac_cv_exeext" = no && ac_cv_exeext=
2207
John Criswell7a73b802003-06-30 21:59:07 +00002208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002210sed 's/^/| /' conftest.$ac_ext >&5
2211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002212{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: C compiler cannot create executables
2215See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002217fi
John Criswell7a73b802003-06-30 21:59:07 +00002218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002219ac_exeext=$ac_cv_exeext
2220{ echo "$as_me:$LINENO: result: $ac_file" >&5
2221echo "${ECHO_T}$ac_file" >&6; }
2222
2223# Check that the compiler produces executables we can run. If not, either
2224# the compiler is broken, or we cross compile.
2225{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228# If not cross compiling, check that we can run a simple program.
2229if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 cross_compiling=no
2241 else
2242 if test "$cross_compiling" = maybe; then
2243 cross_compiling=yes
2244 else
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&5
2248echo "$as_me: error: cannot run C compiled programs.
2249If you meant to cross compile, use \`--host'.
2250See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2252 fi
2253 fi
2254fi
2255{ echo "$as_me:$LINENO: result: yes" >&5
2256echo "${ECHO_T}yes" >&6; }
2257
2258rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002259ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002260# Check that the compiler produces executables we can run. If not, either
2261# the compiler is broken, or we cross compile.
2262{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265echo "${ECHO_T}$cross_compiling" >&6; }
2266
2267{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002270case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002275 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002276 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281# work properly (i.e., refer to `conftest.exe'), while it won't with
2282# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002283for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002285 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002288 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002289 * ) break;;
2290 esac
2291done
2292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299
2300rm -f conftest$ac_cv_exeext
2301{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002303
2304rm -f conftest.$ac_ext
2305EXEEXT=$ac_cv_exeext
2306ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002307{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312 cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h. */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002318
John Criswell7a73b802003-06-30 21:59:07 +00002319int
2320main ()
2321{
2322
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002328if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002329case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002334 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002335 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002340 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 break;;
2344 esac
2345done
2346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002348sed 's/^/| /' conftest.$ac_ext >&5
2349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002350{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351See \`config.log' for more details." >&5
2352echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002356
John Criswell7a73b802003-06-30 21:59:07 +00002357rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002359{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002361OBJEXT=$ac_cv_objext
2362ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368 cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002374
John Criswell7a73b802003-06-30 21:59:07 +00002375int
2376main ()
2377{
2378#ifndef __GNUC__
2379 choke me
2380#endif
2381
2382 ;
2383 return 0;
2384}
2385_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002386rm -f conftest.$ac_objext
2387if { (ac_try="$ac_compile"
2388case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compile") 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404esac
2405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414esac
2415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002420 ac_compiler_gnu=yes
2421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427
Reid Spencera773bd52006-08-04 18:18:08 +00002428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002430
2431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002432{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435ac_test_CFLAGS=${CFLAGS+set}
2436ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002441else
Reid Spencera773bd52006-08-04 18:18:08 +00002442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2444 ac_cv_prog_cc_g=no
2445 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446 cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h. */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002452
John Criswell7a73b802003-06-30 21:59:07 +00002453int
2454main ()
2455{
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002461rm -f conftest.$ac_objext
2462if { (ac_try="$ac_compile"
2463case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002497 echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 CFLAGS=""
2501 cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002506/* end confdefs.h. */
2507
2508int
2509main ()
2510{
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002516rm -f conftest.$ac_objext
2517if { (ac_try="$ac_compile"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534esac
2535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544esac
2545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 :
Torok Edwin871384f2010-01-26 08:50:50 +00002551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002556 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002572rm -f conftest.$ac_objext
2573if { (ac_try="$ac_compile"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600esac
2601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002606 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607else
2608 echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611
John Criswell7a73b802003-06-30 21:59:07 +00002612fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002613
Reid Spencera773bd52006-08-04 18:18:08 +00002614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616
Reid Spencera773bd52006-08-04 18:18:08 +00002617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619
Reid Spencera773bd52006-08-04 18:18:08 +00002620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2629 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002630 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002632 fi
2633else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634 if test "$GCC" = yes; then
2635 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002636 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002638 fi
2639fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002640{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644else
Reid Spencera773bd52006-08-04 18:18:08 +00002645 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652/* end confdefs.h. */
2653#include <stdarg.h>
2654#include <stdio.h>
2655#include <sys/types.h>
2656#include <sys/stat.h>
2657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658struct buf { int x; };
2659FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660static char *e (p, i)
2661 char **p;
2662 int i;
2663{
2664 return p[i];
2665}
2666static char *f (char * (*g) (char **, int), char **p, ...)
2667{
2668 char *s;
2669 va_list v;
2670 va_start (v,p);
2671 s = g (p, va_arg (v,int));
2672 va_end (v);
2673 return s;
2674}
2675
2676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002679 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002682 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684
Reid Spencera773bd52006-08-04 18:18:08 +00002685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2687#define FOO(x) 'x'
2688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690int test (int i, double x);
2691struct s1 {int (*f) (int a);};
2692struct s2 {int (*f) (double a);};
2693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694int argc;
2695char **argv;
2696int
2697main ()
2698{
2699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 ;
2701 return 0;
2702}
2703_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706do
2707 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002708 rm -f conftest.$ac_objext
2709if { (ac_try="$ac_compile"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002742 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743else
2744 echo "$as_me: failed program was:" >&5
2745sed 's/^/| /' conftest.$ac_ext >&5
2746
2747
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749
Reid Spencera773bd52006-08-04 18:18:08 +00002750rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752done
Reid Spencera773bd52006-08-04 18:18:08 +00002753rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002754CC=$ac_save_CC
2755
2756fi
Reid Spencera773bd52006-08-04 18:18:08 +00002757# AC_CACHE_VAL
2758case "x$ac_cv_prog_cc_c89" in
2759 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002760 { echo "$as_me:$LINENO: result: none needed" >&5
2761echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002762 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002765 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002766 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002769esac
2770
John Criswell0c38eaf2003-09-10 15:17:25 +00002771
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
Eric Christopherffee5722011-09-16 20:36:25 +00002778ac_ext=cpp
2779ac_cpp='$CXXCPP $CPPFLAGS'
2780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2785 CXX=$CCC
2786 else
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2789 do
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796else
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811done
2812done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817CXX=$ac_cv_prog_CXX
2818if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820echo "${ECHO_T}$CXX" >&6; }
2821else
2822 { echo "$as_me:$LINENO: result: no" >&5
2823echo "${ECHO_T}no" >&6; }
2824fi
2825
2826
2827 test -n "$CXX" && break
2828 done
2829fi
2830if test -z "$CXX"; then
2831 ac_ct_CXX=$CXX
2832 for ac_prog in clang++ llvm-g++ g++
2833do
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835set dummy $ac_prog; ac_word=$2
2836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855done
2856done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865else
2866 { echo "$as_me:$LINENO: result: no" >&5
2867echo "${ECHO_T}no" >&6; }
2868fi
2869
2870
2871 test -n "$ac_ct_CXX" && break
2872done
2873
2874 if test "x$ac_ct_CXX" = x; then
2875 CXX="g++"
2876 else
2877 case $cross_compiling:$ac_tool_warned in
2878yes:)
2879{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880whose name does not start with the host triplet. If you think this
2881configuration is useful to you, please write to autoconf@gnu.org." >&5
2882echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883whose name does not start with the host triplet. If you think this
2884configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887 CXX=$ac_ct_CXX
2888 fi
2889fi
2890
2891 fi
2892fi
2893# Provide some information about the compiler.
2894echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895ac_compiler=`set X $ac_compile; echo $2`
2896{ (ac_try="$ac_compiler --version >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906{ (ac_try="$ac_compiler -v >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916{ (ac_try="$ac_compiler -V >&5"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926
2927{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942#ifndef __GNUC__
2943 choke me
2944#endif
2945
2946 ;
2947 return 0;
2948}
2949_ACEOF
2950rm -f conftest.$ac_objext
2951if { (ac_try="$ac_compile"
2952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_compiler_gnu=yes
2985else
2986 echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989 ac_compiler_gnu=no
2990fi
2991
2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994
2995fi
2996{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998GXX=`test $ac_compiler_gnu = yes && echo yes`
2999ac_test_CXXFLAGS=${CXXFLAGS+set}
3000ac_save_CXXFLAGS=$CXXFLAGS
3001{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3008 ac_cv_prog_cxx_g=no
3009 CXXFLAGS="-g"
3010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016
3017int
3018main ()
3019{
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025rm -f conftest.$ac_objext
3026if { (ac_try="$ac_compile"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3060else
3061 echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 CXXFLAGS=""
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075
3076 ;
3077 return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
3081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3114 :
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120 CXXFLAGS="-g"
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3176fi
3177
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
3180
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182fi
3183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186fi
3187{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3193 CXXFLAGS="-g -O2"
3194 else
3195 CXXFLAGS="-g"
3196 fi
3197else
3198 if test "$GXX" = yes; then
3199 CXXFLAGS="-O2"
3200 else
3201 CXXFLAGS=
3202 fi
3203fi
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003215{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003217# On Suns, sometimes $CPP names a directory.
3218if test -n "$CPP" && test -d "$CPP"; then
3219 CPP=
3220fi
3221if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003224else
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227 do
3228 ac_preproc_ok=false
3229for ac_c_preproc_warn_flag in '' yes
3230do
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003237 cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242/* end confdefs.h. */
3243#ifdef __STDC__
3244# include <limits.h>
3245#else
3246# include <assert.h>
3247#endif
3248 Syntax error
3249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003250if { (ac_try="$ac_cpp conftest.$ac_ext"
3251case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266 else
3267 ac_cpp_err=
3268 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003269else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003270 ac_cpp_err=yes
3271fi
3272if test -z "$ac_cpp_err"; then
3273 :
3274else
3275 echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278 # Broken: fails on valid input.
3279continue
3280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003281
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282rm -f conftest.err conftest.$ac_ext
3283
Reid Spencera773bd52006-08-04 18:18:08 +00003284 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003285 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291/* end confdefs.h. */
3292#include <ac_nonexistent.h>
3293_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003294if { (ac_try="$ac_cpp conftest.$ac_ext"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310 else
3311 ac_cpp_err=
3312 fi
3313else
3314 ac_cpp_err=yes
3315fi
3316if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317 # Broken: success on invalid input.
3318continue
3319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323 # Passes both tests.
3324ac_preproc_ok=:
3325break
3326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328rm -f conftest.err conftest.$ac_ext
3329
3330done
3331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334 break
3335fi
3336
3337 done
3338 ac_cv_prog_CPP=$CPP
3339
3340fi
3341 CPP=$ac_cv_prog_CPP
3342else
3343 ac_cv_prog_CPP=$CPP
3344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003345{ echo "$as_me:$LINENO: result: $CPP" >&5
3346echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356 cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361/* end confdefs.h. */
3362#ifdef __STDC__
3363# include <limits.h>
3364#else
3365# include <assert.h>
3366#endif
3367 Syntax error
3368_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369if { (ac_try="$ac_cpp conftest.$ac_ext"
3370case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385 else
3386 ac_cpp_err=
3387 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003389 ac_cpp_err=yes
3390fi
3391if test -z "$ac_cpp_err"; then
3392 :
3393else
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397 # Broken: fails on valid input.
3398continue
3399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401rm -f conftest.err conftest.$ac_ext
3402
Reid Spencera773bd52006-08-04 18:18:08 +00003403 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405 cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410/* end confdefs.h. */
3411#include <ac_nonexistent.h>
3412_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003413if { (ac_try="$ac_cpp conftest.$ac_ext"
3414case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
3418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429 else
3430 ac_cpp_err=
3431 fi
3432else
3433 ac_cpp_err=yes
3434fi
3435if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003436 # Broken: success on invalid input.
3437continue
3438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003439 echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442 # Passes both tests.
3443ac_preproc_ok=:
3444break
3445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003452if $ac_preproc_ok; then
3453 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details." >&5
3457echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460fi
3461
John Criswell7a73b802003-06-30 21:59:07 +00003462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
John Criswell7a73b802003-06-30 21:59:07 +00003468
Eric Christopherffee5722011-09-16 20:36:25 +00003469
3470
3471if test -d ${srcdir}/projects/llvm-gcc ; then
3472 subdirs="$subdirs projects/llvm-gcc"
3473
3474fi
3475
3476if test -d ${srcdir}/projects/test-suite ; then
3477 subdirs="$subdirs projects/test-suite"
3478
3479fi
3480
3481if test -d ${srcdir}/projects/llvm-test ; then
3482 subdirs="$subdirs projects/llvm-test"
3483
3484fi
3485
3486if test -d ${srcdir}/projects/poolalloc ; then
3487 subdirs="$subdirs projects/poolalloc"
3488
3489fi
3490
3491if test -d ${srcdir}/projects/llvm-poolalloc ; then
3492 subdirs="$subdirs projects/llvm-poolalloc"
3493
3494fi
3495
3496for i in `ls ${srcdir}/projects`
3497do
3498 if test -d ${srcdir}/projects/${i} ; then
3499 case ${i} in
3500 sample) subdirs="$subdirs projects/sample"
3501 ;;
3502 privbracket) subdirs="$subdirs projects/privbracket"
3503 ;;
3504 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3505 ;;
3506 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3507;;
3508 llvm-java) subdirs="$subdirs projects/llvm-java"
3509 ;;
3510 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3511 ;;
3512 safecode) subdirs="$subdirs projects/safecode"
3513 ;;
3514 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3515 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003516 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003517 llvm-gcc) ;;
3518 test-suite) ;;
3519 llvm-test) ;;
3520 poolalloc) ;;
3521 llvm-poolalloc) ;;
3522 *)
3523 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3524echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3525 ;;
3526 esac
3527 fi
3528done
3529
3530# Check whether --enable-polly was given.
3531if test "${enable_polly+set}" = set; then
3532 enableval=$enable_polly;
3533else
3534 enableval=default
3535fi
3536
3537case "$enableval" in
3538 yes) ENABLE_POLLY=1
3539 ;;
3540 no) ENABLE_POLLY=0
3541 ;;
3542 default) ENABLE_POLLY=1
3543 ;;
3544 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3545echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3546 { (exit 1); exit 1; }; } ;;
3547esac
3548
3549
3550if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3551 LLVM_HAS_POLLY=1
3552
3553 subdirs="$subdirs tools/polly"
3554
3555fi
3556
3557
3558# Make sure we can run config.sub.
3559$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3560 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3561echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3562 { (exit 1); exit 1; }; }
3563
3564{ echo "$as_me:$LINENO: checking build system type" >&5
3565echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3566if test "${ac_cv_build+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 ac_build_alias=$build_alias
3570test "x$ac_build_alias" = x &&
3571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3572test "x$ac_build_alias" = x &&
3573 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3574echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3575 { (exit 1); exit 1; }; }
3576ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3577 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3578echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3579 { (exit 1); exit 1; }; }
3580
3581fi
3582{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3583echo "${ECHO_T}$ac_cv_build" >&6; }
3584case $ac_cv_build in
3585*-*-*) ;;
3586*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3587echo "$as_me: error: invalid value of canonical build" >&2;}
3588 { (exit 1); exit 1; }; };;
3589esac
3590build=$ac_cv_build
3591ac_save_IFS=$IFS; IFS='-'
3592set x $ac_cv_build
3593shift
3594build_cpu=$1
3595build_vendor=$2
3596shift; shift
3597# Remember, the first character of IFS is used to create $*,
3598# except with old shells:
3599build_os=$*
3600IFS=$ac_save_IFS
3601case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3602
3603
3604{ echo "$as_me:$LINENO: checking host system type" >&5
3605echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3606if test "${ac_cv_host+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 if test "x$host_alias" = x; then
3610 ac_cv_host=$ac_cv_build
3611else
3612 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3613 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3614echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3615 { (exit 1); exit 1; }; }
3616fi
3617
3618fi
3619{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3620echo "${ECHO_T}$ac_cv_host" >&6; }
3621case $ac_cv_host in
3622*-*-*) ;;
3623*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3624echo "$as_me: error: invalid value of canonical host" >&2;}
3625 { (exit 1); exit 1; }; };;
3626esac
3627host=$ac_cv_host
3628ac_save_IFS=$IFS; IFS='-'
3629set x $ac_cv_host
3630shift
3631host_cpu=$1
3632host_vendor=$2
3633shift; shift
3634# Remember, the first character of IFS is used to create $*,
3635# except with old shells:
3636host_os=$*
3637IFS=$ac_save_IFS
3638case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3639
3640
3641{ echo "$as_me:$LINENO: checking target system type" >&5
3642echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3643if test "${ac_cv_target+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646 if test "x$target_alias" = x; then
3647 ac_cv_target=$ac_cv_host
3648else
3649 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3650 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3651echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3652 { (exit 1); exit 1; }; }
3653fi
3654
3655fi
3656{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3657echo "${ECHO_T}$ac_cv_target" >&6; }
3658case $ac_cv_target in
3659*-*-*) ;;
3660*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3661echo "$as_me: error: invalid value of canonical target" >&2;}
3662 { (exit 1); exit 1; }; };;
3663esac
3664target=$ac_cv_target
3665ac_save_IFS=$IFS; IFS='-'
3666set x $ac_cv_target
3667shift
3668target_cpu=$1
3669target_vendor=$2
3670shift; shift
3671# Remember, the first character of IFS is used to create $*,
3672# except with old shells:
3673target_os=$*
3674IFS=$ac_save_IFS
3675case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3676
3677
3678# The aliases save the names the user supplied, while $host etc.
3679# will get canonicalized.
3680test -n "$target_alias" &&
3681 test "$program_prefix$program_suffix$program_transform_name" = \
3682 NONENONEs,x,x, &&
3683 program_prefix=${target_alias}-
3684
3685{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3686echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3687if test "${llvm_cv_os_type+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690 case $host in
3691 *-*-aix*)
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="AIX"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-irix*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="IRIX"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-cygwin*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="Cygwin"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-darwin*)
3707 llvm_cv_link_all_option="-Wl,-all_load"
3708 llvm_cv_no_link_all_option="-Wl,-noall_load"
3709 llvm_cv_os_type="Darwin"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-minix*)
3712 llvm_cv_link_all_option="-Wl,-all_load"
3713 llvm_cv_no_link_all_option="-Wl,-noall_load"
3714 llvm_cv_os_type="Minix"
3715 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003716 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="FreeBSD"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-openbsd*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="OpenBSD"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-netbsd*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="NetBSD"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-dragonfly*)
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="DragonFly"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-hpux*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="HP-UX"
3740 llvm_cv_platform_type="Unix" ;;
3741 *-*-interix*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Interix"
3745 llvm_cv_platform_type="Unix" ;;
3746 *-*-linux*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Linux"
3750 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003751 *-*-gnu*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="GNU"
3755 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003756 *-*-solaris*)
3757 llvm_cv_link_all_option="-Wl,-z,allextract"
3758 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3759 llvm_cv_os_type="SunOS"
3760 llvm_cv_platform_type="Unix" ;;
3761 *-*-auroraux*)
3762 llvm_cv_link_all_option="-Wl,-z,allextract"
3763 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3764 llvm_cv_os_type="AuroraUX"
3765 llvm_cv_platform_type="Unix" ;;
3766 *-*-win32*)
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Win32"
3770 llvm_cv_platform_type="Win32" ;;
3771 *-*-mingw*)
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="MingW"
3775 llvm_cv_platform_type="Win32" ;;
3776 *-*-haiku*)
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Haiku"
3780 llvm_cv_platform_type="Unix" ;;
3781 *-unknown-eabi*)
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Freestanding"
3785 llvm_cv_platform_type="Unix" ;;
3786 *-unknown-elf*)
3787 llvm_cv_link_all_option="-Wl,--whole-archive"
3788 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3789 llvm_cv_os_type="Freestanding"
3790 llvm_cv_platform_type="Unix" ;;
3791 *)
3792 llvm_cv_link_all_option=""
3793 llvm_cv_no_link_all_option=""
3794 llvm_cv_os_type="Unknown"
3795 llvm_cv_platform_type="Unknown" ;;
3796esac
3797fi
3798{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3799echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3800
3801{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3802echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3803if test "${llvm_cv_target_os_type+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
3806 case $target in
3807 *-*-aix*)
3808 llvm_cv_target_os_type="AIX" ;;
3809 *-*-irix*)
3810 llvm_cv_target_os_type="IRIX" ;;
3811 *-*-cygwin*)
3812 llvm_cv_target_os_type="Cygwin" ;;
3813 *-*-darwin*)
3814 llvm_cv_target_os_type="Darwin" ;;
3815 *-*-minix*)
3816 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003817 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003818 llvm_cv_target_os_type="FreeBSD" ;;
3819 *-*-openbsd*)
3820 llvm_cv_target_os_type="OpenBSD" ;;
3821 *-*-netbsd*)
3822 llvm_cv_target_os_type="NetBSD" ;;
3823 *-*-dragonfly*)
3824 llvm_cv_target_os_type="DragonFly" ;;
3825 *-*-hpux*)
3826 llvm_cv_target_os_type="HP-UX" ;;
3827 *-*-interix*)
3828 llvm_cv_target_os_type="Interix" ;;
3829 *-*-linux*)
3830 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003831 *-*-gnu*)
3832 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003833 *-*-solaris*)
3834 llvm_cv_target_os_type="SunOS" ;;
3835 *-*-auroraux*)
3836 llvm_cv_target_os_type="AuroraUX" ;;
3837 *-*-win32*)
3838 llvm_cv_target_os_type="Win32" ;;
3839 *-*-mingw*)
3840 llvm_cv_target_os_type="MingW" ;;
3841 *-*-haiku*)
3842 llvm_cv_target_os_type="Haiku" ;;
3843 *-*-rtems*)
3844 llvm_cv_target_os_type="RTEMS" ;;
3845 *-*-nacl*)
3846 llvm_cv_target_os_type="NativeClient" ;;
3847 *-unknown-eabi*)
3848 llvm_cv_target_os_type="Freestanding" ;;
3849 *)
3850 llvm_cv_target_os_type="Unknown" ;;
3851esac
3852fi
3853{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3854echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3855
3856if test "$llvm_cv_os_type" = "Unknown" ; then
3857 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3858echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3859 { (exit 1); exit 1; }; }
3860fi
3861
3862OS=$llvm_cv_os_type
3863
3864HOST_OS=$llvm_cv_os_type
3865
3866TARGET_OS=$llvm_cv_target_os_type
3867
3868
3869LINKALL=$llvm_cv_link_all_option
3870
3871NOLINKALL=$llvm_cv_no_link_all_option
3872
3873
3874case $llvm_cv_platform_type in
3875 Unix)
3876
3877cat >>confdefs.h <<\_ACEOF
3878#define LLVM_ON_UNIX 1
3879_ACEOF
3880
3881 LLVM_ON_UNIX=1
3882
3883 LLVM_ON_WIN32=0
3884
3885 ;;
3886 Win32)
3887
3888cat >>confdefs.h <<\_ACEOF
3889#define LLVM_ON_WIN32 1
3890_ACEOF
3891
3892 LLVM_ON_UNIX=0
3893
3894 LLVM_ON_WIN32=1
3895
3896 ;;
3897esac
3898
3899{ echo "$as_me:$LINENO: checking target architecture" >&5
3900echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3901if test "${llvm_cv_target_arch+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
3904 case $target in
3905 i?86-*) llvm_cv_target_arch="x86" ;;
3906 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3907 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3908 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003909 arm*-*) llvm_cv_target_arch="ARM" ;;
3910 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003911 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003912 xcore-*) llvm_cv_target_arch="XCore" ;;
3913 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003914 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003915 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003916 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003917 *) llvm_cv_target_arch="Unknown" ;;
3918esac
3919fi
3920{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3921echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3922
3923if test "$llvm_cv_target_arch" = "Unknown" ; then
3924 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3925echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3926fi
3927
Eric Christopherffee5722011-09-16 20:36:25 +00003928case "$llvm_cv_target_arch" in
3929 x86) LLVM_NATIVE_ARCH="X86" ;;
3930 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3931 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3932esac
3933
3934ARCH=$llvm_cv_target_arch
3935
3936
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003937case $host in
3938 i?86-*) host_arch="x86" ;;
3939 amd64-* | x86_64-*) host_arch="x86_64" ;;
3940 sparc*-*) host_arch="Sparc" ;;
3941 powerpc*-*) host_arch="PowerPC" ;;
3942 arm*-*) host_arch="ARM" ;;
3943 mips-*) host_arch="Mips" ;;
3944 mipsel-*) host_arch="Mips" ;;
3945 xcore-*) host_arch="XCore" ;;
3946 msp430-*) host_arch="MSP430" ;;
3947 hexagon-*) host_arch="Hexagon" ;;
3948 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003949 *) host_arch="Unknown" ;;
3950esac
3951
3952if test "$host_arch" = "Unknown" ; then
3953 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3954echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3955fi
3956
3957HOST_ARCH=$host_arch
3958
3959
Eric Christopherffee5722011-09-16 20:36:25 +00003960
3961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3963echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3964if test "${ac_cv_path_GREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003966else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967 # Extract the first word of "grep ggrep" to use in msg output
3968if test -z "$GREP"; then
3969set dummy grep ggrep; ac_prog_name=$2
3970if test "${ac_cv_path_GREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
Reid Spencera773bd52006-08-04 18:18:08 +00003973 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003974# Loop through the user's path and test for each of PROGNAME-LIST
3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980 for ac_prog in grep ggrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3984 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003985 # Check for GNU $ac_path_GREP
3986case `"$ac_path_GREP" --version 2>&1` in
3987*GNU*)
3988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3989*)
3990 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003992 while :
3993 do
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_GREP="$ac_path_GREP"
4004 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004005 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4008 done
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010esac
4011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012
4013 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004014 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004015done
4016
4017done
Reid Spencera773bd52006-08-04 18:18:08 +00004018IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004019
4020
4021fi
4022
4023GREP="$ac_cv_path_GREP"
4024if test -z "$GREP"; then
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027 { (exit 1); exit 1; }; }
4028fi
4029
Reid Spencera773bd52006-08-04 18:18:08 +00004030else
4031 ac_cv_path_GREP=$GREP
4032fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034
Reid Spencera773bd52006-08-04 18:18:08 +00004035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004036{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4037echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004038 GREP="$ac_cv_path_GREP"
4039
4040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041{ echo "$as_me:$LINENO: checking for egrep" >&5
4042echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4043if test "${ac_cv_path_EGREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004045else
4046 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4047 then ac_cv_path_EGREP="$GREP -E"
4048 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004049 # Extract the first word of "egrep" to use in msg output
4050if test -z "$EGREP"; then
4051set dummy egrep; ac_prog_name=$2
4052if test "${ac_cv_path_EGREP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
Reid Spencera773bd52006-08-04 18:18:08 +00004055 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004056# Loop through the user's path and test for each of PROGNAME-LIST
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004058for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062 for ac_prog in egrep; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4066 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004067 # Check for GNU $ac_path_EGREP
4068case `"$ac_path_EGREP" --version 2>&1` in
4069*GNU*)
4070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4071*)
4072 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004073 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004074 while :
4075 do
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004082 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_EGREP="$ac_path_EGREP"
4086 ac_path_EGREP_max=$ac_count
4087 fi
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4090 done
4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092esac
4093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094
4095 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004096 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097done
4098
4099done
Reid Spencera773bd52006-08-04 18:18:08 +00004100IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004101
4102
4103fi
4104
4105EGREP="$ac_cv_path_EGREP"
4106if test -z "$EGREP"; then
4107 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4108echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4109 { (exit 1); exit 1; }; }
4110fi
4111
Reid Spencera773bd52006-08-04 18:18:08 +00004112else
4113 ac_cv_path_EGREP=$EGREP
4114fi
4115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116
Reid Spencera773bd52006-08-04 18:18:08 +00004117 fi
4118fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004121 EGREP="$ac_cv_path_EGREP"
4122
4123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004124{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4125echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4126if test "${ac_cv_header_stdc+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129 cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004135#include <stdlib.h>
4136#include <stdarg.h>
4137#include <string.h>
4138#include <float.h>
4139
John Criswell0c38eaf2003-09-10 15:17:25 +00004140int
4141main ()
4142{
4143
4144 ;
4145 return 0;
4146}
John Criswell7a73b802003-06-30 21:59:07 +00004147_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004148rm -f conftest.$ac_objext
4149if { (ac_try="$ac_compile"
4150case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004182 ac_cv_header_stdc=yes
4183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184 echo "$as_me: failed program was:" >&5
4185sed 's/^/| /' conftest.$ac_ext >&5
4186
4187 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004189
Reid Spencera773bd52006-08-04 18:18:08 +00004190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004191
4192if test $ac_cv_header_stdc = yes; then
4193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194 cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004200#include <string.h>
4201
4202_ACEOF
4203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004204 $EGREP "memchr" >/dev/null 2>&1; then
4205 :
John Criswell7a73b802003-06-30 21:59:07 +00004206else
4207 ac_cv_header_stdc=no
4208fi
4209rm -f conftest*
4210
4211fi
4212
4213if test $ac_cv_header_stdc = yes; then
4214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004215 cat >conftest.$ac_ext <<_ACEOF
4216/* confdefs.h. */
4217_ACEOF
4218cat confdefs.h >>conftest.$ac_ext
4219cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004221#include <stdlib.h>
4222
4223_ACEOF
4224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004225 $EGREP "free" >/dev/null 2>&1; then
4226 :
John Criswell7a73b802003-06-30 21:59:07 +00004227else
4228 ac_cv_header_stdc=no
4229fi
4230rm -f conftest*
4231
4232fi
4233
4234if test $ac_cv_header_stdc = yes; then
4235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004237 :
4238else
Jeffrey Yasskin1611ebb2010-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 Criswell0c38eaf2003-09-10 15:17:25 +00004244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004245#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004246#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004247#if ((' ' & 0x0FF) == 0x020)
4248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4250#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004251# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004252 (('a' <= (c) && (c) <= 'i') \
4253 || ('j' <= (c) && (c) <= 'r') \
4254 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4256#endif
4257
4258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4259int
4260main ()
4261{
4262 int i;
4263 for (i = 0; i < 256; i++)
4264 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004265 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004266 return 2;
4267 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004268}
4269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004270rm -f conftest$ac_exeext
4271if { (ac_try="$ac_link"
4272case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_link") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 :
John Criswell7a73b802003-06-30 21:59:07 +00004291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292 echo "$as_me: program exited with status $ac_status" >&5
4293echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296( exit $ac_status )
4297ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004300fi
4301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302
John Criswell7a73b802003-06-30 21:59:07 +00004303fi
4304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004305{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4306echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004307if test $ac_cv_header_stdc = yes; then
4308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004309cat >>confdefs.h <<\_ACEOF
4310#define STDC_HEADERS 1
4311_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004312
4313fi
4314
Reid Spencera773bd52006-08-04 18:18:08 +00004315# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004316
4317
4318
4319
4320
4321
4322
4323
4324
Reid Spencera773bd52006-08-04 18:18:08 +00004325for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004327do
4328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340$ac_includes_default
4341
4342#include <$ac_header>
4343_ACEOF
4344rm -f conftest.$ac_objext
4345if { (ac_try="$ac_compile"
4346case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349esac
4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362esac
4363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 eval "$as_ac_Header=yes"
4379else
4380 echo "$as_me: failed program was:" >&5
4381sed 's/^/| /' conftest.$ac_ext >&5
4382
4383 eval "$as_ac_Header=no"
4384fi
4385
4386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387fi
4388ac_res=`eval echo '${'$as_ac_Header'}'`
4389 { echo "$as_me:$LINENO: result: $ac_res" >&5
4390echo "${ECHO_T}$ac_res" >&6; }
4391if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004392 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004394_ACEOF
4395
4396fi
4397
4398done
4399
4400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4402echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4403if test "${ac_cv_c_bigendian+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406 # See if sys/param.h defines the BYTE_ORDER macro.
4407cat >conftest.$ac_ext <<_ACEOF
4408/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004410cat confdefs.h >>conftest.$ac_ext
4411cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004412/* end confdefs.h. */
4413#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004415
4416int
4417main ()
4418{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004419#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4420 bogus endian macros
4421#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004422
4423 ;
4424 return 0;
4425}
4426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004427rm -f conftest.$ac_objext
4428if { (ac_try="$ac_compile"
4429case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432esac
4433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445esac
4446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004461 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004467/* end confdefs.h. */
4468#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004469#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004470
4471int
4472main ()
4473{
4474#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475 not big endian
4476#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004477
4478 ;
4479 return 0;
4480}
4481_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482rm -f conftest.$ac_objext
4483if { (ac_try="$ac_compile"
4484case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487esac
4488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_compile") 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500esac
4501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest.$ac_objext'
4507 { (case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510esac
4511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512 (eval "$ac_try") 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004516 ac_cv_c_bigendian=yes
4517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004518 echo "$as_me: failed program was:" >&5
4519sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004521 ac_cv_c_bigendian=no
4522fi
4523
4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525else
4526 echo "$as_me: failed program was:" >&5
4527sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 # It does not; compile a test program.
4530if test "$cross_compiling" = yes; then
4531 # try to guess the endianness by grepping values into an object file
4532 ac_cv_c_bigendian=unknown
4533 cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h. */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h. */
4539short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4540short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4541void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4542short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4543short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4544void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004545int
4546main ()
4547{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004549 ;
4550 return 0;
4551}
4552_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553rm -f conftest.$ac_objext
4554if { (ac_try="$ac_compile"
4555case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558esac
4559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_compile") 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4568 { (case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571esac
4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_try") 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_try") 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004588 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004589fi
4590if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4591 if test "$ac_cv_c_bigendian" = unknown; then
4592 ac_cv_c_bigendian=no
4593 else
4594 # finding both strings is unlikely to happen, but who knows?
4595 ac_cv_c_bigendian=unknown
4596 fi
4597fi
Reid Spencera773bd52006-08-04 18:18:08 +00004598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599 echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004602
Torok Edwin871384f2010-01-26 08:50:50 +00004603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604
Reid Spencera773bd52006-08-04 18:18:08 +00004605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607 cat >conftest.$ac_ext <<_ACEOF
4608/* confdefs.h. */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004612/* end confdefs.h. */
4613$ac_includes_default
4614int
4615main ()
4616{
4617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618 /* Are we little or big endian? From Harbison&Steele. */
4619 union
4620 {
4621 long int l;
4622 char c[sizeof (long int)];
4623 } u;
4624 u.l = 1;
4625 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004626
4627 ;
4628 return 0;
4629}
4630_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631rm -f conftest$ac_exeext
4632if { (ac_try="$ac_link"
4633case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636esac
4637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_link") 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4642 { (case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645esac
4646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_try") 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004651 ac_cv_c_bigendian=no
4652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653 echo "$as_me: program exited with status $ac_status" >&5
4654echo "$as_me: failed program was:" >&5
4655sed 's/^/| /' conftest.$ac_ext >&5
4656
4657( exit $ac_status )
4658ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004661fi
4662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663
Reid Spencera773bd52006-08-04 18:18:08 +00004664fi
4665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667fi
4668{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4669echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4670case $ac_cv_c_bigendian in
4671 yes)
4672 ENDIAN=big
4673 ;;
4674 no)
4675 ENDIAN=little
4676 ;;
4677 *)
4678 { { echo "$as_me:$LINENO: error: unknown endianness
4679presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4680echo "$as_me: error: unknown endianness
4681presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4682 { (exit 1); exit 1; }; } ;;
4683esac
Reid Spencera773bd52006-08-04 18:18:08 +00004684
4685
4686if test "$cross_compiling" = yes; then
4687 LLVM_CROSS_COMPILING=1
4688
4689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004690{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4691echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4692if test "${ac_cv_build_exeext+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004694else
4695 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4696 ac_cv_build_exeext=.exe
4697else
4698 ac_build_prefix=${build_alias}-
4699
4700 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4701set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4704if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004706else
4707 if test -n "$BUILD_CC"; then
4708 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4709else
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004717 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004719 break 2
4720 fi
4721done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722done
Reid Spencera773bd52006-08-04 18:18:08 +00004723IFS=$as_save_IFS
4724
4725fi
4726fi
4727BUILD_CC=$ac_cv_prog_BUILD_CC
4728if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4730echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004732 { echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004734fi
4735
4736
4737 if test -z "$BUILD_CC"; then
4738 # Extract the first word of "gcc", so it can be a program name with args.
4739set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004744else
4745 if test -n "$BUILD_CC"; then
4746 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004755 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004757 break 2
4758 fi
4759done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004760done
Reid Spencera773bd52006-08-04 18:18:08 +00004761IFS=$as_save_IFS
4762
4763fi
4764fi
4765BUILD_CC=$ac_cv_prog_BUILD_CC
4766if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4768echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004770 { echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004772fi
4773
4774
4775 if test -z "$BUILD_CC"; then
4776 # Extract the first word of "cc", so it can be a program name with args.
4777set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004782else
4783 if test -n "$BUILD_CC"; then
4784 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4785else
4786 ac_prog_rejected=no
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004794 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4795 ac_prog_rejected=yes
4796 continue
4797 fi
4798 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004800 break 2
4801 fi
4802done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004803done
Reid Spencera773bd52006-08-04 18:18:08 +00004804IFS=$as_save_IFS
4805
4806if test $ac_prog_rejected = yes; then
4807 # We found a bogon in the path, so make sure we never use it.
4808 set dummy $ac_cv_prog_BUILD_CC
4809 shift
4810 if test $# != 0; then
4811 # We chose a different compiler from the bogus one.
4812 # However, it has the same basename, so the bogon will be chosen
4813 # first if we set BUILD_CC to just the basename; use the full file name.
4814 shift
4815 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4816 fi
4817fi
4818fi
4819fi
4820BUILD_CC=$ac_cv_prog_BUILD_CC
4821if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004822 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4823echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004825 { echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004827fi
4828
4829
4830 fi
4831 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004832 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4833echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4834 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004835 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4836 rm -f conftest*
4837 echo 'int main () { return 0; }' > conftest.$ac_ext
4838 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004840 (eval $ac_build_link) 2>&5
4841 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004844 for file in conftest.*; do
4845 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004846 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004847 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4848 esac
4849 done
4850 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004851 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4852echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4853 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004854 fi
4855 rm -f conftest*
4856 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4857fi
4858fi
4859
4860BUILD_EXEEXT=""
4861test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4863echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004864ac_build_exeext=$BUILD_EXEEXT
4865
Jim Grosbach673612e2008-10-02 22:56:44 +00004866 ac_build_prefix=${build_alias}-
4867 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4868set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004873else
4874 if test -n "$BUILD_CXX"; then
4875 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4876else
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004884 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004886 break 2
4887 fi
4888done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004889done
Jim Grosbach673612e2008-10-02 22:56:44 +00004890IFS=$as_save_IFS
4891
4892fi
4893fi
4894BUILD_CXX=$ac_cv_prog_BUILD_CXX
4895if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4897echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004899 { echo "$as_me:$LINENO: result: no" >&5
4900echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004901fi
4902
4903
4904 if test -z "$BUILD_CXX"; then
4905 # Extract the first word of "g++", so it can be a program name with args.
4906set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004911else
4912 if test -n "$BUILD_CXX"; then
4913 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004922 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004924 break 2
4925 fi
4926done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004927done
Jim Grosbach673612e2008-10-02 22:56:44 +00004928IFS=$as_save_IFS
4929
4930fi
4931fi
4932BUILD_CXX=$ac_cv_prog_BUILD_CXX
4933if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004934 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4935echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937 { echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004939fi
4940
4941
4942 if test -z "$BUILD_CXX"; then
4943 # Extract the first word of "c++", so it can be a program name with args.
4944set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004949else
4950 if test -n "$BUILD_CXX"; then
4951 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4952else
4953 ac_prog_rejected=no
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4962 ac_prog_rejected=yes
4963 continue
4964 fi
4965 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004967 break 2
4968 fi
4969done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004970done
Jim Grosbach673612e2008-10-02 22:56:44 +00004971IFS=$as_save_IFS
4972
4973if test $ac_prog_rejected = yes; then
4974 # We found a bogon in the path, so make sure we never use it.
4975 set dummy $ac_cv_prog_BUILD_CXX
4976 shift
4977 if test $# != 0; then
4978 # We chose a different compiler from the bogus one.
4979 # However, it has the same basename, so the bogon will be chosen
4980 # first if we set BUILD_CXX to just the basename; use the full file name.
4981 shift
4982 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4983 fi
4984fi
4985fi
4986fi
4987BUILD_CXX=$ac_cv_prog_BUILD_CXX
4988if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004989 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4990echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004992 { echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004994fi
4995
4996
4997 fi
4998 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004999else
5000 LLVM_CROSS_COMPILING=0
5001
5002fi
5003
Dan Gohman56fb5f92010-08-04 16:25:01 +00005004if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005005 cvsbuild="yes"
5006 optimize="no"
5007 CVSBUILD=CVSBUILD=1
5008
5009else
5010 cvsbuild="no"
5011 optimize="yes"
5012fi
5013
5014
Eric Christopherbee515f2011-11-11 22:51:42 +00005015# Check whether --enable-libcpp was given.
5016if test "${enable_libcpp+set}" = set; then
5017 enableval=$enable_libcpp;
5018else
5019 enableval=default
5020fi
5021
5022case "$enableval" in
5023 yes) ENABLE_LIBCPP=1
5024 ;;
5025 no) ENABLE_LIBCPP=0
5026 ;;
5027 default) ENABLE_LIBCPP=0
5028;;
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5030echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5032esac
5033
Eric Christopher82120022012-08-03 19:47:14 +00005034# Check whether --enable-cxx11 was given.
5035if test "${enable_cxx11+set}" = set; then
5036 enableval=$enable_cxx11;
5037else
5038 enableval=default
5039fi
5040
5041case "$enableval" in
5042 yes) ENABLE_CXX11=1
5043 ;;
5044 no) ENABLE_CXX11=0
5045 ;;
5046 default) ENABLE_CXX11=0
5047;;
5048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5049echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5050 { (exit 1); exit 1; }; } ;;
5051esac
5052
Reid Spencera773bd52006-08-04 18:18:08 +00005053# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005054if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005055 enableval=$enable_optimized;
5056else
5057 enableval=$optimize
5058fi
5059
5060if test ${enableval} = "no" ; then
5061 ENABLE_OPTIMIZED=
5062
5063else
5064 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5065
5066fi
5067
David Greene2a5a12c2009-04-17 14:50:39 +00005068# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005069if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005070 enableval=$enable_profiling;
5071else
5072 enableval="no"
5073fi
5074
5075if test ${enableval} = "no" ; then
5076 ENABLE_PROFILING=
5077
5078else
5079 ENABLE_PROFILING=ENABLE_PROFILING=1
5080
5081fi
5082
Reid Spencera773bd52006-08-04 18:18:08 +00005083# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005084if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005085 enableval=$enable_assertions;
5086else
5087 enableval="yes"
5088fi
5089
5090if test ${enableval} = "yes" ; then
5091 DISABLE_ASSERTIONS=
5092
5093else
5094 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5095
5096fi
5097
Eric Christopher09a88732012-08-03 19:58:20 +00005098# Check whether --enable-werror was given.
5099if test "${enable_werror+set}" = set; then
5100 enableval=$enable_werror;
5101else
5102 enableval="no"
5103fi
5104
5105case "$enableval" in
5106 yes) ENABLE_WERROR=1
5107 ;;
5108 no) ENABLE_WERROR=0
5109 ;;
5110 default) ENABLE_WERROR=0
5111;;
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5113echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5115esac
5116
David Greenea696d242007-06-28 19:36:08 +00005117# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005118if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005119 enableval=$enable_expensive_checks;
5120else
5121 enableval="no"
5122fi
5123
5124if test ${enableval} = "yes" ; then
5125 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5126
5127 EXPENSIVE_CHECKS=yes
5128
5129else
5130 ENABLE_EXPENSIVE_CHECKS=
5131
5132 EXPENSIVE_CHECKS=no
5133
5134fi
5135
Reid Spencer8b2e1412006-11-17 03:32:33 +00005136# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005137if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005138 enableval=$enable_debug_runtime;
5139else
5140 enableval=no
5141fi
5142
5143if test ${enableval} = "no" ; then
5144 DEBUG_RUNTIME=
5145
5146else
5147 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5148
5149fi
5150
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005151# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005152if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005153 enableval=$enable_debug_symbols;
5154else
5155 enableval=no
5156fi
5157
5158if test ${enableval} = "no" ; then
5159 DEBUG_SYMBOLS=
5160
5161else
5162 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5163
5164fi
5165
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005166# Check whether --enable-keep-symbols was given.
5167if test "${enable_keep_symbols+set}" = set; then
5168 enableval=$enable_keep_symbols;
5169else
5170 enableval=no
5171fi
5172
5173if test ${enableval} = "no" ; then
5174 KEEP_SYMBOLS=
5175
5176else
5177 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5178
5179fi
5180
Reid Spencera773bd52006-08-04 18:18:08 +00005181# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005182if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005183 enableval=$enable_jit;
5184else
5185 enableval=default
5186fi
5187
5188if test ${enableval} = "no"
5189then
5190 JIT=
5191
5192else
5193 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005194 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005195 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005196 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005197 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005198 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005199 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005200 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005201 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005202 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005203 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005204 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005205 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005206 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005207 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005208 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005209 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005210 Hexagon) TARGET_HAS_JIT=0
5211 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005212 MBlaze) TARGET_HAS_JIT=0
5213 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005214 NVPTX) TARGET_HAS_JIT=0
5215 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005216 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005217 ;;
5218 esac
5219fi
5220
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005221# Check whether --enable-docs was given.
5222if test "${enable_docs+set}" = set; then
5223 enableval=$enable_docs;
5224else
5225 enableval=default
5226fi
5227
5228case "$enableval" in
5229 yes) ENABLE_DOCS=1
5230 ;;
5231 no) ENABLE_DOCS=0
5232 ;;
5233 default) ENABLE_DOCS=1
5234 ;;
5235 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5236echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5238esac
5239
Reid Spencera773bd52006-08-04 18:18:08 +00005240# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005241if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005242 enableval=$enable_doxygen;
5243else
5244 enableval=default
5245fi
5246
5247case "$enableval" in
5248 yes) ENABLE_DOXYGEN=1
5249 ;;
5250 no) ENABLE_DOXYGEN=0
5251 ;;
5252 default) ENABLE_DOXYGEN=0
5253 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005254 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5255echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5256 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005257esac
5258
5259# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005260if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005261 enableval=$enable_threads;
5262else
Reid Spencer65c5d752006-11-05 17:08:18 +00005263 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005264fi
5265
5266case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005267 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005268 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005269 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005270 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005271 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005272 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5274echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005276esac
5277
Owen Andersona8603702009-05-19 22:18:56 +00005278cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005279#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005280_ACEOF
5281
5282
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005283# Check whether --enable-pthreads was given.
5284if test "${enable_pthreads+set}" = set; then
5285 enableval=$enable_pthreads;
5286else
5287 enableval=default
5288fi
5289
5290case "$enableval" in
5291 yes) ENABLE_PTHREADS=1
5292 ;;
5293 no) ENABLE_PTHREADS=0
5294 ;;
5295 default) ENABLE_PTHREADS=1
5296 ;;
5297 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5298echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5299 { (exit 1); exit 1; }; } ;;
5300esac
5301
Reid Spencer89b0d992006-12-16 22:07:52 +00005302# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005303if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005304 enableval=$enable_pic;
5305else
5306 enableval=default
5307fi
5308
5309case "$enableval" in
5310 yes) ENABLE_PIC=1
5311 ;;
5312 no) ENABLE_PIC=0
5313 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005314 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005315 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005316 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5317echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5318 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005319esac
5320
5321cat >>confdefs.h <<_ACEOF
5322#define ENABLE_PIC $ENABLE_PIC
5323_ACEOF
5324
5325
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005326# Check whether --enable-shared was given.
5327if test "${enable_shared+set}" = set; then
5328 enableval=$enable_shared;
5329else
5330 enableval=default
5331fi
5332
5333case "$enableval" in
5334 yes) ENABLE_SHARED=1
5335 ;;
5336 no) ENABLE_SHARED=0
5337 ;;
5338 default) ENABLE_SHARED=0
5339 ;;
5340 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5341echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5342 { (exit 1); exit 1; }; } ;;
5343esac
5344
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005345# Check whether --enable-embed-stdcxx was given.
5346if test "${enable_embed_stdcxx+set}" = set; then
5347 enableval=$enable_embed_stdcxx;
5348else
5349 enableval=default
5350fi
5351
5352case "$enableval" in
5353 yes) ENABLE_EMBED_STDCXX=1
5354 ;;
5355 no) ENABLE_EMBED_STDCXX=0
5356 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005357 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005358 ;;
5359 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5360echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5361 { (exit 1); exit 1; }; } ;;
5362esac
5363
Daniel Dunbardd464df2010-05-10 20:11:56 +00005364# Check whether --enable-timestamps was given.
5365if test "${enable_timestamps+set}" = set; then
5366 enableval=$enable_timestamps;
5367else
5368 enableval=default
5369fi
5370
5371case "$enableval" in
5372 yes) ENABLE_TIMESTAMPS=1
5373 ;;
5374 no) ENABLE_TIMESTAMPS=0
5375 ;;
5376 default) ENABLE_TIMESTAMPS=1
5377 ;;
5378 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5379echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5380 { (exit 1); exit 1; }; } ;;
5381esac
5382
5383cat >>confdefs.h <<_ACEOF
5384#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5385_ACEOF
5386
5387
Eric Christopherc69bdad2012-09-21 23:03:29 +00005388
5389# Check whether --enable-backtraces was given.
5390if test "${enable_backtraces+set}" = set; then
5391 enableval=$enable_backtraces;
5392else
5393 enableval=default
5394fi
5395
5396case "$enableval" in
5397 yes) ENABLE_TIMESTAMPS=1
5398 ;;
5399 no) ENABLE_TIMESTAMPS=0
5400 ;;
5401 default) ENABLE_TIMESTAMPS=1
5402 ;;
5403 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5404echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5405 { (exit 1); exit 1; }; } ;;
5406esac
5407
5408cat >>confdefs.h <<_ACEOF
5409#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5410_ACEOF
5411
5412
Reid Spencera773bd52006-08-04 18:18:08 +00005413TARGETS_TO_BUILD=""
5414# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005415if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005416 enableval=$enable_targets;
5417else
5418 enableval=all
5419fi
5420
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005421if test "$enableval" = host-only ; then
5422 enableval=host
5423fi
Reid Spencera773bd52006-08-04 18:18:08 +00005424case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005425 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005426 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5427 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005428 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5429 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5430 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5431 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005432 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5433 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005434 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005435 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005436 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5437 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005438 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005439 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005440 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005441 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005442 host) case "$llvm_cv_target_arch" in
5443 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5444 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5445 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5446 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005447 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5448 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005449 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005450 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005451 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5452 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005453 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005454 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005455 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5456echo "$as_me: error: Can not set target to build" >&2;}
5457 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005458 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005459 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5460echo "$as_me: error: Unrecognized target $a_target" >&2;}
5461 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005462 esac
5463 done
5464 ;;
5465esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005466
5467# Check whether --enable-experimental-targets was given.
5468if test "${enable_experimental_targets+set}" = set; then
5469 enableval=$enable_experimental_targets;
5470else
5471 enableval=disable
5472fi
5473
5474
5475if test ${enableval} != "disable"
5476then
5477 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5478fi
5479
Reid Spencera773bd52006-08-04 18:18:08 +00005480TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5481
5482
Douglas Gregor0711c302009-06-17 00:43:20 +00005483for a_target in $TARGETS_TO_BUILD; do
5484 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5485
5486cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005487#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5488_ACEOF
5489
5490 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5491 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005492 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005493 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005494 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5495 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5496 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005497 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5498 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5499 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005500
5501cat >>confdefs.h <<_ACEOF
5502#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005503_ACEOF
5504
5505
5506cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005507#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5508_ACEOF
5509
5510
5511cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005512#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005513_ACEOF
5514
5515
5516cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005517#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005518_ACEOF
5519
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005520 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005521
5522cat >>confdefs.h <<_ACEOF
5523#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5524_ACEOF
5525
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005526 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005527 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5528
5529cat >>confdefs.h <<_ACEOF
5530#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5531_ACEOF
5532
5533 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005534 fi
5535done
5536
Douglas Gregor1555a232009-06-16 20:12:29 +00005537LLVM_ENUM_TARGETS=""
5538LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005539LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005540LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005541for target_to_build in $TARGETS_TO_BUILD; do
5542 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005543 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005544 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5545 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005546 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5547 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5548 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005549 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5550 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5551 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005552done
5553
5554
5555
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005556
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005557
Reid Spencera773bd52006-08-04 18:18:08 +00005558
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005559# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005560if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005561 withval=$with_optimize_option;
5562else
5563 withval=default
5564fi
5565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566{ echo "$as_me:$LINENO: checking optimization flags" >&5
5567echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005568case "$withval" in
5569 default)
5570 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005571 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005572 MingW) optimize_option=-O2 ;;
5573 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005574 esac ;;
5575 *) optimize_option="$withval" ;;
5576esac
5577OPTIMIZE_OPTION=$optimize_option
5578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5580echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005581
5582
Reid Spencera773bd52006-08-04 18:18:08 +00005583# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005584if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005585 withval=$with_extra_options;
5586else
5587 withval=default
5588fi
5589
5590case "$withval" in
5591 default) EXTRA_OPTIONS= ;;
5592 *) EXTRA_OPTIONS=$withval ;;
5593esac
5594EXTRA_OPTIONS=$EXTRA_OPTIONS
5595
5596
Daniel Dunbared344d22011-06-16 22:30:41 +00005597
5598# Check whether --with-extra-ld-options was given.
5599if test "${with_extra_ld_options+set}" = set; then
5600 withval=$with_extra_ld_options;
5601else
5602 withval=default
5603fi
5604
5605case "$withval" in
5606 default) EXTRA_LD_OPTIONS= ;;
5607 *) EXTRA_LD_OPTIONS=$withval ;;
5608esac
5609EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5610
5611
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005612# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005613if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005614 enableval=$enable_bindings;
5615else
5616 enableval=default
5617fi
5618
5619BINDINGS_TO_BUILD=""
5620case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005621 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005622 all ) BINDINGS_TO_BUILD="ocaml" ;;
5623 none | no) BINDINGS_TO_BUILD="" ;;
5624 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5625 case "$a_binding" in
5626 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005627 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5628echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5629 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005630 esac
5631 done
5632 ;;
5633esac
5634
Reid Spencera773bd52006-08-04 18:18:08 +00005635
Gordon Henriksenf0915682007-10-02 16:42:22 +00005636# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005637if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005638 withval=$with_ocaml_libdir;
5639else
5640 withval=auto
5641fi
5642
5643case "$withval" in
5644 auto) with_ocaml_libdir="$withval" ;;
5645 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005646 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5647echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5648 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005649esac
5650
5651
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005652# Check whether --with-clang-srcdir was given.
5653if test "${with_clang_srcdir+set}" = set; then
5654 withval=$with_clang_srcdir;
5655else
5656 withval="-"
5657fi
5658
5659case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005660 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005661 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5662 *) clang_src_root="$ac_pwd/$withval" ;;
5663esac
5664CLANG_SRC_ROOT=$clang_src_root
5665
5666
5667
Chandler Carruth6b241162010-10-19 08:21:25 +00005668# Check whether --with-clang-resource-dir was given.
5669if test "${with_clang_resource_dir+set}" = set; then
5670 withval=$with_clang_resource_dir;
5671else
5672 withval=""
5673fi
5674
5675
5676cat >>confdefs.h <<_ACEOF
5677#define CLANG_RESOURCE_DIR "$withval"
5678_ACEOF
5679
5680
5681
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005682# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005683if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005684 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005685else
5686 withval=""
5687fi
5688
5689
5690cat >>confdefs.h <<_ACEOF
5691#define C_INCLUDE_DIRS "$withval"
5692_ACEOF
5693
5694
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005695# Clang normally uses the system c++ headers and libraries. With this option,
5696# clang will use the ones provided by a gcc installation instead. This option should
5697# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005698
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005699# Check whether --with-gcc-toolchain was given.
5700if test "${with_gcc_toolchain+set}" = set; then
5701 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005702else
5703 withval=""
5704fi
5705
5706
5707cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005708#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005709_ACEOF
5710
5711
5712
Sebastian Pope4f1b372012-04-30 20:06:58 +00005713# Check whether --with-default-sysroot was given.
5714if test "${with_default_sysroot+set}" = set; then
5715 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005716else
5717 withval=""
5718fi
5719
5720
5721cat >>confdefs.h <<_ACEOF
5722#define DEFAULT_SYSROOT "$withval"
5723_ACEOF
5724
5725
5726
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005727# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005728if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005729 withval=$with_binutils_include;
5730else
5731 withval=default
5732fi
5733
5734case "$withval" in
5735 default) WITH_BINUTILS_INCDIR=default ;;
5736 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005737 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5738echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5739 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005740esac
5741if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5742 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5743
5744 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5745 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005746 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5747echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5748 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005749 fi
5750fi
5751
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005752
5753# Check whether --with-bug-report-url was given.
5754if test "${with_bug_report_url+set}" = set; then
5755 withval=$with_bug_report_url;
5756else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005757 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005758fi
5759
5760
5761cat >>confdefs.h <<_ACEOF
5762#define BUG_REPORT_URL "$withval"
5763_ACEOF
5764
5765
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005766# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005768 enableval=$enable_libffi; case "$enableval" in
5769 yes) llvm_cv_enable_libffi="yes" ;;
5770 no) llvm_cv_enable_libffi="no" ;;
5771 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005772echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5773 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005774 esac
5775else
5776 llvm_cv_enable_libffi=no
5777fi
5778
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005779
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005780
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005781# Check whether --with-internal-prefix was given.
5782if test "${with_internal_prefix+set}" = set; then
5783 withval=$with_internal_prefix;
5784else
5785 withval=""
5786fi
5787
5788INTERNAL_PREFIX=$withval
5789
5790
5791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005792{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5793echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5794if test "${lt_cv_path_NM+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005796else
5797 if test -n "$NM"; then
5798 # Let the user override the test.
5799 lt_cv_path_NM="$NM"
5800else
5801 lt_nm_to_check="${ac_tool_prefix}nm"
5802 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5803 lt_nm_to_check="$lt_nm_to_check nm"
5804 fi
5805 for lt_tmp_nm in $lt_nm_to_check; do
5806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5807 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5808 IFS="$lt_save_ifs"
5809 test -z "$ac_dir" && ac_dir=.
5810 tmp_nm="$ac_dir/$lt_tmp_nm"
5811 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5812 # Check to see if the nm accepts a BSD-compat flag.
5813 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5814 # nm: unknown option "B" ignored
5815 # Tru64's nm complains that /dev/null is an invalid object file
5816 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5817 */dev/null* | *'Invalid file or object type'*)
5818 lt_cv_path_NM="$tmp_nm -B"
5819 break
5820 ;;
5821 *)
5822 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5823 */dev/null*)
5824 lt_cv_path_NM="$tmp_nm -p"
5825 break
5826 ;;
5827 *)
5828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5829 continue # so that we can try to find one that supports BSD flags
5830 ;;
5831 esac
5832 ;;
5833 esac
5834 fi
5835 done
5836 IFS="$lt_save_ifs"
5837 done
5838 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5839fi
5840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005841{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5842echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005843NM="$lt_cv_path_NM"
5844
5845
5846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005847{ echo "$as_me:$LINENO: checking for GNU make" >&5
5848echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5849if test "${llvm_cv_gnu_make_command+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005851else
5852 llvm_cv_gnu_make_command=''
5853 for a in "$MAKE" make gmake gnumake ; do
5854 if test -z "$a" ; then continue ; fi ;
5855 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5856 then
5857 llvm_cv_gnu_make_command=$a ;
5858 break;
5859 fi
5860 done
5861fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5863echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005864 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5865 ifGNUmake='' ;
5866 else
5867 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5869echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005870 fi
5871
5872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005873{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5874echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005875LN_S=$as_ln_s
5876if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877 { echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005880 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5881echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005882fi
5883
5884# Extract the first word of "cmp", so it can be a program name with args.
5885set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888if test "${ac_cv_path_CMP+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005890else
5891 case $CMP in
5892 [\\/]* | ?:[\\/]*)
5893 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5894 ;;
5895 *)
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005903 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005905 break 2
5906 fi
5907done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005908done
Reid Spencera773bd52006-08-04 18:18:08 +00005909IFS=$as_save_IFS
5910
5911 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5912 ;;
5913esac
5914fi
5915CMP=$ac_cv_path_CMP
5916if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917 { echo "$as_me:$LINENO: result: $CMP" >&5
5918echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920 { echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005922fi
5923
5924
5925# Extract the first word of "cp", so it can be a program name with args.
5926set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929if test "${ac_cv_path_CP+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005931else
5932 case $CP in
5933 [\\/]* | ?:[\\/]*)
5934 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5935 ;;
5936 *)
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005944 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005946 break 2
5947 fi
5948done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005949done
Reid Spencera773bd52006-08-04 18:18:08 +00005950IFS=$as_save_IFS
5951
5952 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5953 ;;
5954esac
5955fi
5956CP=$ac_cv_path_CP
5957if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958 { echo "$as_me:$LINENO: result: $CP" >&5
5959echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961 { echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005963fi
5964
5965
5966# Extract the first word of "date", so it can be a program name with args.
5967set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970if test "${ac_cv_path_DATE+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005972else
5973 case $DATE in
5974 [\\/]* | ?:[\\/]*)
5975 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5976 ;;
5977 *)
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005985 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005987 break 2
5988 fi
5989done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005990done
Reid Spencera773bd52006-08-04 18:18:08 +00005991IFS=$as_save_IFS
5992
5993 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5994 ;;
5995esac
5996fi
5997DATE=$ac_cv_path_DATE
5998if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999 { echo "$as_me:$LINENO: result: $DATE" >&5
6000echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002 { echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006004fi
6005
6006
6007# Extract the first word of "find", so it can be a program name with args.
6008set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011if test "${ac_cv_path_FIND+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006013else
6014 case $FIND in
6015 [\\/]* | ?:[\\/]*)
6016 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6017 ;;
6018 *)
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006026 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006028 break 2
6029 fi
6030done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006031done
Reid Spencera773bd52006-08-04 18:18:08 +00006032IFS=$as_save_IFS
6033
6034 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6035 ;;
6036esac
6037fi
6038FIND=$ac_cv_path_FIND
6039if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040 { echo "$as_me:$LINENO: result: $FIND" >&5
6041echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043 { echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006045fi
6046
6047
6048# Extract the first word of "grep", so it can be a program name with args.
6049set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052if test "${ac_cv_path_GREP+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006054else
6055 case $GREP in
6056 [\\/]* | ?:[\\/]*)
6057 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6058 ;;
6059 *)
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006067 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006069 break 2
6070 fi
6071done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006072done
Reid Spencera773bd52006-08-04 18:18:08 +00006073IFS=$as_save_IFS
6074
6075 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6076 ;;
6077esac
6078fi
6079GREP=$ac_cv_path_GREP
6080if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081 { echo "$as_me:$LINENO: result: $GREP" >&5
6082echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006084 { echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006086fi
6087
6088
6089# Extract the first word of "mkdir", so it can be a program name with args.
6090set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_path_MKDIR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006095else
6096 case $MKDIR in
6097 [\\/]* | ?:[\\/]*)
6098 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6099 ;;
6100 *)
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006108 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006110 break 2
6111 fi
6112done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006113done
Reid Spencera773bd52006-08-04 18:18:08 +00006114IFS=$as_save_IFS
6115
6116 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6117 ;;
6118esac
6119fi
6120MKDIR=$ac_cv_path_MKDIR
6121if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6123echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006125 { echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006127fi
6128
6129
6130# Extract the first word of "mv", so it can be a program name with args.
6131set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6134if test "${ac_cv_path_MV+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006136else
6137 case $MV in
6138 [\\/]* | ?:[\\/]*)
6139 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6140 ;;
6141 *)
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006149 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006151 break 2
6152 fi
6153done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006154done
Reid Spencera773bd52006-08-04 18:18:08 +00006155IFS=$as_save_IFS
6156
6157 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6158 ;;
6159esac
6160fi
6161MV=$ac_cv_path_MV
6162if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006163 { echo "$as_me:$LINENO: result: $MV" >&5
6164echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006166 { echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006168fi
6169
6170
6171if test -n "$ac_tool_prefix"; then
6172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6173set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176if test "${ac_cv_prog_RANLIB+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006178else
6179 if test -n "$RANLIB"; then
6180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006191 break 2
6192 fi
6193done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006194done
Reid Spencera773bd52006-08-04 18:18:08 +00006195IFS=$as_save_IFS
6196
6197fi
6198fi
6199RANLIB=$ac_cv_prog_RANLIB
6200if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6202echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006204 { echo "$as_me:$LINENO: result: no" >&5
6205echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006206fi
6207
6208
6209fi
6210if test -z "$ac_cv_prog_RANLIB"; then
6211 ac_ct_RANLIB=$RANLIB
6212 # Extract the first word of "ranlib", so it can be a program name with args.
6213set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6216if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006218else
6219 if test -n "$ac_ct_RANLIB"; then
6220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6221else
6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006229 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006231 break 2
6232 fi
6233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006234done
Reid Spencera773bd52006-08-04 18:18:08 +00006235IFS=$as_save_IFS
6236
6237fi
6238fi
6239ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6240if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006241 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6242echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006243else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006244 { echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006246fi
6247
6248 if test "x$ac_ct_RANLIB" = x; then
6249 RANLIB=":"
6250 else
6251 case $cross_compiling:$ac_tool_warned in
6252yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006253{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6254whose name does not start with the host triplet. If you think this
6255configuration is useful to you, please write to autoconf@gnu.org." >&5
6256echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6257whose name does not start with the host triplet. If you think this
6258configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006259ac_tool_warned=yes ;;
6260esac
6261 RANLIB=$ac_ct_RANLIB
6262 fi
6263else
6264 RANLIB="$ac_cv_prog_RANLIB"
6265fi
6266
Torok Edwin871384f2010-01-26 08:50:50 +00006267if test -n "$ac_tool_prefix"; then
6268 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6269set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272if test "${ac_cv_prog_AR+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006274else
6275 if test -n "$AR"; then
6276 ac_cv_prog_AR="$AR" # Let the user override the test.
6277else
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006285 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006287 break 2
6288 fi
6289done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290done
Torok Edwin871384f2010-01-26 08:50:50 +00006291IFS=$as_save_IFS
6292
6293fi
6294fi
6295AR=$ac_cv_prog_AR
6296if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297 { echo "$as_me:$LINENO: result: $AR" >&5
6298echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300 { echo "$as_me:$LINENO: result: no" >&5
6301echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006302fi
6303
6304
6305fi
6306if test -z "$ac_cv_prog_AR"; then
6307 ac_ct_AR=$AR
6308 # Extract the first word of "ar", so it can be a program name with args.
6309set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006314else
6315 if test -n "$ac_ct_AR"; then
6316 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6317else
6318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319for as_dir in $PATH
6320do
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00006325 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006327 break 2
6328 fi
6329done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006330done
Torok Edwin871384f2010-01-26 08:50:50 +00006331IFS=$as_save_IFS
6332
6333fi
6334fi
6335ac_ct_AR=$ac_cv_prog_ac_ct_AR
6336if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6338echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006339else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340 { echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006342fi
6343
6344 if test "x$ac_ct_AR" = x; then
6345 AR="false"
6346 else
6347 case $cross_compiling:$ac_tool_warned in
6348yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006349{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6350whose name does not start with the host triplet. If you think this
6351configuration is useful to you, please write to autoconf@gnu.org." >&5
6352echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6353whose name does not start with the host triplet. If you think this
6354configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006355ac_tool_warned=yes ;;
6356esac
6357 AR=$ac_ct_AR
6358 fi
6359else
6360 AR="$ac_cv_prog_AR"
6361fi
6362
Reid Spencera773bd52006-08-04 18:18:08 +00006363# Extract the first word of "rm", so it can be a program name with args.
6364set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367if test "${ac_cv_path_RM+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006369else
6370 case $RM in
6371 [\\/]* | ?:[\\/]*)
6372 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6373 ;;
6374 *)
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006382 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006384 break 2
6385 fi
6386done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387done
Reid Spencera773bd52006-08-04 18:18:08 +00006388IFS=$as_save_IFS
6389
6390 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6391 ;;
6392esac
6393fi
6394RM=$ac_cv_path_RM
6395if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396 { echo "$as_me:$LINENO: result: $RM" >&5
6397echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399 { echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006401fi
6402
6403
6404# Extract the first word of "sed", so it can be a program name with args.
6405set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6408if test "${ac_cv_path_SED+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006410else
6411 case $SED in
6412 [\\/]* | ?:[\\/]*)
6413 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6414 ;;
6415 *)
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006423 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006425 break 2
6426 fi
6427done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006428done
Reid Spencera773bd52006-08-04 18:18:08 +00006429IFS=$as_save_IFS
6430
6431 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6432 ;;
6433esac
6434fi
6435SED=$ac_cv_path_SED
6436if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006437 { echo "$as_me:$LINENO: result: $SED" >&5
6438echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006440 { echo "$as_me:$LINENO: result: no" >&5
6441echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006442fi
6443
6444
6445# Extract the first word of "tar", so it can be a program name with args.
6446set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449if test "${ac_cv_path_TAR+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006451else
6452 case $TAR in
6453 [\\/]* | ?:[\\/]*)
6454 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6455 ;;
6456 *)
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006464 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006466 break 2
6467 fi
6468done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006469done
Reid Spencera773bd52006-08-04 18:18:08 +00006470IFS=$as_save_IFS
6471
6472 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6473 ;;
6474esac
6475fi
6476TAR=$ac_cv_path_TAR
6477if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 { echo "$as_me:$LINENO: result: $TAR" >&5
6479echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481 { echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006483fi
6484
6485
6486# Extract the first word of "pwd", so it can be a program name with args.
6487set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490if test "${ac_cv_path_BINPWD+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006492else
6493 case $BINPWD in
6494 [\\/]* | ?:[\\/]*)
6495 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6496 ;;
6497 *)
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006505 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006507 break 2
6508 fi
6509done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510done
Reid Spencera773bd52006-08-04 18:18:08 +00006511IFS=$as_save_IFS
6512
6513 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6514 ;;
6515esac
6516fi
6517BINPWD=$ac_cv_path_BINPWD
6518if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6520echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006522 { echo "$as_me:$LINENO: result: no" >&5
6523echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006524fi
6525
6526
6527
6528# Extract the first word of "Graphviz", so it can be a program name with args.
6529set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006534else
6535 case $GRAPHVIZ in
6536 [\\/]* | ?:[\\/]*)
6537 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6538 ;;
6539 *)
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541for as_dir in $PATH
6542do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006547 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006549 break 2
6550 fi
6551done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006552done
Reid Spencera773bd52006-08-04 18:18:08 +00006553IFS=$as_save_IFS
6554
6555 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6556 ;;
6557esac
6558fi
6559GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6560if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006561 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6562echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006564 { echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006566fi
6567
6568
6569if test "$GRAPHVIZ" != "echo Graphviz" ; then
6570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006571cat >>confdefs.h <<\_ACEOF
6572#define HAVE_GRAPHVIZ 1
6573_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006574
Jeff Cohen28783c32007-01-12 18:22:38 +00006575 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006576 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6577 fi
6578
6579cat >>confdefs.h <<_ACEOF
6580#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6581_ACEOF
6582
6583fi
6584# Extract the first word of "dot", so it can be a program name with args.
6585set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588if test "${ac_cv_path_DOT+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006590else
6591 case $DOT in
6592 [\\/]* | ?:[\\/]*)
6593 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6594 ;;
6595 *)
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006603 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006605 break 2
6606 fi
6607done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608done
Reid Spencera773bd52006-08-04 18:18:08 +00006609IFS=$as_save_IFS
6610
6611 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6612 ;;
6613esac
6614fi
6615DOT=$ac_cv_path_DOT
6616if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006617 { echo "$as_me:$LINENO: result: $DOT" >&5
6618echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006620 { echo "$as_me:$LINENO: result: no" >&5
6621echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006622fi
6623
6624
6625if test "$DOT" != "echo dot" ; then
6626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006627cat >>confdefs.h <<\_ACEOF
6628#define HAVE_DOT 1
6629_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006630
Jeff Cohen28783c32007-01-12 18:22:38 +00006631 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006632 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6633 fi
6634
6635cat >>confdefs.h <<_ACEOF
6636#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6637_ACEOF
6638
6639fi
David Greenef0b9eff2009-07-09 17:16:26 +00006640# Extract the first word of "fdp", so it can be a program name with args.
6641set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644if test "${ac_cv_path_FDP+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006646else
6647 case $FDP in
6648 [\\/]* | ?:[\\/]*)
6649 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6650 ;;
6651 *)
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006659 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006661 break 2
6662 fi
6663done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006664done
David Greenef0b9eff2009-07-09 17:16:26 +00006665IFS=$as_save_IFS
6666
6667 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6668 ;;
6669esac
6670fi
6671FDP=$ac_cv_path_FDP
6672if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006673 { echo "$as_me:$LINENO: result: $FDP" >&5
6674echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006676 { echo "$as_me:$LINENO: result: no" >&5
6677echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006678fi
6679
6680
6681if test "$FDP" != "echo fdp" ; then
6682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006683cat >>confdefs.h <<\_ACEOF
6684#define HAVE_FDP 1
6685_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006686
6687 if test "$llvm_cv_os_type" = "MingW" ; then
6688 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6689 fi
6690
6691cat >>confdefs.h <<_ACEOF
6692#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6693_ACEOF
6694
6695fi
6696# Extract the first word of "neato", so it can be a program name with args.
6697set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700if test "${ac_cv_path_NEATO+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006702else
6703 case $NEATO in
6704 [\\/]* | ?:[\\/]*)
6705 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6706 ;;
6707 *)
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006715 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006717 break 2
6718 fi
6719done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720done
David Greenef0b9eff2009-07-09 17:16:26 +00006721IFS=$as_save_IFS
6722
6723 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6724 ;;
6725esac
6726fi
6727NEATO=$ac_cv_path_NEATO
6728if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729 { echo "$as_me:$LINENO: result: $NEATO" >&5
6730echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006732 { echo "$as_me:$LINENO: result: no" >&5
6733echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006734fi
6735
6736
6737if test "$NEATO" != "echo neato" ; then
6738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006739cat >>confdefs.h <<\_ACEOF
6740#define HAVE_NEATO 1
6741_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006742
6743 if test "$llvm_cv_os_type" = "MingW" ; then
6744 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6745 fi
6746
6747cat >>confdefs.h <<_ACEOF
6748#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6749_ACEOF
6750
6751fi
6752# Extract the first word of "twopi", so it can be a program name with args.
6753set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756if test "${ac_cv_path_TWOPI+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006758else
6759 case $TWOPI in
6760 [\\/]* | ?:[\\/]*)
6761 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6762 ;;
6763 *)
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006771 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006773 break 2
6774 fi
6775done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776done
David Greenef0b9eff2009-07-09 17:16:26 +00006777IFS=$as_save_IFS
6778
6779 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6780 ;;
6781esac
6782fi
6783TWOPI=$ac_cv_path_TWOPI
6784if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6786echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788 { echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006790fi
6791
6792
6793if test "$TWOPI" != "echo twopi" ; then
6794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006795cat >>confdefs.h <<\_ACEOF
6796#define HAVE_TWOPI 1
6797_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006798
6799 if test "$llvm_cv_os_type" = "MingW" ; then
6800 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6801 fi
6802
6803cat >>confdefs.h <<_ACEOF
6804#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6805_ACEOF
6806
6807fi
6808# Extract the first word of "circo", so it can be a program name with args.
6809set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812if test "${ac_cv_path_CIRCO+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006814else
6815 case $CIRCO in
6816 [\\/]* | ?:[\\/]*)
6817 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6818 ;;
6819 *)
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00006827 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006829 break 2
6830 fi
6831done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006832done
David Greenef0b9eff2009-07-09 17:16:26 +00006833IFS=$as_save_IFS
6834
6835 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6836 ;;
6837esac
6838fi
6839CIRCO=$ac_cv_path_CIRCO
6840if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6842echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 { echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006846fi
6847
6848
6849if test "$CIRCO" != "echo circo" ; then
6850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006851cat >>confdefs.h <<\_ACEOF
6852#define HAVE_CIRCO 1
6853_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006854
6855 if test "$llvm_cv_os_type" = "MingW" ; then
6856 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6857 fi
6858
6859cat >>confdefs.h <<_ACEOF
6860#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6861_ACEOF
6862
6863fi
Reid Spencera773bd52006-08-04 18:18:08 +00006864for ac_prog in gv gsview32
6865do
6866 # Extract the first word of "$ac_prog", so it can be a program name with args.
6867set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870if test "${ac_cv_path_GV+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006872else
6873 case $GV in
6874 [\\/]* | ?:[\\/]*)
6875 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6876 ;;
6877 *)
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006885 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006887 break 2
6888 fi
6889done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890done
Reid Spencera773bd52006-08-04 18:18:08 +00006891IFS=$as_save_IFS
6892
6893 ;;
6894esac
6895fi
6896GV=$ac_cv_path_GV
6897if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006898 { echo "$as_me:$LINENO: result: $GV" >&5
6899echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006901 { echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006903fi
6904
6905
6906 test -n "$GV" && break
6907done
6908test -n "$GV" || GV="echo gv"
6909
6910if test "$GV" != "echo gv" ; then
6911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912cat >>confdefs.h <<\_ACEOF
6913#define HAVE_GV 1
6914_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006915
Jeff Cohen28783c32007-01-12 18:22:38 +00006916 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006917 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6918 fi
6919
6920cat >>confdefs.h <<_ACEOF
6921#define LLVM_PATH_GV "$GV${EXEEXT}"
6922_ACEOF
6923
6924fi
6925# Extract the first word of "dotty", so it can be a program name with args.
6926set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6929if test "${ac_cv_path_DOTTY+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006931else
6932 case $DOTTY in
6933 [\\/]* | ?:[\\/]*)
6934 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6935 ;;
6936 *)
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006944 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006946 break 2
6947 fi
6948done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949done
Reid Spencera773bd52006-08-04 18:18:08 +00006950IFS=$as_save_IFS
6951
6952 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6953 ;;
6954esac
6955fi
6956DOTTY=$ac_cv_path_DOTTY
6957if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6959echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006961 { echo "$as_me:$LINENO: result: no" >&5
6962echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006963fi
6964
6965
6966if test "$DOTTY" != "echo dotty" ; then
6967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006968cat >>confdefs.h <<\_ACEOF
6969#define HAVE_DOTTY 1
6970_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006971
Jeff Cohen28783c32007-01-12 18:22:38 +00006972 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006973 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6974 fi
6975
6976cat >>confdefs.h <<_ACEOF
6977#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6978_ACEOF
6979
6980fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006981# Extract the first word of "xdot.py", so it can be a program name with args.
6982set dummy xdot.py; ac_word=$2
6983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985if test "${ac_cv_path_XDOT_PY+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988 case $XDOT_PY in
6989 [\\/]* | ?:[\\/]*)
6990 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6991 ;;
6992 *)
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004done
7005done
7006IFS=$as_save_IFS
7007
7008 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7009 ;;
7010esac
7011fi
7012XDOT_PY=$ac_cv_path_XDOT_PY
7013if test -n "$XDOT_PY"; then
7014 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7015echo "${ECHO_T}$XDOT_PY" >&6; }
7016else
7017 { echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6; }
7019fi
7020
7021
7022if test "$XDOT_PY" != "echo xdot.py" ; then
7023
7024cat >>confdefs.h <<\_ACEOF
7025#define HAVE_XDOT_PY 1
7026_ACEOF
7027
7028 if test "$llvm_cv_os_type" = "MingW" ; then
7029 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7030 fi
7031
7032cat >>confdefs.h <<_ACEOF
7033#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7034_ACEOF
7035
7036fi
Reid Spencera773bd52006-08-04 18:18:08 +00007037
Reid Spencera773bd52006-08-04 18:18:08 +00007038# Find a good install program. We prefer a C program (faster),
7039# so one script is as good as another. But avoid the broken or
7040# incompatible versions:
7041# SysV /etc/install, /usr/sbin/install
7042# SunOS /usr/etc/install
7043# IRIX /sbin/install
7044# AIX /bin/install
7045# AmigaOS /C/install, which installs bootblocks on floppy discs
7046# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7047# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7048# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7049# OS/2's system install, which has a completely different semantic
7050# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7052echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007053if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054if test "${ac_cv_path_install+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007056else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007062 # Account for people who put trailing slashes in PATH elements.
7063case $as_dir/ in
7064 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007065 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007066 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007067 /usr/ucb/* ) ;;
7068 *)
7069 # OSF1 and SCO ODT 3.0 have their own names for install.
7070 # Don't use installbsd from OSF since it installs stuff as root
7071 # by default.
7072 for ac_prog in ginstall scoinst install; do
7073 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007075 if test $ac_prog = install &&
7076 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7077 # AIX install. It has an incompatible calling convention.
7078 :
7079 elif test $ac_prog = install &&
7080 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7081 # program-specific install script used by HP pwplus--don't use.
7082 :
7083 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7085 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007086 fi
7087 fi
7088 done
7089 done
7090 ;;
7091esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092done
Reid Spencera773bd52006-08-04 18:18:08 +00007093IFS=$as_save_IFS
7094
7095
7096fi
7097 if test "${ac_cv_path_install+set}" = set; then
7098 INSTALL=$ac_cv_path_install
7099 else
7100 # As a last resort, use the slow shell script. Don't cache a
7101 # value for INSTALL within a source directory, because that will
7102 # break other packages using the cache if that directory is
7103 # removed, or if the value is a relative name.
7104 INSTALL=$ac_install_sh
7105 fi
7106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007107{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7108echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007109
7110# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7111# It thinks the first close brace ends the variable substitution.
7112test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7113
7114test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7115
7116test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7117
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007118case "$INSTALL" in
7119 [\\/$]* | ?:[\\/]* ) ;;
7120 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7121esac
Reid Spencera773bd52006-08-04 18:18:08 +00007122
7123# Extract the first word of "bzip2", so it can be a program name with args.
7124set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127if test "${ac_cv_path_BZIP2+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007129else
7130 case $BZIP2 in
7131 [\\/]* | ?:[\\/]*)
7132 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7133 ;;
7134 *)
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007142 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007144 break 2
7145 fi
7146done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007147done
Reid Spencera773bd52006-08-04 18:18:08 +00007148IFS=$as_save_IFS
7149
Reid Spencera773bd52006-08-04 18:18:08 +00007150 ;;
7151esac
7152fi
7153BZIP2=$ac_cv_path_BZIP2
7154if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007155 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7156echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007157else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007158 { echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007160fi
7161
7162
mike-m68cb3192010-05-06 23:45:43 +00007163# Extract the first word of "cat", so it can be a program name with args.
7164set dummy cat; ac_word=$2
7165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167if test "${ac_cv_path_CAT+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169else
7170 case $CAT in
7171 [\\/]* | ?:[\\/]*)
7172 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7173 ;;
7174 *)
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186done
7187done
7188IFS=$as_save_IFS
7189
7190 ;;
7191esac
7192fi
7193CAT=$ac_cv_path_CAT
7194if test -n "$CAT"; then
7195 { echo "$as_me:$LINENO: result: $CAT" >&5
7196echo "${ECHO_T}$CAT" >&6; }
7197else
7198 { echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6; }
7200fi
7201
7202
Reid Spencera773bd52006-08-04 18:18:08 +00007203# Extract the first word of "doxygen", so it can be a program name with args.
7204set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207if test "${ac_cv_path_DOXYGEN+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007209else
7210 case $DOXYGEN in
7211 [\\/]* | ?:[\\/]*)
7212 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7213 ;;
7214 *)
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007222 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007224 break 2
7225 fi
7226done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227done
Reid Spencera773bd52006-08-04 18:18:08 +00007228IFS=$as_save_IFS
7229
Reid Spencera773bd52006-08-04 18:18:08 +00007230 ;;
7231esac
7232fi
7233DOXYGEN=$ac_cv_path_DOXYGEN
7234if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7236echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 { echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007240fi
7241
7242
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007243# Extract the first word of "groff", so it can be a program name with args.
7244set dummy groff; ac_word=$2
7245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247if test "${ac_cv_path_GROFF+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250 case $GROFF in
7251 [\\/]* | ?:[\\/]*)
7252 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7253 ;;
7254 *)
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266done
7267done
7268IFS=$as_save_IFS
7269
7270 ;;
7271esac
7272fi
7273GROFF=$ac_cv_path_GROFF
7274if test -n "$GROFF"; then
7275 { echo "$as_me:$LINENO: result: $GROFF" >&5
7276echo "${ECHO_T}$GROFF" >&6; }
7277else
7278 { echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6; }
7280fi
7281
7282
Reid Spencera773bd52006-08-04 18:18:08 +00007283# Extract the first word of "gzip", so it can be a program name with args.
7284set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007287if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007289else
Eric Christopher031d3072010-12-10 01:31:51 +00007290 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007291 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007292 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007293 ;;
7294 *)
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007302 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007304 break 2
7305 fi
7306done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307done
Reid Spencera773bd52006-08-04 18:18:08 +00007308IFS=$as_save_IFS
7309
Reid Spencera773bd52006-08-04 18:18:08 +00007310 ;;
7311esac
7312fi
Eric Christopher031d3072010-12-10 01:31:51 +00007313GZIPBIN=$ac_cv_path_GZIPBIN
7314if test -n "$GZIPBIN"; then
7315 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7316echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 { echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007320fi
7321
7322
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007323# Extract the first word of "pdfroff", so it can be a program name with args.
7324set dummy pdfroff; ac_word=$2
7325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327if test "${ac_cv_path_PDFROFF+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330 case $PDFROFF in
7331 [\\/]* | ?:[\\/]*)
7332 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7333 ;;
7334 *)
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7345 fi
7346done
7347done
7348IFS=$as_save_IFS
7349
7350 ;;
7351esac
7352fi
7353PDFROFF=$ac_cv_path_PDFROFF
7354if test -n "$PDFROFF"; then
7355 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7356echo "${ECHO_T}$PDFROFF" >&6; }
7357else
7358 { echo "$as_me:$LINENO: result: no" >&5
7359echo "${ECHO_T}no" >&6; }
7360fi
7361
7362
Reid Spencera773bd52006-08-04 18:18:08 +00007363# Extract the first word of "zip", so it can be a program name with args.
7364set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7367if test "${ac_cv_path_ZIP+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007369else
7370 case $ZIP in
7371 [\\/]* | ?:[\\/]*)
7372 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7373 ;;
7374 *)
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376for as_dir in $PATH
7377do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007382 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007384 break 2
7385 fi
7386done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007387done
Reid Spencera773bd52006-08-04 18:18:08 +00007388IFS=$as_save_IFS
7389
Reid Spencera773bd52006-08-04 18:18:08 +00007390 ;;
7391esac
7392fi
7393ZIP=$ac_cv_path_ZIP
7394if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395 { echo "$as_me:$LINENO: result: $ZIP" >&5
7396echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007398 { echo "$as_me:$LINENO: result: no" >&5
7399echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007400fi
7401
7402
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007403for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007404do
7405 # Extract the first word of "$ac_prog", so it can be a program name with args.
7406set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409if test "${ac_cv_path_OCAMLC+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007411else
7412 case $OCAMLC in
7413 [\\/]* | ?:[\\/]*)
7414 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7415 ;;
7416 *)
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007424 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007426 break 2
7427 fi
7428done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007430IFS=$as_save_IFS
7431
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007432 ;;
7433esac
7434fi
7435OCAMLC=$ac_cv_path_OCAMLC
7436if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7438echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007440 { echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007442fi
7443
7444
Gordon Henriksene7072162008-03-07 18:20:01 +00007445 test -n "$OCAMLC" && break
7446done
7447
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007448for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007449do
7450 # Extract the first word of "$ac_prog", so it can be a program name with args.
7451set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007456else
7457 case $OCAMLOPT in
7458 [\\/]* | ?:[\\/]*)
7459 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7460 ;;
7461 *)
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007469 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007471 break 2
7472 fi
7473done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007475IFS=$as_save_IFS
7476
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007477 ;;
7478esac
7479fi
7480OCAMLOPT=$ac_cv_path_OCAMLOPT
7481if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7483echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007485 { echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007487fi
7488
7489
Gordon Henriksene7072162008-03-07 18:20:01 +00007490 test -n "$OCAMLOPT" && break
7491done
7492
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007493for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007494do
7495 # Extract the first word of "$ac_prog", so it can be a program name with args.
7496set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007501else
7502 case $OCAMLDEP in
7503 [\\/]* | ?:[\\/]*)
7504 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7505 ;;
7506 *)
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007514 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007516 break 2
7517 fi
7518done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007520IFS=$as_save_IFS
7521
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007522 ;;
7523esac
7524fi
7525OCAMLDEP=$ac_cv_path_OCAMLDEP
7526if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7528echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 { echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007532fi
7533
7534
Gordon Henriksene7072162008-03-07 18:20:01 +00007535 test -n "$OCAMLDEP" && break
7536done
7537
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007538for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007539do
7540 # Extract the first word of "$ac_prog", so it can be a program name with args.
7541set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007546else
7547 case $OCAMLDOC in
7548 [\\/]* | ?:[\\/]*)
7549 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7550 ;;
7551 *)
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007559 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007561 break 2
7562 fi
7563done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007564done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007565IFS=$as_save_IFS
7566
7567 ;;
7568esac
7569fi
7570OCAMLDOC=$ac_cv_path_OCAMLDOC
7571if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7573echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575 { echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007577fi
7578
7579
7580 test -n "$OCAMLDOC" && break
7581done
7582
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007583for ac_prog in gas as
7584do
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586set dummy $ac_prog; ac_word=$2
7587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_GAS+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592 case $GAS in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7595 ;;
7596 *)
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609done
7610IFS=$as_save_IFS
7611
7612 ;;
7613esac
7614fi
7615GAS=$ac_cv_path_GAS
7616if test -n "$GAS"; then
7617 { echo "$as_me:$LINENO: result: $GAS" >&5
7618echo "${ECHO_T}$GAS" >&6; }
7619else
7620 { echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6; }
7622fi
7623
7624
7625 test -n "$GAS" && break
7626done
7627
Reid Spencera773bd52006-08-04 18:18:08 +00007628
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007629{ echo "$as_me:$LINENO: checking for linker version" >&5
7630echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7631if test "${llvm_cv_link_version+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634
7635 version_string="$(ld -v 2>&1 | head -1)"
7636
7637 # Check for ld64.
7638 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007639 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007640 else
7641 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7642 fi
7643
7644fi
7645{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7646echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7647
7648cat >>confdefs.h <<_ACEOF
7649#define HOST_LINK_VERSION "$llvm_cv_link_version"
7650_ACEOF
7651
7652
7653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007654{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7655echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7656if test "${llvm_cv_link_use_r+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007658else
7659 ac_ext=c
7660ac_cpp='$CPP $CPPFLAGS'
7661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664
7665 oldcflags="$CFLAGS"
7666 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667 cat >conftest.$ac_ext <<_ACEOF
7668/* confdefs.h. */
7669_ACEOF
7670cat confdefs.h >>conftest.$ac_ext
7671cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007672/* end confdefs.h. */
7673
7674int
7675main ()
7676{
Dan Gohman39ed6782010-04-25 00:12:20 +00007677
Reid Spencera773bd52006-08-04 18:18:08 +00007678 ;
7679 return 0;
7680}
7681_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007682rm -f conftest.$ac_objext conftest$ac_exeext
7683if { (ac_try="$ac_link"
7684case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687esac
7688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_link") 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7697 { (case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700esac
7701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_try") 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; } &&
7706 { ac_try='test -s conftest$ac_exeext'
7707 { (case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7710esac
7711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_try") 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007716 llvm_cv_link_use_r=yes
7717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718 echo "$as_me: failed program was:" >&5
7719sed 's/^/| /' conftest.$ac_ext >&5
7720
7721 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723
Bill Wendlingebcceee2009-04-18 11:20:33 +00007724rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007726 CFLAGS="$oldcflags"
7727 ac_ext=c
7728ac_cpp='$CPP $CPPFLAGS'
7729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732
7733
7734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007735{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7736echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007737if test "$llvm_cv_link_use_r" = yes ; then
7738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739cat >>confdefs.h <<\_ACEOF
7740#define HAVE_LINK_R 1
7741_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007742
7743 fi
7744
7745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7747echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7748if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007750else
7751 ac_ext=c
7752ac_cpp='$CPP $CPPFLAGS'
7753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757 oldcflags="$CFLAGS"
7758 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007759 cat >conftest.$ac_ext <<_ACEOF
7760/* confdefs.h. */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007764/* end confdefs.h. */
7765
7766int
7767main ()
7768{
Dan Gohman39ed6782010-04-25 00:12:20 +00007769
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007770 ;
7771 return 0;
7772}
7773_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007774rm -f conftest.$ac_objext conftest$ac_exeext
7775if { (ac_try="$ac_link"
7776case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779esac
7780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_link") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7789 { (case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7792esac
7793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794 (eval "$ac_try") 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try='test -s conftest$ac_exeext'
7799 { (case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802esac
7803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_try") 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007808 llvm_cv_link_use_export_dynamic=yes
7809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007810 echo "$as_me: failed program was:" >&5
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
7813 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007815
Bill Wendlingebcceee2009-04-18 11:20:33 +00007816rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007817 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007818 CFLAGS="$oldcflags"
7819 ac_ext=c
7820ac_cpp='$CPP $CPPFLAGS'
7821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007827{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7828echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007829if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007831cat >>confdefs.h <<\_ACEOF
7832#define HAVE_LINK_EXPORT_DYNAMIC 1
7833_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007834
7835 fi
7836
7837
Dan Gohmanda612d62010-06-01 14:56:56 +00007838{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7839echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7840if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843 ac_ext=c
7844ac_cpp='$CPP $CPPFLAGS'
7845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
7849 oldcflags="$CFLAGS"
7850
7851 # The following code is from the autoconf manual,
7852 # "11.13: Limitations of Usual Tools".
7853 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7854 # Use mktemp if possible; otherwise fall back on mkdir,
7855 # with $RANDOM to make collisions less likely.
7856 : ${TMPDIR=/tmp}
7857 {
7858 tmp=`
7859 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7860 ` &&
7861 test -n "$tmp" && test -d "$tmp"
7862 } || {
7863 tmp=$TMPDIR/foo$$-$RANDOM
7864 (umask 077 && mkdir "$tmp")
7865 } || exit $?
7866
Dan Gohmanda612d62010-06-01 14:56:56 +00007867 echo "{" > "$tmp/export.map"
7868 echo " global: main;" >> "$tmp/export.map"
7869 echo " local: *;" >> "$tmp/export.map"
7870 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007871
Dan Gohmanda612d62010-06-01 14:56:56 +00007872 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007873 cat >conftest.$ac_ext <<_ACEOF
7874/* confdefs.h. */
7875_ACEOF
7876cat confdefs.h >>conftest.$ac_ext
7877cat >>conftest.$ac_ext <<_ACEOF
7878/* end confdefs.h. */
7879
7880int
7881main ()
7882{
Dan Gohman39ed6782010-04-25 00:12:20 +00007883
Dan Gohman391569c2010-04-16 22:59:06 +00007884 ;
7885 return 0;
7886}
7887_ACEOF
7888rm -f conftest.$ac_objext conftest$ac_exeext
7889if { (ac_try="$ac_link"
7890case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7893esac
7894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_link") 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7903 { (case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906esac
7907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_try") 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest$ac_exeext'
7913 { (case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7916esac
7917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_try") 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007922 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007923else
7924 echo "$as_me: failed program was:" >&5
7925sed 's/^/| /' conftest.$ac_ext >&5
7926
Dan Gohman943005e2010-06-01 16:22:27 +00007927 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007928fi
7929
7930rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007932 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007933 rmdir "$tmp"
7934 CFLAGS="$oldcflags"
7935 ac_ext=c
7936ac_cpp='$CPP $CPPFLAGS'
7937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940
7941
7942fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007943{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7944echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7945if test "$llvm_cv_link_use_version_script" = yes ; then
7946 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007947
7948 fi
7949
7950
Reid Spencera773bd52006-08-04 18:18:08 +00007951
7952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7954echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7955if test "${ac_cv_c_const+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007958 cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h. */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007963/* end confdefs.h. */
7964
7965int
7966main ()
7967{
7968/* FIXME: Include the comments suggested by Paul. */
7969#ifndef __cplusplus
7970 /* Ultrix mips cc rejects this. */
7971 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007972 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007973 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007974 char const *const *ccp;
7975 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007976 /* NEC SVR4.0.2 mips cc rejects this. */
7977 struct point {int x, y;};
7978 static struct point const zero = {0,0};
7979 /* AIX XL C 1.02.0.0 rejects this.
7980 It does not let you subtract one const X* pointer from another in
7981 an arm of an if-expression whose if-part is not a constant
7982 expression */
7983 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007984 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007985 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007986 ++ccp;
7987 p = (char**) ccp;
7988 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007989 { /* SCO 3.2v4 cc rejects this. */
7990 char *t;
7991 char const *s = 0 ? (char *) 0 : (char const *) 0;
7992
7993 *t++ = 0;
7994 if (s) return 0;
7995 }
7996 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7997 int x[] = {25, 17};
7998 const int *foo = &x[0];
7999 ++foo;
8000 }
8001 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8002 typedef const int *iptr;
8003 iptr p = 0;
8004 ++p;
8005 }
8006 { /* AIX XL C 1.02.0.0 rejects this saying
8007 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8008 struct s { int j; const int *ap[3]; };
8009 struct s *b; b->j = 5;
8010 }
8011 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8012 const int foo = 10;
8013 if (!foo) return 0;
8014 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008015 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008016#endif
8017
8018 ;
8019 return 0;
8020}
8021_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008022rm -f conftest.$ac_objext
8023if { (ac_try="$ac_compile"
8024case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027esac
8028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040esac
8041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest.$ac_objext'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050esac
8051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008056 ac_cv_c_const=yes
8057else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008058 echo "$as_me: failed program was:" >&5
8059sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008063
Reid Spencera773bd52006-08-04 18:18:08 +00008064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008066{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8067echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008068if test $ac_cv_c_const = no; then
8069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008070cat >>confdefs.h <<\_ACEOF
8071#define const
8072_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008073
8074fi
8075
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008076
8077
8078
8079
8080
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008081ac_header_dirent=no
8082for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8084{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8085echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089 cat >conftest.$ac_ext <<_ACEOF
8090/* confdefs.h. */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008094/* end confdefs.h. */
8095#include <sys/types.h>
8096#include <$ac_hdr>
8097
8098int
8099main ()
8100{
8101if ((DIR *) 0)
8102return 0;
8103 ;
8104 return 0;
8105}
8106_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008107rm -f conftest.$ac_objext
8108if { (ac_try="$ac_compile"
8109case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112esac
8113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008141 eval "$as_ac_Header=yes"
8142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143 echo "$as_me: failed program was:" >&5
8144sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008148
Reid Spencera773bd52006-08-04 18:18:08 +00008149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151ac_res=`eval echo '${'$as_ac_Header'}'`
8152 { echo "$as_me:$LINENO: result: $ac_res" >&5
8153echo "${ECHO_T}$ac_res" >&6; }
8154if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008155 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008156#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008157_ACEOF
8158
8159ac_header_dirent=$ac_hdr; break
8160fi
8161
8162done
8163# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8164if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8166echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8167if test "${ac_cv_search_opendir+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008169else
8170 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008171cat >conftest.$ac_ext <<_ACEOF
8172/* confdefs.h. */
8173_ACEOF
8174cat confdefs.h >>conftest.$ac_ext
8175cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008176/* end confdefs.h. */
8177
Reid Spencera773bd52006-08-04 18:18:08 +00008178/* Override any GCC internal prototype to avoid an error.
8179 Use char because int might match the return type of a GCC
8180 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008181#ifdef __cplusplus
8182extern "C"
8183#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008184char opendir ();
8185int
8186main ()
8187{
Reid Spencera773bd52006-08-04 18:18:08 +00008188return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008189 ;
8190 return 0;
8191}
8192_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008193for ac_lib in '' dir; do
8194 if test -z "$ac_lib"; then
8195 ac_res="none required"
8196 else
8197 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008199 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200 rm -f conftest.$ac_objext conftest$ac_exeext
8201if { (ac_try="$ac_link"
8202case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205esac
8206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_link") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008234 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008235else
8236 echo "$as_me: failed program was:" >&5
8237sed 's/^/| /' conftest.$ac_ext >&5
8238
8239
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241
Bill Wendlingebcceee2009-04-18 11:20:33 +00008242rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243 conftest$ac_exeext
8244 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008245 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008246fi
John Criswell7a73b802003-06-30 21:59:07 +00008247done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248if test "${ac_cv_search_opendir+set}" = set; then
8249 :
Reid Spencera773bd52006-08-04 18:18:08 +00008250else
8251 ac_cv_search_opendir=no
8252fi
8253rm conftest.$ac_ext
8254LIBS=$ac_func_search_save_LIBS
8255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8257echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008258ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008259if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008261
Reid Spencera773bd52006-08-04 18:18:08 +00008262fi
8263
8264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008265 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8266echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8267if test "${ac_cv_search_opendir+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008269else
8270 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008271cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008276/* end confdefs.h. */
8277
8278/* Override any GCC internal prototype to avoid an error.
8279 Use char because int might match the return type of a GCC
8280 builtin and then its argument prototype would still apply. */
8281#ifdef __cplusplus
8282extern "C"
8283#endif
8284char opendir ();
8285int
8286main ()
8287{
8288return opendir ();
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293for ac_lib in '' x; do
8294 if test -z "$ac_lib"; then
8295 ac_res="none required"
8296 else
8297 ac_res=-l$ac_lib
8298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8299 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300 rm -f conftest.$ac_objext conftest$ac_exeext
8301if { (ac_try="$ac_link"
8302case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_link") 2>conftest.er1
8308 ac_status=$?
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8318esac
8319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_try") 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008334 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008335else
8336 echo "$as_me: failed program was:" >&5
8337sed 's/^/| /' conftest.$ac_ext >&5
8338
8339
Reid Spencera773bd52006-08-04 18:18:08 +00008340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341
Bill Wendlingebcceee2009-04-18 11:20:33 +00008342rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343 conftest$ac_exeext
8344 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008345 break
8346fi
8347done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348if test "${ac_cv_search_opendir+set}" = set; then
8349 :
Reid Spencera773bd52006-08-04 18:18:08 +00008350else
8351 ac_cv_search_opendir=no
8352fi
8353rm conftest.$ac_ext
8354LIBS=$ac_func_search_save_LIBS
8355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8357echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008358ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008359if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8361
8362fi
8363
8364fi
John Criswell7a73b802003-06-30 21:59:07 +00008365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008366
John Criswell7a73b802003-06-30 21:59:07 +00008367for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368do
8369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375fi
8376ac_res=`eval echo '${'$as_ac_Header'}'`
8377 { echo "$as_me:$LINENO: result: $ac_res" >&5
8378echo "${ECHO_T}$ac_res" >&6; }
8379else
8380 # Is the header compilable?
8381{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8383cat >conftest.$ac_ext <<_ACEOF
8384/* confdefs.h. */
8385_ACEOF
8386cat confdefs.h >>conftest.$ac_ext
8387cat >>conftest.$ac_ext <<_ACEOF
8388/* end confdefs.h. */
8389$ac_includes_default
8390#include <$ac_header>
8391_ACEOF
8392rm -f conftest.$ac_objext
8393if { (ac_try="$ac_compile"
8394case "(($ac_try" in
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8397esac
8398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_compile") 2>conftest.er1
8400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8407 { (case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410esac
8411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_try") 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420esac
8421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_header_compiler=yes
8427else
8428 echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ac_header_compiler=no
8432fi
8433
8434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8436echo "${ECHO_T}$ac_header_compiler" >&6; }
8437
8438# Is the header present?
8439{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8441cat >conftest.$ac_ext <<_ACEOF
8442/* confdefs.h. */
8443_ACEOF
8444cat confdefs.h >>conftest.$ac_ext
8445cat >>conftest.$ac_ext <<_ACEOF
8446/* end confdefs.h. */
8447#include <$ac_header>
8448_ACEOF
8449if { (ac_try="$ac_cpp conftest.$ac_ext"
8450case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8453esac
8454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } >/dev/null; then
8462 if test -s conftest.err; then
8463 ac_cpp_err=$ac_c_preproc_warn_flag
8464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8465 else
8466 ac_cpp_err=
8467 fi
8468else
8469 ac_cpp_err=yes
8470fi
8471if test -z "$ac_cpp_err"; then
8472 ac_header_preproc=yes
8473else
8474 echo "$as_me: failed program was:" >&5
8475sed 's/^/| /' conftest.$ac_ext >&5
8476
8477 ac_header_preproc=no
8478fi
8479
8480rm -f conftest.err conftest.$ac_ext
8481{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8482echo "${ECHO_T}$ac_header_preproc" >&6; }
8483
8484# So? What about this header?
8485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8486 yes:no: )
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8491 ac_header_preproc=yes
8492 ;;
8493 no:yes:* )
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8506 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008507## ------------------------------------ ##
8508## Report this to http://llvm.org/bugs/ ##
8509## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008510_ASBOX
8511 ) | sed "s/^/$as_me: WARNING: /" >&2
8512 ;;
8513esac
8514{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518else
8519 eval "$as_ac_Header=\$ac_header_preproc"
8520fi
8521ac_res=`eval echo '${'$as_ac_Header'}'`
8522 { echo "$as_me:$LINENO: result: $ac_res" >&5
8523echo "${ECHO_T}$ac_res" >&6; }
8524
8525fi
8526if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008527 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008529_ACEOF
8530
8531fi
8532
8533done
8534
Reid Spencera773bd52006-08-04 18:18:08 +00008535# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008537 enableval=$enable_ltdl_install;
8538fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008539
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541
8542
8543if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008544 INSTALL_LTDL_TRUE=
8545 INSTALL_LTDL_FALSE='#'
8546else
8547 INSTALL_LTDL_TRUE='#'
8548 INSTALL_LTDL_FALSE=
8549fi
8550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008551
8552
8553if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008554 CONVENIENCE_LTDL_TRUE=
8555 CONVENIENCE_LTDL_FALSE='#'
8556else
8557 CONVENIENCE_LTDL_TRUE='#'
8558 CONVENIENCE_LTDL_FALSE=
8559fi
8560
8561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8563echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008564library_names_spec=
8565libname_spec='lib$name'
8566soname_spec=
8567shrext_cmds=".so"
8568postinstall_cmds=
8569postuninstall_cmds=
8570finish_cmds=
8571finish_eval=
8572shlibpath_var=
8573shlibpath_overrides_runpath=unknown
8574version_type=none
8575dynamic_linker="$host_os ld.so"
8576sys_lib_dlsearch_path_spec="/lib /usr/lib"
8577if test "$GCC" = yes; then
8578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8579 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8580 # if the path contains ";" then we assume it to be the separator
8581 # otherwise default to the standard path separator (i.e. ":") - it is
8582 # assumed that no part of a normal pathname contains ";" but that should
8583 # okay in the real world where ";" in dirpaths is itself problematic.
8584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8585 else
8586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8587 fi
8588else
8589 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8590fi
8591need_lib_prefix=unknown
8592hardcode_into_libs=no
8593
8594# when you set need_version to no, make sure it does not cause -set_version
8595# flags to be left without arguments
8596need_version=unknown
8597
8598case $host_os in
8599aix3*)
8600 version_type=linux
8601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8602 shlibpath_var=LIBPATH
8603
8604 # AIX 3 has no versioning support, so we append a major version to the name.
8605 soname_spec='${libname}${release}${shared_ext}$major'
8606 ;;
8607
8608aix4* | aix5*)
8609 version_type=linux
8610 need_lib_prefix=no
8611 need_version=no
8612 hardcode_into_libs=yes
8613 if test "$host_cpu" = ia64; then
8614 # AIX 5 supports IA64
8615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8616 shlibpath_var=LD_LIBRARY_PATH
8617 else
8618 # With GCC up to 2.95.x, collect2 would create an import file
8619 # for dependence libraries. The import file would start with
8620 # the line `#! .'. This would cause the generated library to
8621 # depend on `.', always an invalid library. This was fixed in
8622 # development snapshots of GCC prior to 3.0.
8623 case $host_os in
8624 aix4 | aix4.[01] | aix4.[01].*)
8625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8626 echo ' yes '
8627 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8628 :
8629 else
8630 can_build_shared=no
8631 fi
8632 ;;
8633 esac
8634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8635 # soname into executable. Probably we can add versioning support to
8636 # collect2, so additional links can be useful in future.
8637 if test "$aix_use_runtimelinking" = yes; then
8638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8639 # instead of lib<name>.a to let people know that these are not
8640 # typical AIX shared libraries.
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8642 else
8643 # We preserve .a as extension for shared libraries through AIX4.2
8644 # and later when we are not doing run time linking.
8645 library_names_spec='${libname}${release}.a $libname.a'
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 fi
8648 shlibpath_var=LIBPATH
8649 fi
8650 ;;
8651
8652amigaos*)
8653 library_names_spec='$libname.ixlibrary $libname.a'
8654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8655 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'
8656 ;;
8657
8658beos*)
8659 library_names_spec='${libname}${shared_ext}'
8660 dynamic_linker="$host_os ld.so"
8661 shlibpath_var=LIBRARY_PATH
8662 ;;
8663
8664bsdi[45]*)
8665 version_type=linux
8666 need_version=no
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668 soname_spec='${libname}${release}${shared_ext}$major'
8669 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8670 shlibpath_var=LD_LIBRARY_PATH
8671 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8672 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8673 # the default ld.so.conf also contains /usr/contrib/lib and
8674 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8675 # libtool to hard-code these into programs
8676 ;;
8677
8678cygwin* | mingw* | pw32*)
8679 version_type=windows
8680 shrext_cmds=".dll"
8681 need_version=no
8682 need_lib_prefix=no
8683
8684 case $GCC,$host_os in
8685 yes,cygwin* | yes,mingw* | yes,pw32*)
8686 library_names_spec='$libname.dll.a'
8687 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8688 postinstall_cmds='base_file=`basename \${file}`~
8689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8690 dldir=$destdir/`dirname \$dlpath`~
8691 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008692 $install_prog $dir/$dlname \$dldir/$dlname~
8693 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8695 dlpath=$dir/\$dldll~
8696 $rm \$dlpath'
8697 shlibpath_overrides_runpath=yes
8698
8699 case $host_os in
8700 cygwin*)
8701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8702 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8703 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8704 ;;
8705 mingw*)
8706 # MinGW DLLs use traditional 'lib' prefix
8707 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8709 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8710 # It is most probably a Windows format PATH printed by
8711 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8712 # path with ; separators, and with drive letters. We can handle the
8713 # drive letters (cygwin fileutils understands them), so leave them,
8714 # especially as we might pass files found there to a mingw objdump,
8715 # which wouldn't understand a cygwinified path. Ahh.
8716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8717 else
8718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8719 fi
8720 ;;
8721 pw32*)
8722 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008723 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008724 ;;
8725 esac
8726 ;;
8727
8728 *)
8729 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8730 ;;
8731 esac
8732 dynamic_linker='Win32 ld.exe'
8733 # FIXME: first we should search . and the directory the executable is in
8734 shlibpath_var=PATH
8735 ;;
8736
8737darwin* | rhapsody*)
8738 dynamic_linker="$host_os dyld"
8739 version_type=darwin
8740 need_lib_prefix=no
8741 need_version=no
8742 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8743 soname_spec='${libname}${release}${major}$shared_ext'
8744 shlibpath_overrides_runpath=yes
8745 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008746 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008747 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8748 if test "$GCC" = yes; then
8749 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"`
8750 else
8751 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8752 fi
8753 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8754 ;;
8755
8756dgux*)
8757 version_type=linux
8758 need_lib_prefix=no
8759 need_version=no
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8761 soname_spec='${libname}${release}${shared_ext}$major'
8762 shlibpath_var=LD_LIBRARY_PATH
8763 ;;
8764
Eric Christopher360fa9a2011-10-26 00:42:12 +00008765freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008766 dynamic_linker=no
8767 ;;
8768
8769kfreebsd*-gnu)
8770 version_type=linux
8771 need_lib_prefix=no
8772 need_version=no
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8774 soname_spec='${libname}${release}${shared_ext}$major'
8775 shlibpath_var=LD_LIBRARY_PATH
8776 shlibpath_overrides_runpath=no
8777 hardcode_into_libs=yes
8778 dynamic_linker='GNU ld.so'
8779 ;;
8780
Reid Spencera773bd52006-08-04 18:18:08 +00008781freebsd* | dragonfly*)
8782 # DragonFly does not have aout. When/if they implement a new
8783 # versioning mechanism, adjust this.
8784 if test -x /usr/bin/objformat; then
8785 objformat=`/usr/bin/objformat`
8786 else
8787 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008788 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008789 *) objformat=elf ;;
8790 esac
8791 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008792 version_type=freebsd-$objformat
8793 case $version_type in
8794 freebsd-elf*)
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8796 need_version=no
8797 need_lib_prefix=no
8798 ;;
8799 freebsd-*)
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8801 need_version=yes
8802 ;;
8803 esac
8804 shlibpath_var=LD_LIBRARY_PATH
8805 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008806 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008807 shlibpath_overrides_runpath=yes
8808 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008809 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008810 shlibpath_overrides_runpath=yes
8811 hardcode_into_libs=yes
8812 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008813 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8814 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008815 shlibpath_overrides_runpath=no
8816 hardcode_into_libs=yes
8817 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008818 freebsd*) # from 4.6 on
8819 shlibpath_overrides_runpath=yes
8820 hardcode_into_libs=yes
8821 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008822 esac
8823 ;;
8824
8825gnu*)
8826 version_type=linux
8827 need_lib_prefix=no
8828 need_version=no
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 shlibpath_var=LD_LIBRARY_PATH
8832 hardcode_into_libs=yes
8833 ;;
8834
8835hpux9* | hpux10* | hpux11*)
8836 # Give a soname corresponding to the major version so that dld.sl refuses to
8837 # link against other versions.
8838 version_type=sunos
8839 need_lib_prefix=no
8840 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008841 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008842 ia64*)
8843 shrext_cmds='.so'
8844 hardcode_into_libs=yes
8845 dynamic_linker="$host_os dld.so"
8846 shlibpath_var=LD_LIBRARY_PATH
8847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 if test "X$HPUX_IA64_MODE" = X32; then
8851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8852 else
8853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8854 fi
8855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8856 ;;
8857 hppa*64*)
8858 shrext_cmds='.sl'
8859 hardcode_into_libs=yes
8860 dynamic_linker="$host_os dld.sl"
8861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8867 ;;
8868 *)
8869 shrext_cmds='.sl'
8870 dynamic_linker="$host_os dld.sl"
8871 shlibpath_var=SHLIB_PATH
8872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 ;;
8876 esac
8877 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8878 postinstall_cmds='chmod 555 $lib'
8879 ;;
8880
Reid Spencera773bd52006-08-04 18:18:08 +00008881interix3*)
8882 version_type=linux
8883 need_lib_prefix=no
8884 need_version=no
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 shlibpath_overrides_runpath=no
8890 hardcode_into_libs=yes
8891 ;;
8892
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008893irix5* | irix6* | nonstopux*)
8894 case $host_os in
8895 nonstopux*) version_type=nonstopux ;;
8896 *)
8897 if test "$lt_cv_prog_gnu_ld" = yes; then
8898 version_type=linux
8899 else
8900 version_type=irix
8901 fi ;;
8902 esac
8903 need_lib_prefix=no
8904 need_version=no
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8907 case $host_os in
8908 irix5* | nonstopux*)
8909 libsuff= shlibsuff=
8910 ;;
8911 *)
8912 case $LD in # libtool.m4 will add one of these switches to LD
8913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8914 libsuff= shlibsuff= libmagic=32-bit;;
8915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8916 libsuff=32 shlibsuff=N32 libmagic=N32;;
8917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8919 *) libsuff= shlibsuff= libmagic=never-match;;
8920 esac
8921 ;;
8922 esac
8923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8924 shlibpath_overrides_runpath=no
8925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8927 hardcode_into_libs=yes
8928 ;;
8929
8930# No shared lib support for Linux oldld, aout, or coff.
8931linux*oldld* | linux*aout* | linux*coff*)
8932 dynamic_linker=no
8933 ;;
8934
8935# This must be Linux ELF.
8936linux*)
8937 version_type=linux
8938 need_lib_prefix=no
8939 need_version=no
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=no
8945 # This implies no fast_install, which is unacceptable.
8946 # Some rework will be needed to allow for fast_install
8947 # before this can be enabled.
8948 hardcode_into_libs=yes
8949
8950 # Append ld.so.conf contents to the search path
8951 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008952 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8954 fi
8955
8956 # We used to test for /lib/ld.so.1 and disable shared libraries on
8957 # powerpc, because MkLinux only supported shared libraries with the
8958 # GNU dynamic linker. Since this was broken with cross compilers,
8959 # most powerpc-linux boxes support dynamic linking these days and
8960 # people can always --disable-shared, the test was removed, and we
8961 # assume the GNU/Linux dynamic linker is in use.
8962 dynamic_linker='GNU/Linux ld.so'
8963 ;;
8964
8965knetbsd*-gnu)
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 shlibpath_overrides_runpath=no
8973 hardcode_into_libs=yes
8974 dynamic_linker='GNU ld.so'
8975 ;;
8976
8977netbsd*)
8978 version_type=sunos
8979 need_lib_prefix=no
8980 need_version=no
8981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8984 dynamic_linker='NetBSD (a.out) ld.so'
8985 else
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 dynamic_linker='NetBSD ld.elf_so'
8989 fi
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8993 ;;
8994
8995newsos6)
8996 version_type=linux
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 shlibpath_overrides_runpath=yes
9000 ;;
9001
9002nto-qnx*)
9003 version_type=linux
9004 need_lib_prefix=no
9005 need_version=no
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=yes
9010 ;;
9011
Eric Christopherb0f67592012-08-06 20:52:18 +00009012openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009013 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009014 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009015 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009016 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9017 case $host_os in
9018 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9019 *) need_version=no ;;
9020 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9023 shlibpath_var=LD_LIBRARY_PATH
9024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9025 case $host_os in
9026 openbsd2.[89] | openbsd2.[89].*)
9027 shlibpath_overrides_runpath=no
9028 ;;
9029 *)
9030 shlibpath_overrides_runpath=yes
9031 ;;
9032 esac
9033 else
9034 shlibpath_overrides_runpath=yes
9035 fi
9036 ;;
9037
9038os2*)
9039 libname_spec='$name'
9040 shrext_cmds=".dll"
9041 need_lib_prefix=no
9042 library_names_spec='$libname${shared_ext} $libname.a'
9043 dynamic_linker='OS/2 ld.exe'
9044 shlibpath_var=LIBPATH
9045 ;;
9046
9047osf3* | osf4* | osf5*)
9048 version_type=osf
9049 need_lib_prefix=no
9050 need_version=no
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 shlibpath_var=LD_LIBRARY_PATH
9054 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9055 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9056 ;;
9057
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009058solaris*)
9059 version_type=linux
9060 need_lib_prefix=no
9061 need_version=no
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 shlibpath_overrides_runpath=yes
9066 hardcode_into_libs=yes
9067 # ldd complains unless libraries are executable
9068 postinstall_cmds='chmod +x $lib'
9069 ;;
9070
9071sunos4*)
9072 version_type=sunos
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=yes
9077 if test "$with_gnu_ld" = yes; then
9078 need_lib_prefix=no
9079 fi
9080 need_version=yes
9081 ;;
9082
Reid Spencera773bd52006-08-04 18:18:08 +00009083sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009084 version_type=linux
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 case $host_vendor in
9089 sni)
9090 shlibpath_overrides_runpath=no
9091 need_lib_prefix=no
9092 export_dynamic_flag_spec='${wl}-Blargedynsym'
9093 runpath_var=LD_RUN_PATH
9094 ;;
9095 siemens)
9096 need_lib_prefix=no
9097 ;;
9098 motorola)
9099 need_lib_prefix=no
9100 need_version=no
9101 shlibpath_overrides_runpath=no
9102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9103 ;;
9104 esac
9105 ;;
9106
9107sysv4*MP*)
9108 if test -d /usr/nec ;then
9109 version_type=linux
9110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9111 soname_spec='$libname${shared_ext}.$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 fi
9114 ;;
9115
Reid Spencera773bd52006-08-04 18:18:08 +00009116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9117 version_type=freebsd-elf
9118 need_lib_prefix=no
9119 need_version=no
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 hardcode_into_libs=yes
9124 if test "$with_gnu_ld" = yes; then
9125 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9126 shlibpath_overrides_runpath=no
9127 else
9128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9129 shlibpath_overrides_runpath=yes
9130 case $host_os in
9131 sco3.2v5*)
9132 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9133 ;;
9134 esac
9135 fi
9136 sys_lib_dlsearch_path_spec='/usr/lib'
9137 ;;
9138
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009139uts4*)
9140 version_type=linux
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 ;;
9145
9146*)
9147 dynamic_linker=no
9148 ;;
9149esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009150{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9151echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009152test "$dynamic_linker" = no && can_build_shared=no
9153
Reid Spencera773bd52006-08-04 18:18:08 +00009154variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9155if test "$GCC" = yes; then
9156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9157fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009158
Reid Spencera773bd52006-08-04 18:18:08 +00009159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009160{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9161echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9162if test "${libltdl_cv_shlibext+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009164else
9165
9166module=yes
9167eval libltdl_cv_shlibext=$shrext_cmds
9168
9169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009170{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9171echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009172if test -n "$libltdl_cv_shlibext"; then
9173
9174cat >>confdefs.h <<_ACEOF
9175#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9176_ACEOF
9177
9178fi
9179
9180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009181{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9182echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9183if test "${libltdl_cv_shlibpath_var+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009185else
9186 libltdl_cv_shlibpath_var="$shlibpath_var"
9187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009188{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9189echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009190if test -n "$libltdl_cv_shlibpath_var"; then
9191
9192cat >>confdefs.h <<_ACEOF
9193#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9194_ACEOF
9195
9196fi
9197
9198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009199{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9200echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9201if test "${libltdl_cv_sys_search_path+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009203else
9204 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009206{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9207echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009208if test -n "$libltdl_cv_sys_search_path"; then
9209 sys_search_path=
9210 for dir in $libltdl_cv_sys_search_path; do
9211 if test -z "$sys_search_path"; then
9212 sys_search_path="$dir"
9213 else
9214 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9215 fi
9216 done
9217
9218cat >>confdefs.h <<_ACEOF
9219#define LTDL_SYSSEARCHPATH "$sys_search_path"
9220_ACEOF
9221
9222fi
9223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009224{ echo "$as_me:$LINENO: checking for objdir" >&5
9225echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9226if test "${libltdl_cv_objdir+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228else
9229 libltdl_cv_objdir="$objdir"
9230 if test -n "$objdir"; then
9231 :
9232 else
9233 rm -f .libs 2>/dev/null
9234 mkdir .libs 2>/dev/null
9235 if test -d .libs; then
9236 libltdl_cv_objdir=.libs
9237 else
9238 # MS-DOS does not allow filenames that begin with a dot.
9239 libltdl_cv_objdir=_libs
9240 fi
9241 rmdir .libs 2>/dev/null
9242 fi
9243
9244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009245{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9246echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009247
9248cat >>confdefs.h <<_ACEOF
9249#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9250_ACEOF
9251
9252
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009253
9254
9255
9256
9257# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009258{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9259echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9260if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009262else
9263
9264# These are sane defaults that work on at least a few old systems.
9265# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9266
9267# Character class describing NM global symbol codes.
9268symcode='[BCDEGRST]'
9269
9270# Regexp to match symbols that can be accessed directly from C.
9271sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9272
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009273# Transform an extracted symbol line into a proper C declaration
9274lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9275
9276# Transform an extracted symbol line into symbol name and symbol address
9277lt_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'"
9278
9279# Define system-specific variables.
9280case $host_os in
9281aix*)
9282 symcode='[BCDT]'
9283 ;;
9284cygwin* | mingw* | pw32*)
9285 symcode='[ABCDGISTW]'
9286 ;;
9287hpux*) # Its linker distinguishes data from code symbols
9288 if test "$host_cpu" = ia64; then
9289 symcode='[ABCDEGRST]'
9290 fi
9291 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9292 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'"
9293 ;;
9294linux*)
9295 if test "$host_cpu" = ia64; then
9296 symcode='[ABCDGIRSTW]'
9297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9298 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'"
9299 fi
9300 ;;
9301irix* | nonstopux*)
9302 symcode='[BCDEGRST]'
9303 ;;
9304osf*)
9305 symcode='[BCDEGQRST]'
9306 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009307solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009308 symcode='[BDRT]'
9309 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009310sco3.2v5*)
9311 symcode='[DT]'
9312 ;;
9313sysv4.2uw2*)
9314 symcode='[DT]'
9315 ;;
9316sysv5* | sco5v6* | unixware* | OpenUNIX*)
9317 symcode='[ABDT]'
9318 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319sysv4)
9320 symcode='[DFNSTU]'
9321 ;;
9322esac
9323
9324# Handle CRLF in mingw tool chain
9325opt_cr=
9326case $build_os in
9327mingw*)
9328 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9329 ;;
9330esac
9331
9332# If we're using GNU nm, then use its standard symbol codes.
9333case `$NM -V 2>&1` in
9334*GNU* | *'with BFD'*)
9335 symcode='[ABCDGIRSTW]' ;;
9336esac
9337
9338# Try without a prefix undercore, then with it.
9339for ac_symprfx in "" "_"; do
9340
Reid Spencera773bd52006-08-04 18:18:08 +00009341 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9342 symxfrm="\\1 $ac_symprfx\\2 \\2"
9343
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009345 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009346
9347 # Check to see that the pipe works correctly.
9348 pipe_works=no
9349
9350 rm -f conftest*
9351 cat > conftest.$ac_ext <<EOF
9352#ifdef __cplusplus
9353extern "C" {
9354#endif
9355char nm_test_var;
9356void nm_test_func(){}
9357#ifdef __cplusplus
9358}
9359#endif
9360int main(){nm_test_var='a';nm_test_func();return(0);}
9361EOF
9362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009364 (eval $ac_compile) 2>&5
9365 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009368 # Now try to grab the symbols.
9369 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009370 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9372 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009375 # Try sorting and uniquifying the output.
9376 if sort "$nlist" | uniq > "$nlist"T; then
9377 mv -f "$nlist"T "$nlist"
9378 else
9379 rm -f "$nlist"T
9380 fi
9381
9382 # Make sure that we snagged all the symbols we need.
9383 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9384 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9385 cat <<EOF > conftest.$ac_ext
9386#ifdef __cplusplus
9387extern "C" {
9388#endif
9389
9390EOF
9391 # Now generate the symbol file.
9392 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9393
9394 cat <<EOF >> conftest.$ac_ext
9395#if defined (__STDC__) && __STDC__
9396# define lt_ptr_t void *
9397#else
9398# define lt_ptr_t char *
9399# define const
9400#endif
9401
9402/* The mapping between symbol names and symbols. */
9403const struct {
9404 const char *name;
9405 lt_ptr_t address;
9406}
9407lt_preloaded_symbols[] =
9408{
9409EOF
9410 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9411 cat <<\EOF >> conftest.$ac_ext
9412 {0, (lt_ptr_t) 0}
9413};
9414
9415#ifdef __cplusplus
9416}
9417#endif
9418EOF
9419 # Now try linking the two files.
9420 mv conftest.$ac_objext conftstm.$ac_objext
9421 lt_save_LIBS="$LIBS"
9422 lt_save_CFLAGS="$CFLAGS"
9423 LIBS="conftstm.$ac_objext"
9424 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009426 (eval $ac_link) 2>&5
9427 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430 pipe_works=yes
9431 fi
9432 LIBS="$lt_save_LIBS"
9433 CFLAGS="$lt_save_CFLAGS"
9434 else
9435 echo "cannot find nm_test_func in $nlist" >&5
9436 fi
9437 else
9438 echo "cannot find nm_test_var in $nlist" >&5
9439 fi
9440 else
9441 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9442 fi
9443 else
9444 echo "$progname: failed program was:" >&5
9445 cat conftest.$ac_ext >&5
9446 fi
9447 rm -f conftest* conftst*
9448
9449 # Do not use the global_symbol_pipe unless it works.
9450 if test "$pipe_works" = yes; then
9451 break
9452 else
9453 lt_cv_sys_global_symbol_pipe=
9454 fi
9455done
9456
9457fi
9458
9459if test -z "$lt_cv_sys_global_symbol_pipe"; then
9460 lt_cv_sys_global_symbol_to_cdecl=
9461fi
9462if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009463 { echo "$as_me:$LINENO: result: failed" >&5
9464echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009466 { echo "$as_me:$LINENO: result: ok" >&5
9467echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468fi
9469
9470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009471{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9472echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9473if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475else
9476 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9477 libltdl_cv_preloaded_symbols=yes
9478 else
9479 libltdl_cv_preloaded_symbols=no
9480 fi
9481
9482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009483{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9484echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009487cat >>confdefs.h <<\_ACEOF
9488#define HAVE_PRELOADED_SYMBOLS 1
9489_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490
9491fi
9492
9493LIBADD_DL=
9494
9495ac_ext=c
9496ac_cpp='$CPP $CPPFLAGS'
9497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9499ac_compiler_gnu=$ac_cv_c_compiler_gnu
9500
9501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009502{ echo "$as_me:$LINENO: checking for shl_load" >&5
9503echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9504if test "${ac_cv_func_shl_load+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507 cat >conftest.$ac_ext <<_ACEOF
9508/* confdefs.h. */
9509_ACEOF
9510cat confdefs.h >>conftest.$ac_ext
9511cat >>conftest.$ac_ext <<_ACEOF
9512/* end confdefs.h. */
9513/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9515#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009517/* System header to define __stub macros and hopefully few prototypes,
9518 which can conflict with char shl_load (); below.
9519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9520 <limits.h> exists even on freestanding compilers. */
9521
9522#ifdef __STDC__
9523# include <limits.h>
9524#else
9525# include <assert.h>
9526#endif
9527
9528#undef shl_load
9529
9530/* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9533#ifdef __cplusplus
9534extern "C"
9535#endif
9536char shl_load ();
9537/* The GNU C library defines this for functions which it implements
9538 to always fail with ENOSYS. Some functions are actually named
9539 something starting with __ and the normal name is an alias. */
9540#if defined __stub_shl_load || defined __stub___shl_load
9541choke me
9542#endif
9543
9544int
9545main ()
9546{
9547return shl_load ();
9548 ;
9549 return 0;
9550}
9551_ACEOF
9552rm -f conftest.$ac_objext conftest$ac_exeext
9553if { (ac_try="$ac_link"
9554case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9557esac
9558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_link") 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567 { (case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570esac
9571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_try") 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580esac
9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_try") 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_cv_func_shl_load=yes
9587else
9588 echo "$as_me: failed program was:" >&5
9589sed 's/^/| /' conftest.$ac_ext >&5
9590
9591 ac_cv_func_shl_load=no
9592fi
9593
9594rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596fi
9597{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9598echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9599if test $ac_cv_func_shl_load = yes; then
9600
9601cat >>confdefs.h <<\_ACEOF
9602#define HAVE_SHL_LOAD 1
9603_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604
9605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009606 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9607echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9608if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009610else
9611 ac_check_lib_save_LIBS=$LIBS
9612LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613cat >conftest.$ac_ext <<_ACEOF
9614/* confdefs.h. */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618/* end confdefs.h. */
9619
Reid Spencera773bd52006-08-04 18:18:08 +00009620/* Override any GCC internal prototype to avoid an error.
9621 Use char because int might match the return type of a GCC
9622 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009623#ifdef __cplusplus
9624extern "C"
9625#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626char shl_load ();
9627int
9628main ()
9629{
Reid Spencera773bd52006-08-04 18:18:08 +00009630return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009631 ;
9632 return 0;
9633}
9634_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009635rm -f conftest.$ac_objext conftest$ac_exeext
9636if { (ac_try="$ac_link"
9637case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640esac
9641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_link") 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9650 { (case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653esac
9654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_try") 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; } &&
9659 { ac_try='test -s conftest$ac_exeext'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009669 ac_cv_lib_dld_shl_load=yes
9670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009671 echo "$as_me: failed program was:" >&5
9672sed 's/^/| /' conftest.$ac_ext >&5
9673
9674 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009676
Bill Wendlingebcceee2009-04-18 11:20:33 +00009677rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009678 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009679LIBS=$ac_check_lib_save_LIBS
9680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009681{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9682echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9683if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009685cat >>confdefs.h <<\_ACEOF
9686#define HAVE_SHL_LOAD 1
9687_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688
9689 LIBADD_DL="$LIBADD_DL -ldld"
9690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009691 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9692echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9693if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695else
9696 ac_check_lib_save_LIBS=$LIBS
9697LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009698cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009703/* end confdefs.h. */
9704
Reid Spencera773bd52006-08-04 18:18:08 +00009705/* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009708#ifdef __cplusplus
9709extern "C"
9710#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711char dlopen ();
9712int
9713main ()
9714{
Reid Spencera773bd52006-08-04 18:18:08 +00009715return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716 ;
9717 return 0;
9718}
9719_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009720rm -f conftest.$ac_objext conftest$ac_exeext
9721if { (ac_try="$ac_link"
9722case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725esac
9726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_try") 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748esac
9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754 ac_cv_lib_dl_dlopen=yes
9755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009761
Bill Wendlingebcceee2009-04-18 11:20:33 +00009762rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009763 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764LIBS=$ac_check_lib_save_LIBS
9765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009766{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9767echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9768if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009770cat >>confdefs.h <<\_ACEOF
9771#define HAVE_LIBDL 1
9772_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773
9774 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009776 cat >conftest.$ac_ext <<_ACEOF
9777/* confdefs.h. */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009781/* end confdefs.h. */
9782#if HAVE_DLFCN_H
9783# include <dlfcn.h>
9784#endif
9785
9786int
9787main ()
9788{
9789dlopen(0, 0);
9790 ;
9791 return 0;
9792}
9793_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009794rm -f conftest.$ac_objext conftest$ac_exeext
9795if { (ac_try="$ac_link"
9796case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9799esac
9800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9809 { (case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812esac
9813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_try") 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009829cat >>confdefs.h <<\_ACEOF
9830#define HAVE_LIBDL 1
9831_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832 libltdl_cv_func_dlopen="yes"
9833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009834 echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9838echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9839if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009841else
9842 ac_check_lib_save_LIBS=$LIBS
9843LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009844cat >conftest.$ac_ext <<_ACEOF
9845/* confdefs.h. */
9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849/* end confdefs.h. */
9850
Reid Spencera773bd52006-08-04 18:18:08 +00009851/* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854#ifdef __cplusplus
9855extern "C"
9856#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857char dlopen ();
9858int
9859main ()
9860{
Reid Spencera773bd52006-08-04 18:18:08 +00009861return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862 ;
9863 return 0;
9864}
9865_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009866rm -f conftest.$ac_objext conftest$ac_exeext
9867if { (ac_try="$ac_link"
9868case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871esac
9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_link") 2>conftest.er1
9874 ac_status=$?
9875 grep -v '^ *+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9881 { (case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884esac
9885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_try") 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; } &&
9890 { ac_try='test -s conftest$ac_exeext'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894esac
9895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009900 ac_cv_lib_svld_dlopen=yes
9901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009902 echo "$as_me: failed program was:" >&5
9903sed 's/^/| /' conftest.$ac_ext >&5
9904
9905 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009907
Bill Wendlingebcceee2009-04-18 11:20:33 +00009908rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009909 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910LIBS=$ac_check_lib_save_LIBS
9911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009912{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9913echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9914if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009916cat >>confdefs.h <<\_ACEOF
9917#define HAVE_LIBDL 1
9918_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919
9920 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009922 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9923echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9924if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926else
9927 ac_check_lib_save_LIBS=$LIBS
9928LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009929cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934/* end confdefs.h. */
9935
Reid Spencera773bd52006-08-04 18:18:08 +00009936/* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939#ifdef __cplusplus
9940extern "C"
9941#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942char dld_link ();
9943int
9944main ()
9945{
Reid Spencera773bd52006-08-04 18:18:08 +00009946return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009947 ;
9948 return 0;
9949}
9950_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009951rm -f conftest.$ac_objext conftest$ac_exeext
9952if { (ac_try="$ac_link"
9953case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956esac
9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985 ac_cv_lib_dld_dld_link=yes
9986else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009987 echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009992
Bill Wendlingebcceee2009-04-18 11:20:33 +00009993rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009994 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995LIBS=$ac_check_lib_save_LIBS
9996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009997{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9998echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9999if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010001cat >>confdefs.h <<\_ACEOF
10002#define HAVE_DLD 1
10003_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004
10005 LIBADD_DL="$LIBADD_DL -ldld"
10006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010007 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10008echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10009if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011else
10012 cat >conftest.$ac_ext <<_ACEOF
10013/* confdefs.h. */
10014_ACEOF
10015cat confdefs.h >>conftest.$ac_ext
10016cat >>conftest.$ac_ext <<_ACEOF
10017/* end confdefs.h. */
10018/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10020#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010022/* System header to define __stub macros and hopefully few prototypes,
10023 which can conflict with char _dyld_func_lookup (); below.
10024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10025 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010027#ifdef __STDC__
10028# include <limits.h>
10029#else
10030# include <assert.h>
10031#endif
10032
10033#undef _dyld_func_lookup
10034
10035/* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
10038#ifdef __cplusplus
10039extern "C"
10040#endif
10041char _dyld_func_lookup ();
10042/* The GNU C library defines this for functions which it implements
10043 to always fail with ENOSYS. Some functions are actually named
10044 something starting with __ and the normal name is an alias. */
10045#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10046choke me
10047#endif
10048
10049int
10050main ()
10051{
10052return _dyld_func_lookup ();
10053 ;
10054 return 0;
10055}
10056_ACEOF
10057rm -f conftest.$ac_objext conftest$ac_exeext
10058if { (ac_try="$ac_link"
10059case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062esac
10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_link") 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075esac
10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085esac
10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_func__dyld_func_lookup=yes
10092else
10093 echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097fi
Reid Spencera773bd52006-08-04 18:18:08 +000010098
Bill Wendlingebcceee2009-04-18 11:20:33 +000010099rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010100 conftest$ac_exeext conftest.$ac_ext
10101fi
10102{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10103echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10104if test $ac_cv_func__dyld_func_lookup = yes; then
10105
10106cat >>confdefs.h <<\_ACEOF
10107#define HAVE_DYLD 1
10108_ACEOF
10109
10110fi
10111
10112
10113fi
10114
10115
10116fi
10117
10118
10119fi
10120
10121rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123
10124fi
10125
10126
10127fi
10128
10129
10130fi
10131
10132
10133if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10134then
10135 lt_save_LIBS="$LIBS"
10136 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010137
10138for ac_func in dlerror
10139do
10140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10141{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10143if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145else
10146 cat >conftest.$ac_ext <<_ACEOF
10147/* confdefs.h. */
10148_ACEOF
10149cat confdefs.h >>conftest.$ac_ext
10150cat >>conftest.$ac_ext <<_ACEOF
10151/* end confdefs.h. */
10152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10154#define $ac_func innocuous_$ac_func
10155
10156/* System header to define __stub macros and hopefully few prototypes,
10157 which can conflict with char $ac_func (); below.
10158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10159 <limits.h> exists even on freestanding compilers. */
10160
10161#ifdef __STDC__
10162# include <limits.h>
10163#else
10164# include <assert.h>
10165#endif
10166
10167#undef $ac_func
10168
10169/* Override any GCC internal prototype to avoid an error.
10170 Use char because int might match the return type of a GCC
10171 builtin and then its argument prototype would still apply. */
10172#ifdef __cplusplus
10173extern "C"
10174#endif
10175char $ac_func ();
10176/* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
10179#if defined __stub_$ac_func || defined __stub___$ac_func
10180choke me
10181#endif
10182
10183int
10184main ()
10185{
10186return $ac_func ();
10187 ;
10188 return 0;
10189}
10190_ACEOF
10191rm -f conftest.$ac_objext conftest$ac_exeext
10192if { (ac_try="$ac_link"
10193case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196esac
10197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_link") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206 { (case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_try") 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219esac
10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 eval "$as_ac_var=yes"
10226else
10227 echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 eval "$as_ac_var=no"
10231fi
10232
10233rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235fi
10236ac_res=`eval echo '${'$as_ac_var'}'`
10237 { echo "$as_me:$LINENO: result: $ac_res" >&5
10238echo "${ECHO_T}$ac_res" >&6; }
10239if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010242_ACEOF
10243
10244fi
10245done
10246
10247 LIBS="$lt_save_LIBS"
10248fi
10249ac_ext=c
10250ac_cpp='$CPP $CPPFLAGS'
10251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10253ac_compiler_gnu=$ac_cv_c_compiler_gnu
10254
10255
10256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010257{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10258echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10259if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261else
10262 ac_cv_sys_symbol_underscore=no
10263 cat > conftest.$ac_ext <<EOF
10264void nm_test_func(){}
10265int main(){nm_test_func;return 0;}
10266EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268 (eval $ac_compile) 2>&5
10269 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272 # Now try to grab the symbols.
10273 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010274 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10276 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010279 # See whether the symbols have a leading underscore.
10280 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10281 ac_cv_sys_symbol_underscore=yes
10282 else
10283 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10284 :
10285 else
10286 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10287 fi
10288 fi
10289 else
10290 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10291 fi
10292 else
10293 echo "configure: failed program was:" >&5
10294 cat conftest.c >&5
10295 fi
10296 rm -rf conftest*
10297
10298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010299{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10300echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301
10302
10303if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10304 if test x"$libltdl_cv_func_dlopen" = xyes ||
10305 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010306 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10307echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10308if test "${libltdl_cv_need_uscore+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010310else
10311 libltdl_cv_need_uscore=unknown
10312 save_LIBS="$LIBS"
10313 LIBS="$LIBS $LIBADD_DL"
10314 if test "$cross_compiling" = yes; then :
10315 libltdl_cv_need_uscore=cross
10316else
10317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10318 lt_status=$lt_dlunknown
10319 cat > conftest.$ac_ext <<EOF
Sebastian Popba48ceb2012-09-25 21:15:08 +000010320#line 10320 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321#include "confdefs.h"
10322
10323#if HAVE_DLFCN_H
10324#include <dlfcn.h>
10325#endif
10326
10327#include <stdio.h>
10328
10329#ifdef RTLD_GLOBAL
10330# define LT_DLGLOBAL RTLD_GLOBAL
10331#else
10332# ifdef DL_GLOBAL
10333# define LT_DLGLOBAL DL_GLOBAL
10334# else
10335# define LT_DLGLOBAL 0
10336# endif
10337#endif
10338
10339/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10340 find out it does not work in some platform. */
10341#ifndef LT_DLLAZY_OR_NOW
10342# ifdef RTLD_LAZY
10343# define LT_DLLAZY_OR_NOW RTLD_LAZY
10344# else
10345# ifdef DL_LAZY
10346# define LT_DLLAZY_OR_NOW DL_LAZY
10347# else
10348# ifdef RTLD_NOW
10349# define LT_DLLAZY_OR_NOW RTLD_NOW
10350# else
10351# ifdef DL_NOW
10352# define LT_DLLAZY_OR_NOW DL_NOW
10353# else
10354# define LT_DLLAZY_OR_NOW 0
10355# endif
10356# endif
10357# endif
10358# endif
10359#endif
10360
10361#ifdef __cplusplus
10362extern "C" void exit (int);
10363#endif
10364
10365void fnord() { int i=42;}
10366int main ()
10367{
10368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369 int status = $lt_dlunknown;
10370
10371 if (self)
10372 {
10373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375 /* dlclose (self); */
10376 }
Reid Spencera773bd52006-08-04 18:18:08 +000010377 else
10378 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010379
10380 exit (status);
10381}
10382EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384 (eval $ac_link) 2>&5
10385 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010388 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389 lt_status=$?
10390 case x$lt_status in
10391 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10392 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010393 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010394 esac
10395 else :
10396 # compilation failed
10397
10398 fi
10399fi
10400rm -fr conftest*
10401
10402 LIBS="$save_LIBS"
10403
10404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010405{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10406echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407 fi
10408fi
10409
10410if test x"$libltdl_cv_need_uscore" = xyes; then
10411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010412cat >>confdefs.h <<\_ACEOF
10413#define NEED_USCORE 1
10414_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415
10416fi
10417
10418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010419{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10420echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10421if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423else
10424 # PORTME does your system automatically load deplibs for dlopen?
10425 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10426 # For now, we just catch OSes we know something about -- in the
10427 # future, we'll try test this programmatically.
10428 libltdl_cv_sys_dlopen_deplibs=unknown
10429 case "$host_os" in
10430 aix3*|aix4.1.*|aix4.2.*)
10431 # Unknown whether this is true for these versions of AIX, but
10432 # we want this `case' here to explicitly catch those versions.
10433 libltdl_cv_sys_dlopen_deplibs=unknown
10434 ;;
10435 aix[45]*)
10436 libltdl_cv_sys_dlopen_deplibs=yes
10437 ;;
10438 darwin*)
10439 # Assuming the user has installed a libdl from somewhere, this is true
10440 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10441 libltdl_cv_sys_dlopen_deplibs=yes
10442 ;;
10443 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10444 # GNU and its variants, using gnu ld.so (Glibc)
10445 libltdl_cv_sys_dlopen_deplibs=yes
10446 ;;
10447 hpux10*|hpux11*)
10448 libltdl_cv_sys_dlopen_deplibs=yes
10449 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010450 interix*)
10451 libltdl_cv_sys_dlopen_deplibs=yes
10452 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453 irix[12345]*|irix6.[01]*)
10454 # Catch all versions of IRIX before 6.2, and indicate that we don't
10455 # know how it worked for any of those versions.
10456 libltdl_cv_sys_dlopen_deplibs=unknown
10457 ;;
10458 irix*)
10459 # The case above catches anything before 6.2, and it's known that
10460 # at 6.2 and later dlopen does load deplibs.
10461 libltdl_cv_sys_dlopen_deplibs=yes
10462 ;;
10463 netbsd*)
10464 libltdl_cv_sys_dlopen_deplibs=yes
10465 ;;
10466 openbsd*)
10467 libltdl_cv_sys_dlopen_deplibs=yes
10468 ;;
10469 osf[1234]*)
10470 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10471 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010472 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473 libltdl_cv_sys_dlopen_deplibs=no
10474 ;;
10475 osf5.0|osf5.0a|osf5.1)
10476 # dlopen *does* load deplibs and with the right loader patch applied
10477 # it even uses RPATH in a shared library to search for shared objects
10478 # that the library depends on, but there's no easy way to know if that
10479 # patch is installed. Since this is the case, all we can really
10480 # say is unknown -- it depends on the patch being installed. If
10481 # it is, this changes to `yes'. Without it, it would be `no'.
10482 libltdl_cv_sys_dlopen_deplibs=unknown
10483 ;;
10484 osf*)
10485 # the two cases above should catch all versions of osf <= 5.1. Read
10486 # the comments above for what we know about them.
10487 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10488 # is used to find them so we can finally say `yes'.
10489 libltdl_cv_sys_dlopen_deplibs=yes
10490 ;;
10491 solaris*)
10492 libltdl_cv_sys_dlopen_deplibs=yes
10493 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10495 libltdl_cv_sys_dlopen_deplibs=yes
10496 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497 esac
10498
10499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010500{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10501echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010504cat >>confdefs.h <<\_ACEOF
10505#define LTDL_DLOPEN_DEPLIBS 1
10506_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507
10508fi
10509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010510
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010512do
10513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519fi
10520ac_res=`eval echo '${'$as_ac_Header'}'`
10521 { echo "$as_me:$LINENO: result: $ac_res" >&5
10522echo "${ECHO_T}$ac_res" >&6; }
10523else
10524 # Is the header compilable?
10525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10527cat >conftest.$ac_ext <<_ACEOF
10528/* confdefs.h. */
10529_ACEOF
10530cat confdefs.h >>conftest.$ac_ext
10531cat >>conftest.$ac_ext <<_ACEOF
10532/* end confdefs.h. */
10533$ac_includes_default
10534#include <$ac_header>
10535_ACEOF
10536rm -f conftest.$ac_objext
10537if { (ac_try="$ac_compile"
10538case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541esac
10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_compile") 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554esac
10555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest.$ac_objext'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_header_compiler=yes
10571else
10572 echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ac_header_compiler=no
10576fi
10577
10578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10580echo "${ECHO_T}$ac_header_compiler" >&6; }
10581
10582# Is the header present?
10583{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10585cat >conftest.$ac_ext <<_ACEOF
10586/* confdefs.h. */
10587_ACEOF
10588cat confdefs.h >>conftest.$ac_ext
10589cat >>conftest.$ac_ext <<_ACEOF
10590/* end confdefs.h. */
10591#include <$ac_header>
10592_ACEOF
10593if { (ac_try="$ac_cpp conftest.$ac_ext"
10594case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597esac
10598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } >/dev/null; then
10606 if test -s conftest.err; then
10607 ac_cpp_err=$ac_c_preproc_warn_flag
10608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10609 else
10610 ac_cpp_err=
10611 fi
10612else
10613 ac_cpp_err=yes
10614fi
10615if test -z "$ac_cpp_err"; then
10616 ac_header_preproc=yes
10617else
10618 echo "$as_me: failed program was:" >&5
10619sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ac_header_preproc=no
10622fi
10623
10624rm -f conftest.err conftest.$ac_ext
10625{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10626echo "${ECHO_T}$ac_header_preproc" >&6; }
10627
10628# So? What about this header?
10629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10630 yes:no: )
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10635 ac_header_preproc=yes
10636 ;;
10637 no:yes:* )
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10645echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10650 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010651## ------------------------------------ ##
10652## Report this to http://llvm.org/bugs/ ##
10653## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010654_ASBOX
10655 ) | sed "s/^/$as_me: WARNING: /" >&2
10656 ;;
10657esac
10658{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662else
10663 eval "$as_ac_Header=\$ac_header_preproc"
10664fi
10665ac_res=`eval echo '${'$as_ac_Header'}'`
10666 { echo "$as_me:$LINENO: result: $ac_res" >&5
10667echo "${ECHO_T}$ac_res" >&6; }
10668
10669fi
10670if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673_ACEOF
10674
10675fi
10676
10677done
10678
10679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010680{ echo "$as_me:$LINENO: checking for error_t" >&5
10681echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10682if test "${ac_cv_type_error_t+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10684else
10685 cat >conftest.$ac_ext <<_ACEOF
10686/* confdefs.h. */
10687_ACEOF
10688cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h. */
10691#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692# include <argz.h>
10693#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010694
10695typedef error_t ac__type_new_;
10696int
10697main ()
10698{
10699if ((ac__type_new_ *) 0)
10700 return 0;
10701if (sizeof (ac__type_new_))
10702 return 0;
10703 ;
10704 return 0;
10705}
10706_ACEOF
10707rm -f conftest.$ac_objext
10708if { (ac_try="$ac_compile"
10709case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10712esac
10713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 (eval "$ac_compile") 2>conftest.er1
10715 ac_status=$?
10716 grep -v '^ *+' conftest.er1 >conftest.err
10717 rm -f conftest.er1
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10722 { (case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725esac
10726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_try") 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest.$ac_objext'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735esac
10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_cv_type_error_t=yes
10742else
10743 echo "$as_me: failed program was:" >&5
10744sed 's/^/| /' conftest.$ac_ext >&5
10745
10746 ac_cv_type_error_t=no
10747fi
10748
10749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750fi
10751{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10752echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10753if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754
10755cat >>confdefs.h <<_ACEOF
10756#define HAVE_ERROR_T 1
10757_ACEOF
10758
10759
10760else
10761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010762cat >>confdefs.h <<\_ACEOF
10763#define error_t int
10764_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765
10766fi
10767
10768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010769
10770
10771
10772
10773
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010774for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010775do
10776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10777{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781else
10782 cat >conftest.$ac_ext <<_ACEOF
10783/* confdefs.h. */
10784_ACEOF
10785cat confdefs.h >>conftest.$ac_ext
10786cat >>conftest.$ac_ext <<_ACEOF
10787/* end confdefs.h. */
10788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10790#define $ac_func innocuous_$ac_func
10791
10792/* System header to define __stub macros and hopefully few prototypes,
10793 which can conflict with char $ac_func (); below.
10794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10795 <limits.h> exists even on freestanding compilers. */
10796
10797#ifdef __STDC__
10798# include <limits.h>
10799#else
10800# include <assert.h>
10801#endif
10802
10803#undef $ac_func
10804
10805/* Override any GCC internal prototype to avoid an error.
10806 Use char because int might match the return type of a GCC
10807 builtin and then its argument prototype would still apply. */
10808#ifdef __cplusplus
10809extern "C"
10810#endif
10811char $ac_func ();
10812/* The GNU C library defines this for functions which it implements
10813 to always fail with ENOSYS. Some functions are actually named
10814 something starting with __ and the normal name is an alias. */
10815#if defined __stub_$ac_func || defined __stub___$ac_func
10816choke me
10817#endif
10818
10819int
10820main ()
10821{
10822return $ac_func ();
10823 ;
10824 return 0;
10825}
10826_ACEOF
10827rm -f conftest.$ac_objext conftest$ac_exeext
10828if { (ac_try="$ac_link"
10829case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10832esac
10833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_link") 2>conftest.er1
10835 ac_status=$?
10836 grep -v '^ *+' conftest.er1 >conftest.err
10837 rm -f conftest.er1
10838 cat conftest.err >&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } &&
10841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10842 { (case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845esac
10846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_try") 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest$ac_exeext'
10852 { (case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_try") 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 eval "$as_ac_var=yes"
10862else
10863 echo "$as_me: failed program was:" >&5
10864sed 's/^/| /' conftest.$ac_ext >&5
10865
10866 eval "$as_ac_var=no"
10867fi
10868
10869rm -f core conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10871fi
10872ac_res=`eval echo '${'$as_ac_var'}'`
10873 { echo "$as_me:$LINENO: result: $ac_res" >&5
10874echo "${ECHO_T}$ac_res" >&6; }
10875if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010878_ACEOF
10879
10880fi
10881done
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010902
10903
10904
10905
10906
10907
10908
10909
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10911 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010912do
10913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919fi
10920ac_res=`eval echo '${'$as_ac_Header'}'`
10921 { echo "$as_me:$LINENO: result: $ac_res" >&5
10922echo "${ECHO_T}$ac_res" >&6; }
10923else
10924 # Is the header compilable?
10925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10927cat >conftest.$ac_ext <<_ACEOF
10928/* confdefs.h. */
10929_ACEOF
10930cat confdefs.h >>conftest.$ac_ext
10931cat >>conftest.$ac_ext <<_ACEOF
10932/* end confdefs.h. */
10933$ac_includes_default
10934#include <$ac_header>
10935_ACEOF
10936rm -f conftest.$ac_objext
10937if { (ac_try="$ac_compile"
10938case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10941esac
10942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_header_compiler=yes
10971else
10972 echo "$as_me: failed program was:" >&5
10973sed 's/^/| /' conftest.$ac_ext >&5
10974
10975 ac_header_compiler=no
10976fi
10977
10978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10980echo "${ECHO_T}$ac_header_compiler" >&6; }
10981
10982# Is the header present?
10983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10985cat >conftest.$ac_ext <<_ACEOF
10986/* confdefs.h. */
10987_ACEOF
10988cat confdefs.h >>conftest.$ac_ext
10989cat >>conftest.$ac_ext <<_ACEOF
10990/* end confdefs.h. */
10991#include <$ac_header>
10992_ACEOF
10993if { (ac_try="$ac_cpp conftest.$ac_ext"
10994case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997esac
10998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11000 ac_status=$?
11001 grep -v '^ *+' conftest.er1 >conftest.err
11002 rm -f conftest.er1
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } >/dev/null; then
11006 if test -s conftest.err; then
11007 ac_cpp_err=$ac_c_preproc_warn_flag
11008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11009 else
11010 ac_cpp_err=
11011 fi
11012else
11013 ac_cpp_err=yes
11014fi
11015if test -z "$ac_cpp_err"; then
11016 ac_header_preproc=yes
11017else
11018 echo "$as_me: failed program was:" >&5
11019sed 's/^/| /' conftest.$ac_ext >&5
11020
11021 ac_header_preproc=no
11022fi
11023
11024rm -f conftest.err conftest.$ac_ext
11025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11026echo "${ECHO_T}$ac_header_preproc" >&6; }
11027
11028# So? What about this header?
11029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11030 yes:no: )
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11035 ac_header_preproc=yes
11036 ;;
11037 no:yes:* )
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11050 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011051## ------------------------------------ ##
11052## Report this to http://llvm.org/bugs/ ##
11053## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011054_ASBOX
11055 ) | sed "s/^/$as_me: WARNING: /" >&2
11056 ;;
11057esac
11058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11062else
11063 eval "$as_ac_Header=\$ac_header_preproc"
11064fi
11065ac_res=`eval echo '${'$as_ac_Header'}'`
11066 { echo "$as_me:$LINENO: result: $ac_res" >&5
11067echo "${ECHO_T}$ac_res" >&6; }
11068
11069fi
11070if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011073_ACEOF
11074
11075fi
11076
11077done
11078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011079
11080
11081
11082
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011084do
11085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091fi
11092ac_res=`eval echo '${'$as_ac_Header'}'`
11093 { echo "$as_me:$LINENO: result: $ac_res" >&5
11094echo "${ECHO_T}$ac_res" >&6; }
11095else
11096 # Is the header compilable?
11097{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11099cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h. */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */
11105$ac_includes_default
11106#include <$ac_header>
11107_ACEOF
11108rm -f conftest.$ac_objext
11109if { (ac_try="$ac_compile"
11110case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11113esac
11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_compile") 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123 { (case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126esac
11127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_try") 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; } &&
11132 { ac_try='test -s conftest.$ac_objext'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_header_compiler=yes
11143else
11144 echo "$as_me: failed program was:" >&5
11145sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ac_header_compiler=no
11148fi
11149
11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152echo "${ECHO_T}$ac_header_compiler" >&6; }
11153
11154# Is the header present?
11155{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157cat >conftest.$ac_ext <<_ACEOF
11158/* confdefs.h. */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h. */
11163#include <$ac_header>
11164_ACEOF
11165if { (ac_try="$ac_cpp conftest.$ac_ext"
11166case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
11180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11181 else
11182 ac_cpp_err=
11183 fi
11184else
11185 ac_cpp_err=yes
11186fi
11187if test -z "$ac_cpp_err"; then
11188 ac_header_preproc=yes
11189else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 ac_header_preproc=no
11194fi
11195
11196rm -f conftest.err conftest.$ac_ext
11197{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198echo "${ECHO_T}$ac_header_preproc" >&6; }
11199
11200# So? What about this header?
11201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11202 yes:no: )
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11207 ac_header_preproc=yes
11208 ;;
11209 no:yes:* )
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11213echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11217echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11222 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011223## ------------------------------------ ##
11224## Report this to http://llvm.org/bugs/ ##
11225## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011226_ASBOX
11227 ) | sed "s/^/$as_me: WARNING: /" >&2
11228 ;;
11229esac
11230{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234else
11235 eval "$as_ac_Header=\$ac_header_preproc"
11236fi
11237ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239echo "${ECHO_T}$ac_res" >&6; }
11240
11241fi
11242if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245_ACEOF
11246
11247fi
11248
11249done
11250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251
11252
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011254do
11255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261fi
11262ac_res=`eval echo '${'$as_ac_Header'}'`
11263 { echo "$as_me:$LINENO: result: $ac_res" >&5
11264echo "${ECHO_T}$ac_res" >&6; }
11265else
11266 # Is the header compilable?
11267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11269cat >conftest.$ac_ext <<_ACEOF
11270/* confdefs.h. */
11271_ACEOF
11272cat confdefs.h >>conftest.$ac_ext
11273cat >>conftest.$ac_ext <<_ACEOF
11274/* end confdefs.h. */
11275$ac_includes_default
11276#include <$ac_header>
11277_ACEOF
11278rm -f conftest.$ac_objext
11279if { (ac_try="$ac_compile"
11280case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283esac
11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_compile") 2>conftest.er1
11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
11288 rm -f conftest.er1
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; } &&
11302 { ac_try='test -s conftest.$ac_objext'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_header_compiler=yes
11313else
11314 echo "$as_me: failed program was:" >&5
11315sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_header_compiler=no
11318fi
11319
11320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322echo "${ECHO_T}$ac_header_compiler" >&6; }
11323
11324# Is the header present?
11325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11327cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333#include <$ac_header>
11334_ACEOF
11335if { (ac_try="$ac_cpp conftest.$ac_ext"
11336case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339esac
11340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } >/dev/null; then
11348 if test -s conftest.err; then
11349 ac_cpp_err=$ac_c_preproc_warn_flag
11350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11351 else
11352 ac_cpp_err=
11353 fi
11354else
11355 ac_cpp_err=yes
11356fi
11357if test -z "$ac_cpp_err"; then
11358 ac_header_preproc=yes
11359else
11360 echo "$as_me: failed program was:" >&5
11361sed 's/^/| /' conftest.$ac_ext >&5
11362
11363 ac_header_preproc=no
11364fi
11365
11366rm -f conftest.err conftest.$ac_ext
11367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11368echo "${ECHO_T}$ac_header_preproc" >&6; }
11369
11370# So? What about this header?
11371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11372 yes:no: )
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11377 ac_header_preproc=yes
11378 ;;
11379 no:yes:* )
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11392 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011393## ------------------------------------ ##
11394## Report this to http://llvm.org/bugs/ ##
11395## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011396_ASBOX
11397 ) | sed "s/^/$as_me: WARNING: /" >&2
11398 ;;
11399esac
11400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 eval "$as_ac_Header=\$ac_header_preproc"
11406fi
11407ac_res=`eval echo '${'$as_ac_Header'}'`
11408 { echo "$as_me:$LINENO: result: $ac_res" >&5
11409echo "${ECHO_T}$ac_res" >&6; }
11410
11411fi
11412if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415_ACEOF
11416 break
11417fi
11418
11419done
11420
11421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011422
11423
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011425do
11426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11427{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11429if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431else
11432 cat >conftest.$ac_ext <<_ACEOF
11433/* confdefs.h. */
11434_ACEOF
11435cat confdefs.h >>conftest.$ac_ext
11436cat >>conftest.$ac_ext <<_ACEOF
11437/* end confdefs.h. */
11438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11440#define $ac_func innocuous_$ac_func
11441
11442/* System header to define __stub macros and hopefully few prototypes,
11443 which can conflict with char $ac_func (); below.
11444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11445 <limits.h> exists even on freestanding compilers. */
11446
11447#ifdef __STDC__
11448# include <limits.h>
11449#else
11450# include <assert.h>
11451#endif
11452
11453#undef $ac_func
11454
11455/* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11458#ifdef __cplusplus
11459extern "C"
11460#endif
11461char $ac_func ();
11462/* The GNU C library defines this for functions which it implements
11463 to always fail with ENOSYS. Some functions are actually named
11464 something starting with __ and the normal name is an alias. */
11465#if defined __stub_$ac_func || defined __stub___$ac_func
11466choke me
11467#endif
11468
11469int
11470main ()
11471{
11472return $ac_func ();
11473 ;
11474 return 0;
11475}
11476_ACEOF
11477rm -f conftest.$ac_objext conftest$ac_exeext
11478if { (ac_try="$ac_link"
11479case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482esac
11483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495esac
11496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11511 eval "$as_ac_var=yes"
11512else
11513 echo "$as_me: failed program was:" >&5
11514sed 's/^/| /' conftest.$ac_ext >&5
11515
11516 eval "$as_ac_var=no"
11517fi
11518
11519rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521fi
11522ac_res=`eval echo '${'$as_ac_var'}'`
11523 { echo "$as_me:$LINENO: result: $ac_res" >&5
11524echo "${ECHO_T}$ac_res" >&6; }
11525if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011528_ACEOF
11529 break
11530fi
11531done
11532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011533
11534
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011536do
11537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11540if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542else
11543 cat >conftest.$ac_ext <<_ACEOF
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
11549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11551#define $ac_func innocuous_$ac_func
11552
11553/* System header to define __stub macros and hopefully few prototypes,
11554 which can conflict with char $ac_func (); below.
11555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556 <limits.h> exists even on freestanding compilers. */
11557
11558#ifdef __STDC__
11559# include <limits.h>
11560#else
11561# include <assert.h>
11562#endif
11563
11564#undef $ac_func
11565
11566/* Override any GCC internal prototype to avoid an error.
11567 Use char because int might match the return type of a GCC
11568 builtin and then its argument prototype would still apply. */
11569#ifdef __cplusplus
11570extern "C"
11571#endif
11572char $ac_func ();
11573/* The GNU C library defines this for functions which it implements
11574 to always fail with ENOSYS. Some functions are actually named
11575 something starting with __ and the normal name is an alias. */
11576#if defined __stub_$ac_func || defined __stub___$ac_func
11577choke me
11578#endif
11579
11580int
11581main ()
11582{
11583return $ac_func ();
11584 ;
11585 return 0;
11586}
11587_ACEOF
11588rm -f conftest.$ac_objext conftest$ac_exeext
11589if { (ac_try="$ac_link"
11590case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593esac
11594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_link") 2>conftest.er1
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11603 { (case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606esac
11607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_try") 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } &&
11612 { ac_try='test -s conftest$ac_exeext'
11613 { (case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11616esac
11617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_try") 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 eval "$as_ac_var=yes"
11623else
11624 echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 eval "$as_ac_var=no"
11628fi
11629
11630rm -f core conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11632fi
11633ac_res=`eval echo '${'$as_ac_var'}'`
11634 { echo "$as_me:$LINENO: result: $ac_res" >&5
11635echo "${ECHO_T}$ac_res" >&6; }
11636if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011639_ACEOF
11640 break
11641fi
11642done
11643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011644
11645
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011647do
11648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11649{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11651if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653else
11654 cat >conftest.$ac_ext <<_ACEOF
11655/* confdefs.h. */
11656_ACEOF
11657cat confdefs.h >>conftest.$ac_ext
11658cat >>conftest.$ac_ext <<_ACEOF
11659/* end confdefs.h. */
11660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11662#define $ac_func innocuous_$ac_func
11663
11664/* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $ac_func (); below.
11666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667 <limits.h> exists even on freestanding compilers. */
11668
11669#ifdef __STDC__
11670# include <limits.h>
11671#else
11672# include <assert.h>
11673#endif
11674
11675#undef $ac_func
11676
11677/* Override any GCC internal prototype to avoid an error.
11678 Use char because int might match the return type of a GCC
11679 builtin and then its argument prototype would still apply. */
11680#ifdef __cplusplus
11681extern "C"
11682#endif
11683char $ac_func ();
11684/* The GNU C library defines this for functions which it implements
11685 to always fail with ENOSYS. Some functions are actually named
11686 something starting with __ and the normal name is an alias. */
11687#if defined __stub_$ac_func || defined __stub___$ac_func
11688choke me
11689#endif
11690
11691int
11692main ()
11693{
11694return $ac_func ();
11695 ;
11696 return 0;
11697}
11698_ACEOF
11699rm -f conftest.$ac_objext conftest$ac_exeext
11700if { (ac_try="$ac_link"
11701case "(($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_link") 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 eval "$as_ac_var=yes"
11734else
11735 echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
11738 eval "$as_ac_var=no"
11739fi
11740
11741rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743fi
11744ac_res=`eval echo '${'$as_ac_var'}'`
11745 { echo "$as_me:$LINENO: result: $ac_res" >&5
11746echo "${ECHO_T}$ac_res" >&6; }
11747if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011748 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750_ACEOF
11751 break
11752fi
11753done
11754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011755
11756
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011757for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011758do
11759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11760{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764else
11765 cat >conftest.$ac_ext <<_ACEOF
11766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
11771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11773#define $ac_func innocuous_$ac_func
11774
11775/* System header to define __stub macros and hopefully few prototypes,
11776 which can conflict with char $ac_func (); below.
11777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11778 <limits.h> exists even on freestanding compilers. */
11779
11780#ifdef __STDC__
11781# include <limits.h>
11782#else
11783# include <assert.h>
11784#endif
11785
11786#undef $ac_func
11787
11788/* Override any GCC internal prototype to avoid an error.
11789 Use char because int might match the return type of a GCC
11790 builtin and then its argument prototype would still apply. */
11791#ifdef __cplusplus
11792extern "C"
11793#endif
11794char $ac_func ();
11795/* The GNU C library defines this for functions which it implements
11796 to always fail with ENOSYS. Some functions are actually named
11797 something starting with __ and the normal name is an alias. */
11798#if defined __stub_$ac_func || defined __stub___$ac_func
11799choke me
11800#endif
11801
11802int
11803main ()
11804{
11805return $ac_func ();
11806 ;
11807 return 0;
11808}
11809_ACEOF
11810rm -f conftest.$ac_objext conftest$ac_exeext
11811if { (ac_try="$ac_link"
11812case "(($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_link") 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11825 { (case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828esac
11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_try") 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest$ac_exeext'
11835 { (case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838esac
11839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_try") 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 eval "$as_ac_var=yes"
11845else
11846 echo "$as_me: failed program was:" >&5
11847sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 eval "$as_ac_var=no"
11850fi
11851
11852rm -f core conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854fi
11855ac_res=`eval echo '${'$as_ac_var'}'`
11856 { echo "$as_me:$LINENO: result: $ac_res" >&5
11857echo "${ECHO_T}$ac_res" >&6; }
11858if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011859 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011861_ACEOF
11862
11863fi
11864done
11865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011866
11867
11868
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011869for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011870do
11871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11872{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11874if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876else
11877 cat >conftest.$ac_ext <<_ACEOF
11878/* confdefs.h. */
11879_ACEOF
11880cat confdefs.h >>conftest.$ac_ext
11881cat >>conftest.$ac_ext <<_ACEOF
11882/* end confdefs.h. */
11883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11885#define $ac_func innocuous_$ac_func
11886
11887/* System header to define __stub macros and hopefully few prototypes,
11888 which can conflict with char $ac_func (); below.
11889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11890 <limits.h> exists even on freestanding compilers. */
11891
11892#ifdef __STDC__
11893# include <limits.h>
11894#else
11895# include <assert.h>
11896#endif
11897
11898#undef $ac_func
11899
11900/* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11903#ifdef __cplusplus
11904extern "C"
11905#endif
11906char $ac_func ();
11907/* The GNU C library defines this for functions which it implements
11908 to always fail with ENOSYS. Some functions are actually named
11909 something starting with __ and the normal name is an alias. */
11910#if defined __stub_$ac_func || defined __stub___$ac_func
11911choke me
11912#endif
11913
11914int
11915main ()
11916{
11917return $ac_func ();
11918 ;
11919 return 0;
11920}
11921_ACEOF
11922rm -f conftest.$ac_objext conftest$ac_exeext
11923if { (ac_try="$ac_link"
11924case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927esac
11928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_link") 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950esac
11951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 eval "$as_ac_var=yes"
11957else
11958 echo "$as_me: failed program was:" >&5
11959sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 eval "$as_ac_var=no"
11962fi
11963
11964rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966fi
11967ac_res=`eval echo '${'$as_ac_var'}'`
11968 { echo "$as_me:$LINENO: result: $ac_res" >&5
11969echo "${ECHO_T}$ac_res" >&6; }
11970if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011973_ACEOF
11974
11975fi
11976done
11977
11978
Douglas Gregor01746742009-05-11 18:05:52 +000011979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011980{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11981echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011982
Reid Spencer86901802004-12-08 23:07:27 +000011983ICC=no
11984IXX=no
11985case $CC in
11986 icc*|icpc*)
11987 ICC=yes
11988 IXX=yes
11989 ;;
11990 *)
11991 ;;
11992esac
11993
Duraid Madina937c60a2006-02-15 07:57:42 +000011994if test "$GCC" != "yes" && test "$ICC" != "yes"
11995then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011996 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11997echo "$as_me: error: gcc|icc required but not found" >&2;}
11998 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011999fi
12000
12001if test "$GXX" != "yes" && test "$IXX" != "yes"
12002then
Eric Christopher73e36da2010-12-08 02:02:14 +000012003 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12004echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012005 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012006fi
12007
Reid Spencer86901802004-12-08 23:07:27 +000012008if test "$GCC" = "yes"
12009then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012010 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012011#if !defined(__GNUC__) || __GNUC__ < 3
12012#error Unsupported GCC version
12013#endif
12014
12015_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012016rm -f conftest.$ac_objext
12017if { (ac_try="$ac_compile"
12018case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12021esac
12022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_compile") 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12031 { (case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034esac
12035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_try") 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; } &&
12040 { ac_try='test -s conftest.$ac_objext'
12041 { (case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12044esac
12045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_try") 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012051else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012052 echo "$as_me: failed program was:" >&5
12053sed 's/^/| /' conftest.$ac_ext >&5
12054
12055 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12056echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12057 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012059
Chris Lattner399c7c72008-02-05 19:43:53 +000012060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012061fi
12062
12063if test -z "$llvm_cv_gnu_make_command"
12064then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012065 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12066echo "$as_me: error: GNU Make required but not found" >&2;}
12067 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012068fi
12069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012070{ echo "$as_me:$LINENO: result: ok" >&5
12071echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012073{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12074echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012075NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012076
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012077NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012078
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012079COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12080
12081{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12082echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012083
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012085
12086{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12087echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12088if test "${ac_cv_lib_m_sin+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012090else
12091 ac_check_lib_save_LIBS=$LIBS
12092LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012093cat >conftest.$ac_ext <<_ACEOF
12094/* confdefs.h. */
12095_ACEOF
12096cat confdefs.h >>conftest.$ac_ext
12097cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012098/* end confdefs.h. */
12099
Reid Spencera773bd52006-08-04 18:18:08 +000012100/* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012103#ifdef __cplusplus
12104extern "C"
12105#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012106char sin ();
12107int
12108main ()
12109{
Reid Spencera773bd52006-08-04 18:18:08 +000012110return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012111 ;
12112 return 0;
12113}
12114_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012115rm -f conftest.$ac_objext conftest$ac_exeext
12116if { (ac_try="$ac_link"
12117case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120esac
12121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_link") 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest$ac_exeext'
12140 { (case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12143esac
12144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12145 (eval "$ac_try") 2>&5
12146 ac_status=$?
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012149 ac_cv_lib_m_sin=yes
12150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012151 echo "$as_me: failed program was:" >&5
12152sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156
Bill Wendlingebcceee2009-04-18 11:20:33 +000012157rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012158 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012159LIBS=$ac_check_lib_save_LIBS
12160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012161{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12162echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12163if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012164 cat >>confdefs.h <<_ACEOF
12165#define HAVE_LIBM 1
12166_ACEOF
12167
12168 LIBS="-lm $LIBS"
12169
12170fi
12171
Jeff Cohen28783c32007-01-12 18:22:38 +000012172if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012173
12174{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12175echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12176if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012178else
12179 ac_check_lib_save_LIBS=$LIBS
12180LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012181cat >conftest.$ac_ext <<_ACEOF
12182/* confdefs.h. */
12183_ACEOF
12184cat confdefs.h >>conftest.$ac_ext
12185cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012186/* end confdefs.h. */
12187
Reid Spencer48fdf912006-06-01 19:03:21 +000012188
Reid Spencer484fc8e2006-06-01 16:55:59 +000012189int
12190main ()
12191{
Reid Spencera773bd52006-08-04 18:18:08 +000012192return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012193 ;
12194 return 0;
12195}
12196_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012197rm -f conftest.$ac_objext conftest$ac_exeext
12198if { (ac_try="$ac_link"
12199case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202esac
12203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_link") 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12212 { (case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12215esac
12216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_try") 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest$ac_exeext'
12222 { (case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225esac
12226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_try") 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012231 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012232else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012233 echo "$as_me: failed program was:" >&5
12234sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238
Bill Wendlingebcceee2009-04-18 11:20:33 +000012239rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012240 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012241LIBS=$ac_check_lib_save_LIBS
12242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012243{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12244echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12245if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012246 cat >>confdefs.h <<_ACEOF
12247#define HAVE_LIBIMAGEHLP 1
12248_ACEOF
12249
12250 LIBS="-limagehlp $LIBS"
12251
12252fi
12253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012254
12255{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12256echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12257if test "${ac_cv_lib_psapi_main+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012259else
12260 ac_check_lib_save_LIBS=$LIBS
12261LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012262cat >conftest.$ac_ext <<_ACEOF
12263/* confdefs.h. */
12264_ACEOF
12265cat confdefs.h >>conftest.$ac_ext
12266cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012267/* end confdefs.h. */
12268
Reid Spencer48fdf912006-06-01 19:03:21 +000012269
Reid Spencer484fc8e2006-06-01 16:55:59 +000012270int
12271main ()
12272{
Reid Spencera773bd52006-08-04 18:18:08 +000012273return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012274 ;
12275 return 0;
12276}
12277_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012278rm -f conftest.$ac_objext conftest$ac_exeext
12279if { (ac_try="$ac_link"
12280case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283esac
12284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_link") 2>conftest.er1
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
12292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12293 { (case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296esac
12297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_try") 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest$ac_exeext'
12303 { (case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12306esac
12307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308 (eval "$ac_try") 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012312 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012314 echo "$as_me: failed program was:" >&5
12315sed 's/^/| /' conftest.$ac_ext >&5
12316
12317 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012319
Bill Wendlingebcceee2009-04-18 11:20:33 +000012320rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012322LIBS=$ac_check_lib_save_LIBS
12323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012324{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12325echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12326if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012327 cat >>confdefs.h <<_ACEOF
12328#define HAVE_LIBPSAPI 1
12329_ACEOF
12330
12331 LIBS="-lpsapi $LIBS"
12332
12333fi
12334
12335fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012337{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12338echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12339if test "${ac_cv_search_dlopen+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012341else
12342 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012343cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012349
Reid Spencera773bd52006-08-04 18:18:08 +000012350/* Override any GCC internal prototype to avoid an error.
12351 Use char because int might match the return type of a GCC
12352 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012353#ifdef __cplusplus
12354extern "C"
12355#endif
John Criswell7a73b802003-06-30 21:59:07 +000012356char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012357int
12358main ()
12359{
Reid Spencera773bd52006-08-04 18:18:08 +000012360return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012361 ;
12362 return 0;
12363}
12364_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012365for ac_lib in '' dl; do
12366 if test -z "$ac_lib"; then
12367 ac_res="none required"
12368 else
12369 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012371 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012372 rm -f conftest.$ac_objext conftest$ac_exeext
12373if { (ac_try="$ac_link"
12374case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12377esac
12378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_link") 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12387 { (case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390esac
12391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_try") 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; } &&
12396 { ac_try='test -s conftest$ac_exeext'
12397 { (case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400esac
12401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_try") 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012406 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012407else
12408 echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411
John Criswell7a73b802003-06-30 21:59:07 +000012412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012413
Bill Wendlingebcceee2009-04-18 11:20:33 +000012414rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012415 conftest$ac_exeext
12416 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012417 break
John Criswell7a73b802003-06-30 21:59:07 +000012418fi
Reid Spencera773bd52006-08-04 18:18:08 +000012419done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012420if test "${ac_cv_search_dlopen+set}" = set; then
12421 :
Reid Spencera773bd52006-08-04 18:18:08 +000012422else
12423 ac_cv_search_dlopen=no
12424fi
12425rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012426LIBS=$ac_func_search_save_LIBS
12427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012428{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12429echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012430ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012431if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012434cat >>confdefs.h <<\_ACEOF
12435#define HAVE_DLOPEN 1
12436_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012437
12438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012439 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12440echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012441fi
12442
12443
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012444if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012445 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12446echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12447if test "${ac_cv_search_ffi_call+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012449else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012450 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012451cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012456/* end confdefs.h. */
12457
12458/* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12461#ifdef __cplusplus
12462extern "C"
12463#endif
12464char ffi_call ();
12465int
12466main ()
12467{
12468return ffi_call ();
12469 ;
12470 return 0;
12471}
12472_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012473for ac_lib in '' ffi; do
12474 if test -z "$ac_lib"; then
12475 ac_res="none required"
12476 else
12477 ac_res=-l$ac_lib
12478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12479 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012480 rm -f conftest.$ac_objext conftest$ac_exeext
12481if { (ac_try="$ac_link"
12482case "(($ac_try" in
12483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12485esac
12486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_link") 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12495 { (case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12498esac
12499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_try") 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try='test -s conftest$ac_exeext'
12505 { (case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508esac
12509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_try") 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012514 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012515else
12516 echo "$as_me: failed program was:" >&5
12517sed 's/^/| /' conftest.$ac_ext >&5
12518
12519
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012521
Bill Wendlingebcceee2009-04-18 11:20:33 +000012522rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012523 conftest$ac_exeext
12524 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012525 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012526fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012527done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012528if test "${ac_cv_search_ffi_call+set}" = set; then
12529 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012530else
12531 ac_cv_search_ffi_call=no
12532fi
12533rm conftest.$ac_ext
12534LIBS=$ac_func_search_save_LIBS
12535fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012536{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12537echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012538ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012539if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012542cat >>confdefs.h <<\_ACEOF
12543#define HAVE_FFI_CALL 1
12544_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012545
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012546else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012547 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12548echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12549 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012550fi
12551
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012552fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012554{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12555echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12556if test "${ac_cv_search_mallinfo+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012558else
12559 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012560cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012565/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012566
Reid Spencera773bd52006-08-04 18:18:08 +000012567/* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012570#ifdef __cplusplus
12571extern "C"
12572#endif
John Criswell7a73b802003-06-30 21:59:07 +000012573char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012574int
12575main ()
12576{
Reid Spencera773bd52006-08-04 18:18:08 +000012577return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012578 ;
12579 return 0;
12580}
12581_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012582for ac_lib in '' malloc; do
12583 if test -z "$ac_lib"; then
12584 ac_res="none required"
12585 else
12586 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012588 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012589 rm -f conftest.$ac_objext conftest$ac_exeext
12590if { (ac_try="$ac_link"
12591case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594esac
12595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_link") 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12604 { (case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12607esac
12608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_try") 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest$ac_exeext'
12614 { (case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_try") 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012623 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012624else
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628
John Criswell7a73b802003-06-30 21:59:07 +000012629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012630
Bill Wendlingebcceee2009-04-18 11:20:33 +000012631rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012632 conftest$ac_exeext
12633 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012634 break
John Criswell7a73b802003-06-30 21:59:07 +000012635fi
Reid Spencera773bd52006-08-04 18:18:08 +000012636done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012637if test "${ac_cv_search_mallinfo+set}" = set; then
12638 :
Reid Spencera773bd52006-08-04 18:18:08 +000012639else
12640 ac_cv_search_mallinfo=no
12641fi
12642rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012643LIBS=$ac_func_search_save_LIBS
12644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012645{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12646echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012647ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012648if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012651cat >>confdefs.h <<\_ACEOF
12652#define HAVE_MALLINFO 1
12653_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012654
12655fi
12656
12657
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012658if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012659
12660{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12661echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12662if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012664else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012665 ac_check_lib_save_LIBS=$LIBS
12666LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012667cat >conftest.$ac_ext <<_ACEOF
12668/* confdefs.h. */
12669_ACEOF
12670cat confdefs.h >>conftest.$ac_ext
12671cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012672/* end confdefs.h. */
12673
Reid Spencera773bd52006-08-04 18:18:08 +000012674/* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012677#ifdef __cplusplus
12678extern "C"
12679#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012680char pthread_mutex_init ();
12681int
12682main ()
12683{
Reid Spencera773bd52006-08-04 18:18:08 +000012684return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012685 ;
12686 return 0;
12687}
12688_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012689rm -f conftest.$ac_objext conftest$ac_exeext
12690if { (ac_try="$ac_link"
12691case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12694esac
12695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_link") 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12704 { (case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707esac
12708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_try") 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try='test -s conftest$ac_exeext'
12714 { (case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717esac
12718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_try") 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012723 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012725 echo "$as_me: failed program was:" >&5
12726sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730
Bill Wendlingebcceee2009-04-18 11:20:33 +000012731rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012732 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012733LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012735{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12736echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12737if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012738 cat >>confdefs.h <<_ACEOF
12739#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012740_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012741
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012742 LIBS="-lpthread $LIBS"
12743
Reid Spencer22177fe2005-07-12 15:24:20 +000012744fi
12745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012746 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12747echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12748if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012750else
12751 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012752cat >conftest.$ac_ext <<_ACEOF
12753/* confdefs.h. */
12754_ACEOF
12755cat confdefs.h >>conftest.$ac_ext
12756cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012757/* end confdefs.h. */
12758
Reid Spencera773bd52006-08-04 18:18:08 +000012759/* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012762#ifdef __cplusplus
12763extern "C"
12764#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012765char pthread_mutex_lock ();
12766int
12767main ()
12768{
Reid Spencera773bd52006-08-04 18:18:08 +000012769return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012770 ;
12771 return 0;
12772}
12773_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012774for ac_lib in '' pthread; do
12775 if test -z "$ac_lib"; then
12776 ac_res="none required"
12777 else
12778 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012780 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012781 rm -f conftest.$ac_objext conftest$ac_exeext
12782if { (ac_try="$ac_link"
12783case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786esac
12787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_link") 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12796 { (case "(($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_try") 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; } &&
12805 { ac_try='test -s conftest$ac_exeext'
12806 { (case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12809esac
12810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_try") 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012815 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012816else
12817 echo "$as_me: failed program was:" >&5
12818sed 's/^/| /' conftest.$ac_ext >&5
12819
12820
Brian Gaeke5f268f72003-12-05 19:29:01 +000012821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012822
Bill Wendlingebcceee2009-04-18 11:20:33 +000012823rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824 conftest$ac_exeext
12825 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012826 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012827fi
Reid Spencera773bd52006-08-04 18:18:08 +000012828done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012829if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12830 :
Reid Spencera773bd52006-08-04 18:18:08 +000012831else
12832 ac_cv_search_pthread_mutex_lock=no
12833fi
12834rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012835LIBS=$ac_func_search_save_LIBS
12836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12838echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012839ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012840if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012843cat >>confdefs.h <<\_ACEOF
12844#define HAVE_PTHREAD_MUTEX_LOCK 1
12845_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012846
12847fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012849 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12850echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12851if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012853else
12854 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012855cat >conftest.$ac_ext <<_ACEOF
12856/* confdefs.h. */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012860/* end confdefs.h. */
12861
12862/* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12865#ifdef __cplusplus
12866extern "C"
12867#endif
12868char pthread_rwlock_init ();
12869int
12870main ()
12871{
12872return pthread_rwlock_init ();
12873 ;
12874 return 0;
12875}
12876_ACEOF
12877for ac_lib in '' pthread; do
12878 if test -z "$ac_lib"; then
12879 ac_res="none required"
12880 else
12881 ac_res=-l$ac_lib
12882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12883 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012884 rm -f conftest.$ac_objext conftest$ac_exeext
12885if { (ac_try="$ac_link"
12886case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889esac
12890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_link") 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12899 { (case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902esac
12903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_try") 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest$ac_exeext'
12909 { (case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912esac
12913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_try") 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012918 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012919else
12920 echo "$as_me: failed program was:" >&5
12921sed 's/^/| /' conftest.$ac_ext >&5
12922
12923
Owen Andersonde8aed22009-06-16 18:20:20 +000012924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012925
Owen Andersonde8aed22009-06-16 18:20:20 +000012926rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927 conftest$ac_exeext
12928 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012929 break
12930fi
12931done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012932if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12933 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012934else
12935 ac_cv_search_pthread_rwlock_init=no
12936fi
12937rm conftest.$ac_ext
12938LIBS=$ac_func_search_save_LIBS
12939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012940{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12941echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012942ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012943if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012946cat >>confdefs.h <<\_ACEOF
12947#define HAVE_PTHREAD_RWLOCK_INIT 1
12948_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012949
12950fi
12951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012952 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12953echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12954if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012956else
12957 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012958cat >conftest.$ac_ext <<_ACEOF
12959/* confdefs.h. */
12960_ACEOF
12961cat confdefs.h >>conftest.$ac_ext
12962cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012963/* end confdefs.h. */
12964
12965/* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968#ifdef __cplusplus
12969extern "C"
12970#endif
12971char pthread_getspecific ();
12972int
12973main ()
12974{
12975return pthread_getspecific ();
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980for ac_lib in '' pthread; do
12981 if test -z "$ac_lib"; then
12982 ac_res="none required"
12983 else
12984 ac_res=-l$ac_lib
12985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12986 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012987 rm -f conftest.$ac_objext conftest$ac_exeext
12988if { (ac_try="$ac_link"
12989case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12992esac
12993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994 (eval "$ac_link") 2>conftest.er1
12995 ac_status=$?
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13002 { (case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005esac
13006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_try") 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13015esac
13016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_try") 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013021 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013022else
13023 echo "$as_me: failed program was:" >&5
13024sed 's/^/| /' conftest.$ac_ext >&5
13025
13026
Owen Anderson27fcfe12009-06-25 23:10:26 +000013027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013028
Owen Anderson27fcfe12009-06-25 23:10:26 +000013029rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013030 conftest$ac_exeext
13031 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013032 break
13033fi
13034done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013035if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13036 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013037else
13038 ac_cv_search_pthread_getspecific=no
13039fi
13040rm conftest.$ac_ext
13041LIBS=$ac_func_search_save_LIBS
13042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013043{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13044echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013045ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013046if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013049cat >>confdefs.h <<\_ACEOF
13050#define HAVE_PTHREAD_GETSPECIFIC 1
13051_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013052
13053fi
13054
Reid Spencer0a262ba2005-08-24 10:07:20 +000013055fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013056
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013057
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013058# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013059if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013060 withval=$with_udis86;
13061 USE_UDIS86=1
13062
13063 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013064 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013065 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13066 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067
13068{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13069echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13070if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013072else
13073 ac_check_lib_save_LIBS=$LIBS
13074LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013075cat >conftest.$ac_ext <<_ACEOF
13076/* confdefs.h. */
13077_ACEOF
13078cat confdefs.h >>conftest.$ac_ext
13079cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013080/* end confdefs.h. */
13081
13082/* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13085#ifdef __cplusplus
13086extern "C"
13087#endif
13088char ud_init ();
13089int
13090main ()
13091{
13092return ud_init ();
13093 ;
13094 return 0;
13095}
13096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013097rm -f conftest.$ac_objext conftest$ac_exeext
13098if { (ac_try="$ac_link"
13099case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102esac
13103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104 (eval "$ac_link") 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13112 { (case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115esac
13116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_try") 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest$ac_exeext'
13122 { (case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_try") 2>&5
13128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013131 ac_cv_lib_udis86_ud_init=yes
13132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013133 echo "$as_me: failed program was:" >&5
13134sed 's/^/| /' conftest.$ac_ext >&5
13135
13136 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138
Bill Wendlingebcceee2009-04-18 11:20:33 +000013139rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013140 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013141LIBS=$ac_check_lib_save_LIBS
13142fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013143{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13144echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13145if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013146 cat >>confdefs.h <<_ACEOF
13147#define HAVE_LIBUDIS86 1
13148_ACEOF
13149
13150 LIBS="-ludis86 $LIBS"
13151
13152else
13153
13154 echo "Error! You need to have libudis86 around."
13155 exit -1
13156
13157fi
13158
13159
13160else
13161 USE_UDIS86=0
13162
13163fi
13164
13165
13166cat >>confdefs.h <<_ACEOF
13167#define USE_UDIS86 $USE_UDIS86
13168_ACEOF
13169
13170
13171
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013172# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013173if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013174 withval=$with_oprofile;
13175 USE_OPROFILE=1
13176
13177 case "$withval" in
13178 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013179 no) llvm_cv_oppath=
13180 USE_OPROFILE=0
13181 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013182 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013183 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013184 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013185 case $llvm_cv_os_type in
13186 Linux)
13187 if test -n "$llvm_cv_oppath" ; then
13188 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13189 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13191if test "${ac_cv_search_bfd_init+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013193else
13194 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013195cat >conftest.$ac_ext <<_ACEOF
13196/* confdefs.h. */
13197_ACEOF
13198cat confdefs.h >>conftest.$ac_ext
13199cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013200/* end confdefs.h. */
13201
13202/* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13205#ifdef __cplusplus
13206extern "C"
13207#endif
13208char bfd_init ();
13209int
13210main ()
13211{
13212return bfd_init ();
13213 ;
13214 return 0;
13215}
13216_ACEOF
13217for ac_lib in '' bfd; do
13218 if test -z "$ac_lib"; then
13219 ac_res="none required"
13220 else
13221 ac_res=-l$ac_lib
13222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13223 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013224 rm -f conftest.$ac_objext conftest$ac_exeext
13225if { (ac_try="$ac_link"
13226case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229esac
13230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13239 { (case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242esac
13243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_try") 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest$ac_exeext'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252esac
13253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013258 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013259else
13260 echo "$as_me: failed program was:" >&5
13261sed 's/^/| /' conftest.$ac_ext >&5
13262
13263
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013266rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013267 conftest$ac_exeext
13268 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013269 break
13270fi
13271done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013272if test "${ac_cv_search_bfd_init+set}" = set; then
13273 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013274else
13275 ac_cv_search_bfd_init=no
13276fi
13277rm conftest.$ac_ext
13278LIBS=$ac_func_search_save_LIBS
13279fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13281echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013282ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013283if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13285
13286fi
13287
Eli Bendersky61b18512012-03-13 08:33:15 +000013288 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013289echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13290if test "${ac_cv_search_op_open_agent+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013292else
13293 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013294cat >conftest.$ac_ext <<_ACEOF
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013299/* end confdefs.h. */
13300
13301/* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13304#ifdef __cplusplus
13305extern "C"
13306#endif
13307char op_open_agent ();
13308int
13309main ()
13310{
13311return op_open_agent ();
13312 ;
13313 return 0;
13314}
13315_ACEOF
13316for ac_lib in '' opagent; do
13317 if test -z "$ac_lib"; then
13318 ac_res="none required"
13319 else
13320 ac_res=-l$ac_lib
13321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13322 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013323 rm -f conftest.$ac_objext conftest$ac_exeext
13324if { (ac_try="$ac_link"
13325case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328esac
13329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_link") 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341esac
13342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try='test -s conftest$ac_exeext'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351esac
13352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013357 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013358else
13359 echo "$as_me: failed program was:" >&5
13360sed 's/^/| /' conftest.$ac_ext >&5
13361
13362
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013365rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013366 conftest$ac_exeext
13367 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013368 break
13369fi
13370done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013371if test "${ac_cv_search_op_open_agent+set}" = set; then
13372 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013373else
13374 ac_cv_search_op_open_agent=no
13375fi
13376rm conftest.$ac_ext
13377LIBS=$ac_func_search_save_LIBS
13378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013379{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13380echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013381ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013382if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13384
13385else
13386
Eli Bendersky61b18512012-03-13 08:33:15 +000013387 echo "Error! You need to have libopagent around."
13388 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013389
13390fi
13391
Eli Bendersky61b18512012-03-13 08:33:15 +000013392 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013393 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13394echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13395if test "${ac_cv_header_opagent_h+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13397fi
13398{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13399echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13400else
13401 # Is the header compilable?
13402{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13403echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13404cat >conftest.$ac_ext <<_ACEOF
13405/* confdefs.h. */
13406_ACEOF
13407cat confdefs.h >>conftest.$ac_ext
13408cat >>conftest.$ac_ext <<_ACEOF
13409/* end confdefs.h. */
13410$ac_includes_default
13411#include <opagent.h>
13412_ACEOF
13413rm -f conftest.$ac_objext
13414if { (ac_try="$ac_compile"
13415case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_compile") 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431esac
13432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441esac
13442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_header_compiler=yes
13448else
13449 echo "$as_me: failed program was:" >&5
13450sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013452 ac_header_compiler=no
13453fi
13454
13455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13457echo "${ECHO_T}$ac_header_compiler" >&6; }
13458
13459# Is the header present?
13460{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13461echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13462cat >conftest.$ac_ext <<_ACEOF
13463/* confdefs.h. */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
13467/* end confdefs.h. */
13468#include <opagent.h>
13469_ACEOF
13470if { (ac_try="$ac_cpp conftest.$ac_ext"
13471case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474esac
13475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } >/dev/null; then
13483 if test -s conftest.err; then
13484 ac_cpp_err=$ac_c_preproc_warn_flag
13485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13486 else
13487 ac_cpp_err=
13488 fi
13489else
13490 ac_cpp_err=yes
13491fi
13492if test -z "$ac_cpp_err"; then
13493 ac_header_preproc=yes
13494else
13495 echo "$as_me: failed program was:" >&5
13496sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 ac_header_preproc=no
13499fi
13500
13501rm -f conftest.err conftest.$ac_ext
13502{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13503echo "${ECHO_T}$ac_header_preproc" >&6; }
13504
13505# So? What about this header?
13506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13507 yes:no: )
13508 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13509echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13511echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13512 ac_header_preproc=yes
13513 ;;
13514 no:yes:* )
13515 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13516echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13518echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13520echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13522echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13524echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13525 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13526echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13527 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013528## ------------------------------------ ##
13529## Report this to http://llvm.org/bugs/ ##
13530## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013531_ASBOX
13532 ) | sed "s/^/$as_me: WARNING: /" >&2
13533 ;;
13534esac
13535{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13536echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13537if test "${ac_cv_header_opagent_h+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539else
13540 ac_cv_header_opagent_h=$ac_header_preproc
13541fi
13542{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13543echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13544
13545fi
13546if test $ac_cv_header_opagent_h = yes; then
13547 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013548else
13549
Eli Bendersky61b18512012-03-13 08:33:15 +000013550 echo "Error! You need to have opagent.h around."
13551 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013552
13553fi
13554
13555
Eli Bendersky61b18512012-03-13 08:33:15 +000013556 fi ;;
13557 *)
13558 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13559echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13560 { (exit 1); exit 1; }; } ;;
13561 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013562
13563else
13564
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013565 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013566
13567
13568fi
13569
13570
13571cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013572#define LLVM_USE_OPROFILE $USE_OPROFILE
13573_ACEOF
13574
13575
13576
13577# Check whether --with-intel-jitevents was given.
13578if test "${with_intel_jitevents+set}" = set; then
13579 withval=$with_intel_jitevents;
13580 case $llvm_cv_os_type in
13581 Linux|Win32|Cygwin|MingW) ;;
13582 *)
13583 { { echo "$as_me:$LINENO: error:
13584 Intel JIT API support is available on Linux and Windows only.\"" >&5
13585echo "$as_me: error:
13586 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13587 { (exit 1); exit 1; }; } ;;
13588 esac
13589
13590 USE_INTEL_JITEVENTS=1
13591
13592 case "$llvm_cv_target_arch" in
13593 x86) llvm_intel_jitevents_archdir="lib32";;
13594 x86_64) llvm_intel_jitevents_archdir="lib64";;
13595 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13596 exit -1;;
13597 esac
13598 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13599 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13600 case "$withval" in
13601 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13602 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13603 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013604 esac
13605
13606
13607
13608
13609 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
Eric Christopher42dffa52012-08-03 17:45:31 +000013610 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
Eli Bendersky61b18512012-03-13 08:33:15 +000013611
13612 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13613echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13614if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13616else
13617 ac_func_search_save_LIBS=$LIBS
13618cat >conftest.$ac_ext <<_ACEOF
13619/* confdefs.h. */
13620_ACEOF
13621cat confdefs.h >>conftest.$ac_ext
13622cat >>conftest.$ac_ext <<_ACEOF
13623/* end confdefs.h. */
13624
13625/* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13628#ifdef __cplusplus
13629extern "C"
13630#endif
13631char iJIT_IsProfilingActive ();
13632int
13633main ()
13634{
13635return iJIT_IsProfilingActive ();
13636 ;
13637 return 0;
13638}
13639_ACEOF
13640for ac_lib in '' jitprofiling; do
13641 if test -z "$ac_lib"; then
13642 ac_res="none required"
13643 else
13644 ac_res=-l$ac_lib
13645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13646 fi
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648if { (ac_try="$ac_link"
13649case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652esac
13653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_link") 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest$ac_exeext'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675esac
13676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13682else
13683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
13686
13687fi
13688
13689rm -f core conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext
13691 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13692 break
13693fi
13694done
13695if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13696 :
13697else
13698 ac_cv_search_iJIT_IsProfilingActive=no
13699fi
13700rm conftest.$ac_ext
13701LIBS=$ac_func_search_save_LIBS
13702fi
13703{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13704echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13705ac_res=$ac_cv_search_iJIT_IsProfilingActive
13706if test "$ac_res" != no; then
13707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13708
13709else
13710
13711 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13712 exit -1
13713
13714fi
13715
13716 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13717 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13718echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13719if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721fi
13722{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13723echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13724else
13725 # Is the header compilable?
13726{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13727echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13728cat >conftest.$ac_ext <<_ACEOF
13729/* confdefs.h. */
13730_ACEOF
13731cat confdefs.h >>conftest.$ac_ext
13732cat >>conftest.$ac_ext <<_ACEOF
13733/* end confdefs.h. */
13734$ac_includes_default
13735#include <jitprofiling.h>
13736_ACEOF
13737rm -f conftest.$ac_objext
13738if { (ac_try="$ac_compile"
13739case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13742esac
13743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_compile") 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13755esac
13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13765esac
13766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 ac_header_compiler=yes
13772else
13773 echo "$as_me: failed program was:" >&5
13774sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 ac_header_compiler=no
13777fi
13778
13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781echo "${ECHO_T}$ac_header_compiler" >&6; }
13782
13783# Is the header present?
13784{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13785echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13786cat >conftest.$ac_ext <<_ACEOF
13787/* confdefs.h. */
13788_ACEOF
13789cat confdefs.h >>conftest.$ac_ext
13790cat >>conftest.$ac_ext <<_ACEOF
13791/* end confdefs.h. */
13792#include <jitprofiling.h>
13793_ACEOF
13794if { (ac_try="$ac_cpp conftest.$ac_ext"
13795case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13798esac
13799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } >/dev/null; then
13807 if test -s conftest.err; then
13808 ac_cpp_err=$ac_c_preproc_warn_flag
13809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13810 else
13811 ac_cpp_err=
13812 fi
13813else
13814 ac_cpp_err=yes
13815fi
13816if test -z "$ac_cpp_err"; then
13817 ac_header_preproc=yes
13818else
13819 echo "$as_me: failed program was:" >&5
13820sed 's/^/| /' conftest.$ac_ext >&5
13821
13822 ac_header_preproc=no
13823fi
13824
13825rm -f conftest.err conftest.$ac_ext
13826{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13827echo "${ECHO_T}$ac_header_preproc" >&6; }
13828
13829# So? What about this header?
13830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13831 yes:no: )
13832 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13833echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13835echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13836 ac_header_preproc=yes
13837 ;;
13838 no:yes:* )
13839 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13840echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13842echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13844echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13846echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13848echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13850echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13851 ( cat <<\_ASBOX
13852## ------------------------------------ ##
13853## Report this to http://llvm.org/bugs/ ##
13854## ------------------------------------ ##
13855_ASBOX
13856 ) | sed "s/^/$as_me: WARNING: /" >&2
13857 ;;
13858esac
13859{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13860echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13861if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863else
13864 ac_cv_header_jitprofiling_h=$ac_header_preproc
13865fi
13866{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13867echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13868
13869fi
13870if test $ac_cv_header_jitprofiling_h = yes; then
13871 :
13872else
13873
13874 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13875 exit -1
13876
13877fi
13878
13879
13880
13881
13882else
13883
13884 USE_INTEL_JITEVENTS=0
13885
13886
13887fi
13888
13889
13890cat >>confdefs.h <<_ACEOF
13891#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013892_ACEOF
13893
13894
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013895for ac_prog in xml2-config
13896do
13897 # Extract the first word of "$ac_prog", so it can be a program name with args.
13898set dummy $ac_prog; ac_word=$2
13899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13901if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903else
13904 if test -n "$XML2CONFIG"; then
13905 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13906else
13907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908for as_dir in $PATH
13909do
13910 IFS=$as_save_IFS
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13914 ac_cv_prog_XML2CONFIG="$ac_prog"
13915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13916 break 2
13917 fi
13918done
13919done
13920IFS=$as_save_IFS
13921
13922fi
13923fi
13924XML2CONFIG=$ac_cv_prog_XML2CONFIG
13925if test -n "$XML2CONFIG"; then
13926 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13927echo "${ECHO_T}$XML2CONFIG" >&6; }
13928else
13929 { echo "$as_me:$LINENO: result: no" >&5
13930echo "${ECHO_T}no" >&6; }
13931fi
13932
13933
13934 test -n "$XML2CONFIG" && break
13935done
13936
13937
13938{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13939echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13940if test "x$XML2CONFIG" = "x"; then
13941 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13942echo "${ECHO_T}xml2-config not found" >&6; }
13943else
13944 LIBXML2_INC=`$XML2CONFIG --cflags`
13945 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13946echo "${ECHO_T}$LIBXML2_INC" >&6; }
13947 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13948echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13949if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951else
13952 ac_check_lib_save_LIBS=$LIBS
13953LIBS="-lxml2 $LIBS"
13954cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960
13961/* Override any GCC internal prototype to avoid an error.
13962 Use char because int might match the return type of a GCC
13963 builtin and then its argument prototype would still apply. */
13964#ifdef __cplusplus
13965extern "C"
13966#endif
13967char xmlReadFile ();
13968int
13969main ()
13970{
13971return xmlReadFile ();
13972 ;
13973 return 0;
13974}
13975_ACEOF
13976rm -f conftest.$ac_objext conftest$ac_exeext
13977if { (ac_try="$ac_link"
13978case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981esac
13982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_link") 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13991 { (case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13994esac
13995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; } &&
14000 { ac_try='test -s conftest$ac_exeext'
14001 { (case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14004esac
14005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_try") 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_cv_lib_xml2_xmlReadFile=yes
14011else
14012 echo "$as_me: failed program was:" >&5
14013sed 's/^/| /' conftest.$ac_ext >&5
14014
14015 ac_cv_lib_xml2_xmlReadFile=no
14016fi
14017
14018rm -f core conftest.err conftest.$ac_objext \
14019 conftest$ac_exeext conftest.$ac_ext
14020LIBS=$ac_check_lib_save_LIBS
14021fi
14022{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14023echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14024if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14025
14026cat >>confdefs.h <<\_ACEOF
14027#define CLANG_HAVE_LIBXML 1
14028_ACEOF
14029
14030 LIBXML2_LIBS="-lxml2"
14031fi
14032
14033fi
14034
14035
14036
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014038
14039
14040
14041
14042
Reid Spencer59473af2004-12-25 07:31:29 +000014043ac_header_dirent=no
14044for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014045 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14046{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14047echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014051 cat >conftest.$ac_ext <<_ACEOF
14052/* confdefs.h. */
14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014056/* end confdefs.h. */
14057#include <sys/types.h>
14058#include <$ac_hdr>
14059
14060int
14061main ()
14062{
14063if ((DIR *) 0)
14064return 0;
14065 ;
14066 return 0;
14067}
14068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069rm -f conftest.$ac_objext
14070if { (ac_try="$ac_compile"
14071case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074esac
14075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087esac
14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest.$ac_objext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097esac
14098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014103 eval "$as_ac_Header=yes"
14104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105 echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110
Reid Spencera773bd52006-08-04 18:18:08 +000014111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014113ac_res=`eval echo '${'$as_ac_Header'}'`
14114 { echo "$as_me:$LINENO: result: $ac_res" >&5
14115echo "${ECHO_T}$ac_res" >&6; }
14116if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014117 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014119_ACEOF
14120
14121ac_header_dirent=$ac_hdr; break
14122fi
14123
14124done
14125# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14126if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14128echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14129if test "${ac_cv_search_opendir+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014131else
14132 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014133cat >conftest.$ac_ext <<_ACEOF
14134/* confdefs.h. */
14135_ACEOF
14136cat confdefs.h >>conftest.$ac_ext
14137cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014138/* end confdefs.h. */
14139
Reid Spencera773bd52006-08-04 18:18:08 +000014140/* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014143#ifdef __cplusplus
14144extern "C"
14145#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014146char opendir ();
14147int
14148main ()
14149{
Reid Spencera773bd52006-08-04 18:18:08 +000014150return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014151 ;
14152 return 0;
14153}
14154_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014155for ac_lib in '' dir; do
14156 if test -z "$ac_lib"; then
14157 ac_res="none required"
14158 else
14159 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014161 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162 rm -f conftest.$ac_objext conftest$ac_exeext
14163if { (ac_try="$ac_link"
14164case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14167esac
14168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_link") 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177 { (case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14180esac
14181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_try") 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest$ac_exeext'
14187 { (case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190esac
14191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_try") 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014196 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014197else
14198 echo "$as_me: failed program was:" >&5
14199sed 's/^/| /' conftest.$ac_ext >&5
14200
14201
Reid Spencer59473af2004-12-25 07:31:29 +000014202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014203
Bill Wendlingebcceee2009-04-18 11:20:33 +000014204rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014205 conftest$ac_exeext
14206 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014207 break
Reid Spencer59473af2004-12-25 07:31:29 +000014208fi
Reid Spencera773bd52006-08-04 18:18:08 +000014209done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014210if test "${ac_cv_search_opendir+set}" = set; then
14211 :
Reid Spencera773bd52006-08-04 18:18:08 +000014212else
14213 ac_cv_search_opendir=no
14214fi
14215rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014216LIBS=$ac_func_search_save_LIBS
14217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014218{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14219echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014220ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014221if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014223
14224fi
14225
14226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14228echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14229if test "${ac_cv_search_opendir+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014231else
14232 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233cat >conftest.$ac_ext <<_ACEOF
14234/* confdefs.h. */
14235_ACEOF
14236cat confdefs.h >>conftest.$ac_ext
14237cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014238/* end confdefs.h. */
14239
Reid Spencera773bd52006-08-04 18:18:08 +000014240/* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014243#ifdef __cplusplus
14244extern "C"
14245#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014246char opendir ();
14247int
14248main ()
14249{
Reid Spencera773bd52006-08-04 18:18:08 +000014250return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014251 ;
14252 return 0;
14253}
14254_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014255for ac_lib in '' x; do
14256 if test -z "$ac_lib"; then
14257 ac_res="none required"
14258 else
14259 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014261 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262 rm -f conftest.$ac_objext conftest$ac_exeext
14263if { (ac_try="$ac_link"
14264case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14267esac
14268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269 (eval "$ac_link") 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest$ac_exeext'
14287 { (case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290esac
14291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_try") 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014296 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014297else
14298 echo "$as_me: failed program was:" >&5
14299sed 's/^/| /' conftest.$ac_ext >&5
14300
14301
Reid Spencer59473af2004-12-25 07:31:29 +000014302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303
Bill Wendlingebcceee2009-04-18 11:20:33 +000014304rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014305 conftest$ac_exeext
14306 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014307 break
Reid Spencer59473af2004-12-25 07:31:29 +000014308fi
Reid Spencera773bd52006-08-04 18:18:08 +000014309done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014310if test "${ac_cv_search_opendir+set}" = set; then
14311 :
Reid Spencera773bd52006-08-04 18:18:08 +000014312else
14313 ac_cv_search_opendir=no
14314fi
14315rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014316LIBS=$ac_func_search_save_LIBS
14317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14319echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014320ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014321if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014323
14324fi
14325
14326fi
14327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14329echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14330if test "${ac_cv_header_mmap_anon+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014332else
14333 ac_ext=c
14334ac_cpp='$CPP $CPPFLAGS'
14335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14337ac_compiler_gnu=$ac_cv_c_compiler_gnu
14338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339 cat >conftest.$ac_ext <<_ACEOF
14340/* confdefs.h. */
14341_ACEOF
14342cat confdefs.h >>conftest.$ac_ext
14343cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014344/* end confdefs.h. */
14345#include <sys/mman.h>
14346#include <unistd.h>
14347#include <fcntl.h>
14348int
14349main ()
14350{
14351mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14352 ;
14353 return 0;
14354}
14355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014356rm -f conftest.$ac_objext
14357if { (ac_try="$ac_compile"
14358case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14361esac
14362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363 (eval "$ac_compile") 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14384esac
14385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_try") 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014390 ac_cv_header_mmap_anon=yes
14391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014392 echo "$as_me: failed program was:" >&5
14393sed 's/^/| /' conftest.$ac_ext >&5
14394
14395 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397
Reid Spencera773bd52006-08-04 18:18:08 +000014398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014399 ac_ext=c
14400ac_cpp='$CPP $CPPFLAGS'
14401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14403ac_compiler_gnu=$ac_cv_c_compiler_gnu
14404
14405
14406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014407{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14408echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014409if test "$ac_cv_header_mmap_anon" = yes; then
14410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014411cat >>confdefs.h <<\_ACEOF
14412#define HAVE_MMAP_ANONYMOUS 1
14413_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014414
14415fi
14416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014417{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14418echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14419if test "${ac_cv_header_stat_broken+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014422 cat >conftest.$ac_ext <<_ACEOF
14423/* confdefs.h. */
14424_ACEOF
14425cat confdefs.h >>conftest.$ac_ext
14426cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014427/* end confdefs.h. */
14428#include <sys/types.h>
14429#include <sys/stat.h>
14430
Reid Spencera773bd52006-08-04 18:18:08 +000014431#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014432# if S_ISBLK (S_IFDIR)
14433You lose.
14434# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014435#endif
14436
Reid Spencera773bd52006-08-04 18:18:08 +000014437#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014438# if S_ISBLK (S_IFCHR)
14439You lose.
14440# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014441#endif
14442
Reid Spencera773bd52006-08-04 18:18:08 +000014443#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014444# if S_ISLNK (S_IFREG)
14445You lose.
14446# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014447#endif
14448
Reid Spencera773bd52006-08-04 18:18:08 +000014449#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014450# if S_ISSOCK (S_IFREG)
14451You lose.
14452# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014453#endif
14454
14455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14457 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014458 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014459else
14460 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014462rm -f conftest*
14463
Reid Spencer59473af2004-12-25 07:31:29 +000014464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014465{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14466echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014467if test $ac_cv_header_stat_broken = yes; then
14468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014469cat >>confdefs.h <<\_ACEOF
14470#define STAT_MACROS_BROKEN 1
14471_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014472
14473fi
14474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014475{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14476echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14477if test "${ac_cv_header_sys_wait_h+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014479else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014480 cat >conftest.$ac_ext <<_ACEOF
14481/* confdefs.h. */
14482_ACEOF
14483cat confdefs.h >>conftest.$ac_ext
14484cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014486#include <sys/types.h>
14487#include <sys/wait.h>
14488#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014489# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014490#endif
14491#ifndef WIFEXITED
14492# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14493#endif
14494
John Criswell7a73b802003-06-30 21:59:07 +000014495int
14496main ()
14497{
14498 int s;
14499 wait (&s);
14500 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14501 ;
14502 return 0;
14503}
14504_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014505rm -f conftest.$ac_objext
14506if { (ac_try="$ac_compile"
14507case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14510esac
14511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_compile") 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14520 { (case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523esac
14524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_try") 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try='test -s conftest.$ac_objext'
14530 { (case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14533esac
14534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_try") 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014539 ac_cv_header_sys_wait_h=yes
14540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014541 echo "$as_me: failed program was:" >&5
14542sed 's/^/| /' conftest.$ac_ext >&5
14543
14544 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014546
Reid Spencera773bd52006-08-04 18:18:08 +000014547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014549{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14550echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014551if test $ac_cv_header_sys_wait_h = yes; then
14552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014553cat >>confdefs.h <<\_ACEOF
14554#define HAVE_SYS_WAIT_H 1
14555_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014556
14557fi
14558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014559{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14560echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14561if test "${ac_cv_header_time+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014564 cat >conftest.$ac_ext <<_ACEOF
14565/* confdefs.h. */
14566_ACEOF
14567cat confdefs.h >>conftest.$ac_ext
14568cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014569/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014570#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014571#include <sys/time.h>
14572#include <time.h>
14573
14574int
14575main ()
14576{
14577if ((struct tm *) 0)
14578return 0;
14579 ;
14580 return 0;
14581}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014582_ACEOF
Jeffrey Yasskin1611ebb2010-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 Spencer5e1d9a52004-11-25 04:51:04 +000014617 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014619 echo "$as_me: failed program was:" >&5
14620sed 's/^/| /' conftest.$ac_ext >&5
14621
14622 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014624
Reid Spencera773bd52006-08-04 18:18:08 +000014625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014627{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14628echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014629if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014631cat >>confdefs.h <<\_ACEOF
14632#define TIME_WITH_SYS_TIME 1
14633_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014634
14635fi
14636
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014638
14639
14640
14641
14642
14643
Reid Spencer59473af2004-12-25 07:31:29 +000014644for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014645do
14646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652fi
14653ac_res=`eval echo '${'$as_ac_Header'}'`
14654 { echo "$as_me:$LINENO: result: $ac_res" >&5
14655echo "${ECHO_T}$ac_res" >&6; }
14656else
14657 # Is the header compilable?
14658{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14660cat >conftest.$ac_ext <<_ACEOF
14661/* confdefs.h. */
14662_ACEOF
14663cat confdefs.h >>conftest.$ac_ext
14664cat >>conftest.$ac_ext <<_ACEOF
14665/* end confdefs.h. */
14666$ac_includes_default
14667#include <$ac_header>
14668_ACEOF
14669rm -f conftest.$ac_objext
14670if { (ac_try="$ac_compile"
14671case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674esac
14675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_compile") 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14684 { (case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14687esac
14688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_try") 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; } &&
14693 { ac_try='test -s conftest.$ac_objext'
14694 { (case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697esac
14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_try") 2>&5
14700 ac_status=$?
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }; then
14703 ac_header_compiler=yes
14704else
14705 echo "$as_me: failed program was:" >&5
14706sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 ac_header_compiler=no
14709fi
14710
14711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14713echo "${ECHO_T}$ac_header_compiler" >&6; }
14714
14715# Is the header present?
14716{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14718cat >conftest.$ac_ext <<_ACEOF
14719/* confdefs.h. */
14720_ACEOF
14721cat confdefs.h >>conftest.$ac_ext
14722cat >>conftest.$ac_ext <<_ACEOF
14723/* end confdefs.h. */
14724#include <$ac_header>
14725_ACEOF
14726if { (ac_try="$ac_cpp conftest.$ac_ext"
14727case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730esac
14731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } >/dev/null; then
14739 if test -s conftest.err; then
14740 ac_cpp_err=$ac_c_preproc_warn_flag
14741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14742 else
14743 ac_cpp_err=
14744 fi
14745else
14746 ac_cpp_err=yes
14747fi
14748if test -z "$ac_cpp_err"; then
14749 ac_header_preproc=yes
14750else
14751 echo "$as_me: failed program was:" >&5
14752sed 's/^/| /' conftest.$ac_ext >&5
14753
14754 ac_header_preproc=no
14755fi
14756
14757rm -f conftest.err conftest.$ac_ext
14758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14759echo "${ECHO_T}$ac_header_preproc" >&6; }
14760
14761# So? What about this header?
14762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14763 yes:no: )
14764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14768 ac_header_preproc=yes
14769 ;;
14770 no:yes:* )
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14783 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014784## ------------------------------------ ##
14785## Report this to http://llvm.org/bugs/ ##
14786## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014787_ASBOX
14788 ) | sed "s/^/$as_me: WARNING: /" >&2
14789 ;;
14790esac
14791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795else
14796 eval "$as_ac_Header=\$ac_header_preproc"
14797fi
14798ac_res=`eval echo '${'$as_ac_Header'}'`
14799 { echo "$as_me:$LINENO: result: $ac_res" >&5
14800echo "${ECHO_T}$ac_res" >&6; }
14801
14802fi
14803if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014804 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014806_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014807
14808fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014809
Reid Spencer59473af2004-12-25 07:31:29 +000014810done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014812
14813
14814
14815
14816
14817
Douglas Gregor071d73d2009-05-18 17:21:34 +000014818for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014819do
14820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826fi
14827ac_res=`eval echo '${'$as_ac_Header'}'`
14828 { echo "$as_me:$LINENO: result: $ac_res" >&5
14829echo "${ECHO_T}$ac_res" >&6; }
14830else
14831 # Is the header compilable?
14832{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14834cat >conftest.$ac_ext <<_ACEOF
14835/* confdefs.h. */
14836_ACEOF
14837cat confdefs.h >>conftest.$ac_ext
14838cat >>conftest.$ac_ext <<_ACEOF
14839/* end confdefs.h. */
14840$ac_includes_default
14841#include <$ac_header>
14842_ACEOF
14843rm -f conftest.$ac_objext
14844if { (ac_try="$ac_compile"
14845case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848esac
14849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_compile") 2>conftest.er1
14851 ac_status=$?
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14858 { (case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14861esac
14862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_try") 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; } &&
14867 { ac_try='test -s conftest.$ac_objext'
14868 { (case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14871esac
14872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_try") 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_header_compiler=yes
14878else
14879 echo "$as_me: failed program was:" >&5
14880sed 's/^/| /' conftest.$ac_ext >&5
14881
14882 ac_header_compiler=no
14883fi
14884
14885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14887echo "${ECHO_T}$ac_header_compiler" >&6; }
14888
14889# Is the header present?
14890{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14892cat >conftest.$ac_ext <<_ACEOF
14893/* confdefs.h. */
14894_ACEOF
14895cat confdefs.h >>conftest.$ac_ext
14896cat >>conftest.$ac_ext <<_ACEOF
14897/* end confdefs.h. */
14898#include <$ac_header>
14899_ACEOF
14900if { (ac_try="$ac_cpp conftest.$ac_ext"
14901case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14904esac
14905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14907 ac_status=$?
14908 grep -v '^ *+' conftest.er1 >conftest.err
14909 rm -f conftest.er1
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } >/dev/null; then
14913 if test -s conftest.err; then
14914 ac_cpp_err=$ac_c_preproc_warn_flag
14915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14916 else
14917 ac_cpp_err=
14918 fi
14919else
14920 ac_cpp_err=yes
14921fi
14922if test -z "$ac_cpp_err"; then
14923 ac_header_preproc=yes
14924else
14925 echo "$as_me: failed program was:" >&5
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_header_preproc=no
14929fi
14930
14931rm -f conftest.err conftest.$ac_ext
14932{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14933echo "${ECHO_T}$ac_header_preproc" >&6; }
14934
14935# So? What about this header?
14936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14937 yes:no: )
14938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14941echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14942 ac_header_preproc=yes
14943 ;;
14944 no:yes:* )
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14948echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14950echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14952echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14956echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14957 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014958## ------------------------------------ ##
14959## Report this to http://llvm.org/bugs/ ##
14960## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014961_ASBOX
14962 ) | sed "s/^/$as_me: WARNING: /" >&2
14963 ;;
14964esac
14965{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14969else
14970 eval "$as_ac_Header=\$ac_header_preproc"
14971fi
14972ac_res=`eval echo '${'$as_ac_Header'}'`
14973 { echo "$as_me:$LINENO: result: $ac_res" >&5
14974echo "${ECHO_T}$ac_res" >&6; }
14975
14976fi
14977if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014978 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014980_ACEOF
14981
14982fi
14983
14984done
14985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014986
14987
Douglas Gregor071d73d2009-05-18 17:21:34 +000014988for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014989do
14990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996fi
14997ac_res=`eval echo '${'$as_ac_Header'}'`
14998 { echo "$as_me:$LINENO: result: $ac_res" >&5
14999echo "${ECHO_T}$ac_res" >&6; }
15000else
15001 # Is the header compilable?
15002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15004cat >conftest.$ac_ext <<_ACEOF
15005/* confdefs.h. */
15006_ACEOF
15007cat confdefs.h >>conftest.$ac_ext
15008cat >>conftest.$ac_ext <<_ACEOF
15009/* end confdefs.h. */
15010$ac_includes_default
15011#include <$ac_header>
15012_ACEOF
15013rm -f conftest.$ac_objext
15014if { (ac_try="$ac_compile"
15015case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018esac
15019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_compile") 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031esac
15032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try='test -s conftest.$ac_objext'
15038 { (case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041esac
15042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_try") 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_header_compiler=yes
15048else
15049 echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
15051
15052 ac_header_compiler=no
15053fi
15054
15055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15057echo "${ECHO_T}$ac_header_compiler" >&6; }
15058
15059# Is the header present?
15060{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15061echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
15069_ACEOF
15070if { (ac_try="$ac_cpp conftest.$ac_ext"
15071case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15074esac
15075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15077 ac_status=$?
15078 grep -v '^ *+' conftest.er1 >conftest.err
15079 rm -f conftest.er1
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } >/dev/null; then
15083 if test -s conftest.err; then
15084 ac_cpp_err=$ac_c_preproc_warn_flag
15085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15086 else
15087 ac_cpp_err=
15088 fi
15089else
15090 ac_cpp_err=yes
15091fi
15092if test -z "$ac_cpp_err"; then
15093 ac_header_preproc=yes
15094else
15095 echo "$as_me: failed program was:" >&5
15096sed 's/^/| /' conftest.$ac_ext >&5
15097
15098 ac_header_preproc=no
15099fi
15100
15101rm -f conftest.err conftest.$ac_ext
15102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15103echo "${ECHO_T}$ac_header_preproc" >&6; }
15104
15105# So? What about this header?
15106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15107 yes:no: )
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15112 ac_header_preproc=yes
15113 ;;
15114 no:yes:* )
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15127 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015128## ------------------------------------ ##
15129## Report this to http://llvm.org/bugs/ ##
15130## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015131_ASBOX
15132 ) | sed "s/^/$as_me: WARNING: /" >&2
15133 ;;
15134esac
15135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15139else
15140 eval "$as_ac_Header=\$ac_header_preproc"
15141fi
15142ac_res=`eval echo '${'$as_ac_Header'}'`
15143 { echo "$as_me:$LINENO: result: $ac_res" >&5
15144echo "${ECHO_T}$ac_res" >&6; }
15145
15146fi
15147if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015148 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015150_ACEOF
15151
15152fi
15153
15154done
Reid Spencer59473af2004-12-25 07:31:29 +000015155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015156
15157
15158
15159
Daniel Dunbar3e462932011-02-03 02:40:02 +000015160
15161for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015162do
15163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169fi
15170ac_res=`eval echo '${'$as_ac_Header'}'`
15171 { echo "$as_me:$LINENO: result: $ac_res" >&5
15172echo "${ECHO_T}$ac_res" >&6; }
15173else
15174 # Is the header compilable?
15175{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15177cat >conftest.$ac_ext <<_ACEOF
15178/* confdefs.h. */
15179_ACEOF
15180cat confdefs.h >>conftest.$ac_ext
15181cat >>conftest.$ac_ext <<_ACEOF
15182/* end confdefs.h. */
15183$ac_includes_default
15184#include <$ac_header>
15185_ACEOF
15186rm -f conftest.$ac_objext
15187if { (ac_try="$ac_compile"
15188case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15191esac
15192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_compile") 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try='test -s conftest.$ac_objext'
15211 { (case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214esac
15215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_try") 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_header_compiler=yes
15221else
15222 echo "$as_me: failed program was:" >&5
15223sed 's/^/| /' conftest.$ac_ext >&5
15224
15225 ac_header_compiler=no
15226fi
15227
15228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15230echo "${ECHO_T}$ac_header_compiler" >&6; }
15231
15232# Is the header present?
15233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15235cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
15241#include <$ac_header>
15242_ACEOF
15243if { (ac_try="$ac_cpp conftest.$ac_ext"
15244case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247esac
15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15250 ac_status=$?
15251 grep -v '^ *+' conftest.er1 >conftest.err
15252 rm -f conftest.er1
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } >/dev/null; then
15256 if test -s conftest.err; then
15257 ac_cpp_err=$ac_c_preproc_warn_flag
15258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15259 else
15260 ac_cpp_err=
15261 fi
15262else
15263 ac_cpp_err=yes
15264fi
15265if test -z "$ac_cpp_err"; then
15266 ac_header_preproc=yes
15267else
15268 echo "$as_me: failed program was:" >&5
15269sed 's/^/| /' conftest.$ac_ext >&5
15270
15271 ac_header_preproc=no
15272fi
15273
15274rm -f conftest.err conftest.$ac_ext
15275{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15276echo "${ECHO_T}$ac_header_preproc" >&6; }
15277
15278# So? What about this header?
15279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15280 yes:no: )
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15285 ac_header_preproc=yes
15286 ;;
15287 no:yes:* )
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15300 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015301## ------------------------------------ ##
15302## Report this to http://llvm.org/bugs/ ##
15303## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015304_ASBOX
15305 ) | sed "s/^/$as_me: WARNING: /" >&2
15306 ;;
15307esac
15308{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312else
15313 eval "$as_ac_Header=\$ac_header_preproc"
15314fi
15315ac_res=`eval echo '${'$as_ac_Header'}'`
15316 { echo "$as_me:$LINENO: result: $ac_res" >&5
15317echo "${ECHO_T}$ac_res" >&6; }
15318
15319fi
15320if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015321 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015323_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015324
15325fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015326
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015327done
15328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015329
15330
15331
15332
Douglas Gregor01746742009-05-11 18:05:52 +000015333for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015334do
15335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341fi
15342ac_res=`eval echo '${'$as_ac_Header'}'`
15343 { echo "$as_me:$LINENO: result: $ac_res" >&5
15344echo "${ECHO_T}$ac_res" >&6; }
15345else
15346 # Is the header compilable?
15347{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15349cat >conftest.$ac_ext <<_ACEOF
15350/* confdefs.h. */
15351_ACEOF
15352cat confdefs.h >>conftest.$ac_ext
15353cat >>conftest.$ac_ext <<_ACEOF
15354/* end confdefs.h. */
15355$ac_includes_default
15356#include <$ac_header>
15357_ACEOF
15358rm -f conftest.$ac_objext
15359if { (ac_try="$ac_compile"
15360case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15363esac
15364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_compile") 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15373 { (case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15376esac
15377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_try") 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; } &&
15382 { ac_try='test -s conftest.$ac_objext'
15383 { (case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15386esac
15387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_try") 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 ac_header_compiler=yes
15393else
15394 echo "$as_me: failed program was:" >&5
15395sed 's/^/| /' conftest.$ac_ext >&5
15396
15397 ac_header_compiler=no
15398fi
15399
15400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15402echo "${ECHO_T}$ac_header_compiler" >&6; }
15403
15404# Is the header present?
15405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15407cat >conftest.$ac_ext <<_ACEOF
15408/* confdefs.h. */
15409_ACEOF
15410cat confdefs.h >>conftest.$ac_ext
15411cat >>conftest.$ac_ext <<_ACEOF
15412/* end confdefs.h. */
15413#include <$ac_header>
15414_ACEOF
15415if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15428 if test -s conftest.err; then
15429 ac_cpp_err=$ac_c_preproc_warn_flag
15430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15431 else
15432 ac_cpp_err=
15433 fi
15434else
15435 ac_cpp_err=yes
15436fi
15437if test -z "$ac_cpp_err"; then
15438 ac_header_preproc=yes
15439else
15440 echo "$as_me: failed program was:" >&5
15441sed 's/^/| /' conftest.$ac_ext >&5
15442
15443 ac_header_preproc=no
15444fi
15445
15446rm -f conftest.err conftest.$ac_ext
15447{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15448echo "${ECHO_T}$ac_header_preproc" >&6; }
15449
15450# So? What about this header?
15451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15452 yes:no: )
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15457 ac_header_preproc=yes
15458 ;;
15459 no:yes:* )
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15467echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15472 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015473## ------------------------------------ ##
15474## Report this to http://llvm.org/bugs/ ##
15475## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015476_ASBOX
15477 ) | sed "s/^/$as_me: WARNING: /" >&2
15478 ;;
15479esac
15480{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15484else
15485 eval "$as_ac_Header=\$ac_header_preproc"
15486fi
15487ac_res=`eval echo '${'$as_ac_Header'}'`
15488 { echo "$as_me:$LINENO: result: $ac_res" >&5
15489echo "${ECHO_T}$ac_res" >&6; }
15490
15491fi
15492if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015493 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015495_ACEOF
15496
15497fi
15498
15499done
15500
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015501
15502for ac_header in valgrind/valgrind.h
15503do
15504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15510fi
15511ac_res=`eval echo '${'$as_ac_Header'}'`
15512 { echo "$as_me:$LINENO: result: $ac_res" >&5
15513echo "${ECHO_T}$ac_res" >&6; }
15514else
15515 # Is the header compilable?
15516{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15518cat >conftest.$ac_ext <<_ACEOF
15519/* confdefs.h. */
15520_ACEOF
15521cat confdefs.h >>conftest.$ac_ext
15522cat >>conftest.$ac_ext <<_ACEOF
15523/* end confdefs.h. */
15524$ac_includes_default
15525#include <$ac_header>
15526_ACEOF
15527rm -f conftest.$ac_objext
15528if { (ac_try="$ac_compile"
15529case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15532esac
15533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_compile") 2>conftest.er1
15535 ac_status=$?
15536 grep -v '^ *+' conftest.er1 >conftest.err
15537 rm -f conftest.er1
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } &&
15541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15542 { (case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15545esac
15546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_try") 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; } &&
15551 { ac_try='test -s conftest.$ac_objext'
15552 { (case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555esac
15556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_try") 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 ac_header_compiler=yes
15562else
15563 echo "$as_me: failed program was:" >&5
15564sed 's/^/| /' conftest.$ac_ext >&5
15565
15566 ac_header_compiler=no
15567fi
15568
15569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15571echo "${ECHO_T}$ac_header_compiler" >&6; }
15572
15573# Is the header present?
15574{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15576cat >conftest.$ac_ext <<_ACEOF
15577/* confdefs.h. */
15578_ACEOF
15579cat confdefs.h >>conftest.$ac_ext
15580cat >>conftest.$ac_ext <<_ACEOF
15581/* end confdefs.h. */
15582#include <$ac_header>
15583_ACEOF
15584if { (ac_try="$ac_cpp conftest.$ac_ext"
15585case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588esac
15589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } >/dev/null; then
15597 if test -s conftest.err; then
15598 ac_cpp_err=$ac_c_preproc_warn_flag
15599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15600 else
15601 ac_cpp_err=
15602 fi
15603else
15604 ac_cpp_err=yes
15605fi
15606if test -z "$ac_cpp_err"; then
15607 ac_header_preproc=yes
15608else
15609 echo "$as_me: failed program was:" >&5
15610sed 's/^/| /' conftest.$ac_ext >&5
15611
15612 ac_header_preproc=no
15613fi
15614
15615rm -f conftest.err conftest.$ac_ext
15616{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15617echo "${ECHO_T}$ac_header_preproc" >&6; }
15618
15619# So? What about this header?
15620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15621 yes:no: )
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15626 ac_header_preproc=yes
15627 ;;
15628 no:yes:* )
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15632echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15636echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15641 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015642## ------------------------------------ ##
15643## Report this to http://llvm.org/bugs/ ##
15644## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015645_ASBOX
15646 ) | sed "s/^/$as_me: WARNING: /" >&2
15647 ;;
15648esac
15649{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653else
15654 eval "$as_ac_Header=\$ac_header_preproc"
15655fi
15656ac_res=`eval echo '${'$as_ac_Header'}'`
15657 { echo "$as_me:$LINENO: result: $ac_res" >&5
15658echo "${ECHO_T}$ac_res" >&6; }
15659
15660fi
15661if test `eval echo '${'$as_ac_Header'}'` = yes; then
15662 cat >>confdefs.h <<_ACEOF
15663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15664_ACEOF
15665
15666fi
15667
15668done
15669
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015670
15671for ac_header in fenv.h
15672do
15673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679fi
15680ac_res=`eval echo '${'$as_ac_Header'}'`
15681 { echo "$as_me:$LINENO: result: $ac_res" >&5
15682echo "${ECHO_T}$ac_res" >&6; }
15683else
15684 # Is the header compilable?
15685{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15687cat >conftest.$ac_ext <<_ACEOF
15688/* confdefs.h. */
15689_ACEOF
15690cat confdefs.h >>conftest.$ac_ext
15691cat >>conftest.$ac_ext <<_ACEOF
15692/* end confdefs.h. */
15693$ac_includes_default
15694#include <$ac_header>
15695_ACEOF
15696rm -f conftest.$ac_objext
15697if { (ac_try="$ac_compile"
15698case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15701esac
15702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_compile") 2>conftest.er1
15704 ac_status=$?
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
15710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15714esac
15715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_try") 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; } &&
15720 { ac_try='test -s conftest.$ac_objext'
15721 { (case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15724esac
15725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_try") 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_header_compiler=yes
15731else
15732 echo "$as_me: failed program was:" >&5
15733sed 's/^/| /' conftest.$ac_ext >&5
15734
15735 ac_header_compiler=no
15736fi
15737
15738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15739{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15740echo "${ECHO_T}$ac_header_compiler" >&6; }
15741
15742# Is the header present?
15743{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15744echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15745cat >conftest.$ac_ext <<_ACEOF
15746/* confdefs.h. */
15747_ACEOF
15748cat confdefs.h >>conftest.$ac_ext
15749cat >>conftest.$ac_ext <<_ACEOF
15750/* end confdefs.h. */
15751#include <$ac_header>
15752_ACEOF
15753if { (ac_try="$ac_cpp conftest.$ac_ext"
15754case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757esac
15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } >/dev/null; then
15766 if test -s conftest.err; then
15767 ac_cpp_err=$ac_c_preproc_warn_flag
15768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15769 else
15770 ac_cpp_err=
15771 fi
15772else
15773 ac_cpp_err=yes
15774fi
15775if test -z "$ac_cpp_err"; then
15776 ac_header_preproc=yes
15777else
15778 echo "$as_me: failed program was:" >&5
15779sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 ac_header_preproc=no
15782fi
15783
15784rm -f conftest.err conftest.$ac_ext
15785{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15786echo "${ECHO_T}$ac_header_preproc" >&6; }
15787
15788# So? What about this header?
15789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15790 yes:no: )
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15794echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15795 ac_header_preproc=yes
15796 ;;
15797 no:yes:* )
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15801echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15803echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15805echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15809echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15810 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015811## ------------------------------------ ##
15812## Report this to http://llvm.org/bugs/ ##
15813## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015814_ASBOX
15815 ) | sed "s/^/$as_me: WARNING: /" >&2
15816 ;;
15817esac
15818{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822else
15823 eval "$as_ac_Header=\$ac_header_preproc"
15824fi
15825ac_res=`eval echo '${'$as_ac_Header'}'`
15826 { echo "$as_me:$LINENO: result: $ac_res" >&5
15827echo "${ECHO_T}$ac_res" >&6; }
15828
15829fi
15830if test `eval echo '${'$as_ac_Header'}'` = yes; then
15831 cat >>confdefs.h <<_ACEOF
15832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15833_ACEOF
15834
15835fi
15836
15837done
15838
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015839if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015840
15841for ac_header in pthread.h
15842do
15843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849fi
15850ac_res=`eval echo '${'$as_ac_Header'}'`
15851 { echo "$as_me:$LINENO: result: $ac_res" >&5
15852echo "${ECHO_T}$ac_res" >&6; }
15853else
15854 # Is the header compilable?
15855{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15857cat >conftest.$ac_ext <<_ACEOF
15858/* confdefs.h. */
15859_ACEOF
15860cat confdefs.h >>conftest.$ac_ext
15861cat >>conftest.$ac_ext <<_ACEOF
15862/* end confdefs.h. */
15863$ac_includes_default
15864#include <$ac_header>
15865_ACEOF
15866rm -f conftest.$ac_objext
15867if { (ac_try="$ac_compile"
15868case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871esac
15872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_compile") 2>conftest.er1
15874 ac_status=$?
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
15880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15881 { (case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15884esac
15885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_try") 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; } &&
15890 { ac_try='test -s conftest.$ac_objext'
15891 { (case "(($ac_try" in
15892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15894esac
15895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_try") 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 ac_header_compiler=yes
15901else
15902 echo "$as_me: failed program was:" >&5
15903sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 ac_header_compiler=no
15906fi
15907
15908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15910echo "${ECHO_T}$ac_header_compiler" >&6; }
15911
15912# Is the header present?
15913{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15914echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
15922_ACEOF
15923if { (ac_try="$ac_cpp conftest.$ac_ext"
15924case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15927esac
15928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15930 ac_status=$?
15931 grep -v '^ *+' conftest.er1 >conftest.err
15932 rm -f conftest.er1
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } >/dev/null; then
15936 if test -s conftest.err; then
15937 ac_cpp_err=$ac_c_preproc_warn_flag
15938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15939 else
15940 ac_cpp_err=
15941 fi
15942else
15943 ac_cpp_err=yes
15944fi
15945if test -z "$ac_cpp_err"; then
15946 ac_header_preproc=yes
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 ac_header_preproc=no
15952fi
15953
15954rm -f conftest.err conftest.$ac_ext
15955{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956echo "${ECHO_T}$ac_header_preproc" >&6; }
15957
15958# So? What about this header?
15959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15960 yes:no: )
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15962echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15964echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15965 ac_header_preproc=yes
15966 ;;
15967 no:yes:* )
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15969echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15971echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15973echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15975echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15977echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15979echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15980 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015981## ------------------------------------ ##
15982## Report this to http://llvm.org/bugs/ ##
15983## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015984_ASBOX
15985 ) | sed "s/^/$as_me: WARNING: /" >&2
15986 ;;
15987esac
15988{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992else
15993 eval "$as_ac_Header=\$ac_header_preproc"
15994fi
15995ac_res=`eval echo '${'$as_ac_Header'}'`
15996 { echo "$as_me:$LINENO: result: $ac_res" >&5
15997echo "${ECHO_T}$ac_res" >&6; }
15998
15999fi
16000if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016001 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016003_ACEOF
16004 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016005
16006else
16007 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016008
16009fi
16010
Reid Spencerbe3e4192007-08-17 05:45:26 +000016011done
Reid Spencer1000b732006-12-01 00:37:14 +000016012
16013else
16014 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016015
16016fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016017
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016018if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016019
16020
16021for ac_header in ffi.h ffi/ffi.h
16022do
16023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16029fi
16030ac_res=`eval echo '${'$as_ac_Header'}'`
16031 { echo "$as_me:$LINENO: result: $ac_res" >&5
16032echo "${ECHO_T}$ac_res" >&6; }
16033else
16034 # Is the header compilable?
16035{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16037cat >conftest.$ac_ext <<_ACEOF
16038/* confdefs.h. */
16039_ACEOF
16040cat confdefs.h >>conftest.$ac_ext
16041cat >>conftest.$ac_ext <<_ACEOF
16042/* end confdefs.h. */
16043$ac_includes_default
16044#include <$ac_header>
16045_ACEOF
16046rm -f conftest.$ac_objext
16047if { (ac_try="$ac_compile"
16048case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051esac
16052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_compile") 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16061 { (case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064esac
16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_try") 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; } &&
16070 { ac_try='test -s conftest.$ac_objext'
16071 { (case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16074esac
16075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_try") 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 ac_header_compiler=yes
16081else
16082 echo "$as_me: failed program was:" >&5
16083sed 's/^/| /' conftest.$ac_ext >&5
16084
16085 ac_header_compiler=no
16086fi
16087
16088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16090echo "${ECHO_T}$ac_header_compiler" >&6; }
16091
16092# Is the header present?
16093{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16095cat >conftest.$ac_ext <<_ACEOF
16096/* confdefs.h. */
16097_ACEOF
16098cat confdefs.h >>conftest.$ac_ext
16099cat >>conftest.$ac_ext <<_ACEOF
16100/* end confdefs.h. */
16101#include <$ac_header>
16102_ACEOF
16103if { (ac_try="$ac_cpp conftest.$ac_ext"
16104case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107esac
16108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } >/dev/null; then
16116 if test -s conftest.err; then
16117 ac_cpp_err=$ac_c_preproc_warn_flag
16118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16119 else
16120 ac_cpp_err=
16121 fi
16122else
16123 ac_cpp_err=yes
16124fi
16125if test -z "$ac_cpp_err"; then
16126 ac_header_preproc=yes
16127else
16128 echo "$as_me: failed program was:" >&5
16129sed 's/^/| /' conftest.$ac_ext >&5
16130
16131 ac_header_preproc=no
16132fi
16133
16134rm -f conftest.err conftest.$ac_ext
16135{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16136echo "${ECHO_T}$ac_header_preproc" >&6; }
16137
16138# So? What about this header?
16139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16140 yes:no: )
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16142echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16144echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16145 ac_header_preproc=yes
16146 ;;
16147 no:yes:* )
16148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16149echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16151echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16153echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16155echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16157echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16159echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16160 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016161## ------------------------------------ ##
16162## Report this to http://llvm.org/bugs/ ##
16163## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016164_ASBOX
16165 ) | sed "s/^/$as_me: WARNING: /" >&2
16166 ;;
16167esac
16168{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16172else
16173 eval "$as_ac_Header=\$ac_header_preproc"
16174fi
16175ac_res=`eval echo '${'$as_ac_Header'}'`
16176 { echo "$as_me:$LINENO: result: $ac_res" >&5
16177echo "${ECHO_T}$ac_res" >&6; }
16178
16179fi
16180if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016181 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016183_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016184
16185fi
16186
16187done
16188
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016189fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016190
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016191
Eric Christopher654dee42010-06-22 21:01:04 +000016192for ac_header in CrashReporterClient.h
16193do
16194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200fi
16201ac_res=`eval echo '${'$as_ac_Header'}'`
16202 { echo "$as_me:$LINENO: result: $ac_res" >&5
16203echo "${ECHO_T}$ac_res" >&6; }
16204else
16205 # Is the header compilable?
16206{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16208cat >conftest.$ac_ext <<_ACEOF
16209/* confdefs.h. */
16210_ACEOF
16211cat confdefs.h >>conftest.$ac_ext
16212cat >>conftest.$ac_ext <<_ACEOF
16213/* end confdefs.h. */
16214$ac_includes_default
16215#include <$ac_header>
16216_ACEOF
16217rm -f conftest.$ac_objext
16218if { (ac_try="$ac_compile"
16219case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_compile") 2>conftest.er1
16225 ac_status=$?
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; } &&
16241 { ac_try='test -s conftest.$ac_objext'
16242 { (case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16245esac
16246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_try") 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16251 ac_header_compiler=yes
16252else
16253 echo "$as_me: failed program was:" >&5
16254sed 's/^/| /' conftest.$ac_ext >&5
16255
16256 ac_header_compiler=no
16257fi
16258
16259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16261echo "${ECHO_T}$ac_header_compiler" >&6; }
16262
16263# Is the header present?
16264{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16265echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16266cat >conftest.$ac_ext <<_ACEOF
16267/* confdefs.h. */
16268_ACEOF
16269cat confdefs.h >>conftest.$ac_ext
16270cat >>conftest.$ac_ext <<_ACEOF
16271/* end confdefs.h. */
16272#include <$ac_header>
16273_ACEOF
16274if { (ac_try="$ac_cpp conftest.$ac_ext"
16275case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16278esac
16279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16281 ac_status=$?
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } >/dev/null; then
16287 if test -s conftest.err; then
16288 ac_cpp_err=$ac_c_preproc_warn_flag
16289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16290 else
16291 ac_cpp_err=
16292 fi
16293else
16294 ac_cpp_err=yes
16295fi
16296if test -z "$ac_cpp_err"; then
16297 ac_header_preproc=yes
16298else
16299 echo "$as_me: failed program was:" >&5
16300sed 's/^/| /' conftest.$ac_ext >&5
16301
16302 ac_header_preproc=no
16303fi
16304
16305rm -f conftest.err conftest.$ac_ext
16306{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16307echo "${ECHO_T}$ac_header_preproc" >&6; }
16308
16309# So? What about this header?
16310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16311 yes:no: )
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16313echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16315echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16316 ac_header_preproc=yes
16317 ;;
16318 no:yes:* )
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16320echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16322echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16324echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16326echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16328echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16330echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16331 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016332## ------------------------------------ ##
16333## Report this to http://llvm.org/bugs/ ##
16334## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016335_ASBOX
16336 ) | sed "s/^/$as_me: WARNING: /" >&2
16337 ;;
16338esac
16339{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343else
16344 eval "$as_ac_Header=\$ac_header_preproc"
16345fi
16346ac_res=`eval echo '${'$as_ac_Header'}'`
16347 { echo "$as_me:$LINENO: result: $ac_res" >&5
16348echo "${ECHO_T}$ac_res" >&6; }
16349
16350fi
16351if test `eval echo '${'$as_ac_Header'}'` = yes; then
16352 cat >>confdefs.h <<_ACEOF
16353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16354_ACEOF
16355
16356fi
16357
16358done
16359
16360
Eric Christopher51e57132010-12-07 02:05:42 +000016361{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16362echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016363cat >conftest.$ac_ext <<_ACEOF
16364/* confdefs.h. */
16365_ACEOF
16366cat confdefs.h >>conftest.$ac_ext
16367cat >>conftest.$ac_ext <<_ACEOF
16368/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016369extern const char *__crashreporter_info__;
16370 int main() {
16371 __crashreporter_info__ = "test";
16372 return 0;
16373 }
Eric Christopher481d4022010-12-03 07:45:22 +000016374
Eric Christopher481d4022010-12-03 07:45:22 +000016375_ACEOF
16376rm -f conftest.$ac_objext conftest$ac_exeext
16377if { (ac_try="$ac_link"
16378case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16381esac
16382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_link") 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394esac
16395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest$ac_exeext'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404esac
16405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016410 { echo "$as_me:$LINENO: result: yes" >&5
16411echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016412
16413cat >>confdefs.h <<\_ACEOF
16414#define HAVE_CRASHREPORTER_INFO 1
16415_ACEOF
16416
Eric Christopher51e57132010-12-07 02:05:42 +000016417else
16418 echo "$as_me: failed program was:" >&5
16419sed 's/^/| /' conftest.$ac_ext >&5
16420
16421 { echo "$as_me:$LINENO: result: no" >&5
16422echo "${ECHO_T}no" >&6; }
16423
16424cat >>confdefs.h <<\_ACEOF
16425#define HAVE_CRASHREPORTER_INFO 0
16426_ACEOF
16427
Eric Christopher481d4022010-12-03 07:45:22 +000016428fi
Eric Christopher654dee42010-06-22 21:01:04 +000016429
Eric Christopher51e57132010-12-07 02:05:42 +000016430rm -f core conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16432
16433
Reid Spencer8085cff2005-01-16 02:58:39 +000016434
Torok Edwin871384f2010-01-26 08:50:50 +000016435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016436 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16437echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16438if test "${ac_cv_huge_val_sanity+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016440else
16441
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016442 ac_ext=cpp
16443ac_cpp='$CXXCPP $CPPFLAGS'
16444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016447
Eric Christopherc7718502010-03-02 05:06:54 +000016448 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016449 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016450 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016451 ac_cv_huge_val_sanity=yes
16452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016453 cat >conftest.$ac_ext <<_ACEOF
16454/* confdefs.h. */
16455_ACEOF
16456cat confdefs.h >>conftest.$ac_ext
16457cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016458/* end confdefs.h. */
16459#include <math.h>
16460int
16461main ()
16462{
16463double x = HUGE_VAL; return x != x;
16464 ;
16465 return 0;
16466}
16467_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016468rm -f conftest$ac_exeext
16469if { (ac_try="$ac_link"
16470case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16473esac
16474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_link") 2>&5
16476 ac_status=$?
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482esac
16483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016488 ac_cv_huge_val_sanity=yes
16489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016490 echo "$as_me: program exited with status $ac_status" >&5
16491echo "$as_me: failed program was:" >&5
16492sed 's/^/| /' conftest.$ac_ext >&5
16493
16494( exit $ac_status )
16495ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencerb2ed05262006-11-03 18:04:08 +000016498fi
16499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016500
Eric Christopherc7718502010-03-02 05:06:54 +000016501 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016502 ac_ext=c
16503ac_cpp='$CPP $CPPFLAGS'
16504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16506ac_compiler_gnu=$ac_cv_c_compiler_gnu
16507
16508
16509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016510{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16511echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016512 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16513
16514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016515{ echo "$as_me:$LINENO: checking for pid_t" >&5
16516echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16517if test "${ac_cv_type_pid_t+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16519else
16520 cat >conftest.$ac_ext <<_ACEOF
16521/* confdefs.h. */
16522_ACEOF
16523cat confdefs.h >>conftest.$ac_ext
16524cat >>conftest.$ac_ext <<_ACEOF
16525/* end confdefs.h. */
16526$ac_includes_default
16527typedef pid_t ac__type_new_;
16528int
16529main ()
16530{
16531if ((ac__type_new_ *) 0)
16532 return 0;
16533if (sizeof (ac__type_new_))
16534 return 0;
16535 ;
16536 return 0;
16537}
16538_ACEOF
16539rm -f conftest.$ac_objext
16540if { (ac_try="$ac_compile"
16541case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16544esac
16545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_compile") 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554 { (case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557esac
16558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_try") 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try='test -s conftest.$ac_objext'
16564 { (case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16567esac
16568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_try") 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_type_pid_t=yes
16574else
16575 echo "$as_me: failed program was:" >&5
16576sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016578 ac_cv_type_pid_t=no
16579fi
16580
16581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582fi
16583{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16584echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16585if test $ac_cv_type_pid_t = yes; then
16586 :
John Criswell7a73b802003-06-30 21:59:07 +000016587else
16588
16589cat >>confdefs.h <<_ACEOF
16590#define pid_t int
16591_ACEOF
16592
16593fi
16594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016595{ echo "$as_me:$LINENO: checking for size_t" >&5
16596echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16597if test "${ac_cv_type_size_t+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16599else
16600 cat >conftest.$ac_ext <<_ACEOF
16601/* confdefs.h. */
16602_ACEOF
16603cat confdefs.h >>conftest.$ac_ext
16604cat >>conftest.$ac_ext <<_ACEOF
16605/* end confdefs.h. */
16606$ac_includes_default
16607typedef size_t ac__type_new_;
16608int
16609main ()
16610{
16611if ((ac__type_new_ *) 0)
16612 return 0;
16613if (sizeof (ac__type_new_))
16614 return 0;
16615 ;
16616 return 0;
16617}
16618_ACEOF
16619rm -f conftest.$ac_objext
16620if { (ac_try="$ac_compile"
16621case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16624esac
16625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_compile") 2>conftest.er1
16627 ac_status=$?
16628 grep -v '^ *+' conftest.er1 >conftest.err
16629 rm -f conftest.er1
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647esac
16648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ac_cv_type_size_t=yes
16654else
16655 echo "$as_me: failed program was:" >&5
16656sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016658 ac_cv_type_size_t=no
16659fi
16660
16661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662fi
16663{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16664echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16665if test $ac_cv_type_size_t = yes; then
16666 :
John Criswell7a73b802003-06-30 21:59:07 +000016667else
16668
16669cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016670#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016671_ACEOF
16672
16673fi
16674
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016675
16676cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016677#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016678_ACEOF
16679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016680{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16681echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16682if test "${ac_cv_struct_tm+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016684else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016685 cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016690/* end confdefs.h. */
16691#include <sys/types.h>
16692#include <time.h>
16693
16694int
16695main ()
16696{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016697struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016698 ;
16699 return 0;
16700}
16701_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016702rm -f conftest.$ac_objext
16703if { (ac_try="$ac_compile"
16704case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_compile") 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16730esac
16731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016736 ac_cv_struct_tm=time.h
16737else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016738 echo "$as_me: failed program was:" >&5
16739sed 's/^/| /' conftest.$ac_ext >&5
16740
16741 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016742fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016743
Reid Spencera773bd52006-08-04 18:18:08 +000016744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016746{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16747echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016748if test $ac_cv_struct_tm = sys/time.h; then
16749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016750cat >>confdefs.h <<\_ACEOF
16751#define TM_IN_SYS_TIME 1
16752_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016753
16754fi
16755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016756{ echo "$as_me:$LINENO: checking for int64_t" >&5
16757echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16758if test "${ac_cv_type_int64_t+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760else
16761 cat >conftest.$ac_ext <<_ACEOF
16762/* confdefs.h. */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h. */
16767$ac_includes_default
16768typedef int64_t ac__type_new_;
16769int
16770main ()
16771{
16772if ((ac__type_new_ *) 0)
16773 return 0;
16774if (sizeof (ac__type_new_))
16775 return 0;
16776 ;
16777 return 0;
16778}
16779_ACEOF
16780rm -f conftest.$ac_objext
16781if { (ac_try="$ac_compile"
16782case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785esac
16786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_compile") 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16798esac
16799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest.$ac_objext'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808esac
16809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_type_int64_t=yes
16815else
16816 echo "$as_me: failed program was:" >&5
16817sed 's/^/| /' conftest.$ac_ext >&5
16818
16819 ac_cv_type_int64_t=no
16820fi
16821
16822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823fi
16824{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16825echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16826if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016827
16828cat >>confdefs.h <<_ACEOF
16829#define HAVE_INT64_T 1
16830_ACEOF
16831
16832
16833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016834 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16835echo "$as_me: error: Type int64_t required but not found" >&2;}
16836 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016837fi
16838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016839{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16840echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16841if test "${ac_cv_type_uint64_t+set}" = set; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16843else
16844 cat >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$ac_includes_default
16851typedef uint64_t ac__type_new_;
16852int
16853main ()
16854{
16855if ((ac__type_new_ *) 0)
16856 return 0;
16857if (sizeof (ac__type_new_))
16858 return 0;
16859 ;
16860 return 0;
16861}
16862_ACEOF
16863rm -f conftest.$ac_objext
16864if { (ac_try="$ac_compile"
16865case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16868esac
16869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_compile") 2>conftest.er1
16871 ac_status=$?
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
16877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16878 { (case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881esac
16882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_try") 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16891esac
16892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_try") 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 ac_cv_type_uint64_t=yes
16898else
16899 echo "$as_me: failed program was:" >&5
16900sed 's/^/| /' conftest.$ac_ext >&5
16901
16902 ac_cv_type_uint64_t=no
16903fi
16904
16905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906fi
16907{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16908echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16909if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016910
16911cat >>confdefs.h <<_ACEOF
16912#define HAVE_UINT64_T 1
16913_ACEOF
16914
16915
16916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016917 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16918echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16919if test "${ac_cv_type_u_int64_t+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16921else
16922 cat >conftest.$ac_ext <<_ACEOF
16923/* confdefs.h. */
16924_ACEOF
16925cat confdefs.h >>conftest.$ac_ext
16926cat >>conftest.$ac_ext <<_ACEOF
16927/* end confdefs.h. */
16928$ac_includes_default
16929typedef u_int64_t ac__type_new_;
16930int
16931main ()
16932{
16933if ((ac__type_new_ *) 0)
16934 return 0;
16935if (sizeof (ac__type_new_))
16936 return 0;
16937 ;
16938 return 0;
16939}
16940_ACEOF
16941rm -f conftest.$ac_objext
16942if { (ac_try="$ac_compile"
16943case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946esac
16947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_compile") 2>conftest.er1
16949 ac_status=$?
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
16955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; } &&
16965 { ac_try='test -s conftest.$ac_objext'
16966 { (case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16969esac
16970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_try") 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_type_u_int64_t=yes
16976else
16977 echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980 ac_cv_type_u_int64_t=no
16981fi
16982
16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984fi
16985{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16986echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16987if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016988
16989cat >>confdefs.h <<_ACEOF
16990#define HAVE_U_INT64_T 1
16991_ACEOF
16992
16993
Misha Brukmanceca9042004-09-02 23:02:30 +000016994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016995 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16996echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16997 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016998fi
16999
John Criswell679ff312004-09-02 18:44:44 +000017000fi
17001
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017002
17003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017004
17005
17006
17007
17008
17009
17010
Reid Spencerdf3be822006-01-23 08:15:53 +000017011for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017012do
17013as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17014{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17016if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17018else
17019 cat >conftest.$ac_ext <<_ACEOF
17020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
17025/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17027#define $ac_func innocuous_$ac_func
17028
17029/* System header to define __stub macros and hopefully few prototypes,
17030 which can conflict with char $ac_func (); below.
17031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17032 <limits.h> exists even on freestanding compilers. */
17033
17034#ifdef __STDC__
17035# include <limits.h>
17036#else
17037# include <assert.h>
17038#endif
17039
17040#undef $ac_func
17041
17042/* Override any GCC internal prototype to avoid an error.
17043 Use char because int might match the return type of a GCC
17044 builtin and then its argument prototype would still apply. */
17045#ifdef __cplusplus
17046extern "C"
17047#endif
17048char $ac_func ();
17049/* The GNU C library defines this for functions which it implements
17050 to always fail with ENOSYS. Some functions are actually named
17051 something starting with __ and the normal name is an alias. */
17052#if defined __stub_$ac_func || defined __stub___$ac_func
17053choke me
17054#endif
17055
17056int
17057main ()
17058{
17059return $ac_func ();
17060 ;
17061 return 0;
17062}
17063_ACEOF
17064rm -f conftest.$ac_objext conftest$ac_exeext
17065if { (ac_try="$ac_link"
17066case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069esac
17070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
17072 ac_status=$?
17073 grep -v '^ *+' conftest.er1 >conftest.err
17074 rm -f conftest.er1
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079 { (case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_try") 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092esac
17093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
17098 eval "$as_ac_var=yes"
17099else
17100 echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
17103 eval "$as_ac_var=no"
17104fi
17105
17106rm -f core conftest.err conftest.$ac_objext \
17107 conftest$ac_exeext conftest.$ac_ext
17108fi
17109ac_res=`eval echo '${'$as_ac_var'}'`
17110 { echo "$as_me:$LINENO: result: $ac_res" >&5
17111echo "${ECHO_T}$ac_res" >&6; }
17112if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017113 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017115_ACEOF
17116
17117fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017118done
John Criswell7a73b802003-06-30 21:59:07 +000017119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017120
17121
17122
17123
Reid Spencer96cf5872007-07-13 10:05:30 +000017124for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017125do
17126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17127{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17129if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17131else
17132 cat >conftest.$ac_ext <<_ACEOF
17133/* confdefs.h. */
17134_ACEOF
17135cat confdefs.h >>conftest.$ac_ext
17136cat >>conftest.$ac_ext <<_ACEOF
17137/* end confdefs.h. */
17138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17140#define $ac_func innocuous_$ac_func
17141
17142/* System header to define __stub macros and hopefully few prototypes,
17143 which can conflict with char $ac_func (); below.
17144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17145 <limits.h> exists even on freestanding compilers. */
17146
17147#ifdef __STDC__
17148# include <limits.h>
17149#else
17150# include <assert.h>
17151#endif
17152
17153#undef $ac_func
17154
17155/* Override any GCC internal prototype to avoid an error.
17156 Use char because int might match the return type of a GCC
17157 builtin and then its argument prototype would still apply. */
17158#ifdef __cplusplus
17159extern "C"
17160#endif
17161char $ac_func ();
17162/* The GNU C library defines this for functions which it implements
17163 to always fail with ENOSYS. Some functions are actually named
17164 something starting with __ and the normal name is an alias. */
17165#if defined __stub_$ac_func || defined __stub___$ac_func
17166choke me
17167#endif
17168
17169int
17170main ()
17171{
17172return $ac_func ();
17173 ;
17174 return 0;
17175}
17176_ACEOF
17177rm -f conftest.$ac_objext conftest$ac_exeext
17178if { (ac_try="$ac_link"
17179case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17182esac
17183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_link") 2>conftest.er1
17185 ac_status=$?
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } &&
17191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17192 { (case "(($ac_try" in
17193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17194 *) ac_try_echo=$ac_try;;
17195esac
17196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17197 (eval "$ac_try") 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } &&
17201 { ac_try='test -s conftest$ac_exeext'
17202 { (case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17205esac
17206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207 (eval "$ac_try") 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 eval "$as_ac_var=yes"
17212else
17213 echo "$as_me: failed program was:" >&5
17214sed 's/^/| /' conftest.$ac_ext >&5
17215
17216 eval "$as_ac_var=no"
17217fi
17218
17219rm -f core conftest.err conftest.$ac_objext \
17220 conftest$ac_exeext conftest.$ac_ext
17221fi
17222ac_res=`eval echo '${'$as_ac_var'}'`
17223 { echo "$as_me:$LINENO: result: $ac_res" >&5
17224echo "${ECHO_T}$ac_res" >&6; }
17225if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017226 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017228_ACEOF
17229
17230fi
17231done
17232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017233
17234
17235
17236
17237
Reid Spencerb90645c2007-02-16 19:17:20 +000017238for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017239do
17240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17241{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17245else
17246 cat >conftest.$ac_ext <<_ACEOF
17247/* confdefs.h. */
17248_ACEOF
17249cat confdefs.h >>conftest.$ac_ext
17250cat >>conftest.$ac_ext <<_ACEOF
17251/* end confdefs.h. */
17252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17254#define $ac_func innocuous_$ac_func
17255
17256/* System header to define __stub macros and hopefully few prototypes,
17257 which can conflict with char $ac_func (); below.
17258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259 <limits.h> exists even on freestanding compilers. */
17260
17261#ifdef __STDC__
17262# include <limits.h>
17263#else
17264# include <assert.h>
17265#endif
17266
17267#undef $ac_func
17268
17269/* Override any GCC internal prototype to avoid an error.
17270 Use char because int might match the return type of a GCC
17271 builtin and then its argument prototype would still apply. */
17272#ifdef __cplusplus
17273extern "C"
17274#endif
17275char $ac_func ();
17276/* The GNU C library defines this for functions which it implements
17277 to always fail with ENOSYS. Some functions are actually named
17278 something starting with __ and the normal name is an alias. */
17279#if defined __stub_$ac_func || defined __stub___$ac_func
17280choke me
17281#endif
17282
17283int
17284main ()
17285{
17286return $ac_func ();
17287 ;
17288 return 0;
17289}
17290_ACEOF
17291rm -f conftest.$ac_objext conftest$ac_exeext
17292if { (ac_try="$ac_link"
17293case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_link") 2>conftest.er1
17299 ac_status=$?
17300 grep -v '^ *+' conftest.er1 >conftest.err
17301 rm -f conftest.er1
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17306 { (case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309esac
17310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_try") 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest$ac_exeext'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319esac
17320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 eval "$as_ac_var=yes"
17326else
17327 echo "$as_me: failed program was:" >&5
17328sed 's/^/| /' conftest.$ac_ext >&5
17329
17330 eval "$as_ac_var=no"
17331fi
17332
17333rm -f core conftest.err conftest.$ac_objext \
17334 conftest$ac_exeext conftest.$ac_ext
17335fi
17336ac_res=`eval echo '${'$as_ac_var'}'`
17337 { echo "$as_me:$LINENO: result: $ac_res" >&5
17338echo "${ECHO_T}$ac_res" >&6; }
17339if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017340 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017342_ACEOF
17343
17344fi
17345done
17346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017347
17348
17349
Reid Spencerb90645c2007-02-16 19:17:20 +000017350for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017351do
17352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17353{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17355if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17357else
17358 cat >conftest.$ac_ext <<_ACEOF
17359/* confdefs.h. */
17360_ACEOF
17361cat confdefs.h >>conftest.$ac_ext
17362cat >>conftest.$ac_ext <<_ACEOF
17363/* end confdefs.h. */
17364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17366#define $ac_func innocuous_$ac_func
17367
17368/* System header to define __stub macros and hopefully few prototypes,
17369 which can conflict with char $ac_func (); below.
17370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17371 <limits.h> exists even on freestanding compilers. */
17372
17373#ifdef __STDC__
17374# include <limits.h>
17375#else
17376# include <assert.h>
17377#endif
17378
17379#undef $ac_func
17380
17381/* Override any GCC internal prototype to avoid an error.
17382 Use char because int might match the return type of a GCC
17383 builtin and then its argument prototype would still apply. */
17384#ifdef __cplusplus
17385extern "C"
17386#endif
17387char $ac_func ();
17388/* The GNU C library defines this for functions which it implements
17389 to always fail with ENOSYS. Some functions are actually named
17390 something starting with __ and the normal name is an alias. */
17391#if defined __stub_$ac_func || defined __stub___$ac_func
17392choke me
17393#endif
17394
17395int
17396main ()
17397{
17398return $ac_func ();
17399 ;
17400 return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext conftest$ac_exeext
17404if { (ac_try="$ac_link"
17405case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17408esac
17409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421esac
17422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; } &&
17427 { ac_try='test -s conftest$ac_exeext'
17428 { (case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17431esac
17432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_try") 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 eval "$as_ac_var=yes"
17438else
17439 echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 eval "$as_ac_var=no"
17443fi
17444
17445rm -f core conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17447fi
17448ac_res=`eval echo '${'$as_ac_var'}'`
17449 { echo "$as_me:$LINENO: result: $ac_res" >&5
17450echo "${ECHO_T}$ac_res" >&6; }
17451if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017452 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017454_ACEOF
17455
17456fi
17457done
17458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017459
17460
17461
17462
17463
Eric Christophere4291822010-04-16 05:14:21 +000017464
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017465
17466for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017467do
17468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17469{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17471if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473else
17474 cat >conftest.$ac_ext <<_ACEOF
17475/* confdefs.h. */
17476_ACEOF
17477cat confdefs.h >>conftest.$ac_ext
17478cat >>conftest.$ac_ext <<_ACEOF
17479/* end confdefs.h. */
17480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17482#define $ac_func innocuous_$ac_func
17483
17484/* System header to define __stub macros and hopefully few prototypes,
17485 which can conflict with char $ac_func (); below.
17486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17487 <limits.h> exists even on freestanding compilers. */
17488
17489#ifdef __STDC__
17490# include <limits.h>
17491#else
17492# include <assert.h>
17493#endif
17494
17495#undef $ac_func
17496
17497/* Override any GCC internal prototype to avoid an error.
17498 Use char because int might match the return type of a GCC
17499 builtin and then its argument prototype would still apply. */
17500#ifdef __cplusplus
17501extern "C"
17502#endif
17503char $ac_func ();
17504/* The GNU C library defines this for functions which it implements
17505 to always fail with ENOSYS. Some functions are actually named
17506 something starting with __ and the normal name is an alias. */
17507#if defined __stub_$ac_func || defined __stub___$ac_func
17508choke me
17509#endif
17510
17511int
17512main ()
17513{
17514return $ac_func ();
17515 ;
17516 return 0;
17517}
17518_ACEOF
17519rm -f conftest.$ac_objext conftest$ac_exeext
17520if { (ac_try="$ac_link"
17521case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17524esac
17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_link") 2>conftest.er1
17527 ac_status=$?
17528 grep -v '^ *+' conftest.er1 >conftest.err
17529 rm -f conftest.er1
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17534 { (case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_try") 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547esac
17548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_try") 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17553 eval "$as_ac_var=yes"
17554else
17555 echo "$as_me: failed program was:" >&5
17556sed 's/^/| /' conftest.$ac_ext >&5
17557
17558 eval "$as_ac_var=no"
17559fi
17560
17561rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17563fi
17564ac_res=`eval echo '${'$as_ac_var'}'`
17565 { echo "$as_me:$LINENO: result: $ac_res" >&5
17566echo "${ECHO_T}$ac_res" >&6; }
17567if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017568 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017570_ACEOF
17571
17572fi
17573done
Reid Spencerdf3be822006-01-23 08:15:53 +000017574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017575
17576
17577
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017578
17579for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017580do
17581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17582{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17584if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17586else
17587 cat >conftest.$ac_ext <<_ACEOF
17588/* confdefs.h. */
17589_ACEOF
17590cat confdefs.h >>conftest.$ac_ext
17591cat >>conftest.$ac_ext <<_ACEOF
17592/* end confdefs.h. */
17593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17595#define $ac_func innocuous_$ac_func
17596
17597/* System header to define __stub macros and hopefully few prototypes,
17598 which can conflict with char $ac_func (); below.
17599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600 <limits.h> exists even on freestanding compilers. */
17601
17602#ifdef __STDC__
17603# include <limits.h>
17604#else
17605# include <assert.h>
17606#endif
17607
17608#undef $ac_func
17609
17610/* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
17613#ifdef __cplusplus
17614extern "C"
17615#endif
17616char $ac_func ();
17617/* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620#if defined __stub_$ac_func || defined __stub___$ac_func
17621choke me
17622#endif
17623
17624int
17625main ()
17626{
17627return $ac_func ();
17628 ;
17629 return 0;
17630}
17631_ACEOF
17632rm -f conftest.$ac_objext conftest$ac_exeext
17633if { (ac_try="$ac_link"
17634case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637esac
17638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_link") 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650esac
17651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_try") 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest$ac_exeext'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660esac
17661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 eval "$as_ac_var=yes"
17667else
17668 echo "$as_me: failed program was:" >&5
17669sed 's/^/| /' conftest.$ac_ext >&5
17670
17671 eval "$as_ac_var=no"
17672fi
17673
17674rm -f core conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17676fi
17677ac_res=`eval echo '${'$as_ac_var'}'`
17678 { echo "$as_me:$LINENO: result: $ac_res" >&5
17679echo "${ECHO_T}$ac_res" >&6; }
17680if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017681 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017683_ACEOF
17684
17685fi
17686done
17687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017688
17689
17690
17691
Chris Lattner511f11d2005-11-14 07:25:50 +000017692for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017693do
17694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17695{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17697if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699else
17700 cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17708#define $ac_func innocuous_$ac_func
17709
17710/* System header to define __stub macros and hopefully few prototypes,
17711 which can conflict with char $ac_func (); below.
17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713 <limits.h> exists even on freestanding compilers. */
17714
17715#ifdef __STDC__
17716# include <limits.h>
17717#else
17718# include <assert.h>
17719#endif
17720
17721#undef $ac_func
17722
17723/* Override any GCC internal prototype to avoid an error.
17724 Use char because int might match the return type of a GCC
17725 builtin and then its argument prototype would still apply. */
17726#ifdef __cplusplus
17727extern "C"
17728#endif
17729char $ac_func ();
17730/* The GNU C library defines this for functions which it implements
17731 to always fail with ENOSYS. Some functions are actually named
17732 something starting with __ and the normal name is an alias. */
17733#if defined __stub_$ac_func || defined __stub___$ac_func
17734choke me
17735#endif
17736
17737int
17738main ()
17739{
17740return $ac_func ();
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext conftest$ac_exeext
17746if { (ac_try="$ac_link"
17747case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17750esac
17751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_link") 2>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17760 { (case "(($ac_try" in
17761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762 *) ac_try_echo=$ac_try;;
17763esac
17764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765 (eval "$ac_try") 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest$ac_exeext'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773esac
17774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 eval "$as_ac_var=yes"
17780else
17781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784 eval "$as_ac_var=no"
17785fi
17786
17787rm -f core conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789fi
17790ac_res=`eval echo '${'$as_ac_var'}'`
17791 { echo "$as_me:$LINENO: result: $ac_res" >&5
17792echo "${ECHO_T}$ac_res" >&6; }
17793if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017794 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017796_ACEOF
17797
17798fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017799done
John Criswell7a73b802003-06-30 21:59:07 +000017800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017801
17802
17803
17804
Daniel Dunbar3e462932011-02-03 02:40:02 +000017805
17806for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017807do
17808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813else
17814 cat >conftest.$ac_ext <<_ACEOF
17815/* confdefs.h. */
17816_ACEOF
17817cat confdefs.h >>conftest.$ac_ext
17818cat >>conftest.$ac_ext <<_ACEOF
17819/* end confdefs.h. */
17820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17822#define $ac_func innocuous_$ac_func
17823
17824/* System header to define __stub macros and hopefully few prototypes,
17825 which can conflict with char $ac_func (); below.
17826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17827 <limits.h> exists even on freestanding compilers. */
17828
17829#ifdef __STDC__
17830# include <limits.h>
17831#else
17832# include <assert.h>
17833#endif
17834
17835#undef $ac_func
17836
17837/* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17840#ifdef __cplusplus
17841extern "C"
17842#endif
17843char $ac_func ();
17844/* The GNU C library defines this for functions which it implements
17845 to always fail with ENOSYS. Some functions are actually named
17846 something starting with __ and the normal name is an alias. */
17847#if defined __stub_$ac_func || defined __stub___$ac_func
17848choke me
17849#endif
17850
17851int
17852main ()
17853{
17854return $ac_func ();
17855 ;
17856 return 0;
17857}
17858_ACEOF
17859rm -f conftest.$ac_objext conftest$ac_exeext
17860if { (ac_try="$ac_link"
17861case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864esac
17865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_link") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } &&
17873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17874 { (case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17877esac
17878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879 (eval "$ac_try") 2>&5
17880 ac_status=$?
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; } &&
17883 { ac_try='test -s conftest$ac_exeext'
17884 { (case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17887esac
17888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_try") 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 eval "$as_ac_var=yes"
17894else
17895 echo "$as_me: failed program was:" >&5
17896sed 's/^/| /' conftest.$ac_ext >&5
17897
17898 eval "$as_ac_var=no"
17899fi
17900
17901rm -f core conftest.err conftest.$ac_objext \
17902 conftest$ac_exeext conftest.$ac_ext
17903fi
17904ac_res=`eval echo '${'$as_ac_var'}'`
17905 { echo "$as_me:$LINENO: result: $ac_res" >&5
17906echo "${ECHO_T}$ac_res" >&6; }
17907if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017908 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017910_ACEOF
17911
17912fi
17913done
17914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017915{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17916echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17917if test "${llvm_cv_c_printf_a+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017919else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017920 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017921ac_cpp='$CPP $CPPFLAGS'
17922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17924ac_compiler_gnu=$ac_cv_c_compiler_gnu
17925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017926 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017927 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017928else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017929 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017931 /* confdefs.h. */
17932_ACEOF
17933cat confdefs.h >>conftest.$ac_ext
17934cat >>conftest.$ac_ext <<_ACEOF
17935/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017936
John Criswella0137d32003-10-13 16:22:01 +000017937#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017938#include <stdlib.h>
17939
John Criswella0137d32003-10-13 16:22:01 +000017940int
17941main ()
17942{
17943
Reid Spencer2706f8c2004-09-19 23:53:36 +000017944volatile double A, B;
17945char Buffer[100];
17946A = 1;
17947A /= 10.0;
17948sprintf(Buffer, "%a", A);
17949B = atof(Buffer);
17950if (A != B)
17951 return (1);
17952if (A != 0x1.999999999999ap-4)
17953 return (1);
17954return (0);
John Criswella0137d32003-10-13 16:22:01 +000017955 ;
17956 return 0;
17957}
17958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017959rm -f conftest$ac_exeext
17960if { (ac_try="$ac_link"
17961case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17964esac
17965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_link") 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17970 { (case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17973esac
17974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_try") 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017979 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017981 echo "$as_me: program exited with status $ac_status" >&5
17982echo "$as_me: failed program was:" >&5
17983sed 's/^/| /' conftest.$ac_ext >&5
17984
17985( exit $ac_status )
17986llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000017989fi
Reid Spencera773bd52006-08-04 18:18:08 +000017990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017991
Reid Spencer2706f8c2004-09-19 23:53:36 +000017992 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017993ac_cpp='$CPP $CPPFLAGS'
17994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17996ac_compiler_gnu=$ac_cv_c_compiler_gnu
17997
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017999{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18000echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018001 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018003cat >>confdefs.h <<\_ACEOF
18004#define HAVE_PRINTF_A 1
18005_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018006
Reid Spencer2706f8c2004-09-19 23:53:36 +000018007 fi
John Criswella0137d32003-10-13 16:22:01 +000018008
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018010{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18011echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18012if test "${ac_cv_func_rand48+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018014else
Reid Spencera773bd52006-08-04 18:18:08 +000018015 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018016ac_cpp='$CXXCPP $CPPFLAGS'
18017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018021 cat >conftest.$ac_ext <<_ACEOF
18022/* confdefs.h. */
18023_ACEOF
18024cat confdefs.h >>conftest.$ac_ext
18025cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018026/* end confdefs.h. */
18027#include <stdlib.h>
18028int
18029main ()
18030{
18031srand48(0);lrand48();drand48();
18032 ;
18033 return 0;
18034}
18035_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018036rm -f conftest.$ac_objext
18037if { (ac_try="$ac_compile"
18038case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041esac
18042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_compile") 2>conftest.er1
18044 ac_status=$?
18045 grep -v '^ *+' conftest.er1 >conftest.err
18046 rm -f conftest.er1
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest.$ac_objext'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018070 ac_cv_func_rand48=yes
18071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018072 echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018077
Reid Spencera773bd52006-08-04 18:18:08 +000018078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018079 ac_ext=c
18080ac_cpp='$CPP $CPPFLAGS'
18081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18083ac_compiler_gnu=$ac_cv_c_compiler_gnu
18084
18085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018086{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18087echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018088
18089if test "$ac_cv_func_rand48" = "yes" ; then
18090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018091cat >>confdefs.h <<\_ACEOF
18092#define HAVE_RAND48 1
18093_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018094
18095fi
John Criswell0021c312004-02-13 21:57:29 +000018096
18097
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018098{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18099echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18100if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18102else
18103 cat >conftest.$ac_ext <<_ACEOF
18104/* confdefs.h. */
18105_ACEOF
18106cat confdefs.h >>conftest.$ac_ext
18107cat >>conftest.$ac_ext <<_ACEOF
18108/* end confdefs.h. */
18109$ac_includes_default
18110int
18111main ()
18112{
18113#ifndef strerror_s
18114 char *p = (char *) strerror_s;
18115 return !p;
18116#endif
18117
18118 ;
18119 return 0;
18120}
18121_ACEOF
18122rm -f conftest.$ac_objext
18123if { (ac_try="$ac_compile"
18124case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127esac
18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_compile") 2>conftest.er1
18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18137 { (case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18140esac
18141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_try") 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest.$ac_objext'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 ac_cv_have_decl_strerror_s=yes
18157else
18158 echo "$as_me: failed program was:" >&5
18159sed 's/^/| /' conftest.$ac_ext >&5
18160
18161 ac_cv_have_decl_strerror_s=no
18162fi
18163
18164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18165fi
18166{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18167echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18168if test $ac_cv_have_decl_strerror_s = yes; then
18169
18170cat >>confdefs.h <<_ACEOF
18171#define HAVE_DECL_STRERROR_S 1
18172_ACEOF
18173
18174
18175else
18176 cat >>confdefs.h <<_ACEOF
18177#define HAVE_DECL_STRERROR_S 0
18178_ACEOF
18179
18180
18181fi
18182
18183
18184
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018185if test "$llvm_cv_os_type" = "MingW" ; then
18186 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18187echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18188if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18190else
18191 ac_check_lib_save_LIBS=$LIBS
18192LIBS="-lgcc $LIBS"
18193cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199
18200/* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18203#ifdef __cplusplus
18204extern "C"
18205#endif
18206char _alloca ();
18207int
18208main ()
18209{
18210return _alloca ();
18211 ;
18212 return 0;
18213}
18214_ACEOF
18215rm -f conftest.$ac_objext conftest$ac_exeext
18216if { (ac_try="$ac_link"
18217case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220esac
18221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_link") 2>conftest.er1
18223 ac_status=$?
18224 grep -v '^ *+' conftest.er1 >conftest.err
18225 rm -f conftest.er1
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18230 { (case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18233esac
18234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_try") 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest$ac_exeext'
18240 { (case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243esac
18244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_try") 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_lib_gcc__alloca=yes
18250else
18251 echo "$as_me: failed program was:" >&5
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
18254 ac_cv_lib_gcc__alloca=no
18255fi
18256
18257rm -f core conftest.err conftest.$ac_objext \
18258 conftest$ac_exeext conftest.$ac_ext
18259LIBS=$ac_check_lib_save_LIBS
18260fi
18261{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18262echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18263if test $ac_cv_lib_gcc__alloca = yes; then
18264
18265cat >>confdefs.h <<\_ACEOF
18266#define HAVE__ALLOCA 1
18267_ACEOF
18268
18269fi
18270
18271 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18272echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18273if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18275else
18276 ac_check_lib_save_LIBS=$LIBS
18277LIBS="-lgcc $LIBS"
18278cat >conftest.$ac_ext <<_ACEOF
18279/* confdefs.h. */
18280_ACEOF
18281cat confdefs.h >>conftest.$ac_ext
18282cat >>conftest.$ac_ext <<_ACEOF
18283/* end confdefs.h. */
18284
18285/* Override any GCC internal prototype to avoid an error.
18286 Use char because int might match the return type of a GCC
18287 builtin and then its argument prototype would still apply. */
18288#ifdef __cplusplus
18289extern "C"
18290#endif
18291char __alloca ();
18292int
18293main ()
18294{
18295return __alloca ();
18296 ;
18297 return 0;
18298}
18299_ACEOF
18300rm -f conftest.$ac_objext conftest$ac_exeext
18301if { (ac_try="$ac_link"
18302case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18305esac
18306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_link") 2>conftest.er1
18308 ac_status=$?
18309 grep -v '^ *+' conftest.er1 >conftest.err
18310 rm -f conftest.er1
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } &&
18314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18315 { (case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18318esac
18319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_try") 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest$ac_exeext'
18325 { (case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328esac
18329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_try") 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; }; then
18334 ac_cv_lib_gcc___alloca=yes
18335else
18336 echo "$as_me: failed program was:" >&5
18337sed 's/^/| /' conftest.$ac_ext >&5
18338
18339 ac_cv_lib_gcc___alloca=no
18340fi
18341
18342rm -f core conftest.err conftest.$ac_objext \
18343 conftest$ac_exeext conftest.$ac_ext
18344LIBS=$ac_check_lib_save_LIBS
18345fi
18346{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18347echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18348if test $ac_cv_lib_gcc___alloca = yes; then
18349
18350cat >>confdefs.h <<\_ACEOF
18351#define HAVE___ALLOCA 1
18352_ACEOF
18353
18354fi
18355
18356 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18357echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18358if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360else
18361 ac_check_lib_save_LIBS=$LIBS
18362LIBS="-lgcc $LIBS"
18363cat >conftest.$ac_ext <<_ACEOF
18364/* confdefs.h. */
18365_ACEOF
18366cat confdefs.h >>conftest.$ac_ext
18367cat >>conftest.$ac_ext <<_ACEOF
18368/* end confdefs.h. */
18369
18370/* Override any GCC internal prototype to avoid an error.
18371 Use char because int might match the return type of a GCC
18372 builtin and then its argument prototype would still apply. */
18373#ifdef __cplusplus
18374extern "C"
18375#endif
18376char __chkstk ();
18377int
18378main ()
18379{
18380return __chkstk ();
18381 ;
18382 return 0;
18383}
18384_ACEOF
18385rm -f conftest.$ac_objext conftest$ac_exeext
18386if { (ac_try="$ac_link"
18387case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390esac
18391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_link") 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18400 { (case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18403esac
18404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_try") 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest$ac_exeext'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413esac
18414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 ac_cv_lib_gcc___chkstk=yes
18420else
18421 echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424 ac_cv_lib_gcc___chkstk=no
18425fi
18426
18427rm -f core conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18429LIBS=$ac_check_lib_save_LIBS
18430fi
18431{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18432echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18433if test $ac_cv_lib_gcc___chkstk = yes; then
18434
18435cat >>confdefs.h <<\_ACEOF
18436#define HAVE___CHKSTK 1
18437_ACEOF
18438
18439fi
18440
18441 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18442echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18443if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445else
18446 ac_check_lib_save_LIBS=$LIBS
18447LIBS="-lgcc $LIBS"
18448cat >conftest.$ac_ext <<_ACEOF
18449/* confdefs.h. */
18450_ACEOF
18451cat confdefs.h >>conftest.$ac_ext
18452cat >>conftest.$ac_ext <<_ACEOF
18453/* end confdefs.h. */
18454
18455/* Override any GCC internal prototype to avoid an error.
18456 Use char because int might match the return type of a GCC
18457 builtin and then its argument prototype would still apply. */
18458#ifdef __cplusplus
18459extern "C"
18460#endif
18461char ___chkstk ();
18462int
18463main ()
18464{
18465return ___chkstk ();
18466 ;
18467 return 0;
18468}
18469_ACEOF
18470rm -f conftest.$ac_objext conftest$ac_exeext
18471if { (ac_try="$ac_link"
18472case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475esac
18476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_link") 2>conftest.er1
18478 ac_status=$?
18479 grep -v '^ *+' conftest.er1 >conftest.err
18480 rm -f conftest.er1
18481 cat conftest.err >&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); } &&
18484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18485 { (case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18488esac
18489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_try") 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; } &&
18494 { ac_try='test -s conftest$ac_exeext'
18495 { (case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498esac
18499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_try") 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_lib_gcc____chkstk=yes
18505else
18506 echo "$as_me: failed program was:" >&5
18507sed 's/^/| /' conftest.$ac_ext >&5
18508
18509 ac_cv_lib_gcc____chkstk=no
18510fi
18511
18512rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18514LIBS=$ac_check_lib_save_LIBS
18515fi
18516{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18517echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18518if test $ac_cv_lib_gcc____chkstk = yes; then
18519
18520cat >>confdefs.h <<\_ACEOF
18521#define HAVE____CHKSTK 1
18522_ACEOF
18523
18524fi
18525
18526
18527 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18528echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18529if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18531else
18532 ac_check_lib_save_LIBS=$LIBS
18533LIBS="-lgcc $LIBS"
18534cat >conftest.$ac_ext <<_ACEOF
18535/* confdefs.h. */
18536_ACEOF
18537cat confdefs.h >>conftest.$ac_ext
18538cat >>conftest.$ac_ext <<_ACEOF
18539/* end confdefs.h. */
18540
18541/* Override any GCC internal prototype to avoid an error.
18542 Use char because int might match the return type of a GCC
18543 builtin and then its argument prototype would still apply. */
18544#ifdef __cplusplus
18545extern "C"
18546#endif
18547char __ashldi3 ();
18548int
18549main ()
18550{
18551return __ashldi3 ();
18552 ;
18553 return 0;
18554}
18555_ACEOF
18556rm -f conftest.$ac_objext conftest$ac_exeext
18557if { (ac_try="$ac_link"
18558case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561esac
18562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_link") 2>conftest.er1
18564 ac_status=$?
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
18570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18571 { (case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574esac
18575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_try") 2>&5
18577 ac_status=$?
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; } &&
18580 { ac_try='test -s conftest$ac_exeext'
18581 { (case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18584esac
18585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_try") 2>&5
18587 ac_status=$?
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18590 ac_cv_lib_gcc___ashldi3=yes
18591else
18592 echo "$as_me: failed program was:" >&5
18593sed 's/^/| /' conftest.$ac_ext >&5
18594
18595 ac_cv_lib_gcc___ashldi3=no
18596fi
18597
18598rm -f core conftest.err conftest.$ac_objext \
18599 conftest$ac_exeext conftest.$ac_ext
18600LIBS=$ac_check_lib_save_LIBS
18601fi
18602{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18603echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18604if test $ac_cv_lib_gcc___ashldi3 = yes; then
18605
18606cat >>confdefs.h <<\_ACEOF
18607#define HAVE___ASHLDI3 1
18608_ACEOF
18609
18610fi
18611
18612 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18613echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18614if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18616else
18617 ac_check_lib_save_LIBS=$LIBS
18618LIBS="-lgcc $LIBS"
18619cat >conftest.$ac_ext <<_ACEOF
18620/* confdefs.h. */
18621_ACEOF
18622cat confdefs.h >>conftest.$ac_ext
18623cat >>conftest.$ac_ext <<_ACEOF
18624/* end confdefs.h. */
18625
18626/* Override any GCC internal prototype to avoid an error.
18627 Use char because int might match the return type of a GCC
18628 builtin and then its argument prototype would still apply. */
18629#ifdef __cplusplus
18630extern "C"
18631#endif
18632char __ashrdi3 ();
18633int
18634main ()
18635{
18636return __ashrdi3 ();
18637 ;
18638 return 0;
18639}
18640_ACEOF
18641rm -f conftest.$ac_objext conftest$ac_exeext
18642if { (ac_try="$ac_link"
18643case "(($ac_try" in
18644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18646esac
18647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648 (eval "$ac_link") 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18656 { (case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659esac
18660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_try") 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; } &&
18665 { ac_try='test -s conftest$ac_exeext'
18666 { (case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18669esac
18670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_try") 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
18675 ac_cv_lib_gcc___ashrdi3=yes
18676else
18677 echo "$as_me: failed program was:" >&5
18678sed 's/^/| /' conftest.$ac_ext >&5
18679
18680 ac_cv_lib_gcc___ashrdi3=no
18681fi
18682
18683rm -f core conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18685LIBS=$ac_check_lib_save_LIBS
18686fi
18687{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18688echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18689if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18690
18691cat >>confdefs.h <<\_ACEOF
18692#define HAVE___ASHRDI3 1
18693_ACEOF
18694
18695fi
18696
18697 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18698echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18699if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18701else
18702 ac_check_lib_save_LIBS=$LIBS
18703LIBS="-lgcc $LIBS"
18704cat >conftest.$ac_ext <<_ACEOF
18705/* confdefs.h. */
18706_ACEOF
18707cat confdefs.h >>conftest.$ac_ext
18708cat >>conftest.$ac_ext <<_ACEOF
18709/* end confdefs.h. */
18710
18711/* Override any GCC internal prototype to avoid an error.
18712 Use char because int might match the return type of a GCC
18713 builtin and then its argument prototype would still apply. */
18714#ifdef __cplusplus
18715extern "C"
18716#endif
18717char __divdi3 ();
18718int
18719main ()
18720{
18721return __divdi3 ();
18722 ;
18723 return 0;
18724}
18725_ACEOF
18726rm -f conftest.$ac_objext conftest$ac_exeext
18727if { (ac_try="$ac_link"
18728case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18731esac
18732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_link") 2>conftest.er1
18734 ac_status=$?
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
18740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18741 { (case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18744esac
18745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_try") 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; } &&
18750 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18760 ac_cv_lib_gcc___divdi3=yes
18761else
18762 echo "$as_me: failed program was:" >&5
18763sed 's/^/| /' conftest.$ac_ext >&5
18764
18765 ac_cv_lib_gcc___divdi3=no
18766fi
18767
18768rm -f core conftest.err conftest.$ac_objext \
18769 conftest$ac_exeext conftest.$ac_ext
18770LIBS=$ac_check_lib_save_LIBS
18771fi
18772{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18773echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18774if test $ac_cv_lib_gcc___divdi3 = yes; then
18775
18776cat >>confdefs.h <<\_ACEOF
18777#define HAVE___DIVDI3 1
18778_ACEOF
18779
18780fi
18781
18782 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18783echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18784if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18786else
18787 ac_check_lib_save_LIBS=$LIBS
18788LIBS="-lgcc $LIBS"
18789cat >conftest.$ac_ext <<_ACEOF
18790/* confdefs.h. */
18791_ACEOF
18792cat confdefs.h >>conftest.$ac_ext
18793cat >>conftest.$ac_ext <<_ACEOF
18794/* end confdefs.h. */
18795
18796/* Override any GCC internal prototype to avoid an error.
18797 Use char because int might match the return type of a GCC
18798 builtin and then its argument prototype would still apply. */
18799#ifdef __cplusplus
18800extern "C"
18801#endif
18802char __fixdfdi ();
18803int
18804main ()
18805{
18806return __fixdfdi ();
18807 ;
18808 return 0;
18809}
18810_ACEOF
18811rm -f conftest.$ac_objext conftest$ac_exeext
18812if { (ac_try="$ac_link"
18813case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18816esac
18817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_link") 2>conftest.er1
18819 ac_status=$?
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18826 { (case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829esac
18830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_try") 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest$ac_exeext'
18836 { (case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839esac
18840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_try") 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 ac_cv_lib_gcc___fixdfdi=yes
18846else
18847 echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
18850 ac_cv_lib_gcc___fixdfdi=no
18851fi
18852
18853rm -f core conftest.err conftest.$ac_objext \
18854 conftest$ac_exeext conftest.$ac_ext
18855LIBS=$ac_check_lib_save_LIBS
18856fi
18857{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18858echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18859if test $ac_cv_lib_gcc___fixdfdi = yes; then
18860
18861cat >>confdefs.h <<\_ACEOF
18862#define HAVE___FIXDFDI 1
18863_ACEOF
18864
18865fi
18866
18867 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18868echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18869if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18871else
18872 ac_check_lib_save_LIBS=$LIBS
18873LIBS="-lgcc $LIBS"
18874cat >conftest.$ac_ext <<_ACEOF
18875/* confdefs.h. */
18876_ACEOF
18877cat confdefs.h >>conftest.$ac_ext
18878cat >>conftest.$ac_ext <<_ACEOF
18879/* end confdefs.h. */
18880
18881/* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18884#ifdef __cplusplus
18885extern "C"
18886#endif
18887char __fixsfdi ();
18888int
18889main ()
18890{
18891return __fixsfdi ();
18892 ;
18893 return 0;
18894}
18895_ACEOF
18896rm -f conftest.$ac_objext conftest$ac_exeext
18897if { (ac_try="$ac_link"
18898case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901esac
18902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_link") 2>conftest.er1
18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } &&
18910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18911 { (case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18914esac
18915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_try") 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest$ac_exeext'
18921 { (case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18924esac
18925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_try") 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ac_cv_lib_gcc___fixsfdi=yes
18931else
18932 echo "$as_me: failed program was:" >&5
18933sed 's/^/| /' conftest.$ac_ext >&5
18934
18935 ac_cv_lib_gcc___fixsfdi=no
18936fi
18937
18938rm -f core conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
18940LIBS=$ac_check_lib_save_LIBS
18941fi
18942{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18943echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18944if test $ac_cv_lib_gcc___fixsfdi = yes; then
18945
18946cat >>confdefs.h <<\_ACEOF
18947#define HAVE___FIXSFDI 1
18948_ACEOF
18949
18950fi
18951
18952 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18953echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18954if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956else
18957 ac_check_lib_save_LIBS=$LIBS
18958LIBS="-lgcc $LIBS"
18959cat >conftest.$ac_ext <<_ACEOF
18960/* confdefs.h. */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
18964/* end confdefs.h. */
18965
18966/* Override any GCC internal prototype to avoid an error.
18967 Use char because int might match the return type of a GCC
18968 builtin and then its argument prototype would still apply. */
18969#ifdef __cplusplus
18970extern "C"
18971#endif
18972char __floatdidf ();
18973int
18974main ()
18975{
18976return __floatdidf ();
18977 ;
18978 return 0;
18979}
18980_ACEOF
18981rm -f conftest.$ac_objext conftest$ac_exeext
18982if { (ac_try="$ac_link"
18983case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18986esac
18987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_link") 2>conftest.er1
18989 ac_status=$?
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18996 { (case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
18999esac
19000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_try") 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest$ac_exeext'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009esac
19010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 ac_cv_lib_gcc___floatdidf=yes
19016else
19017 echo "$as_me: failed program was:" >&5
19018sed 's/^/| /' conftest.$ac_ext >&5
19019
19020 ac_cv_lib_gcc___floatdidf=no
19021fi
19022
19023rm -f core conftest.err conftest.$ac_objext \
19024 conftest$ac_exeext conftest.$ac_ext
19025LIBS=$ac_check_lib_save_LIBS
19026fi
19027{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19028echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19029if test $ac_cv_lib_gcc___floatdidf = yes; then
19030
19031cat >>confdefs.h <<\_ACEOF
19032#define HAVE___FLOATDIDF 1
19033_ACEOF
19034
19035fi
19036
19037 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19038echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19039if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19041else
19042 ac_check_lib_save_LIBS=$LIBS
19043LIBS="-lgcc $LIBS"
19044cat >conftest.$ac_ext <<_ACEOF
19045/* confdefs.h. */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h. */
19050
19051/* Override any GCC internal prototype to avoid an error.
19052 Use char because int might match the return type of a GCC
19053 builtin and then its argument prototype would still apply. */
19054#ifdef __cplusplus
19055extern "C"
19056#endif
19057char __lshrdi3 ();
19058int
19059main ()
19060{
19061return __lshrdi3 ();
19062 ;
19063 return 0;
19064}
19065_ACEOF
19066rm -f conftest.$ac_objext conftest$ac_exeext
19067if { (ac_try="$ac_link"
19068case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071esac
19072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_link") 2>conftest.er1
19074 ac_status=$?
19075 grep -v '^ *+' conftest.er1 >conftest.err
19076 rm -f conftest.er1
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19081 { (case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19084esac
19085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_try") 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest$ac_exeext'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094esac
19095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
19100 ac_cv_lib_gcc___lshrdi3=yes
19101else
19102 echo "$as_me: failed program was:" >&5
19103sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 ac_cv_lib_gcc___lshrdi3=no
19106fi
19107
19108rm -f core conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19110LIBS=$ac_check_lib_save_LIBS
19111fi
19112{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19113echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19114if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19115
19116cat >>confdefs.h <<\_ACEOF
19117#define HAVE___LSHRDI3 1
19118_ACEOF
19119
19120fi
19121
19122 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19123echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19124if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19126else
19127 ac_check_lib_save_LIBS=$LIBS
19128LIBS="-lgcc $LIBS"
19129cat >conftest.$ac_ext <<_ACEOF
19130/* confdefs.h. */
19131_ACEOF
19132cat confdefs.h >>conftest.$ac_ext
19133cat >>conftest.$ac_ext <<_ACEOF
19134/* end confdefs.h. */
19135
19136/* Override any GCC internal prototype to avoid an error.
19137 Use char because int might match the return type of a GCC
19138 builtin and then its argument prototype would still apply. */
19139#ifdef __cplusplus
19140extern "C"
19141#endif
19142char __moddi3 ();
19143int
19144main ()
19145{
19146return __moddi3 ();
19147 ;
19148 return 0;
19149}
19150_ACEOF
19151rm -f conftest.$ac_objext conftest$ac_exeext
19152if { (ac_try="$ac_link"
19153case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156esac
19157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_link") 2>conftest.er1
19159 ac_status=$?
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
19165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19166 { (case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169esac
19170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_try") 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest$ac_exeext'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179esac
19180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 ac_cv_lib_gcc___moddi3=yes
19186else
19187 echo "$as_me: failed program was:" >&5
19188sed 's/^/| /' conftest.$ac_ext >&5
19189
19190 ac_cv_lib_gcc___moddi3=no
19191fi
19192
19193rm -f core conftest.err conftest.$ac_objext \
19194 conftest$ac_exeext conftest.$ac_ext
19195LIBS=$ac_check_lib_save_LIBS
19196fi
19197{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19198echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19199if test $ac_cv_lib_gcc___moddi3 = yes; then
19200
19201cat >>confdefs.h <<\_ACEOF
19202#define HAVE___MODDI3 1
19203_ACEOF
19204
19205fi
19206
19207 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19208echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19209if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19211else
19212 ac_check_lib_save_LIBS=$LIBS
19213LIBS="-lgcc $LIBS"
19214cat >conftest.$ac_ext <<_ACEOF
19215/* confdefs.h. */
19216_ACEOF
19217cat confdefs.h >>conftest.$ac_ext
19218cat >>conftest.$ac_ext <<_ACEOF
19219/* end confdefs.h. */
19220
19221/* Override any GCC internal prototype to avoid an error.
19222 Use char because int might match the return type of a GCC
19223 builtin and then its argument prototype would still apply. */
19224#ifdef __cplusplus
19225extern "C"
19226#endif
19227char __udivdi3 ();
19228int
19229main ()
19230{
19231return __udivdi3 ();
19232 ;
19233 return 0;
19234}
19235_ACEOF
19236rm -f conftest.$ac_objext conftest$ac_exeext
19237if { (ac_try="$ac_link"
19238case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19241esac
19242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_link") 2>conftest.er1
19244 ac_status=$?
19245 grep -v '^ *+' conftest.er1 >conftest.err
19246 rm -f conftest.er1
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19251 { (case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254esac
19255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest$ac_exeext'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264esac
19265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_cv_lib_gcc___udivdi3=yes
19271else
19272 echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
19275 ac_cv_lib_gcc___udivdi3=no
19276fi
19277
19278rm -f core conftest.err conftest.$ac_objext \
19279 conftest$ac_exeext conftest.$ac_ext
19280LIBS=$ac_check_lib_save_LIBS
19281fi
19282{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19283echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19284if test $ac_cv_lib_gcc___udivdi3 = yes; then
19285
19286cat >>confdefs.h <<\_ACEOF
19287#define HAVE___UDIVDI3 1
19288_ACEOF
19289
19290fi
19291
19292 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19293echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19294if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19296else
19297 ac_check_lib_save_LIBS=$LIBS
19298LIBS="-lgcc $LIBS"
19299cat >conftest.$ac_ext <<_ACEOF
19300/* confdefs.h. */
19301_ACEOF
19302cat confdefs.h >>conftest.$ac_ext
19303cat >>conftest.$ac_ext <<_ACEOF
19304/* end confdefs.h. */
19305
19306/* Override any GCC internal prototype to avoid an error.
19307 Use char because int might match the return type of a GCC
19308 builtin and then its argument prototype would still apply. */
19309#ifdef __cplusplus
19310extern "C"
19311#endif
19312char __umoddi3 ();
19313int
19314main ()
19315{
19316return __umoddi3 ();
19317 ;
19318 return 0;
19319}
19320_ACEOF
19321rm -f conftest.$ac_objext conftest$ac_exeext
19322if { (ac_try="$ac_link"
19323case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19326esac
19327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_link") 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19339esac
19340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest$ac_exeext'
19346 { (case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19349esac
19350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_try") 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 ac_cv_lib_gcc___umoddi3=yes
19356else
19357 echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ac_cv_lib_gcc___umoddi3=no
19361fi
19362
19363rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19365LIBS=$ac_check_lib_save_LIBS
19366fi
19367{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19368echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19369if test $ac_cv_lib_gcc___umoddi3 = yes; then
19370
19371cat >>confdefs.h <<\_ACEOF
19372#define HAVE___UMODDI3 1
19373_ACEOF
19374
19375fi
19376
19377
19378 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19379echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19380if test "${ac_cv_lib_gcc___main+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19382else
19383 ac_check_lib_save_LIBS=$LIBS
19384LIBS="-lgcc $LIBS"
19385cat >conftest.$ac_ext <<_ACEOF
19386/* confdefs.h. */
19387_ACEOF
19388cat confdefs.h >>conftest.$ac_ext
19389cat >>conftest.$ac_ext <<_ACEOF
19390/* end confdefs.h. */
19391
19392/* Override any GCC internal prototype to avoid an error.
19393 Use char because int might match the return type of a GCC
19394 builtin and then its argument prototype would still apply. */
19395#ifdef __cplusplus
19396extern "C"
19397#endif
19398char __main ();
19399int
19400main ()
19401{
19402return __main ();
19403 ;
19404 return 0;
19405}
19406_ACEOF
19407rm -f conftest.$ac_objext conftest$ac_exeext
19408if { (ac_try="$ac_link"
19409case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412esac
19413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_link") 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425esac
19426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest$ac_exeext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435esac
19436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_lib_gcc___main=yes
19442else
19443 echo "$as_me: failed program was:" >&5
19444sed 's/^/| /' conftest.$ac_ext >&5
19445
19446 ac_cv_lib_gcc___main=no
19447fi
19448
19449rm -f core conftest.err conftest.$ac_objext \
19450 conftest$ac_exeext conftest.$ac_ext
19451LIBS=$ac_check_lib_save_LIBS
19452fi
19453{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19454echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19455if test $ac_cv_lib_gcc___main = yes; then
19456
19457cat >>confdefs.h <<\_ACEOF
19458#define HAVE___MAIN 1
19459_ACEOF
19460
19461fi
19462
19463 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19464echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19465if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467else
19468 ac_check_lib_save_LIBS=$LIBS
19469LIBS="-lgcc $LIBS"
19470cat >conftest.$ac_ext <<_ACEOF
19471/* confdefs.h. */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
19475/* end confdefs.h. */
19476
19477/* Override any GCC internal prototype to avoid an error.
19478 Use char because int might match the return type of a GCC
19479 builtin and then its argument prototype would still apply. */
19480#ifdef __cplusplus
19481extern "C"
19482#endif
19483char __cmpdi2 ();
19484int
19485main ()
19486{
19487return __cmpdi2 ();
19488 ;
19489 return 0;
19490}
19491_ACEOF
19492rm -f conftest.$ac_objext conftest$ac_exeext
19493if { (ac_try="$ac_link"
19494case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19497esac
19498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_link") 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510esac
19511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest$ac_exeext'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520esac
19521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_cv_lib_gcc___cmpdi2=yes
19527else
19528 echo "$as_me: failed program was:" >&5
19529sed 's/^/| /' conftest.$ac_ext >&5
19530
19531 ac_cv_lib_gcc___cmpdi2=no
19532fi
19533
19534rm -f core conftest.err conftest.$ac_objext \
19535 conftest$ac_exeext conftest.$ac_ext
19536LIBS=$ac_check_lib_save_LIBS
19537fi
19538{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19539echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19540if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19541
19542cat >>confdefs.h <<\_ACEOF
19543#define HAVE___CMPDI2 1
19544_ACEOF
19545
19546fi
19547
19548fi
19549
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019550if test "$llvm_cv_os_type" = "MingW" ; then
19551 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19552echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19553 cat >conftest.$ac_ext <<_ACEOF
19554#include <windows.h>
19555#include <imagehlp.h>
19556extern void foo(PENUMLOADED_MODULES_CALLBACK);
19557extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19558_ACEOF
19559rm -f conftest.$ac_objext
19560if { (ac_try="$ac_compile"
19561case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19564esac
19565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_compile") 2>conftest.er1
19567 ac_status=$?
19568 grep -v '^ *+' conftest.er1 >conftest.err
19569 rm -f conftest.er1
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } &&
19573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19574 { (case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19577esac
19578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_try") 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest.$ac_objext'
19584 { (case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587esac
19588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_try") 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; }; then
19593
19594 { echo "$as_me:$LINENO: result: yes" >&5
19595echo "${ECHO_T}yes" >&6; }
19596 llvm_cv_win32_elmcb_pcstr="PCSTR"
19597
19598else
19599 echo "$as_me: failed program was:" >&5
19600sed 's/^/| /' conftest.$ac_ext >&5
19601
19602
19603 { echo "$as_me:$LINENO: result: no" >&5
19604echo "${ECHO_T}no" >&6; }
19605 llvm_cv_win32_elmcb_pcstr="PSTR"
19606
19607fi
19608
19609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19610
19611cat >>confdefs.h <<_ACEOF
19612#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19613_ACEOF
19614
19615fi
19616
Torok Edwin871384f2010-01-26 08:50:50 +000019617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019618{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19619echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19620if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019622else
Reid Spencera773bd52006-08-04 18:18:08 +000019623 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019624ac_cpp='$CXXCPP $CPPFLAGS'
19625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019629 cat >conftest.$ac_ext <<_ACEOF
19630/* confdefs.h. */
19631_ACEOF
19632cat confdefs.h >>conftest.$ac_ext
19633cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019634/* end confdefs.h. */
19635#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019636int
19637main ()
19638{
19639float f; isnan(f);
19640 ;
19641 return 0;
19642}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019643_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019644rm -f conftest.$ac_objext
19645if { (ac_try="$ac_compile"
19646case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19649esac
19650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_compile") 2>conftest.er1
19652 ac_status=$?
19653 grep -v '^ *+' conftest.er1 >conftest.err
19654 rm -f conftest.er1
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19659 { (case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662esac
19663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_try") 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest.$ac_objext'
19669 { (case "(($ac_try" in
19670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671 *) ac_try_echo=$ac_try;;
19672esac
19673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674 (eval "$ac_try") 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019678 ac_cv_func_isnan_in_math_h=yes
19679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019680 echo "$as_me: failed program was:" >&5
19681sed 's/^/| /' conftest.$ac_ext >&5
19682
19683 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019685
Reid Spencera773bd52006-08-04 18:18:08 +000019686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019687 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019688ac_cpp='$CPP $CPPFLAGS'
19689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691ac_compiler_gnu=$ac_cv_c_compiler_gnu
19692
19693fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019694{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19695echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019696
19697
19698if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019700cat >>confdefs.h <<\_ACEOF
19701#define HAVE_ISNAN_IN_MATH_H 1
19702_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019703
Reid Spencerabec8f92004-10-27 23:03:44 +000019704fi
19705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019706{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19707echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19708if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019710else
Reid Spencera773bd52006-08-04 18:18:08 +000019711 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019712ac_cpp='$CXXCPP $CPPFLAGS'
19713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019717 cat >conftest.$ac_ext <<_ACEOF
19718/* confdefs.h. */
19719_ACEOF
19720cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019722/* end confdefs.h. */
19723#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019724int
19725main ()
19726{
19727float f; isnan(f);
19728 ;
19729 return 0;
19730}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019731_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019732rm -f conftest.$ac_objext
19733if { (ac_try="$ac_compile"
19734case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737esac
19738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_compile") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } &&
19746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19747 { (case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19750esac
19751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_try") 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; } &&
19756 { ac_try='test -s conftest.$ac_objext'
19757 { (case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19760esac
19761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19762 (eval "$ac_try") 2>&5
19763 ac_status=$?
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019766 ac_cv_func_isnan_in_cmath=yes
19767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019768 echo "$as_me: failed program was:" >&5
19769sed 's/^/| /' conftest.$ac_ext >&5
19770
19771 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019773
Reid Spencera773bd52006-08-04 18:18:08 +000019774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019775 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019776ac_cpp='$CPP $CPPFLAGS'
19777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19779ac_compiler_gnu=$ac_cv_c_compiler_gnu
19780
19781fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019782{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19783echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019784
19785if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019787cat >>confdefs.h <<\_ACEOF
19788#define HAVE_ISNAN_IN_CMATH 1
19789_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019790
Reid Spencerabec8f92004-10-27 23:03:44 +000019791fi
19792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019793{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19794echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19795if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019797else
Reid Spencera773bd52006-08-04 18:18:08 +000019798 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019799ac_cpp='$CXXCPP $CPPFLAGS'
19800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019804 cat >conftest.$ac_ext <<_ACEOF
19805/* confdefs.h. */
19806_ACEOF
19807cat confdefs.h >>conftest.$ac_ext
19808cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019809/* end confdefs.h. */
19810#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019811int
19812main ()
19813{
19814float f; std::isnan(f);
19815 ;
19816 return 0;
19817}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019818_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019819rm -f conftest.$ac_objext
19820if { (ac_try="$ac_compile"
19821case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19824esac
19825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
19833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19834 { (case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837esac
19838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_try") 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest.$ac_objext'
19844 { (case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847esac
19848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_try") 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019853 ac_cv_func_std_isnan_in_cmath=yes
19854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019855 echo "$as_me: failed program was:" >&5
19856sed 's/^/| /' conftest.$ac_ext >&5
19857
19858 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019860
Reid Spencera773bd52006-08-04 18:18:08 +000019861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019862 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019863ac_cpp='$CPP $CPPFLAGS'
19864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867
19868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019869{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19870echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019871
19872if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019874cat >>confdefs.h <<\_ACEOF
19875#define HAVE_STD_ISNAN_IN_CMATH 1
19876_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019877
Reid Spencerabec8f92004-10-27 23:03:44 +000019878fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019879
19880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019881{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19882echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19883if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019885else
Reid Spencera773bd52006-08-04 18:18:08 +000019886 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019887ac_cpp='$CXXCPP $CPPFLAGS'
19888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019892 cat >conftest.$ac_ext <<_ACEOF
19893/* confdefs.h. */
19894_ACEOF
19895cat confdefs.h >>conftest.$ac_ext
19896cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019897/* end confdefs.h. */
19898#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019899int
19900main ()
19901{
19902float f; isinf(f);
19903 ;
19904 return 0;
19905}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019906_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019907rm -f conftest.$ac_objext
19908if { (ac_try="$ac_compile"
19909case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912esac
19913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_compile") 2>conftest.er1
19915 ac_status=$?
19916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19922 { (case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925esac
19926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_try") 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest.$ac_objext'
19932 { (case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935esac
19936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_try") 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019941 ac_cv_func_isinf_in_math_h=yes
19942else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019943 echo "$as_me: failed program was:" >&5
19944sed 's/^/| /' conftest.$ac_ext >&5
19945
19946 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019947fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019948
Reid Spencera773bd52006-08-04 18:18:08 +000019949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019950 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019951ac_cpp='$CPP $CPPFLAGS'
19952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954ac_compiler_gnu=$ac_cv_c_compiler_gnu
19955
19956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019957{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19958echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019959
19960if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019962cat >>confdefs.h <<\_ACEOF
19963#define HAVE_ISINF_IN_MATH_H 1
19964_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019965
Reid Spencerabec8f92004-10-27 23:03:44 +000019966fi
19967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019968{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19969echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19970if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019972else
Reid Spencera773bd52006-08-04 18:18:08 +000019973 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019974ac_cpp='$CXXCPP $CPPFLAGS'
19975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019979 cat >conftest.$ac_ext <<_ACEOF
19980/* confdefs.h. */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019984/* end confdefs.h. */
19985#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019986int
19987main ()
19988{
19989float f; isinf(f);
19990 ;
19991 return 0;
19992}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019993_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019994rm -f conftest.$ac_objext
19995if { (ac_try="$ac_compile"
19996case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
19999esac
20000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_compile") 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20009 { (case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20012esac
20013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_try") 2>&5
20015 ac_status=$?
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; } &&
20018 { ac_try='test -s conftest.$ac_objext'
20019 { (case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022esac
20023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_try") 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020028 ac_cv_func_isinf_in_cmath=yes
20029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020030 echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020035
Reid Spencera773bd52006-08-04 18:18:08 +000020036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020037 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020038ac_cpp='$CPP $CPPFLAGS'
20039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041ac_compiler_gnu=$ac_cv_c_compiler_gnu
20042
20043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020044{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20045echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020046
20047if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020049cat >>confdefs.h <<\_ACEOF
20050#define HAVE_ISINF_IN_CMATH 1
20051_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020052
Reid Spencerabec8f92004-10-27 23:03:44 +000020053fi
20054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020055{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20056echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20057if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020059else
Reid Spencera773bd52006-08-04 18:18:08 +000020060 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020061ac_cpp='$CXXCPP $CPPFLAGS'
20062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066 cat >conftest.$ac_ext <<_ACEOF
20067/* confdefs.h. */
20068_ACEOF
20069cat confdefs.h >>conftest.$ac_ext
20070cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020071/* end confdefs.h. */
20072#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020073int
20074main ()
20075{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020076float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020077 ;
20078 return 0;
20079}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020080_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020081rm -f conftest.$ac_objext
20082if { (ac_try="$ac_compile"
20083case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086esac
20087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_compile") 2>conftest.er1
20089 ac_status=$?
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
20095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20096 { (case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099esac
20100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_try") 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109esac
20110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_try") 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020115 ac_cv_func_std_isinf_in_cmath=yes
20116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020117 echo "$as_me: failed program was:" >&5
20118sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020121fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020122
Reid Spencera773bd52006-08-04 18:18:08 +000020123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020124 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020125ac_cpp='$CPP $CPPFLAGS'
20126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128ac_compiler_gnu=$ac_cv_c_compiler_gnu
20129
20130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020131{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20132echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020133
20134if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020136cat >>confdefs.h <<\_ACEOF
20137#define HAVE_STD_ISINF_IN_CMATH 1
20138_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020139
Reid Spencerabec8f92004-10-27 23:03:44 +000020140fi
20141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020142{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20143echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20144if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020146else
Reid Spencera773bd52006-08-04 18:18:08 +000020147 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020148ac_cpp='$CXXCPP $CPPFLAGS'
20149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020153 cat >conftest.$ac_ext <<_ACEOF
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020158/* end confdefs.h. */
20159#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020160int
20161main ()
20162{
20163float f; finite(f);
20164 ;
20165 return 0;
20166}
Brian Gaeked59a6472004-07-21 03:33:58 +000020167_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020168rm -f conftest.$ac_objext
20169if { (ac_try="$ac_compile"
20170case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20173esac
20174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175 (eval "$ac_compile") 2>conftest.er1
20176 ac_status=$?
20177 grep -v '^ *+' conftest.er1 >conftest.err
20178 rm -f conftest.er1
20179 cat conftest.err >&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
20182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186esac
20187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest.$ac_objext'
20193 { (case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20196esac
20197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_try") 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020202 ac_cv_func_finite_in_ieeefp_h=yes
20203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020204 echo "$as_me: failed program was:" >&5
20205sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020209
Reid Spencera773bd52006-08-04 18:18:08 +000020210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020211 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020212ac_cpp='$CPP $CPPFLAGS'
20213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20215ac_compiler_gnu=$ac_cv_c_compiler_gnu
20216
20217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020218{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20219echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020220
Brian Gaeke6802b552004-10-28 05:06:45 +000020221if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020223cat >>confdefs.h <<\_ACEOF
20224#define HAVE_FINITE_IN_IEEEFP_H 1
20225_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020226
Reid Spencerabec8f92004-10-27 23:03:44 +000020227fi
20228
20229
20230
Reid Spencer30fe5262007-01-20 07:48:49 +000020231if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020232
20233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020234for ac_header in stdlib.h unistd.h
20235do
20236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20242fi
20243ac_res=`eval echo '${'$as_ac_Header'}'`
20244 { echo "$as_me:$LINENO: result: $ac_res" >&5
20245echo "${ECHO_T}$ac_res" >&6; }
20246else
20247 # Is the header compilable?
20248{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20250cat >conftest.$ac_ext <<_ACEOF
20251/* confdefs.h. */
20252_ACEOF
20253cat confdefs.h >>conftest.$ac_ext
20254cat >>conftest.$ac_ext <<_ACEOF
20255/* end confdefs.h. */
20256$ac_includes_default
20257#include <$ac_header>
20258_ACEOF
20259rm -f conftest.$ac_objext
20260if { (ac_try="$ac_compile"
20261case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264esac
20265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_compile") 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20274 { (case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20277esac
20278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_try") 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; } &&
20283 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20293 ac_header_compiler=yes
20294else
20295 echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020298 ac_header_compiler=no
20299fi
20300
20301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303echo "${ECHO_T}$ac_header_compiler" >&6; }
20304
20305# Is the header present?
20306{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20308cat >conftest.$ac_ext <<_ACEOF
20309/* confdefs.h. */
20310_ACEOF
20311cat confdefs.h >>conftest.$ac_ext
20312cat >>conftest.$ac_ext <<_ACEOF
20313/* end confdefs.h. */
20314#include <$ac_header>
20315_ACEOF
20316if { (ac_try="$ac_cpp conftest.$ac_ext"
20317case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20320esac
20321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } >/dev/null; then
20329 if test -s conftest.err; then
20330 ac_cpp_err=$ac_c_preproc_warn_flag
20331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20332 else
20333 ac_cpp_err=
20334 fi
20335else
20336 ac_cpp_err=yes
20337fi
20338if test -z "$ac_cpp_err"; then
20339 ac_header_preproc=yes
20340else
20341 echo "$as_me: failed program was:" >&5
20342sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 ac_header_preproc=no
20345fi
20346
20347rm -f conftest.err conftest.$ac_ext
20348{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349echo "${ECHO_T}$ac_header_preproc" >&6; }
20350
20351# So? What about this header?
20352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353 yes:no: )
20354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20357echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20358 ac_header_preproc=yes
20359 ;;
20360 no:yes:* )
20361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20364echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20366echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20368echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20370echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20372echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20373 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020374## ------------------------------------ ##
20375## Report this to http://llvm.org/bugs/ ##
20376## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020377_ASBOX
20378 ) | sed "s/^/$as_me: WARNING: /" >&2
20379 ;;
20380esac
20381{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20385else
20386 eval "$as_ac_Header=\$ac_header_preproc"
20387fi
20388ac_res=`eval echo '${'$as_ac_Header'}'`
20389 { echo "$as_me:$LINENO: result: $ac_res" >&5
20390echo "${ECHO_T}$ac_res" >&6; }
20391
20392fi
20393if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020394 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020396_ACEOF
20397
20398fi
20399
20400done
20401
20402
20403for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020404do
20405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20406{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20408if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410else
20411 cat >conftest.$ac_ext <<_ACEOF
20412/* confdefs.h. */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h. */
20417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20419#define $ac_func innocuous_$ac_func
20420
20421/* System header to define __stub macros and hopefully few prototypes,
20422 which can conflict with char $ac_func (); below.
20423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20424 <limits.h> exists even on freestanding compilers. */
20425
20426#ifdef __STDC__
20427# include <limits.h>
20428#else
20429# include <assert.h>
20430#endif
20431
20432#undef $ac_func
20433
20434/* Override any GCC internal prototype to avoid an error.
20435 Use char because int might match the return type of a GCC
20436 builtin and then its argument prototype would still apply. */
20437#ifdef __cplusplus
20438extern "C"
20439#endif
20440char $ac_func ();
20441/* The GNU C library defines this for functions which it implements
20442 to always fail with ENOSYS. Some functions are actually named
20443 something starting with __ and the normal name is an alias. */
20444#if defined __stub_$ac_func || defined __stub___$ac_func
20445choke me
20446#endif
20447
20448int
20449main ()
20450{
20451return $ac_func ();
20452 ;
20453 return 0;
20454}
20455_ACEOF
20456rm -f conftest.$ac_objext conftest$ac_exeext
20457if { (ac_try="$ac_link"
20458case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461esac
20462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20471 { (case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20474esac
20475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_try") 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try='test -s conftest$ac_exeext'
20481 { (case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20484esac
20485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_try") 2>&5
20487 ac_status=$?
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 eval "$as_ac_var=yes"
20491else
20492 echo "$as_me: failed program was:" >&5
20493sed 's/^/| /' conftest.$ac_ext >&5
20494
20495 eval "$as_ac_var=no"
20496fi
20497
20498rm -f core conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
20500fi
20501ac_res=`eval echo '${'$as_ac_var'}'`
20502 { echo "$as_me:$LINENO: result: $ac_res" >&5
20503echo "${ECHO_T}$ac_res" >&6; }
20504if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020505 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020507_ACEOF
20508
20509fi
20510done
20511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020512{ echo "$as_me:$LINENO: checking for working mmap" >&5
20513echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20514if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020517 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020518 ac_cv_func_mmap_fixed_mapped=no
20519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520 cat >conftest.$ac_ext <<_ACEOF
20521/* confdefs.h. */
20522_ACEOF
20523cat confdefs.h >>conftest.$ac_ext
20524cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020525/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020526$ac_includes_default
20527/* malloc might have been renamed as rpl_malloc. */
20528#undef malloc
20529
20530/* Thanks to Mike Haertel and Jim Avera for this test.
20531 Here is a matrix of mmap possibilities:
20532 mmap private not fixed
20533 mmap private fixed at somewhere currently unmapped
20534 mmap private fixed at somewhere already mapped
20535 mmap shared not fixed
20536 mmap shared fixed at somewhere currently unmapped
20537 mmap shared fixed at somewhere already mapped
20538 For private mappings, we should verify that changes cannot be read()
20539 back from the file, nor mmap's back from the file at a different
20540 address. (There have been systems where private was not correctly
20541 implemented like the infamous i386 svr4.0, and systems where the
20542 VM page cache was not coherent with the file system buffer cache
20543 like early versions of FreeBSD and possibly contemporary NetBSD.)
20544 For shared mappings, we should conversely verify that changes get
20545 propagated back to all the places they're supposed to be.
20546
20547 Grep wants private fixed already mapped.
20548 The main things grep needs to know about mmap are:
20549 * does it exist and is it safe to write into the mmap'd area
20550 * how to use it (BSD variants) */
20551
20552#include <fcntl.h>
20553#include <sys/mman.h>
20554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020555#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020556char *malloc ();
20557#endif
20558
20559/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560#if !HAVE_GETPAGESIZE
20561/* Assume that all systems that can run configure have sys/param.h. */
20562# if !HAVE_SYS_PARAM_H
20563# define HAVE_SYS_PARAM_H 1
20564# endif
20565
John Criswell7a73b802003-06-30 21:59:07 +000020566# ifdef _SC_PAGESIZE
20567# define getpagesize() sysconf(_SC_PAGESIZE)
20568# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020569# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020570# include <sys/param.h>
20571# ifdef EXEC_PAGESIZE
20572# define getpagesize() EXEC_PAGESIZE
20573# else /* no EXEC_PAGESIZE */
20574# ifdef NBPG
20575# define getpagesize() NBPG * CLSIZE
20576# ifndef CLSIZE
20577# define CLSIZE 1
20578# endif /* no CLSIZE */
20579# else /* no NBPG */
20580# ifdef NBPC
20581# define getpagesize() NBPC
20582# else /* no NBPC */
20583# ifdef PAGESIZE
20584# define getpagesize() PAGESIZE
20585# endif /* PAGESIZE */
20586# endif /* no NBPC */
20587# endif /* no NBPG */
20588# endif /* no EXEC_PAGESIZE */
20589# else /* no HAVE_SYS_PARAM_H */
20590# define getpagesize() 8192 /* punt totally */
20591# endif /* no HAVE_SYS_PARAM_H */
20592# endif /* no _SC_PAGESIZE */
20593
20594#endif /* no HAVE_GETPAGESIZE */
20595
20596int
20597main ()
20598{
20599 char *data, *data2, *data3;
20600 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020601 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020602
20603 pagesize = getpagesize ();
20604
20605 /* First, make a file with some known garbage in it. */
20606 data = (char *) malloc (pagesize);
20607 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020608 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020609 for (i = 0; i < pagesize; ++i)
20610 *(data + i) = rand ();
20611 umask (0);
20612 fd = creat ("conftest.mmap", 0600);
20613 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020614 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020615 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020617 close (fd);
20618
20619 /* Next, try to mmap the file at a fixed address which already has
20620 something else allocated at it. If we can, also make sure that
20621 we see the same garbage. */
20622 fd = open ("conftest.mmap", O_RDWR);
20623 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020624 return 1;
20625 data2 = (char *) malloc (2 * pagesize);
20626 if (!data2)
20627 return 1;
20628 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020629 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020630 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020631 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020632 for (i = 0; i < pagesize; ++i)
20633 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020634 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020635
20636 /* Finally, make sure that changes to the mapped area do not
20637 percolate back to the file as seen by read(). (This is a bug on
20638 some variants of i386 svr4.0.) */
20639 for (i = 0; i < pagesize; ++i)
20640 *(data2 + i) = *(data2 + i) + 1;
20641 data3 = (char *) malloc (pagesize);
20642 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020643 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020644 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020645 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020646 for (i = 0; i < pagesize; ++i)
20647 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020648 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020649 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020650 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020651}
20652_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653rm -f conftest$ac_exeext
20654if { (ac_try="$ac_link"
20655case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20658esac
20659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_link") 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20664 { (case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20667esac
20668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_try") 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020673 ac_cv_func_mmap_fixed_mapped=yes
20674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020675 echo "$as_me: program exited with status $ac_status" >&5
20676echo "$as_me: failed program was:" >&5
20677sed 's/^/| /' conftest.$ac_ext >&5
20678
20679( exit $ac_status )
20680ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020681fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020683fi
Reid Spencera773bd52006-08-04 18:18:08 +000020684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020685
John Criswell7a73b802003-06-30 21:59:07 +000020686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020687{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20688echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020689if test $ac_cv_func_mmap_fixed_mapped = yes; then
20690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020691cat >>confdefs.h <<\_ACEOF
20692#define HAVE_MMAP 1
20693_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020694
20695fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020696rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020698 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20699echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20700if test "${ac_cv_func_mmap_file+set}" = set; then
20701 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020702else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020703 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020704ac_cpp='$CPP $CPPFLAGS'
20705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707ac_compiler_gnu=$ac_cv_c_compiler_gnu
20708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020709 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020710 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020712 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020714 /* confdefs.h. */
20715_ACEOF
20716cat confdefs.h >>conftest.$ac_ext
20717cat >>conftest.$ac_ext <<_ACEOF
20718/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020719
John Criswell7a73b802003-06-30 21:59:07 +000020720#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020721#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020722#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020723
20724int
20725main ()
20726{
John Criswell7a73b802003-06-30 21:59:07 +000020727
20728 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020729 fd = creat ("foo",0777);
20730 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20731 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020732 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020733 ;
20734 return 0;
20735}
John Criswell7a73b802003-06-30 21:59:07 +000020736_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020737rm -f conftest$ac_exeext
20738if { (ac_try="$ac_link"
20739case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742esac
20743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_link") 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20748 { (case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751esac
20752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_try") 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020757 ac_cv_func_mmap_file=yes
20758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020759 echo "$as_me: program exited with status $ac_status" >&5
20760echo "$as_me: failed program was:" >&5
20761sed 's/^/| /' conftest.$ac_ext >&5
20762
20763( exit $ac_status )
20764ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020767fi
Reid Spencera773bd52006-08-04 18:18:08 +000020768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020769
John Criswell7a73b802003-06-30 21:59:07 +000020770 ac_ext=c
20771ac_cpp='$CPP $CPPFLAGS'
20772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20774ac_compiler_gnu=$ac_cv_c_compiler_gnu
20775
20776
20777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20779echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020780if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020782cat >>confdefs.h <<\_ACEOF
20783#define HAVE_MMAP_FILE
20784_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020785
20786 MMAP_FILE=yes
20787
20788fi
20789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020790 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20791echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20792if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020794else
Reid Spencer582a23c2004-12-29 07:07:57 +000020795 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020796 ac_cv_need_dev_zero_for_mmap=yes
20797 else
20798 ac_cv_need_dev_zero_for_mmap=no
20799 fi
20800
20801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020802{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20803echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020804if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020806cat >>confdefs.h <<\_ACEOF
20807#define NEED_DEV_ZERO_FOR_MMAP 1
20808_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020809
20810fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020811
Reid Spencer30fe5262007-01-20 07:48:49 +000020812 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20813 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020814 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20815echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020816 fi
20817 if test "$ac_cv_func_mmap_file" = "no"
20818 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020819 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20820echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020821 fi
John Criswellb13092b2003-07-22 21:00:24 +000020822fi
John Criswell7a73b802003-06-30 21:59:07 +000020823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020824{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20825echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020826ac_ext=cpp
20827ac_cpp='$CXXCPP $CPPFLAGS'
20828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020832cat >conftest.$ac_ext <<_ACEOF
20833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020837/* end confdefs.h. */
20838int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020839 volatile unsigned long val = 1;
20840 __sync_synchronize();
20841 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020842 __sync_add_and_fetch(&val, 1);
20843 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020844 return 0;
20845 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020846
20847_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020848rm -f conftest.$ac_objext conftest$ac_exeext
20849if { (ac_try="$ac_link"
20850case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20853esac
20854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_link") 2>conftest.er1
20856 ac_status=$?
20857 grep -v '^ *+' conftest.er1 >conftest.err
20858 rm -f conftest.er1
20859 cat conftest.err >&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20863 { (case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866esac
20867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_try") 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest$ac_exeext'
20873 { (case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20876esac
20877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_try") 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020882 ac_ext=c
20883ac_cpp='$CPP $CPPFLAGS'
20884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20886ac_compiler_gnu=$ac_cv_c_compiler_gnu
20887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020888 { echo "$as_me:$LINENO: result: yes" >&5
20889echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020891cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020892#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020893_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020894
Owen Andersond4b272b2009-05-18 23:58:51 +000020895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020896 echo "$as_me: failed program was:" >&5
20897sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020899 { echo "$as_me:$LINENO: result: no" >&5
20900echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020902cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020903#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020904_ACEOF
20905
20906 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20907echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020909
Owen Andersond4b272b2009-05-18 23:58:51 +000020910rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020911 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020912
John Criswell7a73b802003-06-30 21:59:07 +000020913
Nick Lewycky4372e692009-09-29 06:18:23 +000020914if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020915 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20916echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20917if test "${llvm_cv_linux_mixed+set}" = set; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020919else
20920 ac_ext=c
20921ac_cpp='$CPP $CPPFLAGS'
20922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924ac_compiler_gnu=$ac_cv_c_compiler_gnu
20925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020926 cat >conftest.$ac_ext <<_ACEOF
20927/* confdefs.h. */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020931/* end confdefs.h. */
20932#ifndef __x86_64__
20933 error: Not x86-64 even if uname says so!
20934 #endif
20935
20936int
20937main ()
20938{
20939
20940 ;
20941 return 0;
20942}
20943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020944rm -f conftest.$ac_objext
20945if { (ac_try="$ac_compile"
20946case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949esac
20950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_compile") 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20959 { (case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962esac
20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_try") 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest.$ac_objext'
20969 { (case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20972esac
20973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_try") 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020978 llvm_cv_linux_mixed=no
20979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020980 echo "$as_me: failed program was:" >&5
20981sed 's/^/| /' conftest.$ac_ext >&5
20982
20983 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985
Nick Lewycky4372e692009-09-29 06:18:23 +000020986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987 ac_ext=c
20988ac_cpp='$CPP $CPPFLAGS'
20989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991ac_compiler_gnu=$ac_cv_c_compiler_gnu
20992
20993
20994fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20996echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020997
20998 if test "$llvm_cv_linux_mixed" = "yes"; then
20999 llvm_cv_target_arch="x86"
21000 ARCH="x86"
21001 fi
21002fi
21003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004
Reid Spencer9372f152007-07-30 20:13:24 +000021005for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021006do
21007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21008{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21010if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21012else
21013 cat >conftest.$ac_ext <<_ACEOF
21014/* confdefs.h. */
21015_ACEOF
21016cat confdefs.h >>conftest.$ac_ext
21017cat >>conftest.$ac_ext <<_ACEOF
21018/* end confdefs.h. */
21019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21021#define $ac_func innocuous_$ac_func
21022
21023/* System header to define __stub macros and hopefully few prototypes,
21024 which can conflict with char $ac_func (); below.
21025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21026 <limits.h> exists even on freestanding compilers. */
21027
21028#ifdef __STDC__
21029# include <limits.h>
21030#else
21031# include <assert.h>
21032#endif
21033
21034#undef $ac_func
21035
21036/* Override any GCC internal prototype to avoid an error.
21037 Use char because int might match the return type of a GCC
21038 builtin and then its argument prototype would still apply. */
21039#ifdef __cplusplus
21040extern "C"
21041#endif
21042char $ac_func ();
21043/* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046#if defined __stub_$ac_func || defined __stub___$ac_func
21047choke me
21048#endif
21049
21050int
21051main ()
21052{
21053return $ac_func ();
21054 ;
21055 return 0;
21056}
21057_ACEOF
21058rm -f conftest.$ac_objext conftest$ac_exeext
21059if { (ac_try="$ac_link"
21060case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21063esac
21064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_link") 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21073 { (case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21076esac
21077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078 (eval "$ac_try") 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; } &&
21082 { ac_try='test -s conftest$ac_exeext'
21083 { (case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21086esac
21087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_try") 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; }; then
21092 eval "$as_ac_var=yes"
21093else
21094 echo "$as_me: failed program was:" >&5
21095sed 's/^/| /' conftest.$ac_ext >&5
21096
21097 eval "$as_ac_var=no"
21098fi
21099
21100rm -f core conftest.err conftest.$ac_objext \
21101 conftest$ac_exeext conftest.$ac_ext
21102fi
21103ac_res=`eval echo '${'$as_ac_var'}'`
21104 { echo "$as_me:$LINENO: result: $ac_res" >&5
21105echo "${ECHO_T}$ac_res" >&6; }
21106if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021107 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021109_ACEOF
21110
21111fi
21112done
21113
21114
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021115SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021116
21117
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021118SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21119
21120
Jeff Cohen28783c32007-01-12 18:22:38 +000021121if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021122 prefix="/usr/local"
21123fi
Reid Spencere9de0912004-08-20 09:03:57 +000021124eval LLVM_PREFIX="${prefix}";
21125eval LLVM_BINDIR="${prefix}/bin";
21126eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021127eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021128eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021129eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021130eval LLVM_INCLUDEDIR="${prefix}/include";
21131eval LLVM_INFODIR="${prefix}/info";
21132eval LLVM_MANDIR="${prefix}/man";
21133LLVM_CONFIGTIME=`date`
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021145if test "${ENABLE_TIMESTAMPS}" = "0"; then
21146 LLVM_CONFIGTIME="(timestamp not enabled)"
21147fi
21148
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021149
Reid Spencere9de0912004-08-20 09:03:57 +000021150cat >>confdefs.h <<_ACEOF
21151#define LLVM_PREFIX "$LLVM_PREFIX"
21152_ACEOF
21153
21154
21155cat >>confdefs.h <<_ACEOF
21156#define LLVM_BINDIR "$LLVM_BINDIR"
21157_ACEOF
21158
21159
21160cat >>confdefs.h <<_ACEOF
21161#define LLVM_LIBDIR "$LLVM_LIBDIR"
21162_ACEOF
21163
21164
21165cat >>confdefs.h <<_ACEOF
21166#define LLVM_DATADIR "$LLVM_DATADIR"
21167_ACEOF
21168
21169
21170cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021171#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021172_ACEOF
21173
21174
21175cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021176#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021177_ACEOF
21178
21179
21180cat >>confdefs.h <<_ACEOF
21181#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21182_ACEOF
21183
21184
21185cat >>confdefs.h <<_ACEOF
21186#define LLVM_INFODIR "$LLVM_INFODIR"
21187_ACEOF
21188
21189
21190cat >>confdefs.h <<_ACEOF
21191#define LLVM_MANDIR "$LLVM_MANDIR"
21192_ACEOF
21193
21194
21195cat >>confdefs.h <<_ACEOF
21196#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21197_ACEOF
21198
21199
Eric Christopher790e11c2007-12-01 00:34:39 +000021200cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021201#define LLVM_HOSTTRIPLE "$host"
21202_ACEOF
21203
21204
21205cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021206#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021207_ACEOF
21208
21209
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021210if test "$BINDINGS_TO_BUILD" = auto ; then
21211 BINDINGS_TO_BUILD=""
21212 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21213 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21214 fi
21215fi
21216BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21217
21218
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021219ALL_BINDINGS=ocaml
21220
21221
Gordon Henriksenf0915682007-10-02 16:42:22 +000021222binding_prereqs_failed=0
21223for a_binding in $BINDINGS_TO_BUILD ; do
21224 case "$a_binding" in
21225 ocaml)
21226 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021227 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21228echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000021229 binding_prereqs_failed=1
21230 fi
21231 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021232 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21233echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000021234 binding_prereqs_failed=1
21235 fi
21236 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021237 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21238echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenf0915682007-10-02 16:42:22 +000021239 fi
21240 if test "x$with_ocaml_libdir" != xauto ; then
21241 OCAML_LIBDIR=$with_ocaml_libdir
21242
21243 else
21244 ocaml_stdlib="`"$OCAMLC" -where`"
21245 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21246 then
21247 # ocaml stdlib is beneath our prefix; use stdlib
21248 OCAML_LIBDIR=$ocaml_stdlib
21249
21250 else
21251 # ocaml stdlib is outside our prefix; use libdir/ocaml
21252 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21253
21254 fi
21255 fi
21256 ;;
21257 esac
21258done
21259if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021260 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21261echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21262 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021263fi
21264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21266echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21267if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021269else
21270 ac_ext=cpp
21271ac_cpp='$CXXCPP $CPPFLAGS'
21272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21275
21276 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021277 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278 cat >conftest.$ac_ext <<_ACEOF
21279/* confdefs.h. */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021283/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021284template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021285int
21286main ()
21287{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021288X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021289 ;
21290 return 0;
21291}
21292_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021293rm -f conftest.$ac_objext
21294if { (ac_try="$ac_compile"
21295case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21298esac
21299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_compile") 2>conftest.er1
21301 ac_status=$?
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
21307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21308 { (case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21311esac
21312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_try") 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
21318 { (case "(($ac_try" in
21319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320 *) ac_try_echo=$ac_try;;
21321esac
21322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21323 (eval "$ac_try") 2>&5
21324 ac_status=$?
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021327 llvm_cv_cxx_visibility_inlines_hidden=yes
21328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021329 echo "$as_me: failed program was:" >&5
21330sed 's/^/| /' conftest.$ac_ext >&5
21331
21332 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021334
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21336 CXXFLAGS="$oldcxxflags"
21337 ac_ext=c
21338ac_cpp='$CPP $CPPFLAGS'
21339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21341ac_compiler_gnu=$ac_cv_c_compiler_gnu
21342
21343
21344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021345{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21346echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021347if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21348 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21349
21350else
21351 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21352
21353fi
21354
Gordon Henriksenf0915682007-10-02 16:42:22 +000021355
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021356if test "$llvm_cv_link_use_r" = "yes" ; then
21357 RPATH="-Wl,-R"
21358else
21359 RPATH="-Wl,-rpath"
21360fi
21361
21362
21363if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21364 RDYNAMIC="-Wl,-export-dynamic"
21365else
21366 RDYNAMIC=""
21367fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021368
21369
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021370
Eric Christophera1cba682010-08-08 02:44:25 +000021371ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021372
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021373
21374
21375
21376
21377
Douglas Gregor1555a232009-06-16 20:12:29 +000021378ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21379
21380ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21381
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021382ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21383
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021384ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21385
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021386ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021387
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021388
Reid Spencera773bd52006-08-04 18:18:08 +000021389ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021390
Eric Christopher360fa9a2011-10-26 00:42:12 +000021391
Reid Spencerea949cf2006-08-16 00:45:38 +000021392ac_config_files="$ac_config_files llvm.spec"
21393
21394
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021395ac_config_files="$ac_config_files docs/doxygen.cfg"
21396
Eric Christopher63c09512012-02-02 00:16:55 +000021397
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021398if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021399 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021400fi
Eric Christopher63c09512012-02-02 00:16:55 +000021401if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021402 configh="include/clang/Config/config.h"
21403 doxy="docs/doxygen.cfg"
21404 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021405
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021406 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021407
21408fi
21409
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021410ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021411
Eric Christopher360fa9a2011-10-26 00:42:12 +000021412
Sebastian Popba48ceb2012-09-25 21:15:08 +000021413test "x$program_prefix" = "xNONE" && program_prefix=""
21414
21415
21416
Reid Spencera773bd52006-08-04 18:18:08 +000021417ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021418
Reid Spencera773bd52006-08-04 18:18:08 +000021419ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021420
21421
Reid Spencera773bd52006-08-04 18:18:08 +000021422ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021423
21424
Reid Spencera773bd52006-08-04 18:18:08 +000021425ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021426
21427
Reid Spencera773bd52006-08-04 18:18:08 +000021428ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021429
21430
Reid Spencer8b2e1412006-11-17 03:32:33 +000021431ac_config_commands="$ac_config_commands runtime/Makefile"
21432
21433
Reid Spencera773bd52006-08-04 18:18:08 +000021434ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021435
21436
Reid Spencera773bd52006-08-04 18:18:08 +000021437ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021438
21439
Bill Wendlingf24eb392009-01-04 23:12:30 +000021440ac_config_commands="$ac_config_commands unittests/Makefile"
21441
21442
Reid Spencera773bd52006-08-04 18:18:08 +000021443ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021444
21445
Reid Spencera773bd52006-08-04 18:18:08 +000021446ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021447
21448
Reid Spencera773bd52006-08-04 18:18:08 +000021449ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021450
21451
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021452ac_config_commands="$ac_config_commands bindings/Makefile"
21453
21454
21455ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21456
21457
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021458
John Criswell7a73b802003-06-30 21:59:07 +000021459cat >confcache <<\_ACEOF
21460# This file is a shell script that caches the results of configure
21461# tests run on this system so they can be shared between configure
21462# scripts and configure runs, see configure's option --config-cache.
21463# It is not useful on other systems. If it contains results you don't
21464# want to keep, you may remove or edit it.
21465#
21466# config.status only pays attention to the cache file if you give it
21467# the --recheck option to rerun configure.
21468#
John Criswell0c38eaf2003-09-10 15:17:25 +000021469# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021470# loading this file, other *unset* `ac_cv_foo' will be assigned the
21471# following values.
21472
21473_ACEOF
21474
21475# The following way of writing the cache mishandles newlines in values,
21476# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021477# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021478# Ultrix sh set writes to stderr and can't be redirected directly,
21479# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021480(
21481 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21482 eval ac_val=\$$ac_var
21483 case $ac_val in #(
21484 *${as_nl}*)
21485 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021486 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21487echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021488 esac
21489 case $ac_var in #(
21490 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021491 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021492 esac ;;
21493 esac
21494 done
21495
John Criswell7a73b802003-06-30 21:59:07 +000021496 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21498 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499 # `set' does not quote correctly, so add quotes (double-quote
21500 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021501 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021502 "s/'/'\\\\''/g;
21503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021504 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021505 *)
21506 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021508 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021509 esac |
21510 sort
21511) |
John Criswell7a73b802003-06-30 21:59:07 +000021512 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021513 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021514 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021515 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21517 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21519 :end' >>confcache
21520if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21521 if test -w "$cache_file"; then
21522 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21524echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021525 cat confcache >$cache_file
21526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21528echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021529 fi
21530fi
21531rm -f confcache
21532
21533test "x$prefix" = xNONE && prefix=$ac_default_prefix
21534# Let make expand exec_prefix.
21535test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21536
John Criswell7a73b802003-06-30 21:59:07 +000021537DEFS=-DHAVE_CONFIG_H
21538
John Criswell0c38eaf2003-09-10 15:17:25 +000021539ac_libobjs=
21540ac_ltlibobjs=
21541for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21542 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021544 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21546 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21548 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021549done
21550LIBOBJS=$ac_libobjs
21551
21552LTLIBOBJS=$ac_ltlibobjs
21553
21554
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021555if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021556 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21557Usually this means the macro was only invoked conditionally." >&5
21558echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21559Usually this means the macro was only invoked conditionally." >&2;}
21560 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021561fi
21562if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021563 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21564Usually this means the macro was only invoked conditionally." >&5
21565echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21566Usually this means the macro was only invoked conditionally." >&2;}
21567 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021568fi
John Criswell7a73b802003-06-30 21:59:07 +000021569
21570: ${CONFIG_STATUS=./config.status}
21571ac_clean_files_save=$ac_clean_files
21572ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21574echo "$as_me: creating $CONFIG_STATUS" >&6;}
21575cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021576#! $SHELL
21577# Generated by $as_me.
21578# Run this file to recreate the current configuration.
21579# Compiler output produced by configure, useful for debugging
21580# configure, is in config.log if it exists.
21581
21582debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021583ac_cs_recheck=false
21584ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021585SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021586_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021588cat >>$CONFIG_STATUS <<\_ACEOF
21589## --------------------- ##
21590## M4sh Initialization. ##
21591## --------------------- ##
21592
21593# Be Bourne compatible
21594if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021595 emulate sh
21596 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021598 # is contrary to our usage. Disable this feature.
21599 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021600 setopt NO_GLOB_SUBST
21601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604BIN_SH=xpg4; export BIN_SH # for Tru64
21605DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021606
John Criswell7a73b802003-06-30 21:59:07 +000021607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021608# PATH needs CR
21609# Avoid depending upon Character Ranges.
21610as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21611as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21612as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21613as_cr_digits='0123456789'
21614as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021615
21616# The user is always right.
21617if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021618 echo "#! /bin/sh" >conf$$.sh
21619 echo "exit 0" >>conf$$.sh
21620 chmod +x conf$$.sh
21621 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21622 PATH_SEPARATOR=';'
21623 else
21624 PATH_SEPARATOR=:
21625 fi
21626 rm -f conf$$.sh
21627fi
21628
21629# Support unset when possible.
21630if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21631 as_unset=unset
21632else
21633 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021634fi
John Criswell7a73b802003-06-30 21:59:07 +000021635
Reid Spencera773bd52006-08-04 18:18:08 +000021636
21637# IFS
21638# We need space, tab and new line, in precisely that order. Quoting is
21639# there to prevent editors from complaining about space-tab.
21640# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21641# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642as_nl='
21643'
Reid Spencera773bd52006-08-04 18:18:08 +000021644IFS=" "" $as_nl"
21645
21646# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021648 *[\\/]* ) as_myself=$0 ;;
21649 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021650for as_dir in $PATH
21651do
21652 IFS=$as_save_IFS
21653 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021654 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21655done
Reid Spencera773bd52006-08-04 18:18:08 +000021656IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021657
Reid Spencera773bd52006-08-04 18:18:08 +000021658 ;;
21659esac
21660# We did not find ourselves, most probably we were run as `sh COMMAND'
21661# in which case we are not to be found in the path.
21662if test "x$as_myself" = x; then
21663 as_myself=$0
21664fi
21665if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21667 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021668fi
21669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021670# Work around bugs in pre-3.0 UWIN ksh.
21671for as_var in ENV MAIL MAILPATH
21672do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021673done
21674PS1='$ '
21675PS2='> '
21676PS4='+ '
21677
21678# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021679for as_var in \
21680 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21681 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21682 LC_TELEPHONE LC_TIME
21683do
21684 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21685 eval $as_var=C; export $as_var
21686 else
21687 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021688 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021689done
Torok Edwin871384f2010-01-26 08:50:50 +000021690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021691# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021692if expr a : '\(a\)' >/dev/null 2>&1 &&
21693 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21694 as_expr=expr
21695else
21696 as_expr=false
21697fi
21698
21699if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21700 as_basename=basename
21701else
21702 as_basename=false
21703fi
21704
21705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021706# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021707as_me=`$as_basename -- "$0" ||
21708$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21709 X"$0" : 'X\(//\)$' \| \
21710 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021711echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021712 sed '/^.*\/\([^/][^/]*\)\/*$/{
21713 s//\1/
21714 q
21715 }
21716 /^X\/\(\/\/\)$/{
21717 s//\1/
21718 q
21719 }
21720 /^X\/\(\/\).*/{
21721 s//\1/
21722 q
21723 }
21724 s/.*/./; q'`
21725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021726# CDPATH.
21727$as_unset CDPATH
21728
21729
21730
21731 as_lineno_1=$LINENO
21732 as_lineno_2=$LINENO
21733 test "x$as_lineno_1" != "x$as_lineno_2" &&
21734 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21735
21736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21737 # uniformly replaced by the line number. The first 'sed' inserts a
21738 # line-number line after each line using $LINENO; the second 'sed'
21739 # does the real work. The second script uses 'N' to pair each
21740 # line-number line with the line containing $LINENO, and appends
21741 # trailing '-' during substitution so that $LINENO is not a special
21742 # case at line end.
21743 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21744 # scripts with optimization help from Paolo Bonzini. Blame Lee
21745 # E. McMahon (1931-1989) for sed's syntax. :-)
21746 sed -n '
21747 p
21748 /[$]LINENO/=
21749 ' <$as_myself |
21750 sed '
21751 s/[$]LINENO.*/&-/
21752 t lineno
21753 b
21754 :lineno
21755 N
21756 :loop
21757 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21758 t loop
21759 s/-\n.*//
21760 ' >$as_me.lineno &&
21761 chmod +x "$as_me.lineno" ||
21762 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21763 { (exit 1); exit 1; }; }
21764
21765 # Don't try to exec as it changes $[0], causing all sort of problems
21766 # (the dirname of $[0] is not the place where we might find the
21767 # original and so on. Autoconf is especially sensitive to this).
21768 . "./$as_me.lineno"
21769 # Exit status is that of the last command.
21770 exit
21771}
21772
21773
21774if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21775 as_dirname=dirname
21776else
21777 as_dirname=false
21778fi
Reid Spencera773bd52006-08-04 18:18:08 +000021779
21780ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021781case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021782-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021783 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021784 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021786 esac;;
21787*)
21788 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021789esac
21790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791if expr a : '\(a\)' >/dev/null 2>&1 &&
21792 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21793 as_expr=expr
21794else
21795 as_expr=false
21796fi
21797
John Criswell7a73b802003-06-30 21:59:07 +000021798rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021799if test -d conf$$.dir; then
21800 rm -f conf$$.dir/conf$$.file
21801else
21802 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021804fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021805echo >conf$$.file
21806if ln -s conf$$.file conf$$ 2>/dev/null; then
21807 as_ln_s='ln -s'
21808 # ... but there are two gotchas:
21809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21811 # In both cases, we have to default to `cp -p'.
21812 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021813 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021814elif ln conf$$.file conf$$ 2>/dev/null; then
21815 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021816else
21817 as_ln_s='cp -p'
21818fi
Reid Spencera773bd52006-08-04 18:18:08 +000021819rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21820rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021821
John Criswell0c38eaf2003-09-10 15:17:25 +000021822if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021824else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021825 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021826 as_mkdir_p=false
21827fi
21828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21830# systems may use methods other than mode bits to determine executability.
21831cat >conf$$.file <<_ASEOF
21832#! /bin/sh
21833exit 0
21834_ASEOF
21835chmod +x conf$$.file
21836if test -x conf$$.file >/dev/null 2>&1; then
21837 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021839 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021842
21843# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021844as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021845
21846# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021847as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021848
21849
John Criswell7a73b802003-06-30 21:59:07 +000021850exec 6>&1
21851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021853# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021854# values after options handling.
21855ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021856This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021857generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021858
21859 CONFIG_FILES = $CONFIG_FILES
21860 CONFIG_HEADERS = $CONFIG_HEADERS
21861 CONFIG_LINKS = $CONFIG_LINKS
21862 CONFIG_COMMANDS = $CONFIG_COMMANDS
21863 $ $0 $@
21864
Reid Spencera773bd52006-08-04 18:18:08 +000021865on `(hostname || uname -n) 2>/dev/null | sed 1q`
21866"
21867
John Criswell7a73b802003-06-30 21:59:07 +000021868_ACEOF
21869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021871# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021872config_files="$ac_config_files"
21873config_headers="$ac_config_headers"
21874config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021875
Reid Spencera773bd52006-08-04 18:18:08 +000021876_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021879ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021880\`$as_me' instantiates files from templates according to the
21881current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021884
21885 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886 -V, --version print version number, then exit
21887 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021888 -d, --debug don't remove temporary files
21889 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021890 --file=FILE[:TEMPLATE]
21891 instantiate the configuration file FILE
21892 --header=FILE[:TEMPLATE]
21893 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021894
21895Configuration files:
21896$config_files
21897
21898Configuration headers:
21899$config_headers
21900
John Criswellc764fbc2003-09-06 15:17:13 +000021901Configuration commands:
21902$config_commands
21903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021905
Reid Spencera773bd52006-08-04 18:18:08 +000021906_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021908ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021909LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910configured by $0, generated by GNU Autoconf 2.60,
21911 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021913Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021914This config.status script is free software; the Free Software Foundation
21915gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021916
21917ac_pwd='$ac_pwd'
21918srcdir='$srcdir'
21919INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021920_ACEOF
21921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922cat >>$CONFIG_STATUS <<\_ACEOF
21923# If no file are specified by the user, then we need to provide default
21924# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021925ac_need_defaults=:
21926while test $# != 0
21927do
21928 case $1 in
21929 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021930 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21931 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021932 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021933 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021934 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021935 ac_option=$1
21936 ac_optarg=$2
21937 ac_shift=shift
21938 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021939 esac
21940
John Criswell0c38eaf2003-09-10 15:17:25 +000021941 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021942 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021943 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21944 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021945 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021946 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021947 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021948 debug=: ;;
21949 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021950 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021952 ac_need_defaults=false;;
21953 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021954 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021955 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021956 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021957 --he | --h)
21958 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021959 { echo "$as_me: error: ambiguous option: $1
21960Try \`$0 --help' for more information." >&2
21961 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021962 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21965 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21966 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021967
21968 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021969 -*) { echo "$as_me: error: unrecognized option: $1
21970Try \`$0 --help' for more information." >&2
21971 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021973 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021974 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021975
21976 esac
21977 shift
21978done
21979
John Criswell0c38eaf2003-09-10 15:17:25 +000021980ac_configure_extra_args=
21981
21982if $ac_cs_silent; then
21983 exec 6>/dev/null
21984 ac_configure_extra_args="$ac_configure_extra_args --silent"
21985fi
21986
21987_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021989if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021990 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21991 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021992 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021993 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021994fi
21995
John Criswell7a73b802003-06-30 21:59:07 +000021996_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021997cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021998exec 5>>config.log
21999{
22000 echo
22001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22002## Running $as_me. ##
22003_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022004 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000022005} >&5
John Criswell7a73b802003-06-30 21:59:07 +000022006
Reid Spencera773bd52006-08-04 18:18:08 +000022007_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022008cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000022009#
Reid Spencera773bd52006-08-04 18:18:08 +000022010# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000022011#
Reid Spencerc0682832005-02-24 19:05:19 +000022012llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000022013
22014_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022016cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022017
22018# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000022019for ac_config_target in $ac_config_targets
22020do
Reid Spencera773bd52006-08-04 18:18:08 +000022021 case $ac_config_target in
22022 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000022023 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000022024 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22025 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022026 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022027 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022028 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022029 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000022030 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022031 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000022032 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22033 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000022034 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022035 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22036 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22037 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22038 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22039 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022040 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022041 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22042 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022043 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022044 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22045 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22046 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022047 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22048 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022050 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22051echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22052 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022053 esac
22054done
22055
Reid Spencera773bd52006-08-04 18:18:08 +000022056
John Criswell7a73b802003-06-30 21:59:07 +000022057# If the user did not use the arguments to specify the items to instantiate,
22058# then the envvar interface is used. Set only those that are not.
22059# We use the long form for the default assignment because of an extremely
22060# bizarre bug on SunOS 4.1.3.
22061if $ac_need_defaults; then
22062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022065fi
22066
John Criswell0c38eaf2003-09-10 15:17:25 +000022067# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022068# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022069# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022070# Hook for its removal unless debugging.
22071# Note that there is a small window in which the directory will not be cleaned:
22072# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022073$debug ||
22074{
Reid Spencera773bd52006-08-04 18:18:08 +000022075 tmp=
22076 trap 'exit_status=$?
22077 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22078' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022079 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022080}
John Criswell7a73b802003-06-30 21:59:07 +000022081# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022082
John Criswell7a73b802003-06-30 21:59:07 +000022083{
Reid Spencera773bd52006-08-04 18:18:08 +000022084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022085 test -n "$tmp" && test -d "$tmp"
22086} ||
22087{
Reid Spencera773bd52006-08-04 18:18:08 +000022088 tmp=./conf$$-$RANDOM
22089 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022090} ||
22091{
22092 echo "$me: cannot create a temporary directory in ." >&2
22093 { (exit 1); exit 1; }
22094}
John Criswell7a73b802003-06-30 21:59:07 +000022095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022096#
22097# Set up the sed scripts for CONFIG_FILES section.
22098#
22099
22100# No need to generate the scripts if there are no CONFIG_FILES.
22101# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022102if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022103
22104_ACEOF
22105
Reid Spencera773bd52006-08-04 18:18:08 +000022106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022107
Reid Spencera773bd52006-08-04 18:18:08 +000022108ac_delim='%!_!# '
22109for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022110 cat >conf$$subs.sed <<_ACEOF
22111SHELL!$SHELL$ac_delim
22112PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22113PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22114PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22115PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22116PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22117PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22118exec_prefix!$exec_prefix$ac_delim
22119prefix!$prefix$ac_delim
22120program_transform_name!$program_transform_name$ac_delim
22121bindir!$bindir$ac_delim
22122sbindir!$sbindir$ac_delim
22123libexecdir!$libexecdir$ac_delim
22124datarootdir!$datarootdir$ac_delim
22125datadir!$datadir$ac_delim
22126sysconfdir!$sysconfdir$ac_delim
22127sharedstatedir!$sharedstatedir$ac_delim
22128localstatedir!$localstatedir$ac_delim
22129includedir!$includedir$ac_delim
22130oldincludedir!$oldincludedir$ac_delim
22131docdir!$docdir$ac_delim
22132infodir!$infodir$ac_delim
22133htmldir!$htmldir$ac_delim
22134dvidir!$dvidir$ac_delim
22135pdfdir!$pdfdir$ac_delim
22136psdir!$psdir$ac_delim
22137libdir!$libdir$ac_delim
22138localedir!$localedir$ac_delim
22139mandir!$mandir$ac_delim
22140DEFS!$DEFS$ac_delim
22141ECHO_C!$ECHO_C$ac_delim
22142ECHO_N!$ECHO_N$ac_delim
22143ECHO_T!$ECHO_T$ac_delim
22144LIBS!$LIBS$ac_delim
22145build_alias!$build_alias$ac_delim
22146host_alias!$host_alias$ac_delim
22147target_alias!$target_alias$ac_delim
22148LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022149CC!$CC$ac_delim
22150CFLAGS!$CFLAGS$ac_delim
22151LDFLAGS!$LDFLAGS$ac_delim
22152CPPFLAGS!$CPPFLAGS$ac_delim
22153ac_ct_CC!$ac_ct_CC$ac_delim
22154EXEEXT!$EXEEXT$ac_delim
22155OBJEXT!$OBJEXT$ac_delim
22156CXX!$CXX$ac_delim
22157CXXFLAGS!$CXXFLAGS$ac_delim
22158ac_ct_CXX!$ac_ct_CXX$ac_delim
22159CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022160subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022161ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22162LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022163build!$build$ac_delim
22164build_cpu!$build_cpu$ac_delim
22165build_vendor!$build_vendor$ac_delim
22166build_os!$build_os$ac_delim
22167host!$host$ac_delim
22168host_cpu!$host_cpu$ac_delim
22169host_vendor!$host_vendor$ac_delim
22170host_os!$host_os$ac_delim
22171target!$target$ac_delim
22172target_cpu!$target_cpu$ac_delim
22173target_vendor!$target_vendor$ac_delim
22174target_os!$target_os$ac_delim
22175OS!$OS$ac_delim
22176HOST_OS!$HOST_OS$ac_delim
22177TARGET_OS!$TARGET_OS$ac_delim
22178LINKALL!$LINKALL$ac_delim
22179NOLINKALL!$NOLINKALL$ac_delim
22180LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22181LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22182ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022183HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022184ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022185GREP!$GREP$ac_delim
22186EGREP!$EGREP$ac_delim
22187LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22188BUILD_CC!$BUILD_CC$ac_delim
22189BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22190BUILD_CXX!$BUILD_CXX$ac_delim
22191CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022192ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022193ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022194ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22195ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22196DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022197ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22199EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22200DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22201DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022202KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022203JIT!$JIT$ac_delim
22204TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022205ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022206ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Eric Christopher164a3082012-08-28 01:17:46 +000022207LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022208_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022210 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022211 break
22212 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022213 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22214echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22215 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022216 else
22217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022218 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022219done
22220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022221ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22222if test -n "$ac_eof"; then
22223 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22224 ac_eof=`expr $ac_eof + 1`
22225fi
22226
22227cat >>$CONFIG_STATUS <<_ACEOF
22228cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22229/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022230_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022231sed '
22232s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22233s/^/s,@/; s/!/@,|#_!!_#|/
22234:n
22235t n
22236s/'"$ac_delim"'$/,g/; t
22237s/$/\\/; p
22238N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22239' >>$CONFIG_STATUS <conf$$subs.sed
22240rm -f conf$$subs.sed
22241cat >>$CONFIG_STATUS <<_ACEOF
22242CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022243_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022244
22245
22246ac_delim='%!_!# '
22247for ac_last_try in false false false false false :; do
22248 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022249ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022250ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022251ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022252ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022253ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022254TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22255LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22256LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022257LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022258LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022259OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022260EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022261EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022262CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022263BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022264INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022265NM!$NM$ac_delim
22266ifGNUmake!$ifGNUmake$ac_delim
22267LN_S!$LN_S$ac_delim
22268CMP!$CMP$ac_delim
22269CP!$CP$ac_delim
22270DATE!$DATE$ac_delim
22271FIND!$FIND$ac_delim
22272MKDIR!$MKDIR$ac_delim
22273MV!$MV$ac_delim
22274RANLIB!$RANLIB$ac_delim
22275AR!$AR$ac_delim
22276RM!$RM$ac_delim
22277SED!$SED$ac_delim
22278TAR!$TAR$ac_delim
22279BINPWD!$BINPWD$ac_delim
22280GRAPHVIZ!$GRAPHVIZ$ac_delim
22281DOT!$DOT$ac_delim
22282FDP!$FDP$ac_delim
22283NEATO!$NEATO$ac_delim
22284TWOPI!$TWOPI$ac_delim
22285CIRCO!$CIRCO$ac_delim
22286GV!$GV$ac_delim
22287DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022288XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022289INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22290INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22291INSTALL_DATA!$INSTALL_DATA$ac_delim
22292BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022293CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022294DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022295GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022296GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022297PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298ZIP!$ZIP$ac_delim
22299OCAMLC!$OCAMLC$ac_delim
22300OCAMLOPT!$OCAMLOPT$ac_delim
22301OCAMLDEP!$OCAMLDEP$ac_delim
22302OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022303GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022304HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022305INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22306INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22307CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22308CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22309LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022310NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22311NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022312COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022313USE_UDIS86!$USE_UDIS86$ac_delim
22314USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022315USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22316INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22317INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022318XML2CONFIG!$XML2CONFIG$ac_delim
22319LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22320LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22322HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22323MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022324SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022325SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022326LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22327LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22328LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22329LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22330LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22331LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22332LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22333LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22334LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22335LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22336BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22337ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022338OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22339ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22340RPATH!$RPATH$ac_delim
22341RDYNAMIC!$RDYNAMIC$ac_delim
Sebastian Popba48ceb2012-09-25 21:15:08 +000022342program_prefix!$program_prefix$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022343LIBOBJS!$LIBOBJS$ac_delim
22344LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022345_ACEOF
22346
Sebastian Popba48ceb2012-09-25 21:15:08 +000022347 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022348 break
22349 elif $ac_last_try; then
22350 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22351echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22352 { (exit 1); exit 1; }; }
22353 else
22354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22355 fi
22356done
22357
22358ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22359if test -n "$ac_eof"; then
22360 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22361 ac_eof=`expr $ac_eof + 1`
22362fi
22363
22364cat >>$CONFIG_STATUS <<_ACEOF
22365cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Sebastian Popba48ceb2012-09-25 21:15:08 +000022366/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Tobias Grossera84b5672010-11-10 16:31:34 +000022367_ACEOF
22368sed '
22369s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22370s/^/s,@/; s/!/@,|#_!!_#|/
22371:n
22372t n
22373s/'"$ac_delim"'$/,g/; t
22374s/$/\\/; p
22375N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22376' >>$CONFIG_STATUS <conf$$subs.sed
22377rm -f conf$$subs.sed
22378cat >>$CONFIG_STATUS <<_ACEOF
Tobias Grossera84b5672010-11-10 16:31:34 +000022379CEOF$ac_eof
22380_ACEOF
22381
22382
Reid Spencera773bd52006-08-04 18:18:08 +000022383# VPATH may cause trouble with some makes, so we remove $(srcdir),
22384# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22385# trailing colons and then remove the whole line if VPATH becomes empty
22386# (actually we leave an empty line to preserve line numbers).
22387if test "x$srcdir" = x.; then
22388 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22389s/:*\$(srcdir):*/:/
22390s/:*\${srcdir}:*/:/
22391s/:*@srcdir@:*/:/
22392s/^\([^=]*=[ ]*\):*/\1/
22393s/:*$//
22394s/^[^=]*=[ ]*$//
22395}'
22396fi
22397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022398cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022399fi # test -n "$CONFIG_FILES"
22400
Reid Spencera773bd52006-08-04 18:18:08 +000022401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022402for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022403do
22404 case $ac_tag in
22405 :[FHLC]) ac_mode=$ac_tag; continue;;
22406 esac
22407 case $ac_mode$ac_tag in
22408 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022409 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22410echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22411 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022412 :[FH]-) ac_tag=-:-;;
22413 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22414 esac
22415 ac_save_IFS=$IFS
22416 IFS=:
22417 set x $ac_tag
22418 IFS=$ac_save_IFS
22419 shift
22420 ac_file=$1
22421 shift
22422
22423 case $ac_mode in
22424 :L) ac_source=$1;;
22425 :[FH])
22426 ac_file_inputs=
22427 for ac_f
22428 do
22429 case $ac_f in
22430 -) ac_f="$tmp/stdin";;
22431 *) # Look for the file first in the build tree, then in the source tree
22432 # (if the path is not absolute). The absolute path cannot be DOS-style,
22433 # because $ac_f cannot contain `:'.
22434 test -f "$ac_f" ||
22435 case $ac_f in
22436 [\\/$]*) false;;
22437 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22438 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022439 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22440echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22441 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022442 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022443 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022444 done
22445
22446 # Let's still pretend it is `configure' which instantiates (i.e., don't
22447 # use $as_me), people would be surprised to read:
22448 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022449 configure_input="Generated from "`IFS=:
22450 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022451 if test x"$ac_file" != x-; then
22452 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022453 { echo "$as_me:$LINENO: creating $ac_file" >&5
22454echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022455 fi
22456
22457 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022458 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022459 esac
22460 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022461 esac
22462
Reid Spencera773bd52006-08-04 18:18:08 +000022463 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022464$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022465 X"$ac_file" : 'X\(//\)[^/]' \| \
22466 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022468echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22470 s//\1/
22471 q
22472 }
22473 /^X\(\/\/\)[^/].*/{
22474 s//\1/
22475 q
22476 }
22477 /^X\(\/\/\)$/{
22478 s//\1/
22479 q
22480 }
22481 /^X\(\/\).*/{
22482 s//\1/
22483 q
22484 }
22485 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022486 { as_dir="$ac_dir"
22487 case $as_dir in #(
22488 -*) as_dir=./$as_dir;;
22489 esac
22490 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22491 as_dirs=
22492 while :; do
22493 case $as_dir in #(
22494 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22495 *) as_qdir=$as_dir;;
22496 esac
22497 as_dirs="'$as_qdir' $as_dirs"
22498 as_dir=`$as_dirname -- "$as_dir" ||
22499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22500 X"$as_dir" : 'X\(//\)[^/]' \| \
22501 X"$as_dir" : 'X\(//\)$' \| \
22502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22503echo X"$as_dir" |
22504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22505 s//\1/
22506 q
22507 }
22508 /^X\(\/\/\)[^/].*/{
22509 s//\1/
22510 q
22511 }
22512 /^X\(\/\/\)$/{
22513 s//\1/
22514 q
22515 }
22516 /^X\(\/\).*/{
22517 s//\1/
22518 q
22519 }
22520 s/.*/./; q'`
22521 test -d "$as_dir" && break
22522 done
22523 test -z "$as_dirs" || eval "mkdir $as_dirs"
22524 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22525echo "$as_me: error: cannot create directory $as_dir" >&2;}
22526 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022527 ac_builddir=.
22528
Reid Spencera773bd52006-08-04 18:18:08 +000022529case "$ac_dir" in
22530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22531*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022533 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022535 case $ac_top_builddir_sub in
22536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22538 esac ;;
22539esac
22540ac_abs_top_builddir=$ac_pwd
22541ac_abs_builddir=$ac_pwd$ac_dir_suffix
22542# for backward compatibility:
22543ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022544
22545case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022546 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022547 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022548 ac_top_srcdir=$ac_top_builddir_sub
22549 ac_abs_top_srcdir=$ac_pwd ;;
22550 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022551 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022552 ac_top_srcdir=$srcdir
22553 ac_abs_top_srcdir=$srcdir ;;
22554 *) # Relative name.
22555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22556 ac_top_srcdir=$ac_top_build_prefix$srcdir
22557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022558esac
Reid Spencera773bd52006-08-04 18:18:08 +000022559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022560
John Criswell7a73b802003-06-30 21:59:07 +000022561
Reid Spencera773bd52006-08-04 18:18:08 +000022562 case $ac_mode in
22563 :F)
22564 #
22565 # CONFIG_FILE
22566 #
John Criswell7a73b802003-06-30 21:59:07 +000022567
22568 case $INSTALL in
22569 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022570 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022571 esac
John Criswell7a73b802003-06-30 21:59:07 +000022572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022574cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022575# If the template does not know about datarootdir, expand it.
22576# FIXME: This hack should be removed a few years after 2.60.
22577ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022578
22579case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022580 p
22581 q
22582}
22583/@datadir@/p
22584/@docdir@/p
22585/@infodir@/p
22586/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022587/@mandir@/p
22588' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022589*datarootdir*) ac_datarootdir_seen=yes;;
22590*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022591 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22592echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022593_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022594cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022595 ac_datarootdir_hack='
22596 s&@datadir@&$datadir&g
22597 s&@docdir@&$docdir&g
22598 s&@infodir@&$infodir&g
22599 s&@localedir@&$localedir&g
22600 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022601 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022602esac
22603_ACEOF
22604
22605# Neutralize VPATH when `$srcdir' = `.'.
22606# Shell code in configure.ac might set extrasub.
22607# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022608cat >>$CONFIG_STATUS <<_ACEOF
22609 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022610$extrasub
22611_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022612cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022613:t
22614/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022615s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022616s&@top_builddir@&$ac_top_builddir_sub&;t t
22617s&@srcdir@&$ac_srcdir&;t t
22618s&@abs_srcdir@&$ac_abs_srcdir&;t t
22619s&@top_srcdir@&$ac_top_srcdir&;t t
22620s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22621s&@builddir@&$ac_builddir&;t t
22622s&@abs_builddir@&$ac_abs_builddir&;t t
22623s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22624s&@INSTALL@&$ac_INSTALL&;t t
22625$ac_datarootdir_hack
Sebastian Popba48ceb2012-09-25 21:15:08 +000022626" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022627
Reid Spencera773bd52006-08-04 18:18:08 +000022628test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22629 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22630 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022631 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022632which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022633echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022634which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022635
Reid Spencera773bd52006-08-04 18:18:08 +000022636 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022637 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022638 -) cat "$tmp/out"; rm -f "$tmp/out";;
22639 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22640 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022641 ;;
22642 :H)
22643 #
22644 # CONFIG_HEADER
22645 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022646_ACEOF
22647
22648# Transform confdefs.h into a sed script `conftest.defines', that
22649# substitutes the proper values into config.h.in to produce config.h.
22650rm -f conftest.defines conftest.tail
22651# First, append a space to every undef/define line, to ease matching.
22652echo 's/$/ /' >conftest.defines
22653# Then, protect against being on the right side of a sed subst, or in
22654# an unquoted here document, in config.status. If some macros were
22655# called several times there might be several #defines for the same
22656# symbol, which is useless. But do not sort them, since the last
22657# AC_DEFINE must be honored.
22658ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22659# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22660# NAME is the cpp macro being defined, VALUE is the value it is being given.
22661# PARAMS is the parameter list in the macro definition--in most cases, it's
22662# just an empty string.
22663ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22664ac_dB='\\)[ (].*,\\1define\\2'
22665ac_dC=' '
22666ac_dD=' ,'
22667
22668uniq confdefs.h |
22669 sed -n '
22670 t rset
22671 :rset
22672 s/^[ ]*#[ ]*define[ ][ ]*//
22673 t ok
22674 d
22675 :ok
22676 s/[\\&,]/\\&/g
22677 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22678 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22679 ' >>conftest.defines
22680
22681# Remove the space that was appended to ease matching.
22682# Then replace #undef with comments. This is necessary, for
22683# example, in the case of _POSIX_SOURCE, which is predefined and required
22684# on some systems where configure will not decide to define it.
22685# (The regexp can be short, since the line contains either #define or #undef.)
22686echo 's/ $//
22687s,^[ #]*u.*,/* & */,' >>conftest.defines
22688
22689# Break up conftest.defines:
22690ac_max_sed_lines=50
22691
22692# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22693# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22694# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22695# et cetera.
22696ac_in='$ac_file_inputs'
22697ac_out='"$tmp/out1"'
22698ac_nxt='"$tmp/out2"'
22699
22700while :
22701do
22702 # Write a here document:
22703 cat >>$CONFIG_STATUS <<_ACEOF
22704 # First, check the format of the line:
22705 cat >"\$tmp/defines.sed" <<\\CEOF
22706/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22707/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22708b
22709:def
22710_ACEOF
22711 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22712 echo 'CEOF
22713 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22714 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22715 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22716 grep . conftest.tail >/dev/null || break
22717 rm -f conftest.defines
22718 mv conftest.tail conftest.defines
22719done
22720rm -f conftest.defines conftest.tail
22721
22722echo "ac_result=$ac_in" >>$CONFIG_STATUS
22723cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022724 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022725 echo "/* $configure_input */" >"$tmp/config.h"
22726 cat "$ac_result" >>"$tmp/config.h"
22727 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22728 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22729echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022730 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022731 rm -f $ac_file
22732 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022733 fi
22734 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022735 echo "/* $configure_input */"
22736 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022737 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022738 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022739 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022741 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22742echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022743 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022744 esac
John Criswell7a73b802003-06-30 21:59:07 +000022745
Reid Spencera773bd52006-08-04 18:18:08 +000022746
22747 case $ac_file$ac_mode in
22748 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022749 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022750 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022751 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022752 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022753 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022754 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022755 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022756 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022757 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022758 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022759 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022760 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022761 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022762 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022763 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022764 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022765 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022766 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022767 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022768 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022769 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022770 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022771 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022772 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022773 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022774
22775 esac
22776done # for ac_tag
22777
John Criswell7a73b802003-06-30 21:59:07 +000022778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022779{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022780_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022781chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022782ac_clean_files=$ac_clean_files_save
22783
22784
22785# configure is writing to config.log, and then calls config.status.
22786# config.status does its own redirection, appending to config.log.
22787# Unfortunately, on DOS this fails, as config.log is still kept open
22788# by configure, so config.status won't be able to write to it; its
22789# output is simply discarded. So we exec the FD to /dev/null,
22790# effectively closing config.log, so it can be properly (re)opened and
22791# appended to by config.status. When coming back to configure, we
22792# need to make the FD available again.
22793if test "$no_create" != yes; then
22794 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022795 ac_config_status_args=
22796 test "$silent" = yes &&
22797 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022798 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022800 exec 5>>config.log
22801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22802 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022803 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022804fi
22805
John Criswell12399a12003-09-30 15:55:44 +000022806#
22807# CONFIG_SUBDIRS section.
22808#
22809if test "$no_recursion" != yes; then
22810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022811 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022812 ac_sub_configure_args=
22813 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022814 eval "set x $ac_configure_args"
22815 shift
22816 for ac_arg
22817 do
John Criswell12399a12003-09-30 15:55:44 +000022818 if test -n "$ac_prev"; then
22819 ac_prev=
22820 continue
22821 fi
22822 case $ac_arg in
22823 -cache-file | --cache-file | --cache-fil | --cache-fi \
22824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22825 ac_prev=cache_file ;;
22826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22828 | --c=*)
22829 ;;
22830 --config-cache | -C)
22831 ;;
22832 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22833 ac_prev=srcdir ;;
22834 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22835 ;;
22836 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22837 ac_prev=prefix ;;
22838 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22839 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022840 *)
22841 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022842 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022843 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022844 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022845 esac
22846 done
22847
22848 # Always prepend --prefix to ensure using the same prefix
22849 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022850 ac_arg="--prefix=$prefix"
22851 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022852 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022853 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022854 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022855
22856 ac_popdir=`pwd`
22857 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22858
22859 # Do not complain, so a configure script can configure whichever
22860 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022861 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022862
Reid Spencera773bd52006-08-04 18:18:08 +000022863 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022864 echo "$as_me:$LINENO: $ac_msg" >&5
22865 echo "$ac_msg" >&6
22866 { as_dir="$ac_dir"
22867 case $as_dir in #(
22868 -*) as_dir=./$as_dir;;
22869 esac
22870 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22871 as_dirs=
22872 while :; do
22873 case $as_dir in #(
22874 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22875 *) as_qdir=$as_dir;;
22876 esac
22877 as_dirs="'$as_qdir' $as_dirs"
22878 as_dir=`$as_dirname -- "$as_dir" ||
22879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22880 X"$as_dir" : 'X\(//\)[^/]' \| \
22881 X"$as_dir" : 'X\(//\)$' \| \
22882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22883echo X"$as_dir" |
22884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22885 s//\1/
22886 q
22887 }
22888 /^X\(\/\/\)[^/].*/{
22889 s//\1/
22890 q
22891 }
22892 /^X\(\/\/\)$/{
22893 s//\1/
22894 q
22895 }
22896 /^X\(\/\).*/{
22897 s//\1/
22898 q
22899 }
22900 s/.*/./; q'`
22901 test -d "$as_dir" && break
22902 done
22903 test -z "$as_dirs" || eval "mkdir $as_dirs"
22904 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22905echo "$as_me: error: cannot create directory $as_dir" >&2;}
22906 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022907 ac_builddir=.
22908
Reid Spencera773bd52006-08-04 18:18:08 +000022909case "$ac_dir" in
22910.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22911*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022913 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022914 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022915 case $ac_top_builddir_sub in
22916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22918 esac ;;
22919esac
22920ac_abs_top_builddir=$ac_pwd
22921ac_abs_builddir=$ac_pwd$ac_dir_suffix
22922# for backward compatibility:
22923ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022924
22925case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022926 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022927 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022928 ac_top_srcdir=$ac_top_builddir_sub
22929 ac_abs_top_srcdir=$ac_pwd ;;
22930 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022931 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022932 ac_top_srcdir=$srcdir
22933 ac_abs_top_srcdir=$srcdir ;;
22934 *) # Relative name.
22935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22936 ac_top_srcdir=$ac_top_build_prefix$srcdir
22937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022938esac
Reid Spencera773bd52006-08-04 18:18:08 +000022939ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022940
22941
Reid Spencera773bd52006-08-04 18:18:08 +000022942 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022943
22944 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022945 if test -f "$ac_srcdir/configure.gnu"; then
22946 ac_sub_configure=$ac_srcdir/configure.gnu
22947 elif test -f "$ac_srcdir/configure"; then
22948 ac_sub_configure=$ac_srcdir/configure
22949 elif test -f "$ac_srcdir/configure.in"; then
22950 # This should be Cygnus configure.
22951 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022952 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022953 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22954echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022955 ac_sub_configure=
22956 fi
22957
22958 # The recursion is here.
22959 if test -n "$ac_sub_configure"; then
22960 # Make the cache file name correct relative to the subdirectory.
22961 case $cache_file in
22962 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022963 *) # Relative name.
22964 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022965 esac
22966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022967 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22968echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell12399a12003-09-30 15:55:44 +000022969 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022970 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22971 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022972 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22973echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22974 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022975 fi
22976
Reid Spencera773bd52006-08-04 18:18:08 +000022977 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022978 done
22979fi
22980