blob: 4813af3d2732ec01c0772efca3ed8a2e3a628171 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramer537d9a72012-11-17 22:01:08 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
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 Kramer537d9a72012-11-17 22:01:08 +0000564PACKAGE_VERSION='3.3svn'
565PACKAGE_STRING='LLVM 3.3svn'
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
Eric Christopherf0b3b742012-11-19 19:31:02 +0000707ENABLE_BACKTRACES
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708TARGETS_TO_BUILD
709LLVM_ENUM_TARGETS
710LLVM_ENUM_ASM_PRINTERS
711LLVM_ENUM_ASM_PARSERS
712LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713OPTIMIZE_OPTION
714EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000715EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000716CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000717BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000718INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000719NM
720ifGNUmake
721LN_S
722CMP
723CP
724DATE
725FIND
726MKDIR
727MV
728RANLIB
729AR
730RM
731SED
732TAR
733BINPWD
734GRAPHVIZ
735DOT
736FDP
737NEATO
738TWOPI
739CIRCO
740GV
741DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000742XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000743INSTALL_PROGRAM
744INSTALL_SCRIPT
745INSTALL_DATA
746BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000747CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000749GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000750GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752ZIP
753OCAMLC
754OCAMLOPT
755OCAMLDEP
756OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000757GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000758HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000759INSTALL_LTDL_TRUE
760INSTALL_LTDL_FALSE
761CONVENIENCE_LTDL_TRUE
762CONVENIENCE_LTDL_FALSE
763LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000766COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767USE_UDIS86
768USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000769USE_INTEL_JITEVENTS
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000770XML2CONFIG
771LIBXML2_LIBS
772LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773HAVE_PTHREAD
774HUGE_VAL_SANITY
775MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000777SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVM_PREFIX
779LLVM_BINDIR
780LLVM_LIBDIR
781LLVM_DATADIR
782LLVM_DOCSDIR
783LLVM_ETCDIR
784LLVM_INCLUDEDIR
785LLVM_INFODIR
786LLVM_MANDIR
787LLVM_CONFIGTIME
788BINDINGS_TO_BUILD
789ALL_BINDINGS
790OCAML_LIBDIR
791ENABLE_VISIBILITY_INLINES_HIDDEN
792RPATH
793RDYNAMIC
Jordan Rose92080522012-10-01 18:40:32 +0000794program_prefix
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000795LIBOBJS
796LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000797ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000798 ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000805CXX
806CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000807CCC
808CPP'
John Criswell0157f502010-03-19 21:31:39 +0000809ac_subdirs_all='projects/llvm-gcc
810projects/test-suite
811projects/llvm-test
812projects/poolalloc
813projects/llvm-poolalloc
814projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000816projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/llvm-java
819projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000820projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000821projects/llvm-kernel
822tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000823
824# Initialize some variables set by options.
825ac_init_help=
826ac_init_version=false
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000849# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000858includedir='${prefix}/include'
859oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000869
870ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000871ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000872for ac_option
873do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000876 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000877 ac_prev=
878 continue
879 fi
880
Reid Spencera773bd52006-08-04 18:18:08 +0000881 case $ac_option in
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *) ac_optarg=yes ;;
884 esac
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
Reid Spencera773bd52006-08-04 18:18:08 +0000888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000913 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000915 datadir=$ac_optarg ;;
916
Reid Spencera773bd52006-08-04 18:18:08 +0000917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
John Criswell7a73b802003-06-30 21:59:07 +0000924 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000926 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000942
943 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000945 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000946 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
947 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948 { (exit 1); exit 1; }; }
949 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
950 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
971
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
976
Reid Spencera773bd52006-08-04 18:18:08 +0000977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
John Criswell7a73b802003-06-30 21:59:07 +0000983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1006
Reid Spencera773bd52006-08-04 18:18:08 +00001007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
John Criswell7a73b802003-06-30 21:59:07 +00001012 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001017 localstatedir=$ac_optarg ;;
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1080
Reid Spencera773bd52006-08-04 18:18:08 +00001081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
John Criswell7a73b802003-06-30 21:59:07 +00001091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001142 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package| sed 's/-/_/g'`
1147 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001148
1149 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001151 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package | sed 's/-/_/g'`
1156 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001176 -*) { echo "$as_me: error: unrecognized option: $ac_option
1177Try \`$0 --help' for more information." >&2
1178 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001179 ;;
1180
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001187 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001194 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 ;;
1197
1198 esac
1199done
1200
1201if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203 { echo "$as_me: error: missing argument to $ac_option" >&2
1204 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001205fi
1206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001207# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001212do
Reid Spencera773bd52006-08-04 18:18:08 +00001213 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001214 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001217 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001218 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001233 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
Reid Spencera773bd52006-08-04 18:18:08 +00001246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: Working directory cannot be determined" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001252 { echo "$as_me: error: pwd does not report name of working directory" >&2
1253 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001254
1255
John Criswell7a73b802003-06-30 21:59:07 +00001256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001259 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 ac_confdir=`$as_dirname -- "$0" ||
1261$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$0" : 'X\(//\)[^/]' \| \
1263 X"$0" : 'X\(//\)$' \| \
1264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001284 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001285 srcdir=..
1286 fi
1287else
1288 ac_srcdir_defaulted=no
1289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001294fi
Reid Spencera773bd52006-08-04 18:18:08 +00001295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001297 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001299 pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
John Criswell7a73b802003-06-30 21:59:07 +00001316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001324\`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
John Criswell7a73b802003-06-30 21:59:07 +00001344Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001348 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001372 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001377_ACEOF
1378
1379 cat <<\_ACEOF
1380
1381System types:
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 --target=TARGET configure for building compilers for TARGET [HOST]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389 case $ac_init_help in
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001390 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001391 esac
1392 cat <<\_ACEOF
1393
1394Optional Features:
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001397 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001398 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001399 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 --enable-optimized Compile with optimizations enabled (default is NO)
1401 --enable-profiling Compile with profiling enabled (default is NO)
1402 --enable-assertions Compile with assertion checks enabled (default is
1403 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001404 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001405 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 Compile with expensive debug checks enabled (default
1407 is NO)
1408 --enable-debug-runtime Build runtime libs with debug symbols (default is
1409 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001410 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1411 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001412 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001413 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001414 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001415 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001416 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001417 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001418 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001419 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001420 --enable-shared Build a shared library and link tools against it
1421 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001422 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001423 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001424 --enable-timestamps Enable embedding timestamp information in build
1425 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001426 --enable-backtraces Enable embedding backtraces on crash (default is
1427 YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001428 --enable-targets Build specific host targets: all or
1429 target1,target2,... Valid targets are: host, x86,
Eric Christopher06b42342012-11-14 22:09:20 +00001430 x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1431 msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001432 --enable-experimental-targets
1433 Build experimental host targets: disable or
1434 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001435 --enable-bindings Build specific language bindings:
1436 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001437 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001438 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001439
1440Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001443 --with-optimize-option Select the compiler options to use for optimized
1444 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001445 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001446 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001447 --with-ocaml-libdir Specify install location for ocaml bindings (default
1448 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001449 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001450 --with-clang-resource-dir
1451 Relative directory from the Clang binary for
1452 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001453 --with-c-include-dirs Colon separated list of directories clang will
1454 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001455 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001456 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001457 --with-binutils-include Specify path to binutils/include/ containing
1458 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001459 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001460 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001461 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001462 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001463 --with-oprofile=<prefix>
1464 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor770b97b2012-09-28 17:35:20 +00001465 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1466
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001469 CC C compiler command
1470 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001473 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001474 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001477 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001478
1479Use these variables to override the choices made by `configure' or to help
1480it to find libraries and programs with nonstandard names/locations.
1481
Eric Christopherf33ab862011-12-21 00:52:44 +00001482Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001483_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001484ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001485fi
1486
1487if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001490 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001491 ac_builddir=.
1492
Reid Spencera773bd52006-08-04 18:18:08 +00001493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001497 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001498 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001508
1509case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001510 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001511 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001515 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001522esac
Reid Spencera773bd52006-08-04 18:18:08 +00001523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001524
Reid Spencera773bd52006-08-04 18:18:08 +00001525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001533 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001537 done
1538fi
1539
Reid Spencera773bd52006-08-04 18:18:08 +00001540test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001541if $ac_init_version; then
1542 cat <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001543LLVM configure 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001544generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001546Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001550
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001551Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001553 exit
John Criswell7a73b802003-06-30 21:59:07 +00001554fi
Reid Spencera773bd52006-08-04 18:18:08 +00001555cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001556This file contains any messages produced by compilers while
1557running configure, to aid debugging if configure makes a mistake.
1558
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001559It was created by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001560generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001561
1562 $ $0 $@
1563
1564_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001565exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001566{
1567cat <<_ASUNAME
1568## --------- ##
1569## Platform. ##
1570## --------- ##
1571
1572hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1573uname -m = `(uname -m) 2>/dev/null || echo unknown`
1574uname -r = `(uname -r) 2>/dev/null || echo unknown`
1575uname -s = `(uname -s) 2>/dev/null || echo unknown`
1576uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577
1578/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1579/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1580
1581/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1582/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1583/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001584/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001585/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1586/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1587/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1588
1589_ASUNAME
1590
1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592for as_dir in $PATH
1593do
1594 IFS=$as_save_IFS
1595 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001596 echo "PATH: $as_dir"
1597done
Reid Spencera773bd52006-08-04 18:18:08 +00001598IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001599
1600} >&5
1601
1602cat >&5 <<_ACEOF
1603
1604
1605## ----------- ##
1606## Core tests. ##
1607## ----------- ##
1608
1609_ACEOF
1610
1611
1612# Keep a trace of the command line.
1613# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001614# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001615# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001616# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001617ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001618ac_configure_args0=
1619ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001620ac_must_keep_next=false
1621for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001622do
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 for ac_arg
1624 do
1625 case $ac_arg in
1626 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1628 | -silent | --silent | --silen | --sile | --sil)
1629 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001630 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001631 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 esac
1633 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001634 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001636 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001638 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001640 case $ac_arg in
1641 *=* | --config-cache | -C | -disable-* | --disable-* \
1642 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1643 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1644 | -with-* | --with-* | -without-* | --without-* | --x)
1645 case "$ac_configure_args0 " in
1646 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1647 esac
1648 ;;
1649 -* ) ac_must_keep_next=true ;;
1650 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001651 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001652 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 ;;
1654 esac
1655 done
John Criswell7a73b802003-06-30 21:59:07 +00001656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001657$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1658$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 +00001659
1660# When interrupted or exit'd, cleanup temporary files, and complete
1661# config.log. We remove comments because anyway the quotes in there
1662# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001663# WARNING: Use '\'' to represent an apostrophe within the trap.
1664# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001665trap 'exit_status=$?
1666 # Save into config.log some information that might help in debugging.
1667 {
1668 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001669
John Criswell7a73b802003-06-30 21:59:07 +00001670 cat <<\_ASBOX
1671## ---------------- ##
1672## Cache variables. ##
1673## ---------------- ##
1674_ASBOX
1675 echo
1676 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001677(
1678 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1679 eval ac_val=\$$ac_var
1680 case $ac_val in #(
1681 *${as_nl}*)
1682 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001683 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1684echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001685 esac
1686 case $ac_var in #(
1687 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001688 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001689 esac ;;
1690 esac
1691 done
John Criswell7a73b802003-06-30 21:59:07 +00001692 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001693 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1694 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001695 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001696 "s/'\''/'\''\\\\'\'''\''/g;
1697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1698 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001699 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001702 esac |
1703 sort
1704)
John Criswell7a73b802003-06-30 21:59:07 +00001705 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001706
1707 cat <<\_ASBOX
1708## ----------------- ##
1709## Output variables. ##
1710## ----------------- ##
1711_ASBOX
1712 echo
1713 for ac_var in $ac_subst_vars
1714 do
Reid Spencera773bd52006-08-04 18:18:08 +00001715 eval ac_val=\$$ac_var
1716 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001717 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001718 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001719 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001720 done | sort
1721 echo
1722
1723 if test -n "$ac_subst_files"; then
1724 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001725## ------------------- ##
1726## File substitutions. ##
1727## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001728_ASBOX
1729 echo
1730 for ac_var in $ac_subst_files
1731 do
Reid Spencera773bd52006-08-04 18:18:08 +00001732 eval ac_val=\$$ac_var
1733 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001735 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001736 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 done | sort
1738 echo
1739 fi
1740
John Criswell7a73b802003-06-30 21:59:07 +00001741 if test -s confdefs.h; then
1742 cat <<\_ASBOX
1743## ----------- ##
1744## confdefs.h. ##
1745## ----------- ##
1746_ASBOX
1747 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001748 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001749 echo
1750 fi
1751 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001752 echo "$as_me: caught signal $ac_signal"
1753 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001754 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001755 rm -f core *.core core.conftest.* &&
1756 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001757 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001758' 0
John Criswell7a73b802003-06-30 21:59:07 +00001759for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001760 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001761done
1762ac_signal=0
1763
1764# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001765rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001766
1767# Predefined preprocessor variables.
1768
1769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_NAME "$PACKAGE_NAME"
1771_ACEOF
1772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773
John Criswell7a73b802003-06-30 21:59:07 +00001774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1776_ACEOF
1777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001778
John Criswell7a73b802003-06-30 21:59:07 +00001779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_VERSION "$PACKAGE_VERSION"
1781_ACEOF
1782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001783
John Criswell7a73b802003-06-30 21:59:07 +00001784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_STRING "$PACKAGE_STRING"
1786_ACEOF
1787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1791_ACEOF
1792
1793
1794# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001796if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001798elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 set x "$ac_default_prefix/share/config.site" \
1802 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001804shift
1805for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001806do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 if test -r "$ac_site_file"; then
1808 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1809echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001810 sed 's/^/| /' "$ac_site_file" >&5
1811 . "$ac_site_file"
1812 fi
1813done
1814
1815if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001816 # Some versions of bash will fail to source /dev/null (special
1817 # files actually), so we avoid doing that.
1818 if test -f "$cache_file"; then
1819 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1820echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001821 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001822 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1823 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001824 esac
1825 fi
1826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001827 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1828echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001829 >$cache_file
1830fi
1831
1832# Check that the precious variables saved in the cache have kept the same
1833# value.
1834ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001835for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001836 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1837 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001838 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1839 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001840 case $ac_old_set,$ac_new_set in
1841 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1843echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001844 ac_cache_corrupted=: ;;
1845 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001846 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1847echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001848 ac_cache_corrupted=: ;;
1849 ,);;
1850 *)
1851 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1853echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1854 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1855echo "$as_me: former value: $ac_old_val" >&2;}
1856 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1857echo "$as_me: current value: $ac_new_val" >&2;}
1858 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001859 fi;;
1860 esac
1861 # Pass precious variables to config.status.
1862 if test "$ac_new_set" = set; then
1863 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001864 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001865 *) ac_arg=$ac_var=$ac_new_val ;;
1866 esac
1867 case " $ac_configure_args " in
1868 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001869 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001870 esac
1871 fi
1872done
1873if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001874 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1875echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1876 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1877echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1878 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
Reid Spencera773bd52006-08-04 18:18:08 +00001904
John Criswell7a73b802003-06-30 21:59:07 +00001905ac_ext=c
1906ac_cpp='$CPP $CPPFLAGS'
1907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910
1911
1912
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001913cat >>confdefs.h <<\_ACEOF
1914#define LLVM_VERSION_MAJOR 3
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001919#define LLVM_VERSION_MINOR 3
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001920_ACEOF
1921
1922
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001923LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001924
1925
1926
1927
1928
1929
1930
John Criswell7a73b802003-06-30 21:59:07 +00001931ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001932for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001933 if test -f "$ac_dir/install-sh"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
1937 elif test -f "$ac_dir/install.sh"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
1941 elif test -f "$ac_dir/shtool"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1945 fi
John Criswell7a73b802003-06-30 21:59:07 +00001946done
1947if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1949echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1950 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001951fi
Reid Spencera773bd52006-08-04 18:18:08 +00001952
1953# These three variables are undocumented and unsupported,
1954# and are intended to be withdrawn in a future Autoconf release.
1955# They can cause serious problems if a builder's source tree is in a directory
1956# whose full name contains unusual characters.
1957ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1960
John Criswell7a73b802003-06-30 21:59:07 +00001961
John Criswell392aaa32003-07-22 19:18:09 +00001962
Reid Spencer2706f8c2004-09-19 23:53:36 +00001963if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001964 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001965 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1966echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1967 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001968 fi
John Criswell93e1c722003-09-15 17:04:06 +00001969fi
1970
Nick Lewycky83fc4472009-09-29 05:48:51 +00001971ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001972ac_cpp='$CPP $CPPFLAGS'
1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001976if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001977 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001978 do
1979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1983if test "${ac_cv_prog_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001985else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001986 if test -n "$CC"; then
1987 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 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 +00001996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001998 break 2
1999 fi
2000done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002001done
Reid Spencera773bd52006-08-04 18:18:08 +00002002IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002003
2004fi
2005fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002006CC=$ac_cv_prog_CC
2007if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008 { echo "$as_me:$LINENO: result: $CC" >&5
2009echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002011 { echo "$as_me:$LINENO: result: no" >&5
2012echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002013fi
2014
Reid Spencera773bd52006-08-04 18:18:08 +00002015
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002016 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002017 done
2018fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002019if test -z "$CC"; then
2020 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002021 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002022do
2023 # Extract the first word of "$ac_prog", so it can be a program name with args.
2024set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002029else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002032else
2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 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 +00002040 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002042 break 2
2043 fi
2044done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002045done
Reid Spencera773bd52006-08-04 18:18:08 +00002046IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002047
2048fi
2049fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002055 { echo "$as_me:$LINENO: result: no" >&5
2056echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002057fi
2058
Reid Spencera773bd52006-08-04 18:18:08 +00002059
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002061done
John Criswell7a73b802003-06-30 21:59:07 +00002062
Reid Spencera773bd52006-08-04 18:18:08 +00002063 if test "x$ac_ct_CC" = x; then
2064 CC=""
2065 else
2066 case $cross_compiling:$ac_tool_warned in
2067yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2069whose name does not start with the host triplet. If you think this
2070configuration is useful to you, please write to autoconf@gnu.org." >&5
2071echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002074ac_tool_warned=yes ;;
2075esac
2076 CC=$ac_ct_CC
2077 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078fi
2079
John Criswell7a73b802003-06-30 21:59:07 +00002080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: no acceptable C compiler found in \$PATH
2084See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002086
John Criswell7a73b802003-06-30 21:59:07 +00002087# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088echo "$as_me:$LINENO: checking for C compiler version" >&5
2089ac_compiler=`set X $ac_compile; echo $2`
2090{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002097 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100{ (ac_try="$ac_compiler -v >&5"
2101case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104esac
2105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler -v >&5") 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110{ (ac_try="$ac_compiler -V >&5"
2111case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114esac
2115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler -V >&5") 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002121cat >conftest.$ac_ext <<_ACEOF
2122/* confdefs.h. */
2123_ACEOF
2124cat confdefs.h >>conftest.$ac_ext
2125cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002126/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002127
John Criswell7a73b802003-06-30 21:59:07 +00002128int
2129main ()
2130{
2131
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002137ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002138# Try to create an executable without -o first, disregard a.out.
2139# It will help us diagnose broken compilers, and finding out an intuition
2140# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002141{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2143ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144#
2145# List of possible output files, starting from the most likely.
2146# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2147# only as a last resort. b.out is created by i960 compilers.
2148ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149#
2150# The IRIX 6 linker writes into existing files which may not be
2151# executable, retaining their permissions. Remove them first so a
2152# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002153ac_rmfiles=
2154for ac_file in $ac_files
2155do
2156 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2159 esac
2160done
2161rm -f $ac_rmfiles
2162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002163if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002164case "(($ac_try" in
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2167esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002169 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002170 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002173 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2174# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2175# in a Makefile. We should not override ac_cv_exeext if it was cached,
2176# so that the user can short-circuit this test for compilers unknown to
2177# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002178for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002179do
2180 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002181 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002184 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002185 # We found the default executable, but exeext='' is most
2186 # certainly right.
2187 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002188 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002190 then :; else
2191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 fi
2193 # We set ac_cv_exeext here because the later test for it is not
2194 # safe: cross compilers may not add the suffix if given an `-o'
2195 # argument, so we may need to know it at that point already.
2196 # Even if this section looks crufty: it has the advantage of
2197 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002198 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002199 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002200 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002201 esac
2202done
Reid Spencera773bd52006-08-04 18:18:08 +00002203test "$ac_cv_exeext" = no && ac_cv_exeext=
2204
John Criswell7a73b802003-06-30 21:59:07 +00002205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002207sed 's/^/| /' conftest.$ac_ext >&5
2208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002209{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210See \`config.log' for more details." >&5
2211echo "$as_me: error: C compiler cannot create executables
2212See \`config.log' for more details." >&2;}
2213 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002214fi
John Criswell7a73b802003-06-30 21:59:07 +00002215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002216ac_exeext=$ac_cv_exeext
2217{ echo "$as_me:$LINENO: result: $ac_file" >&5
2218echo "${ECHO_T}$ac_file" >&6; }
2219
2220# Check that the compiler produces executables we can run. If not, either
2221# the compiler is broken, or we cross compile.
2222{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2224# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225# If not cross compiling, check that we can run a simple program.
2226if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231esac
2232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2233 (eval "$ac_try") 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 cross_compiling=no
2238 else
2239 if test "$cross_compiling" = maybe; then
2240 cross_compiling=yes
2241 else
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2249 fi
2250 fi
2251fi
2252{ echo "$as_me:$LINENO: result: yes" >&5
2253echo "${ECHO_T}yes" >&6; }
2254
2255rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002256ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002257# Check that the compiler produces executables we can run. If not, either
2258# the compiler is broken, or we cross compile.
2259{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2261{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262echo "${ECHO_T}$cross_compiling" >&6; }
2263
2264{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2266if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002267case "(($ac_try" in
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2270esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002272 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002273 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2278# work properly (i.e., refer to `conftest.exe'), while it won't with
2279# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002280for ac_file in conftest.exe conftest conftest.*; do
2281 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002282 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002285 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002286 * ) break;;
2287 esac
2288done
2289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002290 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002296
2297rm -f conftest$ac_cv_exeext
2298{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002300
2301rm -f conftest.$ac_ext
2302EXEEXT=$ac_cv_exeext
2303ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2306if test "${ac_cv_objext+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002309 cat >conftest.$ac_ext <<_ACEOF
2310/* confdefs.h. */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002315
John Criswell7a73b802003-06-30 21:59:07 +00002316int
2317main ()
2318{
2319
2320 ;
2321 return 0;
2322}
2323_ACEOF
2324rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002325if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002326case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002331 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002332 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002335 for ac_file in conftest.o conftest.obj conftest.*; do
2336 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002337 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340 break;;
2341 esac
2342done
2343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002345sed 's/^/| /' conftest.$ac_ext >&5
2346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&5
2349echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002353
John Criswell7a73b802003-06-30 21:59:07 +00002354rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002356{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002358OBJEXT=$ac_cv_objext
2359ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002360{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2362if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002365 cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h. */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002371
John Criswell7a73b802003-06-30 21:59:07 +00002372int
2373main ()
2374{
2375#ifndef __GNUC__
2376 choke me
2377#endif
2378
2379 ;
2380 return 0;
2381}
2382_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002383rm -f conftest.$ac_objext
2384if { (ac_try="$ac_compile"
2385case "(($ac_try" in
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2388esac
2389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_compile") 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2398 { (case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401esac
2402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_try") 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411esac
2412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_try") 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002417 ac_compiler_gnu=yes
2418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002419 echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424
Reid Spencera773bd52006-08-04 18:18:08 +00002425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002427
2428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002429{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2430echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2431GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432ac_test_CFLAGS=${CFLAGS+set}
2433ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2436if test "${ac_cv_prog_cc_g+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002438else
Reid Spencera773bd52006-08-04 18:18:08 +00002439 ac_save_c_werror_flag=$ac_c_werror_flag
2440 ac_c_werror_flag=yes
2441 ac_cv_prog_cc_g=no
2442 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002443 cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h. */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002449
John Criswell7a73b802003-06-30 21:59:07 +00002450int
2451main ()
2452{
2453
2454 ;
2455 return 0;
2456}
2457_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002458rm -f conftest.$ac_objext
2459if { (ac_try="$ac_compile"
2460case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463esac
2464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compile") 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
2472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2473 { (case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476esac
2477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_try") 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486esac
2487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002492 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002493else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002494 echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 CFLAGS=""
2498 cat >conftest.$ac_ext <<_ACEOF
2499/* confdefs.h. */
2500_ACEOF
2501cat confdefs.h >>conftest.$ac_ext
2502cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002503/* end confdefs.h. */
2504
2505int
2506main ()
2507{
2508
2509 ;
2510 return 0;
2511}
2512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002513rm -f conftest.$ac_objext
2514if { (ac_try="$ac_compile"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compile") 2>conftest.er1
2521 ac_status=$?
2522 grep -v '^ *+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541esac
2542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_try") 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 :
Torok Edwin871384f2010-01-26 08:50:50 +00002548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002553 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002554 cat >conftest.$ac_ext <<_ACEOF
2555/* confdefs.h. */
2556_ACEOF
2557cat confdefs.h >>conftest.$ac_ext
2558cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002559/* end confdefs.h. */
2560
2561int
2562main ()
2563{
2564
2565 ;
2566 return 0;
2567}
2568_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002569rm -f conftest.$ac_objext
2570if { (ac_try="$ac_compile"
2571case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574esac
2575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_compile") 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_try") 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597esac
2598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_try") 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002603 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604else
2605 echo "$as_me: failed program was:" >&5
2606sed 's/^/| /' conftest.$ac_ext >&5
2607
2608
John Criswell7a73b802003-06-30 21:59:07 +00002609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002610
Reid Spencera773bd52006-08-04 18:18:08 +00002611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
2615fi
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
2618 ac_c_werror_flag=$ac_save_c_werror_flag
2619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2621echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622if test "$ac_test_CFLAGS" = set; then
2623 CFLAGS=$ac_save_CFLAGS
2624elif test $ac_cv_prog_cc_g = yes; then
2625 if test "$GCC" = yes; then
2626 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002627 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002629 fi
2630else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631 if test "$GCC" = yes; then
2632 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002633 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002635 fi
2636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002637{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2638echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2639if test "${ac_cv_prog_cc_c89+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641else
Reid Spencera773bd52006-08-04 18:18:08 +00002642 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002644cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h. */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649/* end confdefs.h. */
2650#include <stdarg.h>
2651#include <stdio.h>
2652#include <sys/types.h>
2653#include <sys/stat.h>
2654/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2655struct buf { int x; };
2656FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657static char *e (p, i)
2658 char **p;
2659 int i;
2660{
2661 return p[i];
2662}
2663static char *f (char * (*g) (char **, int), char **p, ...)
2664{
2665 char *s;
2666 va_list v;
2667 va_start (v,p);
2668 s = g (p, va_arg (v,int));
2669 va_end (v);
2670 return s;
2671}
2672
2673/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2674 function prototypes and stuff, but not '\xHH' hex character constants.
2675 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002676 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2678 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002679 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681
Reid Spencera773bd52006-08-04 18:18:08 +00002682/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2683 inside strings and character constants. */
2684#define FOO(x) 'x'
2685int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687int test (int i, double x);
2688struct s1 {int (*f) (int a);};
2689struct s2 {int (*f) (double a);};
2690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2691int argc;
2692char **argv;
2693int
2694main ()
2695{
2696return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2697 ;
2698 return 0;
2699}
2700_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002701for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703do
2704 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705 rm -f conftest.$ac_objext
2706if { (ac_try="$ac_compile"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_try") 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002739 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740else
2741 echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002746
Reid Spencera773bd52006-08-04 18:18:08 +00002747rm -f core conftest.err conftest.$ac_objext
2748 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749done
Reid Spencera773bd52006-08-04 18:18:08 +00002750rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002751CC=$ac_save_CC
2752
2753fi
Reid Spencera773bd52006-08-04 18:18:08 +00002754# AC_CACHE_VAL
2755case "x$ac_cv_prog_cc_c89" in
2756 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002757 { echo "$as_me:$LINENO: result: none needed" >&5
2758echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002759 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002760 { echo "$as_me:$LINENO: result: unsupported" >&5
2761echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002762 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002763 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002764 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2765echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002766esac
2767
John Criswell0c38eaf2003-09-10 15:17:25 +00002768
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002769ac_ext=c
2770ac_cpp='$CPP $CPPFLAGS'
2771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774
Eric Christopherffee5722011-09-16 20:36:25 +00002775ac_ext=cpp
2776ac_cpp='$CXXCPP $CPPFLAGS'
2777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2780if test -z "$CXX"; then
2781 if test -n "$CCC"; then
2782 CXX=$CCC
2783 else
2784 if test -n "$ac_tool_prefix"; then
2785 for ac_prog in clang++ llvm-g++ g++
2786 do
2787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2791if test "${ac_cv_prog_CXX+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793else
2794 if test -n "$CXX"; then
2795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809done
2810IFS=$as_save_IFS
2811
2812fi
2813fi
2814CXX=$ac_cv_prog_CXX
2815if test -n "$CXX"; then
2816 { echo "$as_me:$LINENO: result: $CXX" >&5
2817echo "${ECHO_T}$CXX" >&6; }
2818else
2819 { echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6; }
2821fi
2822
2823
2824 test -n "$CXX" && break
2825 done
2826fi
2827if test -z "$CXX"; then
2828 ac_ct_CXX=$CXX
2829 for ac_prog in clang++ llvm-g++ g++
2830do
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832set dummy $ac_prog; ac_word=$2
2833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838 if test -n "$ac_ct_CXX"; then
2839 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_ac_ct_CXX="$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852done
2853done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2859if test -n "$ac_ct_CXX"; then
2860 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2861echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862else
2863 { echo "$as_me:$LINENO: result: no" >&5
2864echo "${ECHO_T}no" >&6; }
2865fi
2866
2867
2868 test -n "$ac_ct_CXX" && break
2869done
2870
2871 if test "x$ac_ct_CXX" = x; then
2872 CXX="g++"
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875yes:)
2876{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877whose name does not start with the host triplet. If you think this
2878configuration is useful to you, please write to autoconf@gnu.org." >&5
2879echo "$as_me: 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." >&2;}
2882ac_tool_warned=yes ;;
2883esac
2884 CXX=$ac_ct_CXX
2885 fi
2886fi
2887
2888 fi
2889fi
2890# Provide some information about the compiler.
2891echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2892ac_compiler=`set X $ac_compile; echo $2`
2893{ (ac_try="$ac_compiler --version >&5"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler --version >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903{ (ac_try="$ac_compiler -v >&5"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -v >&5") 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913{ (ac_try="$ac_compiler -V >&5"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compiler -V >&5") 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2923
2924{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2925echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2926if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928else
2929 cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h. */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h. */
2935
2936int
2937main ()
2938{
2939#ifndef __GNUC__
2940 choke me
2941#endif
2942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext
2948if { (ac_try="$ac_compile"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_try") 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_try") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_compiler_gnu=yes
2982else
2983 echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 ac_compiler_gnu=no
2987fi
2988
2989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2991
2992fi
2993{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2994echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2995GXX=`test $ac_compiler_gnu = yes && echo yes`
2996ac_test_CXXFLAGS=${CXXFLAGS+set}
2997ac_save_CXXFLAGS=$CXXFLAGS
2998{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2999echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3000if test "${ac_cv_prog_cxx_g+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3004 ac_cxx_werror_flag=yes
3005 ac_cv_prog_cxx_g=no
3006 CXXFLAGS="-g"
3007 cat >conftest.$ac_ext <<_ACEOF
3008/* confdefs.h. */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h. */
3013
3014int
3015main ()
3016{
3017
3018 ;
3019 return 0;
3020}
3021_ACEOF
3022rm -f conftest.$ac_objext
3023if { (ac_try="$ac_compile"
3024case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_try") 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_prog_cxx_g=yes
3057else
3058 echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
3061 CXXFLAGS=""
3062 cat >conftest.$ac_ext <<_ACEOF
3063/* confdefs.h. */
3064_ACEOF
3065cat confdefs.h >>conftest.$ac_ext
3066cat >>conftest.$ac_ext <<_ACEOF
3067/* end confdefs.h. */
3068
3069int
3070main ()
3071{
3072
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext
3078if { (ac_try="$ac_compile"
3079case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 :
3112else
3113 echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 CXXFLAGS="-g"
3118 cat >conftest.$ac_ext <<_ACEOF
3119/* confdefs.h. */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
3123/* end confdefs.h. */
3124
3125int
3126main ()
3127{
3128
3129 ;
3130 return 0;
3131}
3132_ACEOF
3133rm -f conftest.$ac_objext
3134if { (ac_try="$ac_compile"
3135case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138esac
3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_cv_prog_cxx_g=yes
3168else
3169 echo "$as_me: failed program was:" >&5
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
3172
3173fi
3174
3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183fi
3184{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3185echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3186if test "$ac_test_CXXFLAGS" = set; then
3187 CXXFLAGS=$ac_save_CXXFLAGS
3188elif test $ac_cv_prog_cxx_g = yes; then
3189 if test "$GXX" = yes; then
3190 CXXFLAGS="-g -O2"
3191 else
3192 CXXFLAGS="-g"
3193 fi
3194else
3195 if test "$GXX" = yes; then
3196 CXXFLAGS="-O2"
3197 else
3198 CXXFLAGS=
3199 fi
3200fi
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003206
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003207ac_ext=c
3208ac_cpp='$CPP $CPPFLAGS'
3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003212{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3213echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003214# On Suns, sometimes $CPP names a directory.
3215if test -n "$CPP" && test -d "$CPP"; then
3216 CPP=
3217fi
3218if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003219 if test "${ac_cv_prog_CPP+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003221else
3222 # Double quotes because CPP needs to be expanded
3223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224 do
3225 ac_preproc_ok=false
3226for ac_c_preproc_warn_flag in '' yes
3227do
3228 # Use a header file that comes with gcc, so configuring glibc
3229 # with a fresh cross-compiler works.
3230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3231 # <limits.h> exists even on freestanding compilers.
3232 # On the NeXT, cc -E runs the code through the compiler's parser,
3233 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003234 cat >conftest.$ac_ext <<_ACEOF
3235/* confdefs.h. */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003239/* end confdefs.h. */
3240#ifdef __STDC__
3241# include <limits.h>
3242#else
3243# include <assert.h>
3244#endif
3245 Syntax error
3246_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003247if { (ac_try="$ac_cpp conftest.$ac_ext"
3248case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251esac
3252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263 else
3264 ac_cpp_err=
3265 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003267 ac_cpp_err=yes
3268fi
3269if test -z "$ac_cpp_err"; then
3270 :
3271else
3272 echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275 # Broken: fails on valid input.
3276continue
3277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003278
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279rm -f conftest.err conftest.$ac_ext
3280
Reid Spencera773bd52006-08-04 18:18:08 +00003281 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003283 cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288/* end confdefs.h. */
3289#include <ac_nonexistent.h>
3290_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003291if { (ac_try="$ac_cpp conftest.$ac_ext"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307 else
3308 ac_cpp_err=
3309 fi
3310else
3311 ac_cpp_err=yes
3312fi
3313if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 # Broken: success on invalid input.
3315continue
3316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003317 echo "$as_me: failed program was:" >&5
3318sed 's/^/| /' conftest.$ac_ext >&5
3319
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003320 # Passes both tests.
3321ac_preproc_ok=:
3322break
3323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003324
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325rm -f conftest.err conftest.$ac_ext
3326
3327done
3328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003330if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331 break
3332fi
3333
3334 done
3335 ac_cv_prog_CPP=$CPP
3336
3337fi
3338 CPP=$ac_cv_prog_CPP
3339else
3340 ac_cv_prog_CPP=$CPP
3341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003342{ echo "$as_me:$LINENO: result: $CPP" >&5
3343echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344ac_preproc_ok=false
3345for ac_c_preproc_warn_flag in '' yes
3346do
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003353 cat >conftest.$ac_ext <<_ACEOF
3354/* confdefs.h. */
3355_ACEOF
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358/* end confdefs.h. */
3359#ifdef __STDC__
3360# include <limits.h>
3361#else
3362# include <assert.h>
3363#endif
3364 Syntax error
3365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003366if { (ac_try="$ac_cpp conftest.$ac_ext"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
3371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382 else
3383 ac_cpp_err=
3384 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003386 ac_cpp_err=yes
3387fi
3388if test -z "$ac_cpp_err"; then
3389 :
3390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394 # Broken: fails on valid input.
3395continue
3396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003397
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398rm -f conftest.err conftest.$ac_ext
3399
Reid Spencera773bd52006-08-04 18:18:08 +00003400 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402 cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h. */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407/* end confdefs.h. */
3408#include <ac_nonexistent.h>
3409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003410if { (ac_try="$ac_cpp conftest.$ac_ext"
3411case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414esac
3415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 ac_status=$?
3418 grep -v '^ *+' conftest.er1 >conftest.err
3419 rm -f conftest.er1
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426 else
3427 ac_cpp_err=
3428 fi
3429else
3430 ac_cpp_err=yes
3431fi
3432if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433 # Broken: success on invalid input.
3434continue
3435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003436 echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439 # Passes both tests.
3440ac_preproc_ok=:
3441break
3442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003443
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444rm -f conftest.err conftest.$ac_ext
3445
3446done
3447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003449if $ac_preproc_ok; then
3450 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003452 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3453See \`config.log' for more details." >&5
3454echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3455See \`config.log' for more details." >&2;}
3456 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003457fi
3458
John Criswell7a73b802003-06-30 21:59:07 +00003459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
John Criswell7a73b802003-06-30 21:59:07 +00003465
Eric Christopherffee5722011-09-16 20:36:25 +00003466
3467
3468if test -d ${srcdir}/projects/llvm-gcc ; then
3469 subdirs="$subdirs projects/llvm-gcc"
3470
3471fi
3472
3473if test -d ${srcdir}/projects/test-suite ; then
3474 subdirs="$subdirs projects/test-suite"
3475
3476fi
3477
3478if test -d ${srcdir}/projects/llvm-test ; then
3479 subdirs="$subdirs projects/llvm-test"
3480
3481fi
3482
3483if test -d ${srcdir}/projects/poolalloc ; then
3484 subdirs="$subdirs projects/poolalloc"
3485
3486fi
3487
3488if test -d ${srcdir}/projects/llvm-poolalloc ; then
3489 subdirs="$subdirs projects/llvm-poolalloc"
3490
3491fi
3492
3493for i in `ls ${srcdir}/projects`
3494do
3495 if test -d ${srcdir}/projects/${i} ; then
3496 case ${i} in
3497 sample) subdirs="$subdirs projects/sample"
3498 ;;
3499 privbracket) subdirs="$subdirs projects/privbracket"
3500 ;;
3501 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3502 ;;
3503 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3504;;
3505 llvm-java) subdirs="$subdirs projects/llvm-java"
3506 ;;
3507 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3508 ;;
3509 safecode) subdirs="$subdirs projects/safecode"
3510 ;;
3511 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3512 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003513 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003514 llvm-gcc) ;;
3515 test-suite) ;;
3516 llvm-test) ;;
3517 poolalloc) ;;
3518 llvm-poolalloc) ;;
3519 *)
3520 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3521echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3522 ;;
3523 esac
3524 fi
3525done
3526
3527# Check whether --enable-polly was given.
3528if test "${enable_polly+set}" = set; then
3529 enableval=$enable_polly;
3530else
3531 enableval=default
3532fi
3533
3534case "$enableval" in
3535 yes) ENABLE_POLLY=1
3536 ;;
3537 no) ENABLE_POLLY=0
3538 ;;
3539 default) ENABLE_POLLY=1
3540 ;;
3541 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3542echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3543 { (exit 1); exit 1; }; } ;;
3544esac
3545
3546
3547if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3548 LLVM_HAS_POLLY=1
3549
3550 subdirs="$subdirs tools/polly"
3551
3552fi
3553
3554
3555# Make sure we can run config.sub.
3556$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3557 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3558echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3559 { (exit 1); exit 1; }; }
3560
3561{ echo "$as_me:$LINENO: checking build system type" >&5
3562echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3563if test "${ac_cv_build+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566 ac_build_alias=$build_alias
3567test "x$ac_build_alias" = x &&
3568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3569test "x$ac_build_alias" = x &&
3570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3571echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3572 { (exit 1); exit 1; }; }
3573ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3574 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3575echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3576 { (exit 1); exit 1; }; }
3577
3578fi
3579{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3580echo "${ECHO_T}$ac_cv_build" >&6; }
3581case $ac_cv_build in
3582*-*-*) ;;
3583*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3584echo "$as_me: error: invalid value of canonical build" >&2;}
3585 { (exit 1); exit 1; }; };;
3586esac
3587build=$ac_cv_build
3588ac_save_IFS=$IFS; IFS='-'
3589set x $ac_cv_build
3590shift
3591build_cpu=$1
3592build_vendor=$2
3593shift; shift
3594# Remember, the first character of IFS is used to create $*,
3595# except with old shells:
3596build_os=$*
3597IFS=$ac_save_IFS
3598case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3599
3600
3601{ echo "$as_me:$LINENO: checking host system type" >&5
3602echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3603if test "${ac_cv_host+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 if test "x$host_alias" = x; then
3607 ac_cv_host=$ac_cv_build
3608else
3609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3611echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3612 { (exit 1); exit 1; }; }
3613fi
3614
3615fi
3616{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3617echo "${ECHO_T}$ac_cv_host" >&6; }
3618case $ac_cv_host in
3619*-*-*) ;;
3620*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3621echo "$as_me: error: invalid value of canonical host" >&2;}
3622 { (exit 1); exit 1; }; };;
3623esac
3624host=$ac_cv_host
3625ac_save_IFS=$IFS; IFS='-'
3626set x $ac_cv_host
3627shift
3628host_cpu=$1
3629host_vendor=$2
3630shift; shift
3631# Remember, the first character of IFS is used to create $*,
3632# except with old shells:
3633host_os=$*
3634IFS=$ac_save_IFS
3635case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3636
3637
3638{ echo "$as_me:$LINENO: checking target system type" >&5
3639echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3640if test "${ac_cv_target+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643 if test "x$target_alias" = x; then
3644 ac_cv_target=$ac_cv_host
3645else
3646 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3647 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3648echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3649 { (exit 1); exit 1; }; }
3650fi
3651
3652fi
3653{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3654echo "${ECHO_T}$ac_cv_target" >&6; }
3655case $ac_cv_target in
3656*-*-*) ;;
3657*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3658echo "$as_me: error: invalid value of canonical target" >&2;}
3659 { (exit 1); exit 1; }; };;
3660esac
3661target=$ac_cv_target
3662ac_save_IFS=$IFS; IFS='-'
3663set x $ac_cv_target
3664shift
3665target_cpu=$1
3666target_vendor=$2
3667shift; shift
3668# Remember, the first character of IFS is used to create $*,
3669# except with old shells:
3670target_os=$*
3671IFS=$ac_save_IFS
3672case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3673
3674
3675# The aliases save the names the user supplied, while $host etc.
3676# will get canonicalized.
3677test -n "$target_alias" &&
3678 test "$program_prefix$program_suffix$program_transform_name" = \
3679 NONENONEs,x,x, &&
3680 program_prefix=${target_alias}-
3681
3682{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3683echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3684if test "${llvm_cv_os_type+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
3687 case $host in
3688 *-*-aix*)
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="AIX"
3692 llvm_cv_platform_type="Unix" ;;
3693 *-*-irix*)
3694 llvm_cv_link_all_option="-Wl,--whole-archive"
3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696 llvm_cv_os_type="IRIX"
3697 llvm_cv_platform_type="Unix" ;;
3698 *-*-cygwin*)
3699 llvm_cv_link_all_option="-Wl,--whole-archive"
3700 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3701 llvm_cv_os_type="Cygwin"
3702 llvm_cv_platform_type="Unix" ;;
3703 *-*-darwin*)
3704 llvm_cv_link_all_option="-Wl,-all_load"
3705 llvm_cv_no_link_all_option="-Wl,-noall_load"
3706 llvm_cv_os_type="Darwin"
3707 llvm_cv_platform_type="Unix" ;;
3708 *-*-minix*)
3709 llvm_cv_link_all_option="-Wl,-all_load"
3710 llvm_cv_no_link_all_option="-Wl,-noall_load"
3711 llvm_cv_os_type="Minix"
3712 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003713 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="FreeBSD"
3717 llvm_cv_platform_type="Unix" ;;
3718 *-*-openbsd*)
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="OpenBSD"
3722 llvm_cv_platform_type="Unix" ;;
3723 *-*-netbsd*)
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="NetBSD"
3727 llvm_cv_platform_type="Unix" ;;
3728 *-*-dragonfly*)
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="DragonFly"
3732 llvm_cv_platform_type="Unix" ;;
3733 *-*-hpux*)
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="HP-UX"
3737 llvm_cv_platform_type="Unix" ;;
3738 *-*-interix*)
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="Interix"
3742 llvm_cv_platform_type="Unix" ;;
3743 *-*-linux*)
3744 llvm_cv_link_all_option="-Wl,--whole-archive"
3745 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746 llvm_cv_os_type="Linux"
3747 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003748 *-*-gnu*)
3749 llvm_cv_link_all_option="-Wl,--whole-archive"
3750 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3751 llvm_cv_os_type="GNU"
3752 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003753 *-*-solaris*)
3754 llvm_cv_link_all_option="-Wl,-z,allextract"
3755 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3756 llvm_cv_os_type="SunOS"
3757 llvm_cv_platform_type="Unix" ;;
3758 *-*-auroraux*)
3759 llvm_cv_link_all_option="-Wl,-z,allextract"
3760 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3761 llvm_cv_os_type="AuroraUX"
3762 llvm_cv_platform_type="Unix" ;;
3763 *-*-win32*)
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="Win32"
3767 llvm_cv_platform_type="Win32" ;;
3768 *-*-mingw*)
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="MingW"
3772 llvm_cv_platform_type="Win32" ;;
3773 *-*-haiku*)
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Haiku"
3777 llvm_cv_platform_type="Unix" ;;
3778 *-unknown-eabi*)
3779 llvm_cv_link_all_option="-Wl,--whole-archive"
3780 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3781 llvm_cv_os_type="Freestanding"
3782 llvm_cv_platform_type="Unix" ;;
3783 *-unknown-elf*)
3784 llvm_cv_link_all_option="-Wl,--whole-archive"
3785 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3786 llvm_cv_os_type="Freestanding"
3787 llvm_cv_platform_type="Unix" ;;
3788 *)
3789 llvm_cv_link_all_option=""
3790 llvm_cv_no_link_all_option=""
3791 llvm_cv_os_type="Unknown"
3792 llvm_cv_platform_type="Unknown" ;;
3793esac
3794fi
3795{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3796echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3797
3798{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3799echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3800if test "${llvm_cv_target_os_type+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803 case $target in
3804 *-*-aix*)
3805 llvm_cv_target_os_type="AIX" ;;
3806 *-*-irix*)
3807 llvm_cv_target_os_type="IRIX" ;;
3808 *-*-cygwin*)
3809 llvm_cv_target_os_type="Cygwin" ;;
3810 *-*-darwin*)
3811 llvm_cv_target_os_type="Darwin" ;;
3812 *-*-minix*)
3813 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003814 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003815 llvm_cv_target_os_type="FreeBSD" ;;
3816 *-*-openbsd*)
3817 llvm_cv_target_os_type="OpenBSD" ;;
3818 *-*-netbsd*)
3819 llvm_cv_target_os_type="NetBSD" ;;
3820 *-*-dragonfly*)
3821 llvm_cv_target_os_type="DragonFly" ;;
3822 *-*-hpux*)
3823 llvm_cv_target_os_type="HP-UX" ;;
3824 *-*-interix*)
3825 llvm_cv_target_os_type="Interix" ;;
3826 *-*-linux*)
3827 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003828 *-*-gnu*)
3829 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003830 *-*-solaris*)
3831 llvm_cv_target_os_type="SunOS" ;;
3832 *-*-auroraux*)
3833 llvm_cv_target_os_type="AuroraUX" ;;
3834 *-*-win32*)
3835 llvm_cv_target_os_type="Win32" ;;
3836 *-*-mingw*)
3837 llvm_cv_target_os_type="MingW" ;;
3838 *-*-haiku*)
3839 llvm_cv_target_os_type="Haiku" ;;
3840 *-*-rtems*)
3841 llvm_cv_target_os_type="RTEMS" ;;
3842 *-*-nacl*)
3843 llvm_cv_target_os_type="NativeClient" ;;
3844 *-unknown-eabi*)
3845 llvm_cv_target_os_type="Freestanding" ;;
3846 *)
3847 llvm_cv_target_os_type="Unknown" ;;
3848esac
3849fi
3850{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3851echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3852
3853if test "$llvm_cv_os_type" = "Unknown" ; then
3854 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3855echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3856 { (exit 1); exit 1; }; }
3857fi
3858
3859OS=$llvm_cv_os_type
3860
3861HOST_OS=$llvm_cv_os_type
3862
3863TARGET_OS=$llvm_cv_target_os_type
3864
3865
3866LINKALL=$llvm_cv_link_all_option
3867
3868NOLINKALL=$llvm_cv_no_link_all_option
3869
3870
3871case $llvm_cv_platform_type in
3872 Unix)
3873
3874cat >>confdefs.h <<\_ACEOF
3875#define LLVM_ON_UNIX 1
3876_ACEOF
3877
3878 LLVM_ON_UNIX=1
3879
3880 LLVM_ON_WIN32=0
3881
3882 ;;
3883 Win32)
3884
3885cat >>confdefs.h <<\_ACEOF
3886#define LLVM_ON_WIN32 1
3887_ACEOF
3888
3889 LLVM_ON_UNIX=0
3890
3891 LLVM_ON_WIN32=1
3892
3893 ;;
3894esac
3895
3896{ echo "$as_me:$LINENO: checking target architecture" >&5
3897echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3898if test "${llvm_cv_target_arch+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901 case $target in
3902 i?86-*) llvm_cv_target_arch="x86" ;;
3903 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3904 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3905 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003906 arm*-*) llvm_cv_target_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00003907 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3908 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003909 xcore-*) llvm_cv_target_arch="XCore" ;;
3910 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003911 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003912 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003913 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003914 *) llvm_cv_target_arch="Unknown" ;;
3915esac
3916fi
3917{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3918echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3919
3920if test "$llvm_cv_target_arch" = "Unknown" ; then
3921 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3922echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3923fi
3924
Eric Christopherffee5722011-09-16 20:36:25 +00003925case "$llvm_cv_target_arch" in
3926 x86) LLVM_NATIVE_ARCH="X86" ;;
3927 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3928 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3929esac
3930
3931ARCH=$llvm_cv_target_arch
3932
3933
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003934case $host in
3935 i?86-*) host_arch="x86" ;;
3936 amd64-* | x86_64-*) host_arch="x86_64" ;;
3937 sparc*-*) host_arch="Sparc" ;;
3938 powerpc*-*) host_arch="PowerPC" ;;
3939 arm*-*) host_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00003940 mips-* | mips64-*) host_arch="Mips" ;;
3941 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003942 xcore-*) host_arch="XCore" ;;
3943 msp430-*) host_arch="MSP430" ;;
3944 hexagon-*) host_arch="Hexagon" ;;
3945 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003946 *) host_arch="Unknown" ;;
3947esac
3948
3949if test "$host_arch" = "Unknown" ; then
3950 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3951echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3952fi
3953
3954HOST_ARCH=$host_arch
3955
3956
Eric Christopherffee5722011-09-16 20:36:25 +00003957
3958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961if test "${ac_cv_path_GREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964 # Extract the first word of "grep ggrep" to use in msg output
3965if test -z "$GREP"; then
3966set dummy grep ggrep; ac_prog_name=$2
3967if test "${ac_cv_path_GREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
Reid Spencera773bd52006-08-04 18:18:08 +00003970 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003971# Loop through the user's path and test for each of PROGNAME-LIST
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977 for ac_prog in grep ggrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3981 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003982 # Check for GNU $ac_path_GREP
3983case `"$ac_path_GREP" --version 2>&1` in
3984*GNU*)
3985 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986*)
3987 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003989 while :
3990 do
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003994 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003995 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003997 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003998 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_GREP="$ac_path_GREP"
4001 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004002 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4005 done
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007esac
4008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004009
4010 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004011 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012done
4013
4014done
Reid Spencera773bd52006-08-04 18:18:08 +00004015IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004016
4017
4018fi
4019
4020GREP="$ac_cv_path_GREP"
4021if test -z "$GREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4025fi
4026
Reid Spencera773bd52006-08-04 18:18:08 +00004027else
4028 ac_cv_path_GREP=$GREP
4029fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031
Reid Spencera773bd52006-08-04 18:18:08 +00004032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004033{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004035 GREP="$ac_cv_path_GREP"
4036
4037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038{ echo "$as_me:$LINENO: checking for egrep" >&5
4039echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040if test "${ac_cv_path_EGREP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004042else
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4045 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046 # Extract the first word of "egrep" to use in msg output
4047if test -z "$EGREP"; then
4048set dummy egrep; ac_prog_name=$2
4049if test "${ac_cv_path_EGREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
Reid Spencera773bd52006-08-04 18:18:08 +00004052 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004053# Loop through the user's path and test for each of PROGNAME-LIST
4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004055for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059 for ac_prog in egrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4063 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004064 # Check for GNU $ac_path_EGREP
4065case `"$ac_path_EGREP" --version 2>&1` in
4066*GNU*)
4067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068*)
4069 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004071 while :
4072 do
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004076 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_EGREP="$ac_path_EGREP"
4083 ac_path_EGREP_max=$ac_count
4084 fi
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4087 done
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089esac
4090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091
4092 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004093 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094done
4095
4096done
Reid Spencera773bd52006-08-04 18:18:08 +00004097IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004098
4099
4100fi
4101
4102EGREP="$ac_cv_path_EGREP"
4103if test -z "$EGREP"; then
4104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106 { (exit 1); exit 1; }; }
4107fi
4108
Reid Spencera773bd52006-08-04 18:18:08 +00004109else
4110 ac_cv_path_EGREP=$EGREP
4111fi
4112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004113
Reid Spencera773bd52006-08-04 18:18:08 +00004114 fi
4115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004118 EGREP="$ac_cv_path_EGREP"
4119
4120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004121{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4122echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4123if test "${ac_cv_header_stdc+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004126 cat >conftest.$ac_ext <<_ACEOF
4127/* confdefs.h. */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004132#include <stdlib.h>
4133#include <stdarg.h>
4134#include <string.h>
4135#include <float.h>
4136
John Criswell0c38eaf2003-09-10 15:17:25 +00004137int
4138main ()
4139{
4140
4141 ;
4142 return 0;
4143}
John Criswell7a73b802003-06-30 21:59:07 +00004144_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145rm -f conftest.$ac_objext
4146if { (ac_try="$ac_compile"
4147case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004179 ac_cv_header_stdc=yes
4180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004181 echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004186
Reid Spencera773bd52006-08-04 18:18:08 +00004187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004188
4189if test $ac_cv_header_stdc = yes; then
4190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004191 cat >conftest.$ac_ext <<_ACEOF
4192/* confdefs.h. */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004196/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004197#include <string.h>
4198
4199_ACEOF
4200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 $EGREP "memchr" >/dev/null 2>&1; then
4202 :
John Criswell7a73b802003-06-30 21:59:07 +00004203else
4204 ac_cv_header_stdc=no
4205fi
4206rm -f conftest*
4207
4208fi
4209
4210if test $ac_cv_header_stdc = yes; then
4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004217/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004218#include <stdlib.h>
4219
4220_ACEOF
4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004222 $EGREP "free" >/dev/null 2>&1; then
4223 :
John Criswell7a73b802003-06-30 21:59:07 +00004224else
4225 ac_cv_header_stdc=no
4226fi
4227rm -f conftest*
4228
4229fi
4230
4231if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004233 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004234 :
4235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236 cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h. */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004242#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004243#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004244#if ((' ' & 0x0FF) == 0x020)
4245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004248# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253#endif
4254
4255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256int
4257main ()
4258{
4259 int i;
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004262 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004263 return 2;
4264 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004265}
4266_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004267rm -f conftest$ac_exeext
4268if { (ac_try="$ac_link"
4269case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_link") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_try") 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 :
John Criswell7a73b802003-06-30 21:59:07 +00004288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289 echo "$as_me: program exited with status $ac_status" >&5
4290echo "$as_me: failed program was:" >&5
4291sed 's/^/| /' conftest.$ac_ext >&5
4292
4293( exit $ac_status )
4294ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004296rm -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 +00004297fi
4298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004299
John Criswell7a73b802003-06-30 21:59:07 +00004300fi
4301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4303echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004304if test $ac_cv_header_stdc = yes; then
4305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004306cat >>confdefs.h <<\_ACEOF
4307#define STDC_HEADERS 1
4308_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004309
4310fi
4311
Reid Spencera773bd52006-08-04 18:18:08 +00004312# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004313
4314
4315
4316
4317
4318
4319
4320
4321
Reid Spencera773bd52006-08-04 18:18:08 +00004322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004324do
4325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331 cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h. */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h. */
4337$ac_includes_default
4338
4339#include <$ac_header>
4340_ACEOF
4341rm -f conftest.$ac_objext
4342if { (ac_try="$ac_compile"
4343case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 eval "$as_ac_Header=yes"
4376else
4377 echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 eval "$as_ac_Header=no"
4381fi
4382
4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384fi
4385ac_res=`eval echo '${'$as_ac_Header'}'`
4386 { echo "$as_me:$LINENO: result: $ac_res" >&5
4387echo "${ECHO_T}$ac_res" >&6; }
4388if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004389 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004391_ACEOF
4392
4393fi
4394
4395done
4396
4397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4399echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4400if test "${ac_cv_c_bigendian+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004402else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004403 # See if sys/param.h defines the BYTE_ORDER macro.
4404cat >conftest.$ac_ext <<_ACEOF
4405/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004406_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004407cat confdefs.h >>conftest.$ac_ext
4408cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004409/* end confdefs.h. */
4410#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004411#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004412
4413int
4414main ()
4415{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004416#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4417 bogus endian macros
4418#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004419
4420 ;
4421 return 0;
4422}
4423_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424rm -f conftest.$ac_objext
4425if { (ac_try="$ac_compile"
4426case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429esac
4430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_compile") 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4439 { (case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442esac
4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_try") 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest.$ac_objext'
4449 { (case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452esac
4453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_try") 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004458 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004459cat >conftest.$ac_ext <<_ACEOF
4460/* confdefs.h. */
4461_ACEOF
4462cat confdefs.h >>conftest.$ac_ext
4463cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004464/* end confdefs.h. */
4465#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004466#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004467
4468int
4469main ()
4470{
4471#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004472 not big endian
4473#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004474
4475 ;
4476 return 0;
4477}
4478_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004479rm -f conftest.$ac_objext
4480if { (ac_try="$ac_compile"
4481case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484esac
4485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_compile") 2>conftest.er1
4487 ac_status=$?
4488 grep -v '^ *+' conftest.er1 >conftest.err
4489 rm -f conftest.er1
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497esac
4498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_try") 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004513 ac_cv_c_bigendian=yes
4514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 echo "$as_me: failed program was:" >&5
4516sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004518 ac_cv_c_bigendian=no
4519fi
4520
4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522else
4523 echo "$as_me: failed program was:" >&5
4524sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 # It does not; compile a test program.
4527if test "$cross_compiling" = yes; then
4528 # try to guess the endianness by grepping values into an object file
4529 ac_cv_c_bigendian=unknown
4530 cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h. */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h. */
4536short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4537short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4538void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4539short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4540short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4541void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004542int
4543main ()
4544{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004546 ;
4547 return 0;
4548}
4549_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550rm -f conftest.$ac_objext
4551if { (ac_try="$ac_compile"
4552case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_compile") 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565 { (case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578esac
4579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_try") 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004585 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004586fi
4587if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4588 if test "$ac_cv_c_bigendian" = unknown; then
4589 ac_cv_c_bigendian=no
4590 else
4591 # finding both strings is unlikely to happen, but who knows?
4592 ac_cv_c_bigendian=unknown
4593 fi
4594fi
Reid Spencera773bd52006-08-04 18:18:08 +00004595else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004596 echo "$as_me: failed program was:" >&5
4597sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599
Torok Edwin871384f2010-01-26 08:50:50 +00004600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004601
Reid Spencera773bd52006-08-04 18:18:08 +00004602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604 cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h. */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004609/* end confdefs.h. */
4610$ac_includes_default
4611int
4612main ()
4613{
4614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004615 /* Are we little or big endian? From Harbison&Steele. */
4616 union
4617 {
4618 long int l;
4619 char c[sizeof (long int)];
4620 } u;
4621 u.l = 1;
4622 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004623
4624 ;
4625 return 0;
4626}
4627_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628rm -f conftest$ac_exeext
4629if { (ac_try="$ac_link"
4630case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633esac
4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_link") 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4639 { (case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642esac
4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_try") 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004648 ac_cv_c_bigendian=no
4649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650 echo "$as_me: program exited with status $ac_status" >&5
4651echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654( exit $ac_status )
4655ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657rm -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 +00004658fi
4659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004660
Reid Spencera773bd52006-08-04 18:18:08 +00004661fi
4662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664fi
4665{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4666echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4667case $ac_cv_c_bigendian in
4668 yes)
4669 ENDIAN=big
4670 ;;
4671 no)
4672 ENDIAN=little
4673 ;;
4674 *)
4675 { { echo "$as_me:$LINENO: error: unknown endianness
4676presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4677echo "$as_me: error: unknown endianness
4678presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4679 { (exit 1); exit 1; }; } ;;
4680esac
Reid Spencera773bd52006-08-04 18:18:08 +00004681
4682
4683if test "$cross_compiling" = yes; then
4684 LLVM_CROSS_COMPILING=1
4685
4686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4688echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4689if test "${ac_cv_build_exeext+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004691else
4692 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4693 ac_cv_build_exeext=.exe
4694else
4695 ac_build_prefix=${build_alias}-
4696
4697 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4698set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004703else
4704 if test -n "$BUILD_CC"; then
4705 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 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 +00004714 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004716 break 2
4717 fi
4718done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719done
Reid Spencera773bd52006-08-04 18:18:08 +00004720IFS=$as_save_IFS
4721
4722fi
4723fi
4724BUILD_CC=$ac_cv_prog_BUILD_CC
4725if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004728else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729 { echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004731fi
4732
4733
4734 if test -z "$BUILD_CC"; then
4735 # Extract the first word of "gcc", so it can be a program name with args.
4736set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004741else
4742 if test -n "$BUILD_CC"; then
4743 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4744else
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 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 +00004752 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004754 break 2
4755 fi
4756done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004757done
Reid Spencera773bd52006-08-04 18:18:08 +00004758IFS=$as_save_IFS
4759
4760fi
4761fi
4762BUILD_CC=$ac_cv_prog_BUILD_CC
4763if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4765echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767 { echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004769fi
4770
4771
4772 if test -z "$BUILD_CC"; then
4773 # Extract the first word of "cc", so it can be a program name with args.
4774set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004779else
4780 if test -n "$BUILD_CC"; then
4781 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4782else
4783 ac_prog_rejected=no
4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 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 +00004791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4792 ac_prog_rejected=yes
4793 continue
4794 fi
4795 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004797 break 2
4798 fi
4799done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004800done
Reid Spencera773bd52006-08-04 18:18:08 +00004801IFS=$as_save_IFS
4802
4803if test $ac_prog_rejected = yes; then
4804 # We found a bogon in the path, so make sure we never use it.
4805 set dummy $ac_cv_prog_BUILD_CC
4806 shift
4807 if test $# != 0; then
4808 # We chose a different compiler from the bogus one.
4809 # However, it has the same basename, so the bogon will be chosen
4810 # first if we set BUILD_CC to just the basename; use the full file name.
4811 shift
4812 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4813 fi
4814fi
4815fi
4816fi
4817BUILD_CC=$ac_cv_prog_BUILD_CC
4818if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004819 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4820echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004822 { echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004824fi
4825
4826
4827 fi
4828 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4830echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4831 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004832 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4833 rm -f conftest*
4834 echo 'int main () { return 0; }' > conftest.$ac_ext
4835 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004836 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004837 (eval $ac_build_link) 2>&5
4838 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004841 for file in conftest.*; do
4842 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004843 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004844 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4845 esac
4846 done
4847 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004848 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4849echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4850 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004851 fi
4852 rm -f conftest*
4853 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4854fi
4855fi
4856
4857BUILD_EXEEXT=""
4858test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004859{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4860echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004861ac_build_exeext=$BUILD_EXEEXT
4862
Jim Grosbach673612e2008-10-02 22:56:44 +00004863 ac_build_prefix=${build_alias}-
4864 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4865set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004870else
4871 if test -n "$BUILD_CXX"; then
4872 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 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 +00004881 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004883 break 2
4884 fi
4885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886done
Jim Grosbach673612e2008-10-02 22:56:44 +00004887IFS=$as_save_IFS
4888
4889fi
4890fi
4891BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896 { echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004898fi
4899
4900
4901 if test -z "$BUILD_CXX"; then
4902 # Extract the first word of "g++", so it can be a program name with args.
4903set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004908else
4909 if test -n "$BUILD_CXX"; then
4910 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 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 +00004919 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004921 break 2
4922 fi
4923done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924done
Jim Grosbach673612e2008-10-02 22:56:44 +00004925IFS=$as_save_IFS
4926
4927fi
4928fi
4929BUILD_CXX=$ac_cv_prog_BUILD_CXX
4930if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004931 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4932echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004934 { echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004936fi
4937
4938
4939 if test -z "$BUILD_CXX"; then
4940 # Extract the first word of "c++", so it can be a program name with args.
4941set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4944if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004946else
4947 if test -n "$BUILD_CXX"; then
4948 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4949else
4950 ac_prog_rejected=no
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 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 +00004958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4959 ac_prog_rejected=yes
4960 continue
4961 fi
4962 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004964 break 2
4965 fi
4966done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004967done
Jim Grosbach673612e2008-10-02 22:56:44 +00004968IFS=$as_save_IFS
4969
4970if test $ac_prog_rejected = yes; then
4971 # We found a bogon in the path, so make sure we never use it.
4972 set dummy $ac_cv_prog_BUILD_CXX
4973 shift
4974 if test $# != 0; then
4975 # We chose a different compiler from the bogus one.
4976 # However, it has the same basename, so the bogon will be chosen
4977 # first if we set BUILD_CXX to just the basename; use the full file name.
4978 shift
4979 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4980 fi
4981fi
4982fi
4983fi
4984BUILD_CXX=$ac_cv_prog_BUILD_CXX
4985if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004986 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4987echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004989 { echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004991fi
4992
4993
4994 fi
4995 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004996else
4997 LLVM_CROSS_COMPILING=0
4998
4999fi
5000
Dan Gohman56fb5f92010-08-04 16:25:01 +00005001if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005002 cvsbuild="yes"
5003 optimize="no"
5004 CVSBUILD=CVSBUILD=1
5005
5006else
5007 cvsbuild="no"
5008 optimize="yes"
5009fi
5010
5011
Eric Christopherbee515f2011-11-11 22:51:42 +00005012# Check whether --enable-libcpp was given.
5013if test "${enable_libcpp+set}" = set; then
5014 enableval=$enable_libcpp;
5015else
5016 enableval=default
5017fi
5018
5019case "$enableval" in
5020 yes) ENABLE_LIBCPP=1
5021 ;;
5022 no) ENABLE_LIBCPP=0
5023 ;;
5024 default) ENABLE_LIBCPP=0
5025;;
5026 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5027echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5028 { (exit 1); exit 1; }; } ;;
5029esac
5030
Eric Christopher82120022012-08-03 19:47:14 +00005031# Check whether --enable-cxx11 was given.
5032if test "${enable_cxx11+set}" = set; then
5033 enableval=$enable_cxx11;
5034else
5035 enableval=default
5036fi
5037
5038case "$enableval" in
5039 yes) ENABLE_CXX11=1
5040 ;;
5041 no) ENABLE_CXX11=0
5042 ;;
5043 default) ENABLE_CXX11=0
5044;;
5045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5046echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5048esac
5049
Reid Spencera773bd52006-08-04 18:18:08 +00005050# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005051if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005052 enableval=$enable_optimized;
5053else
5054 enableval=$optimize
5055fi
5056
5057if test ${enableval} = "no" ; then
5058 ENABLE_OPTIMIZED=
5059
5060else
5061 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5062
5063fi
5064
David Greene2a5a12c2009-04-17 14:50:39 +00005065# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005066if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005067 enableval=$enable_profiling;
5068else
5069 enableval="no"
5070fi
5071
5072if test ${enableval} = "no" ; then
5073 ENABLE_PROFILING=
5074
5075else
5076 ENABLE_PROFILING=ENABLE_PROFILING=1
5077
5078fi
5079
Reid Spencera773bd52006-08-04 18:18:08 +00005080# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005081if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005082 enableval=$enable_assertions;
5083else
5084 enableval="yes"
5085fi
5086
5087if test ${enableval} = "yes" ; then
5088 DISABLE_ASSERTIONS=
5089
5090else
5091 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5092
5093fi
5094
Eric Christopher09a88732012-08-03 19:58:20 +00005095# Check whether --enable-werror was given.
5096if test "${enable_werror+set}" = set; then
5097 enableval=$enable_werror;
5098else
5099 enableval="no"
5100fi
5101
5102case "$enableval" in
5103 yes) ENABLE_WERROR=1
5104 ;;
5105 no) ENABLE_WERROR=0
5106 ;;
5107 default) ENABLE_WERROR=0
5108;;
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5110echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5112esac
5113
David Greenea696d242007-06-28 19:36:08 +00005114# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005115if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005116 enableval=$enable_expensive_checks;
5117else
5118 enableval="no"
5119fi
5120
5121if test ${enableval} = "yes" ; then
5122 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5123
5124 EXPENSIVE_CHECKS=yes
5125
5126else
5127 ENABLE_EXPENSIVE_CHECKS=
5128
5129 EXPENSIVE_CHECKS=no
5130
5131fi
5132
Reid Spencer8b2e1412006-11-17 03:32:33 +00005133# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005134if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005135 enableval=$enable_debug_runtime;
5136else
5137 enableval=no
5138fi
5139
5140if test ${enableval} = "no" ; then
5141 DEBUG_RUNTIME=
5142
5143else
5144 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5145
5146fi
5147
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005148# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005149if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005150 enableval=$enable_debug_symbols;
5151else
5152 enableval=no
5153fi
5154
5155if test ${enableval} = "no" ; then
5156 DEBUG_SYMBOLS=
5157
5158else
5159 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5160
5161fi
5162
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005163# Check whether --enable-keep-symbols was given.
5164if test "${enable_keep_symbols+set}" = set; then
5165 enableval=$enable_keep_symbols;
5166else
5167 enableval=no
5168fi
5169
5170if test ${enableval} = "no" ; then
5171 KEEP_SYMBOLS=
5172
5173else
5174 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5175
5176fi
5177
Reid Spencera773bd52006-08-04 18:18:08 +00005178# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005179if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005180 enableval=$enable_jit;
5181else
5182 enableval=default
5183fi
5184
5185if test ${enableval} = "no"
5186then
5187 JIT=
5188
5189else
5190 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005191 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005192 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005193 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005194 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005195 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005196 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005197 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005198 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005199 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005200 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005201 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005202 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005203 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005204 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005205 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005206 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005207 Hexagon) TARGET_HAS_JIT=0
5208 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005209 MBlaze) TARGET_HAS_JIT=0
5210 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005211 NVPTX) TARGET_HAS_JIT=0
5212 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005213 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005214 ;;
5215 esac
5216fi
5217
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005218# Check whether --enable-docs was given.
5219if test "${enable_docs+set}" = set; then
5220 enableval=$enable_docs;
5221else
5222 enableval=default
5223fi
5224
5225case "$enableval" in
5226 yes) ENABLE_DOCS=1
5227 ;;
5228 no) ENABLE_DOCS=0
5229 ;;
5230 default) ENABLE_DOCS=1
5231 ;;
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5233echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5235esac
5236
Reid Spencera773bd52006-08-04 18:18:08 +00005237# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005238if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005239 enableval=$enable_doxygen;
5240else
5241 enableval=default
5242fi
5243
5244case "$enableval" in
5245 yes) ENABLE_DOXYGEN=1
5246 ;;
5247 no) ENABLE_DOXYGEN=0
5248 ;;
5249 default) ENABLE_DOXYGEN=0
5250 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5252echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5253 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005254esac
5255
5256# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005257if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005258 enableval=$enable_threads;
5259else
Reid Spencer65c5d752006-11-05 17:08:18 +00005260 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005261fi
5262
5263case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005264 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005265 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005266 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005267 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005268 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005269 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5271echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005273esac
5274
Owen Andersona8603702009-05-19 22:18:56 +00005275cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005276#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005277_ACEOF
5278
5279
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005280# Check whether --enable-pthreads was given.
5281if test "${enable_pthreads+set}" = set; then
5282 enableval=$enable_pthreads;
5283else
5284 enableval=default
5285fi
5286
5287case "$enableval" in
5288 yes) ENABLE_PTHREADS=1
5289 ;;
5290 no) ENABLE_PTHREADS=0
5291 ;;
5292 default) ENABLE_PTHREADS=1
5293 ;;
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5295echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5297esac
5298
Reid Spencer89b0d992006-12-16 22:07:52 +00005299# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005300if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005301 enableval=$enable_pic;
5302else
5303 enableval=default
5304fi
5305
5306case "$enableval" in
5307 yes) ENABLE_PIC=1
5308 ;;
5309 no) ENABLE_PIC=0
5310 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005311 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005312 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005313 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5314echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5315 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005316esac
5317
5318cat >>confdefs.h <<_ACEOF
5319#define ENABLE_PIC $ENABLE_PIC
5320_ACEOF
5321
5322
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005323# Check whether --enable-shared was given.
5324if test "${enable_shared+set}" = set; then
5325 enableval=$enable_shared;
5326else
5327 enableval=default
5328fi
5329
5330case "$enableval" in
5331 yes) ENABLE_SHARED=1
5332 ;;
5333 no) ENABLE_SHARED=0
5334 ;;
5335 default) ENABLE_SHARED=0
5336 ;;
5337 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5338echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5339 { (exit 1); exit 1; }; } ;;
5340esac
5341
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005342# Check whether --enable-embed-stdcxx was given.
5343if test "${enable_embed_stdcxx+set}" = set; then
5344 enableval=$enable_embed_stdcxx;
5345else
5346 enableval=default
5347fi
5348
5349case "$enableval" in
5350 yes) ENABLE_EMBED_STDCXX=1
5351 ;;
5352 no) ENABLE_EMBED_STDCXX=0
5353 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005354 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005355 ;;
5356 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5357echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5358 { (exit 1); exit 1; }; } ;;
5359esac
5360
Daniel Dunbardd464df2010-05-10 20:11:56 +00005361# Check whether --enable-timestamps was given.
5362if test "${enable_timestamps+set}" = set; then
5363 enableval=$enable_timestamps;
5364else
5365 enableval=default
5366fi
5367
5368case "$enableval" in
5369 yes) ENABLE_TIMESTAMPS=1
5370 ;;
5371 no) ENABLE_TIMESTAMPS=0
5372 ;;
5373 default) ENABLE_TIMESTAMPS=1
5374 ;;
5375 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5376echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5377 { (exit 1); exit 1; }; } ;;
5378esac
5379
5380cat >>confdefs.h <<_ACEOF
5381#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5382_ACEOF
5383
5384
Eric Christopherc69bdad2012-09-21 23:03:29 +00005385
5386# Check whether --enable-backtraces was given.
5387if test "${enable_backtraces+set}" = set; then
5388 enableval=$enable_backtraces;
5389else
5390 enableval=default
5391fi
5392
5393case "$enableval" in
Eric Christopherf0b3b742012-11-19 19:31:02 +00005394 yes) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005395 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005396 no) ENABLE_BACKTRACES=0
Eric Christopherc69bdad2012-09-21 23:03:29 +00005397 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005398 default) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005399 ;;
5400 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5401echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5402 { (exit 1); exit 1; }; } ;;
5403esac
5404
5405cat >>confdefs.h <<_ACEOF
5406#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5407_ACEOF
5408
5409
Reid Spencera773bd52006-08-04 18:18:08 +00005410TARGETS_TO_BUILD=""
5411# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005412if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005413 enableval=$enable_targets;
5414else
5415 enableval=all
5416fi
5417
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005418if test "$enableval" = host-only ; then
5419 enableval=host
5420fi
Reid Spencera773bd52006-08-04 18:18:08 +00005421case "$enableval" in
Eric Christopher06b42342012-11-14 22:09:20 +00005422 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005423 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5424 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005425 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5426 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5427 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5428 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005429 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5430 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005431 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00005432 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5433 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005434 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5435 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005436 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005437 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005438 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005439 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005440 host) case "$llvm_cv_target_arch" in
5441 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5442 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5443 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5444 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005445 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5446 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005447 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005448 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5449 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005450 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005451 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005452 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5453echo "$as_me: error: Can not set target to build" >&2;}
5454 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005455 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005456 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5457echo "$as_me: error: Unrecognized target $a_target" >&2;}
5458 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005459 esac
5460 done
5461 ;;
5462esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005463
5464# Check whether --enable-experimental-targets was given.
5465if test "${enable_experimental_targets+set}" = set; then
5466 enableval=$enable_experimental_targets;
5467else
5468 enableval=disable
5469fi
5470
5471
5472if test ${enableval} != "disable"
5473then
5474 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5475fi
5476
Reid Spencera773bd52006-08-04 18:18:08 +00005477TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5478
5479
Douglas Gregor0711c302009-06-17 00:43:20 +00005480for a_target in $TARGETS_TO_BUILD; do
5481 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5482
5483cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005484#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5485_ACEOF
5486
5487 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5488 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005489 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005490 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005491 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5492 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5493 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005494 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5495 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5496 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005497
5498cat >>confdefs.h <<_ACEOF
5499#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005500_ACEOF
5501
5502
5503cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005504#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5505_ACEOF
5506
5507
5508cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005509#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005510_ACEOF
5511
5512
5513cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005514#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005515_ACEOF
5516
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005517 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005518
5519cat >>confdefs.h <<_ACEOF
5520#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5521_ACEOF
5522
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005523 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005524 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5525
5526cat >>confdefs.h <<_ACEOF
5527#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5528_ACEOF
5529
5530 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005531 fi
5532done
5533
Douglas Gregor1555a232009-06-16 20:12:29 +00005534LLVM_ENUM_TARGETS=""
5535LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005536LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005537LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005538for target_to_build in $TARGETS_TO_BUILD; do
5539 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005540 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005541 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5542 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005543 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5544 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5545 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005546 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5547 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5548 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005549done
5550
5551
5552
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005553
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005554
Reid Spencera773bd52006-08-04 18:18:08 +00005555
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005556# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005557if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005558 withval=$with_optimize_option;
5559else
5560 withval=default
5561fi
5562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005563{ echo "$as_me:$LINENO: checking optimization flags" >&5
5564echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005565case "$withval" in
5566 default)
5567 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005568 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005569 MingW) optimize_option=-O2 ;;
5570 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005571 esac ;;
5572 *) optimize_option="$withval" ;;
5573esac
5574OPTIMIZE_OPTION=$optimize_option
5575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005576{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5577echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005578
5579
Reid Spencera773bd52006-08-04 18:18:08 +00005580# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005581if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005582 withval=$with_extra_options;
5583else
5584 withval=default
5585fi
5586
5587case "$withval" in
5588 default) EXTRA_OPTIONS= ;;
5589 *) EXTRA_OPTIONS=$withval ;;
5590esac
5591EXTRA_OPTIONS=$EXTRA_OPTIONS
5592
5593
Daniel Dunbared344d22011-06-16 22:30:41 +00005594
5595# Check whether --with-extra-ld-options was given.
5596if test "${with_extra_ld_options+set}" = set; then
5597 withval=$with_extra_ld_options;
5598else
5599 withval=default
5600fi
5601
5602case "$withval" in
5603 default) EXTRA_LD_OPTIONS= ;;
5604 *) EXTRA_LD_OPTIONS=$withval ;;
5605esac
5606EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5607
5608
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005609# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005610if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005611 enableval=$enable_bindings;
5612else
5613 enableval=default
5614fi
5615
5616BINDINGS_TO_BUILD=""
5617case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005618 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005619 all ) BINDINGS_TO_BUILD="ocaml" ;;
5620 none | no) BINDINGS_TO_BUILD="" ;;
5621 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5622 case "$a_binding" in
5623 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005624 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5625echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5626 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005627 esac
5628 done
5629 ;;
5630esac
5631
Reid Spencera773bd52006-08-04 18:18:08 +00005632
Gordon Henriksenf0915682007-10-02 16:42:22 +00005633# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005634if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005635 withval=$with_ocaml_libdir;
5636else
5637 withval=auto
5638fi
5639
5640case "$withval" in
5641 auto) with_ocaml_libdir="$withval" ;;
5642 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005643 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5644echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5645 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005646esac
5647
5648
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005649# Check whether --with-clang-srcdir was given.
5650if test "${with_clang_srcdir+set}" = set; then
5651 withval=$with_clang_srcdir;
5652else
5653 withval="-"
5654fi
5655
5656case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005657 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005658 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5659 *) clang_src_root="$ac_pwd/$withval" ;;
5660esac
5661CLANG_SRC_ROOT=$clang_src_root
5662
5663
5664
Chandler Carruth6b241162010-10-19 08:21:25 +00005665# Check whether --with-clang-resource-dir was given.
5666if test "${with_clang_resource_dir+set}" = set; then
5667 withval=$with_clang_resource_dir;
5668else
5669 withval=""
5670fi
5671
5672
5673cat >>confdefs.h <<_ACEOF
5674#define CLANG_RESOURCE_DIR "$withval"
5675_ACEOF
5676
5677
5678
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005679# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005680if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005681 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005682else
5683 withval=""
5684fi
5685
5686
5687cat >>confdefs.h <<_ACEOF
5688#define C_INCLUDE_DIRS "$withval"
5689_ACEOF
5690
5691
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005692# Clang normally uses the system c++ headers and libraries. With this option,
5693# clang will use the ones provided by a gcc installation instead. This option should
5694# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005695
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005696# Check whether --with-gcc-toolchain was given.
5697if test "${with_gcc_toolchain+set}" = set; then
5698 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005699else
5700 withval=""
5701fi
5702
5703
5704cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005705#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005706_ACEOF
5707
5708
5709
Sebastian Pope4f1b372012-04-30 20:06:58 +00005710# Check whether --with-default-sysroot was given.
5711if test "${with_default_sysroot+set}" = set; then
5712 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005713else
5714 withval=""
5715fi
5716
5717
5718cat >>confdefs.h <<_ACEOF
5719#define DEFAULT_SYSROOT "$withval"
5720_ACEOF
5721
5722
5723
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005724# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005725if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005726 withval=$with_binutils_include;
5727else
5728 withval=default
5729fi
5730
5731case "$withval" in
5732 default) WITH_BINUTILS_INCDIR=default ;;
5733 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5735echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5736 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005737esac
5738if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5739 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5740
5741 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5742 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5744echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5745 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005746 fi
5747fi
5748
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005749
5750# Check whether --with-bug-report-url was given.
5751if test "${with_bug_report_url+set}" = set; then
5752 withval=$with_bug_report_url;
5753else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005754 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005755fi
5756
5757
5758cat >>confdefs.h <<_ACEOF
5759#define BUG_REPORT_URL "$withval"
5760_ACEOF
5761
5762
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005763# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005764if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005765 enableval=$enable_libffi; case "$enableval" in
5766 yes) llvm_cv_enable_libffi="yes" ;;
5767 no) llvm_cv_enable_libffi="no" ;;
5768 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5770 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005771 esac
5772else
5773 llvm_cv_enable_libffi=no
5774fi
5775
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005776
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005777
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005778# Check whether --with-internal-prefix was given.
5779if test "${with_internal_prefix+set}" = set; then
5780 withval=$with_internal_prefix;
5781else
5782 withval=""
5783fi
5784
5785INTERNAL_PREFIX=$withval
5786
5787
5788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5790echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5791if test "${lt_cv_path_NM+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005793else
5794 if test -n "$NM"; then
5795 # Let the user override the test.
5796 lt_cv_path_NM="$NM"
5797else
5798 lt_nm_to_check="${ac_tool_prefix}nm"
5799 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5800 lt_nm_to_check="$lt_nm_to_check nm"
5801 fi
5802 for lt_tmp_nm in $lt_nm_to_check; do
5803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5804 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5805 IFS="$lt_save_ifs"
5806 test -z "$ac_dir" && ac_dir=.
5807 tmp_nm="$ac_dir/$lt_tmp_nm"
5808 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5809 # Check to see if the nm accepts a BSD-compat flag.
5810 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5811 # nm: unknown option "B" ignored
5812 # Tru64's nm complains that /dev/null is an invalid object file
5813 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5814 */dev/null* | *'Invalid file or object type'*)
5815 lt_cv_path_NM="$tmp_nm -B"
5816 break
5817 ;;
5818 *)
5819 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5820 */dev/null*)
5821 lt_cv_path_NM="$tmp_nm -p"
5822 break
5823 ;;
5824 *)
5825 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5826 continue # so that we can try to find one that supports BSD flags
5827 ;;
5828 esac
5829 ;;
5830 esac
5831 fi
5832 done
5833 IFS="$lt_save_ifs"
5834 done
5835 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5836fi
5837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5839echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005840NM="$lt_cv_path_NM"
5841
5842
5843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005844{ echo "$as_me:$LINENO: checking for GNU make" >&5
5845echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5846if test "${llvm_cv_gnu_make_command+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005848else
5849 llvm_cv_gnu_make_command=''
5850 for a in "$MAKE" make gmake gnumake ; do
5851 if test -z "$a" ; then continue ; fi ;
5852 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5853 then
5854 llvm_cv_gnu_make_command=$a ;
5855 break;
5856 fi
5857 done
5858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5860echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005861 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5862 ifGNUmake='' ;
5863 else
5864 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005865 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5866echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005867 fi
5868
5869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005870{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5871echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005872LN_S=$as_ln_s
5873if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874 { echo "$as_me:$LINENO: result: yes" >&5
5875echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5878echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005879fi
5880
5881# Extract the first word of "cmp", so it can be a program name with args.
5882set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885if test "${ac_cv_path_CMP+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005887else
5888 case $CMP in
5889 [\\/]* | ?:[\\/]*)
5890 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5891 ;;
5892 *)
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894for as_dir in $PATH
5895do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 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 +00005900 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005902 break 2
5903 fi
5904done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005905done
Reid Spencera773bd52006-08-04 18:18:08 +00005906IFS=$as_save_IFS
5907
5908 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5909 ;;
5910esac
5911fi
5912CMP=$ac_cv_path_CMP
5913if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005914 { echo "$as_me:$LINENO: result: $CMP" >&5
5915echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917 { echo "$as_me:$LINENO: result: no" >&5
5918echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005919fi
5920
5921
5922# Extract the first word of "cp", so it can be a program name with args.
5923set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926if test "${ac_cv_path_CP+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005928else
5929 case $CP in
5930 [\\/]* | ?:[\\/]*)
5931 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5932 ;;
5933 *)
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 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 +00005941 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005943 break 2
5944 fi
5945done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946done
Reid Spencera773bd52006-08-04 18:18:08 +00005947IFS=$as_save_IFS
5948
5949 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5950 ;;
5951esac
5952fi
5953CP=$ac_cv_path_CP
5954if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005955 { echo "$as_me:$LINENO: result: $CP" >&5
5956echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958 { echo "$as_me:$LINENO: result: no" >&5
5959echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005960fi
5961
5962
5963# Extract the first word of "date", so it can be a program name with args.
5964set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967if test "${ac_cv_path_DATE+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005969else
5970 case $DATE in
5971 [\\/]* | ?:[\\/]*)
5972 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5973 ;;
5974 *)
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 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 +00005982 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005984 break 2
5985 fi
5986done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005987done
Reid Spencera773bd52006-08-04 18:18:08 +00005988IFS=$as_save_IFS
5989
5990 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5991 ;;
5992esac
5993fi
5994DATE=$ac_cv_path_DATE
5995if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005996 { echo "$as_me:$LINENO: result: $DATE" >&5
5997echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999 { echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006001fi
6002
6003
6004# Extract the first word of "find", so it can be a program name with args.
6005set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008if test "${ac_cv_path_FIND+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006010else
6011 case $FIND in
6012 [\\/]* | ?:[\\/]*)
6013 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6014 ;;
6015 *)
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 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 +00006023 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006025 break 2
6026 fi
6027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028done
Reid Spencera773bd52006-08-04 18:18:08 +00006029IFS=$as_save_IFS
6030
6031 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6032 ;;
6033esac
6034fi
6035FIND=$ac_cv_path_FIND
6036if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037 { echo "$as_me:$LINENO: result: $FIND" >&5
6038echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006039else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040 { echo "$as_me:$LINENO: result: no" >&5
6041echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006042fi
6043
6044
6045# Extract the first word of "grep", so it can be a program name with args.
6046set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049if test "${ac_cv_path_GREP+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006051else
6052 case $GREP in
6053 [\\/]* | ?:[\\/]*)
6054 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6055 ;;
6056 *)
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 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 +00006064 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006066 break 2
6067 fi
6068done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069done
Reid Spencera773bd52006-08-04 18:18:08 +00006070IFS=$as_save_IFS
6071
6072 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6073 ;;
6074esac
6075fi
6076GREP=$ac_cv_path_GREP
6077if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006078 { echo "$as_me:$LINENO: result: $GREP" >&5
6079echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081 { echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006083fi
6084
6085
6086# Extract the first word of "mkdir", so it can be a program name with args.
6087set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090if test "${ac_cv_path_MKDIR+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006092else
6093 case $MKDIR in
6094 [\\/]* | ?:[\\/]*)
6095 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6096 ;;
6097 *)
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 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 +00006105 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006107 break 2
6108 fi
6109done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110done
Reid Spencera773bd52006-08-04 18:18:08 +00006111IFS=$as_save_IFS
6112
6113 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6114 ;;
6115esac
6116fi
6117MKDIR=$ac_cv_path_MKDIR
6118if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006119 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6120echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006121else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122 { echo "$as_me:$LINENO: result: no" >&5
6123echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006124fi
6125
6126
6127# Extract the first word of "mv", so it can be a program name with args.
6128set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131if test "${ac_cv_path_MV+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006133else
6134 case $MV in
6135 [\\/]* | ?:[\\/]*)
6136 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6137 ;;
6138 *)
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006146 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006148 break 2
6149 fi
6150done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006151done
Reid Spencera773bd52006-08-04 18:18:08 +00006152IFS=$as_save_IFS
6153
6154 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6155 ;;
6156esac
6157fi
6158MV=$ac_cv_path_MV
6159if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006160 { echo "$as_me:$LINENO: result: $MV" >&5
6161echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006163 { echo "$as_me:$LINENO: result: no" >&5
6164echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006165fi
6166
6167
6168if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6170set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173if test "${ac_cv_prog_RANLIB+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006175else
6176 if test -n "$RANLIB"; then
6177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006188 break 2
6189 fi
6190done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191done
Reid Spencera773bd52006-08-04 18:18:08 +00006192IFS=$as_save_IFS
6193
6194fi
6195fi
6196RANLIB=$ac_cv_prog_RANLIB
6197if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6199echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201 { echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006203fi
6204
6205
6206fi
6207if test -z "$ac_cv_prog_RANLIB"; then
6208 ac_ct_RANLIB=$RANLIB
6209 # Extract the first word of "ranlib", so it can be a program name with args.
6210set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006211{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006215else
6216 if test -n "$ac_ct_RANLIB"; then
6217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 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 +00006226 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006228 break 2
6229 fi
6230done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231done
Reid Spencera773bd52006-08-04 18:18:08 +00006232IFS=$as_save_IFS
6233
6234fi
6235fi
6236ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6237if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006238 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6239echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006241 { echo "$as_me:$LINENO: result: no" >&5
6242echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006243fi
6244
6245 if test "x$ac_ct_RANLIB" = x; then
6246 RANLIB=":"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251whose name does not start with the host triplet. If you think this
6252configuration is useful to you, please write to autoconf@gnu.org." >&5
6253echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006256ac_tool_warned=yes ;;
6257esac
6258 RANLIB=$ac_ct_RANLIB
6259 fi
6260else
6261 RANLIB="$ac_cv_prog_RANLIB"
6262fi
6263
Torok Edwin871384f2010-01-26 08:50:50 +00006264if test -n "$ac_tool_prefix"; then
6265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6266set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269if test "${ac_cv_prog_AR+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006271else
6272 if test -n "$AR"; then
6273 ac_cv_prog_AR="$AR" # Let the user override the test.
6274else
6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276for as_dir in $PATH
6277do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 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 +00006282 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006284 break 2
6285 fi
6286done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287done
Torok Edwin871384f2010-01-26 08:50:50 +00006288IFS=$as_save_IFS
6289
6290fi
6291fi
6292AR=$ac_cv_prog_AR
6293if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294 { echo "$as_me:$LINENO: result: $AR" >&5
6295echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297 { echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006299fi
6300
6301
6302fi
6303if test -z "$ac_cv_prog_AR"; then
6304 ac_ct_AR=$AR
6305 # Extract the first word of "ar", so it can be a program name with args.
6306set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006311else
6312 if test -n "$ac_ct_AR"; then
6313 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 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 +00006322 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006324 break 2
6325 fi
6326done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006327done
Torok Edwin871384f2010-01-26 08:50:50 +00006328IFS=$as_save_IFS
6329
6330fi
6331fi
6332ac_ct_AR=$ac_cv_prog_ac_ct_AR
6333if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6335echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337 { echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006339fi
6340
6341 if test "x$ac_ct_AR" = x; then
6342 AR="false"
6343 else
6344 case $cross_compiling:$ac_tool_warned in
6345yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006346{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6347whose name does not start with the host triplet. If you think this
6348configuration is useful to you, please write to autoconf@gnu.org." >&5
6349echo "$as_me: 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." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006352ac_tool_warned=yes ;;
6353esac
6354 AR=$ac_ct_AR
6355 fi
6356else
6357 AR="$ac_cv_prog_AR"
6358fi
6359
Reid Spencera773bd52006-08-04 18:18:08 +00006360# Extract the first word of "rm", so it can be a program name with args.
6361set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364if test "${ac_cv_path_RM+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006366else
6367 case $RM in
6368 [\\/]* | ?:[\\/]*)
6369 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6370 ;;
6371 *)
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH
6374do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 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 +00006379 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006381 break 2
6382 fi
6383done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384done
Reid Spencera773bd52006-08-04 18:18:08 +00006385IFS=$as_save_IFS
6386
6387 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6388 ;;
6389esac
6390fi
6391RM=$ac_cv_path_RM
6392if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006393 { echo "$as_me:$LINENO: result: $RM" >&5
6394echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006395else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396 { echo "$as_me:$LINENO: result: no" >&5
6397echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006398fi
6399
6400
6401# Extract the first word of "sed", so it can be a program name with args.
6402set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405if test "${ac_cv_path_SED+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006407else
6408 case $SED in
6409 [\\/]* | ?:[\\/]*)
6410 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6411 ;;
6412 *)
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 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 +00006420 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006422 break 2
6423 fi
6424done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425done
Reid Spencera773bd52006-08-04 18:18:08 +00006426IFS=$as_save_IFS
6427
6428 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6429 ;;
6430esac
6431fi
6432SED=$ac_cv_path_SED
6433if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006434 { echo "$as_me:$LINENO: result: $SED" >&5
6435echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006437 { echo "$as_me:$LINENO: result: no" >&5
6438echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006439fi
6440
6441
6442# Extract the first word of "tar", so it can be a program name with args.
6443set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446if test "${ac_cv_path_TAR+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006448else
6449 case $TAR in
6450 [\\/]* | ?:[\\/]*)
6451 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6452 ;;
6453 *)
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 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 +00006461 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006463 break 2
6464 fi
6465done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006466done
Reid Spencera773bd52006-08-04 18:18:08 +00006467IFS=$as_save_IFS
6468
6469 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6470 ;;
6471esac
6472fi
6473TAR=$ac_cv_path_TAR
6474if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006475 { echo "$as_me:$LINENO: result: $TAR" >&5
6476echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 { echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006480fi
6481
6482
6483# Extract the first word of "pwd", so it can be a program name with args.
6484set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487if test "${ac_cv_path_BINPWD+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006489else
6490 case $BINPWD in
6491 [\\/]* | ?:[\\/]*)
6492 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6493 ;;
6494 *)
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006502 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006504 break 2
6505 fi
6506done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006507done
Reid Spencera773bd52006-08-04 18:18:08 +00006508IFS=$as_save_IFS
6509
6510 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6511 ;;
6512esac
6513fi
6514BINPWD=$ac_cv_path_BINPWD
6515if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006516 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6517echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006518else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519 { echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006521fi
6522
6523
6524
6525# Extract the first word of "Graphviz", so it can be a program name with args.
6526set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006531else
6532 case $GRAPHVIZ in
6533 [\\/]* | ?:[\\/]*)
6534 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6535 ;;
6536 *)
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538for as_dir in $PATH
6539do
6540 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 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 +00006544 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006546 break 2
6547 fi
6548done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549done
Reid Spencera773bd52006-08-04 18:18:08 +00006550IFS=$as_save_IFS
6551
6552 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6553 ;;
6554esac
6555fi
6556GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6557if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6559echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006561 { echo "$as_me:$LINENO: result: no" >&5
6562echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006563fi
6564
6565
6566if test "$GRAPHVIZ" != "echo Graphviz" ; then
6567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568cat >>confdefs.h <<\_ACEOF
6569#define HAVE_GRAPHVIZ 1
6570_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006571
Jeff Cohen28783c32007-01-12 18:22:38 +00006572 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006573 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6574 fi
6575
6576cat >>confdefs.h <<_ACEOF
6577#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6578_ACEOF
6579
6580fi
6581# Extract the first word of "dot", so it can be a program name with args.
6582set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585if test "${ac_cv_path_DOT+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006587else
6588 case $DOT in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6591 ;;
6592 *)
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 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 +00006600 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006602 break 2
6603 fi
6604done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006605done
Reid Spencera773bd52006-08-04 18:18:08 +00006606IFS=$as_save_IFS
6607
6608 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6609 ;;
6610esac
6611fi
6612DOT=$ac_cv_path_DOT
6613if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614 { echo "$as_me:$LINENO: result: $DOT" >&5
6615echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006617 { echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006619fi
6620
6621
6622if test "$DOT" != "echo dot" ; then
6623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624cat >>confdefs.h <<\_ACEOF
6625#define HAVE_DOT 1
6626_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006627
Jeff Cohen28783c32007-01-12 18:22:38 +00006628 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006629 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6630 fi
6631
6632cat >>confdefs.h <<_ACEOF
6633#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6634_ACEOF
6635
6636fi
David Greenef0b9eff2009-07-09 17:16:26 +00006637# Extract the first word of "fdp", so it can be a program name with args.
6638set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641if test "${ac_cv_path_FDP+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006643else
6644 case $FDP in
6645 [\\/]* | ?:[\\/]*)
6646 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6647 ;;
6648 *)
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 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 +00006656 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006658 break 2
6659 fi
6660done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006661done
David Greenef0b9eff2009-07-09 17:16:26 +00006662IFS=$as_save_IFS
6663
6664 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6665 ;;
6666esac
6667fi
6668FDP=$ac_cv_path_FDP
6669if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670 { echo "$as_me:$LINENO: result: $FDP" >&5
6671echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006673 { echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006675fi
6676
6677
6678if test "$FDP" != "echo fdp" ; then
6679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680cat >>confdefs.h <<\_ACEOF
6681#define HAVE_FDP 1
6682_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006683
6684 if test "$llvm_cv_os_type" = "MingW" ; then
6685 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6686 fi
6687
6688cat >>confdefs.h <<_ACEOF
6689#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6690_ACEOF
6691
6692fi
6693# Extract the first word of "neato", so it can be a program name with args.
6694set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697if test "${ac_cv_path_NEATO+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006699else
6700 case $NEATO in
6701 [\\/]* | ?:[\\/]*)
6702 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6703 ;;
6704 *)
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 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 +00006712 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006714 break 2
6715 fi
6716done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717done
David Greenef0b9eff2009-07-09 17:16:26 +00006718IFS=$as_save_IFS
6719
6720 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6721 ;;
6722esac
6723fi
6724NEATO=$ac_cv_path_NEATO
6725if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726 { echo "$as_me:$LINENO: result: $NEATO" >&5
6727echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006728else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729 { echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006731fi
6732
6733
6734if test "$NEATO" != "echo neato" ; then
6735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736cat >>confdefs.h <<\_ACEOF
6737#define HAVE_NEATO 1
6738_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006739
6740 if test "$llvm_cv_os_type" = "MingW" ; then
6741 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6742 fi
6743
6744cat >>confdefs.h <<_ACEOF
6745#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6746_ACEOF
6747
6748fi
6749# Extract the first word of "twopi", so it can be a program name with args.
6750set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753if test "${ac_cv_path_TWOPI+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006755else
6756 case $TWOPI in
6757 [\\/]* | ?:[\\/]*)
6758 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6759 ;;
6760 *)
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 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 +00006768 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006770 break 2
6771 fi
6772done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006773done
David Greenef0b9eff2009-07-09 17:16:26 +00006774IFS=$as_save_IFS
6775
6776 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6777 ;;
6778esac
6779fi
6780TWOPI=$ac_cv_path_TWOPI
6781if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6783echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006784else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785 { echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006787fi
6788
6789
6790if test "$TWOPI" != "echo twopi" ; then
6791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792cat >>confdefs.h <<\_ACEOF
6793#define HAVE_TWOPI 1
6794_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006795
6796 if test "$llvm_cv_os_type" = "MingW" ; then
6797 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6798 fi
6799
6800cat >>confdefs.h <<_ACEOF
6801#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6802_ACEOF
6803
6804fi
6805# Extract the first word of "circo", so it can be a program name with args.
6806set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809if test "${ac_cv_path_CIRCO+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006811else
6812 case $CIRCO in
6813 [\\/]* | ?:[\\/]*)
6814 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6815 ;;
6816 *)
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 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 +00006824 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006826 break 2
6827 fi
6828done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829done
David Greenef0b9eff2009-07-09 17:16:26 +00006830IFS=$as_save_IFS
6831
6832 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6833 ;;
6834esac
6835fi
6836CIRCO=$ac_cv_path_CIRCO
6837if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6839echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 { echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006843fi
6844
6845
6846if test "$CIRCO" != "echo circo" ; then
6847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848cat >>confdefs.h <<\_ACEOF
6849#define HAVE_CIRCO 1
6850_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006851
6852 if test "$llvm_cv_os_type" = "MingW" ; then
6853 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6854 fi
6855
6856cat >>confdefs.h <<_ACEOF
6857#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6858_ACEOF
6859
6860fi
Reid Spencera773bd52006-08-04 18:18:08 +00006861for ac_prog in gv gsview32
6862do
6863 # Extract the first word of "$ac_prog", so it can be a program name with args.
6864set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_path_GV+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006869else
6870 case $GV in
6871 [\\/]* | ?:[\\/]*)
6872 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6873 ;;
6874 *)
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 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 +00006882 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006884 break 2
6885 fi
6886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887done
Reid Spencera773bd52006-08-04 18:18:08 +00006888IFS=$as_save_IFS
6889
6890 ;;
6891esac
6892fi
6893GV=$ac_cv_path_GV
6894if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006895 { echo "$as_me:$LINENO: result: $GV" >&5
6896echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006898 { echo "$as_me:$LINENO: result: no" >&5
6899echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006900fi
6901
6902
6903 test -n "$GV" && break
6904done
6905test -n "$GV" || GV="echo gv"
6906
6907if test "$GV" != "echo gv" ; then
6908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909cat >>confdefs.h <<\_ACEOF
6910#define HAVE_GV 1
6911_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006912
Jeff Cohen28783c32007-01-12 18:22:38 +00006913 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006914 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6915 fi
6916
6917cat >>confdefs.h <<_ACEOF
6918#define LLVM_PATH_GV "$GV${EXEEXT}"
6919_ACEOF
6920
6921fi
6922# Extract the first word of "dotty", so it can be a program name with args.
6923set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926if test "${ac_cv_path_DOTTY+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006928else
6929 case $DOTTY in
6930 [\\/]* | ?:[\\/]*)
6931 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6932 ;;
6933 *)
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 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 +00006941 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006943 break 2
6944 fi
6945done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946done
Reid Spencera773bd52006-08-04 18:18:08 +00006947IFS=$as_save_IFS
6948
6949 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6950 ;;
6951esac
6952fi
6953DOTTY=$ac_cv_path_DOTTY
6954if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6956echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006958 { echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006960fi
6961
6962
6963if test "$DOTTY" != "echo dotty" ; then
6964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965cat >>confdefs.h <<\_ACEOF
6966#define HAVE_DOTTY 1
6967_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006968
Jeff Cohen28783c32007-01-12 18:22:38 +00006969 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006970 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6971 fi
6972
6973cat >>confdefs.h <<_ACEOF
6974#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6975_ACEOF
6976
6977fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006978# Extract the first word of "xdot.py", so it can be a program name with args.
6979set dummy xdot.py; ac_word=$2
6980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982if test "${ac_cv_path_XDOT_PY+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
6985 case $XDOT_PY in
6986 [\\/]* | ?:[\\/]*)
6987 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6988 ;;
6989 *)
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001done
7002done
7003IFS=$as_save_IFS
7004
7005 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7006 ;;
7007esac
7008fi
7009XDOT_PY=$ac_cv_path_XDOT_PY
7010if test -n "$XDOT_PY"; then
7011 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7012echo "${ECHO_T}$XDOT_PY" >&6; }
7013else
7014 { echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6; }
7016fi
7017
7018
7019if test "$XDOT_PY" != "echo xdot.py" ; then
7020
7021cat >>confdefs.h <<\_ACEOF
7022#define HAVE_XDOT_PY 1
7023_ACEOF
7024
7025 if test "$llvm_cv_os_type" = "MingW" ; then
7026 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027 fi
7028
7029cat >>confdefs.h <<_ACEOF
7030#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7031_ACEOF
7032
7033fi
Reid Spencera773bd52006-08-04 18:18:08 +00007034
Reid Spencera773bd52006-08-04 18:18:08 +00007035# Find a good install program. We prefer a C program (faster),
7036# so one script is as good as another. But avoid the broken or
7037# incompatible versions:
7038# SysV /etc/install, /usr/sbin/install
7039# SunOS /usr/etc/install
7040# IRIX /sbin/install
7041# AIX /bin/install
7042# AmigaOS /C/install, which installs bootblocks on floppy discs
7043# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7044# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7045# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7046# OS/2's system install, which has a completely different semantic
7047# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007048{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7049echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007050if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051if test "${ac_cv_path_install+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007053else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007059 # Account for people who put trailing slashes in PATH elements.
7060case $as_dir/ in
7061 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007062 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007063 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007064 /usr/ucb/* ) ;;
7065 *)
7066 # OSF1 and SCO ODT 3.0 have their own names for install.
7067 # Don't use installbsd from OSF since it installs stuff as root
7068 # by default.
7069 for ac_prog in ginstall scoinst install; do
7070 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007071 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 +00007072 if test $ac_prog = install &&
7073 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7074 # AIX install. It has an incompatible calling convention.
7075 :
7076 elif test $ac_prog = install &&
7077 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7078 # program-specific install script used by HP pwplus--don't use.
7079 :
7080 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7082 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007083 fi
7084 fi
7085 done
7086 done
7087 ;;
7088esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089done
Reid Spencera773bd52006-08-04 18:18:08 +00007090IFS=$as_save_IFS
7091
7092
7093fi
7094 if test "${ac_cv_path_install+set}" = set; then
7095 INSTALL=$ac_cv_path_install
7096 else
7097 # As a last resort, use the slow shell script. Don't cache a
7098 # value for INSTALL within a source directory, because that will
7099 # break other packages using the cache if that directory is
7100 # removed, or if the value is a relative name.
7101 INSTALL=$ac_install_sh
7102 fi
7103fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007104{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7105echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007106
7107# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7108# It thinks the first close brace ends the variable substitution.
7109test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7110
7111test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7112
7113test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7114
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007115case "$INSTALL" in
7116 [\\/$]* | ?:[\\/]* ) ;;
7117 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7118esac
Reid Spencera773bd52006-08-04 18:18:08 +00007119
7120# Extract the first word of "bzip2", so it can be a program name with args.
7121set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124if test "${ac_cv_path_BZIP2+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007126else
7127 case $BZIP2 in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 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 +00007139 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007141 break 2
7142 fi
7143done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007144done
Reid Spencera773bd52006-08-04 18:18:08 +00007145IFS=$as_save_IFS
7146
Reid Spencera773bd52006-08-04 18:18:08 +00007147 ;;
7148esac
7149fi
7150BZIP2=$ac_cv_path_BZIP2
7151if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007152 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7153echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007154else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007157fi
7158
7159
mike-m68cb3192010-05-06 23:45:43 +00007160# Extract the first word of "cat", so it can be a program name with args.
7161set dummy cat; ac_word=$2
7162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164if test "${ac_cv_path_CAT+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 case $CAT in
7168 [\\/]* | ?:[\\/]*)
7169 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7170 ;;
7171 *)
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183done
7184done
7185IFS=$as_save_IFS
7186
7187 ;;
7188esac
7189fi
7190CAT=$ac_cv_path_CAT
7191if test -n "$CAT"; then
7192 { echo "$as_me:$LINENO: result: $CAT" >&5
7193echo "${ECHO_T}$CAT" >&6; }
7194else
7195 { echo "$as_me:$LINENO: result: no" >&5
7196echo "${ECHO_T}no" >&6; }
7197fi
7198
7199
Reid Spencera773bd52006-08-04 18:18:08 +00007200# Extract the first word of "doxygen", so it can be a program name with args.
7201set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204if test "${ac_cv_path_DOXYGEN+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007206else
7207 case $DOXYGEN in
7208 [\\/]* | ?:[\\/]*)
7209 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7210 ;;
7211 *)
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 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 +00007219 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007221 break 2
7222 fi
7223done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224done
Reid Spencera773bd52006-08-04 18:18:08 +00007225IFS=$as_save_IFS
7226
Reid Spencera773bd52006-08-04 18:18:08 +00007227 ;;
7228esac
7229fi
7230DOXYGEN=$ac_cv_path_DOXYGEN
7231if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007232 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7233echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007234else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235 { echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007237fi
7238
7239
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007240# Extract the first word of "groff", so it can be a program name with args.
7241set dummy groff; ac_word=$2
7242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244if test "${ac_cv_path_GROFF+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 case $GROFF in
7248 [\\/]* | ?:[\\/]*)
7249 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7250 ;;
7251 *)
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263done
7264done
7265IFS=$as_save_IFS
7266
7267 ;;
7268esac
7269fi
7270GROFF=$ac_cv_path_GROFF
7271if test -n "$GROFF"; then
7272 { echo "$as_me:$LINENO: result: $GROFF" >&5
7273echo "${ECHO_T}$GROFF" >&6; }
7274else
7275 { echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6; }
7277fi
7278
7279
Reid Spencera773bd52006-08-04 18:18:08 +00007280# Extract the first word of "gzip", so it can be a program name with args.
7281set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007284if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007285 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007286else
Eric Christopher031d3072010-12-10 01:31:51 +00007287 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007288 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007289 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007290 ;;
7291 *)
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 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 +00007299 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007301 break 2
7302 fi
7303done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304done
Reid Spencera773bd52006-08-04 18:18:08 +00007305IFS=$as_save_IFS
7306
Reid Spencera773bd52006-08-04 18:18:08 +00007307 ;;
7308esac
7309fi
Eric Christopher031d3072010-12-10 01:31:51 +00007310GZIPBIN=$ac_cv_path_GZIPBIN
7311if test -n "$GZIPBIN"; then
7312 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7313echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315 { echo "$as_me:$LINENO: result: no" >&5
7316echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007317fi
7318
7319
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007320# Extract the first word of "pdfroff", so it can be a program name with args.
7321set dummy pdfroff; ac_word=$2
7322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324if test "${ac_cv_path_PDFROFF+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327 case $PDFROFF in
7328 [\\/]* | ?:[\\/]*)
7329 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7330 ;;
7331 *)
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333for as_dir in $PATH
7334do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343done
7344done
7345IFS=$as_save_IFS
7346
7347 ;;
7348esac
7349fi
7350PDFROFF=$ac_cv_path_PDFROFF
7351if test -n "$PDFROFF"; then
7352 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7353echo "${ECHO_T}$PDFROFF" >&6; }
7354else
7355 { echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6; }
7357fi
7358
7359
Reid Spencera773bd52006-08-04 18:18:08 +00007360# Extract the first word of "zip", so it can be a program name with args.
7361set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364if test "${ac_cv_path_ZIP+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007366else
7367 case $ZIP in
7368 [\\/]* | ?:[\\/]*)
7369 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7370 ;;
7371 *)
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373for as_dir in $PATH
7374do
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007379 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007381 break 2
7382 fi
7383done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384done
Reid Spencera773bd52006-08-04 18:18:08 +00007385IFS=$as_save_IFS
7386
Reid Spencera773bd52006-08-04 18:18:08 +00007387 ;;
7388esac
7389fi
7390ZIP=$ac_cv_path_ZIP
7391if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392 { echo "$as_me:$LINENO: result: $ZIP" >&5
7393echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395 { echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007397fi
7398
7399
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007400for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007401do
7402 # Extract the first word of "$ac_prog", so it can be a program name with args.
7403set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406if test "${ac_cv_path_OCAMLC+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007408else
7409 case $OCAMLC in
7410 [\\/]* | ?:[\\/]*)
7411 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7412 ;;
7413 *)
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 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 +00007421 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007423 break 2
7424 fi
7425done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007427IFS=$as_save_IFS
7428
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007429 ;;
7430esac
7431fi
7432OCAMLC=$ac_cv_path_OCAMLC
7433if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7435echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437 { echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007439fi
7440
7441
Gordon Henriksene7072162008-03-07 18:20:01 +00007442 test -n "$OCAMLC" && break
7443done
7444
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007445for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007446do
7447 # Extract the first word of "$ac_prog", so it can be a program name with args.
7448set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007453else
7454 case $OCAMLOPT in
7455 [\\/]* | ?:[\\/]*)
7456 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7457 ;;
7458 *)
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 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 +00007466 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007468 break 2
7469 fi
7470done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007471done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007472IFS=$as_save_IFS
7473
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007474 ;;
7475esac
7476fi
7477OCAMLOPT=$ac_cv_path_OCAMLOPT
7478if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007479 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7480echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482 { echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007484fi
7485
7486
Gordon Henriksene7072162008-03-07 18:20:01 +00007487 test -n "$OCAMLOPT" && break
7488done
7489
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007490for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007491do
7492 # Extract the first word of "$ac_prog", so it can be a program name with args.
7493set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007498else
7499 case $OCAMLDEP in
7500 [\\/]* | ?:[\\/]*)
7501 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7502 ;;
7503 *)
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007511 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007513 break 2
7514 fi
7515done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007517IFS=$as_save_IFS
7518
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007519 ;;
7520esac
7521fi
7522OCAMLDEP=$ac_cv_path_OCAMLDEP
7523if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7525echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 { echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007529fi
7530
7531
Gordon Henriksene7072162008-03-07 18:20:01 +00007532 test -n "$OCAMLDEP" && break
7533done
7534
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007535for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007536do
7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
7538set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7541if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007543else
7544 case $OCAMLDOC in
7545 [\\/]* | ?:[\\/]*)
7546 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7547 ;;
7548 *)
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 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 +00007556 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007558 break 2
7559 fi
7560done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007562IFS=$as_save_IFS
7563
7564 ;;
7565esac
7566fi
7567OCAMLDOC=$ac_cv_path_OCAMLDOC
7568if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7570echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 { echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007574fi
7575
7576
7577 test -n "$OCAMLDOC" && break
7578done
7579
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007580for ac_prog in gas as
7581do
7582 # Extract the first word of "$ac_prog", so it can be a program name with args.
7583set dummy $ac_prog; ac_word=$2
7584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586if test "${ac_cv_path_GAS+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 case $GAS in
7590 [\\/]* | ?:[\\/]*)
7591 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7592 ;;
7593 *)
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605done
7606done
7607IFS=$as_save_IFS
7608
7609 ;;
7610esac
7611fi
7612GAS=$ac_cv_path_GAS
7613if test -n "$GAS"; then
7614 { echo "$as_me:$LINENO: result: $GAS" >&5
7615echo "${ECHO_T}$GAS" >&6; }
7616else
7617 { echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6; }
7619fi
7620
7621
7622 test -n "$GAS" && break
7623done
7624
Reid Spencera773bd52006-08-04 18:18:08 +00007625
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007626{ echo "$as_me:$LINENO: checking for linker version" >&5
7627echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7628if test "${llvm_cv_link_version+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630else
7631
7632 version_string="$(ld -v 2>&1 | head -1)"
7633
7634 # Check for ld64.
7635 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007636 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007637 else
7638 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7639 fi
7640
7641fi
7642{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7643echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7644
7645cat >>confdefs.h <<_ACEOF
7646#define HOST_LINK_VERSION "$llvm_cv_link_version"
7647_ACEOF
7648
7649
7650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7652echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7653if test "${llvm_cv_link_use_r+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007655else
7656 ac_ext=c
7657ac_cpp='$CPP $CPPFLAGS'
7658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661
7662 oldcflags="$CFLAGS"
7663 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007664 cat >conftest.$ac_ext <<_ACEOF
7665/* confdefs.h. */
7666_ACEOF
7667cat confdefs.h >>conftest.$ac_ext
7668cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007669/* end confdefs.h. */
7670
7671int
7672main ()
7673{
Dan Gohman39ed6782010-04-25 00:12:20 +00007674
Reid Spencera773bd52006-08-04 18:18:08 +00007675 ;
7676 return 0;
7677}
7678_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007679rm -f conftest.$ac_objext conftest$ac_exeext
7680if { (ac_try="$ac_link"
7681case "(($ac_try" in
7682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7684esac
7685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686 (eval "$ac_link") 2>conftest.er1
7687 ac_status=$?
7688 grep -v '^ *+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7694 { (case "(($ac_try" in
7695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696 *) ac_try_echo=$ac_try;;
7697esac
7698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699 (eval "$ac_try") 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707esac
7708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_try") 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007713 llvm_cv_link_use_r=yes
7714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007715 echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007720
Bill Wendlingebcceee2009-04-18 11:20:33 +00007721rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007723 CFLAGS="$oldcflags"
7724 ac_ext=c
7725ac_cpp='$CPP $CPPFLAGS'
7726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729
7730
7731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7733echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007734if test "$llvm_cv_link_use_r" = yes ; then
7735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736cat >>confdefs.h <<\_ACEOF
7737#define HAVE_LINK_R 1
7738_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007739
7740 fi
7741
7742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7744echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7745if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007747else
7748 ac_ext=c
7749ac_cpp='$CPP $CPPFLAGS'
7750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752ac_compiler_gnu=$ac_cv_c_compiler_gnu
7753
7754 oldcflags="$CFLAGS"
7755 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756 cat >conftest.$ac_ext <<_ACEOF
7757/* confdefs.h. */
7758_ACEOF
7759cat confdefs.h >>conftest.$ac_ext
7760cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007761/* end confdefs.h. */
7762
7763int
7764main ()
7765{
Dan Gohman39ed6782010-04-25 00:12:20 +00007766
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007767 ;
7768 return 0;
7769}
7770_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007771rm -f conftest.$ac_objext conftest$ac_exeext
7772if { (ac_try="$ac_link"
7773case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776esac
7777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_link") 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7786 { (case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789esac
7790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_try") 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; } &&
7795 { ac_try='test -s conftest$ac_exeext'
7796 { (case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
7800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_try") 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007805 llvm_cv_link_use_export_dynamic=yes
7806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007807 echo "$as_me: failed program was:" >&5
7808sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007812
Bill Wendlingebcceee2009-04-18 11:20:33 +00007813rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007815 CFLAGS="$oldcflags"
7816 ac_ext=c
7817ac_cpp='$CPP $CPPFLAGS'
7818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822
7823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7825echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007826if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007828cat >>confdefs.h <<\_ACEOF
7829#define HAVE_LINK_EXPORT_DYNAMIC 1
7830_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007831
7832 fi
7833
7834
Dan Gohmanda612d62010-06-01 14:56:56 +00007835{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7836echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7837if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840 ac_ext=c
7841ac_cpp='$CPP $CPPFLAGS'
7842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846 oldcflags="$CFLAGS"
7847
7848 # The following code is from the autoconf manual,
7849 # "11.13: Limitations of Usual Tools".
7850 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7851 # Use mktemp if possible; otherwise fall back on mkdir,
7852 # with $RANDOM to make collisions less likely.
7853 : ${TMPDIR=/tmp}
7854 {
7855 tmp=`
7856 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7857 ` &&
7858 test -n "$tmp" && test -d "$tmp"
7859 } || {
7860 tmp=$TMPDIR/foo$$-$RANDOM
7861 (umask 077 && mkdir "$tmp")
7862 } || exit $?
7863
Dan Gohmanda612d62010-06-01 14:56:56 +00007864 echo "{" > "$tmp/export.map"
7865 echo " global: main;" >> "$tmp/export.map"
7866 echo " local: *;" >> "$tmp/export.map"
7867 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007868
Dan Gohmanda612d62010-06-01 14:56:56 +00007869 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007870 cat >conftest.$ac_ext <<_ACEOF
7871/* confdefs.h. */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h. */
7876
7877int
7878main ()
7879{
Dan Gohman39ed6782010-04-25 00:12:20 +00007880
Dan Gohman391569c2010-04-16 22:59:06 +00007881 ;
7882 return 0;
7883}
7884_ACEOF
7885rm -f conftest.$ac_objext conftest$ac_exeext
7886if { (ac_try="$ac_link"
7887case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7890esac
7891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_link") 2>conftest.er1
7893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7900 { (case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7903esac
7904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_try") 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try='test -s conftest$ac_exeext'
7910 { (case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913esac
7914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_try") 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007919 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007920else
7921 echo "$as_me: failed program was:" >&5
7922sed 's/^/| /' conftest.$ac_ext >&5
7923
Dan Gohman943005e2010-06-01 16:22:27 +00007924 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007925fi
7926
7927rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007929 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007930 rmdir "$tmp"
7931 CFLAGS="$oldcflags"
7932 ac_ext=c
7933ac_cpp='$CPP $CPPFLAGS'
7934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938
7939fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007940{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7941echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7942if test "$llvm_cv_link_use_version_script" = yes ; then
7943 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007944
7945 fi
7946
7947
Reid Spencera773bd52006-08-04 18:18:08 +00007948
7949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007950{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7951echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7952if test "${ac_cv_c_const+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007955 cat >conftest.$ac_ext <<_ACEOF
7956/* confdefs.h. */
7957_ACEOF
7958cat confdefs.h >>conftest.$ac_ext
7959cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007960/* end confdefs.h. */
7961
7962int
7963main ()
7964{
7965/* FIXME: Include the comments suggested by Paul. */
7966#ifndef __cplusplus
7967 /* Ultrix mips cc rejects this. */
7968 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007970 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007971 char const *const *ccp;
7972 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007973 /* NEC SVR4.0.2 mips cc rejects this. */
7974 struct point {int x, y;};
7975 static struct point const zero = {0,0};
7976 /* AIX XL C 1.02.0.0 rejects this.
7977 It does not let you subtract one const X* pointer from another in
7978 an arm of an if-expression whose if-part is not a constant
7979 expression */
7980 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007981 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007982 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983 ++ccp;
7984 p = (char**) ccp;
7985 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007986 { /* SCO 3.2v4 cc rejects this. */
7987 char *t;
7988 char const *s = 0 ? (char *) 0 : (char const *) 0;
7989
7990 *t++ = 0;
7991 if (s) return 0;
7992 }
7993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7994 int x[] = {25, 17};
7995 const int *foo = &x[0];
7996 ++foo;
7997 }
7998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7999 typedef const int *iptr;
8000 iptr p = 0;
8001 ++p;
8002 }
8003 { /* AIX XL C 1.02.0.0 rejects this saying
8004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8005 struct s { int j; const int *ap[3]; };
8006 struct s *b; b->j = 5;
8007 }
8008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8009 const int foo = 10;
8010 if (!foo) return 0;
8011 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008012 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008013#endif
8014
8015 ;
8016 return 0;
8017}
8018_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008019rm -f conftest.$ac_objext
8020if { (ac_try="$ac_compile"
8021case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024esac
8025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_compile") 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034 { (case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037esac
8038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_try") 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; } &&
8043 { ac_try='test -s conftest.$ac_objext'
8044 { (case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047esac
8048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_try") 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008053 ac_cv_c_const=yes
8054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055 echo "$as_me: failed program was:" >&5
8056sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008060
Reid Spencera773bd52006-08-04 18:18:08 +00008061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008063{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8064echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008065if test $ac_cv_c_const = no; then
8066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008067cat >>confdefs.h <<\_ACEOF
8068#define const
8069_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008070
8071fi
8072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008073
8074
8075
8076
8077
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008078ac_header_dirent=no
8079for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008080 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8081{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8082echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008086 cat >conftest.$ac_ext <<_ACEOF
8087/* confdefs.h. */
8088_ACEOF
8089cat confdefs.h >>conftest.$ac_ext
8090cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008091/* end confdefs.h. */
8092#include <sys/types.h>
8093#include <$ac_hdr>
8094
8095int
8096main ()
8097{
8098if ((DIR *) 0)
8099return 0;
8100 ;
8101 return 0;
8102}
8103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008104rm -f conftest.$ac_objext
8105if { (ac_try="$ac_compile"
8106case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109esac
8110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_compile") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8119 { (case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122esac
8123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_try") 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008138 eval "$as_ac_Header=yes"
8139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008140 echo "$as_me: failed program was:" >&5
8141sed 's/^/| /' conftest.$ac_ext >&5
8142
8143 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145
Reid Spencera773bd52006-08-04 18:18:08 +00008146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008148ac_res=`eval echo '${'$as_ac_Header'}'`
8149 { echo "$as_me:$LINENO: result: $ac_res" >&5
8150echo "${ECHO_T}$ac_res" >&6; }
8151if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008152 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008154_ACEOF
8155
8156ac_header_dirent=$ac_hdr; break
8157fi
8158
8159done
8160# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8161if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8163echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8164if test "${ac_cv_search_opendir+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008166else
8167 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008168cat >conftest.$ac_ext <<_ACEOF
8169/* confdefs.h. */
8170_ACEOF
8171cat confdefs.h >>conftest.$ac_ext
8172cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008173/* end confdefs.h. */
8174
Reid Spencera773bd52006-08-04 18:18:08 +00008175/* Override any GCC internal prototype to avoid an error.
8176 Use char because int might match the return type of a GCC
8177 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008178#ifdef __cplusplus
8179extern "C"
8180#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008181char opendir ();
8182int
8183main ()
8184{
Reid Spencera773bd52006-08-04 18:18:08 +00008185return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008186 ;
8187 return 0;
8188}
8189_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008190for ac_lib in '' dir; do
8191 if test -z "$ac_lib"; then
8192 ac_res="none required"
8193 else
8194 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008196 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008197 rm -f conftest.$ac_objext conftest$ac_exeext
8198if { (ac_try="$ac_link"
8199case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8202esac
8203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_link") 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8212 { (case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215esac
8216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_try") 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; } &&
8221 { ac_try='test -s conftest$ac_exeext'
8222 { (case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8225esac
8226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_try") 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008231 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232else
8233 echo "$as_me: failed program was:" >&5
8234sed 's/^/| /' conftest.$ac_ext >&5
8235
8236
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238
Bill Wendlingebcceee2009-04-18 11:20:33 +00008239rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240 conftest$ac_exeext
8241 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008242 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008243fi
John Criswell7a73b802003-06-30 21:59:07 +00008244done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008245if test "${ac_cv_search_opendir+set}" = set; then
8246 :
Reid Spencera773bd52006-08-04 18:18:08 +00008247else
8248 ac_cv_search_opendir=no
8249fi
8250rm conftest.$ac_ext
8251LIBS=$ac_func_search_save_LIBS
8252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008253{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8254echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008255ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008258
Reid Spencera773bd52006-08-04 18:18:08 +00008259fi
8260
8261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008262 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8263echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8264if test "${ac_cv_search_opendir+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008266else
8267 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008268cat >conftest.$ac_ext <<_ACEOF
8269/* confdefs.h. */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008273/* end confdefs.h. */
8274
8275/* Override any GCC internal prototype to avoid an error.
8276 Use char because int might match the return type of a GCC
8277 builtin and then its argument prototype would still apply. */
8278#ifdef __cplusplus
8279extern "C"
8280#endif
8281char opendir ();
8282int
8283main ()
8284{
8285return opendir ();
8286 ;
8287 return 0;
8288}
8289_ACEOF
8290for ac_lib in '' x; do
8291 if test -z "$ac_lib"; then
8292 ac_res="none required"
8293 else
8294 ac_res=-l$ac_lib
8295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8296 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297 rm -f conftest.$ac_objext conftest$ac_exeext
8298if { (ac_try="$ac_link"
8299case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302esac
8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_link") 2>conftest.er1
8305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; } &&
8321 { ac_try='test -s conftest$ac_exeext'
8322 { (case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325esac
8326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_try") 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008331 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008332else
8333 echo "$as_me: failed program was:" >&5
8334sed 's/^/| /' conftest.$ac_ext >&5
8335
8336
Reid Spencera773bd52006-08-04 18:18:08 +00008337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338
Bill Wendlingebcceee2009-04-18 11:20:33 +00008339rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340 conftest$ac_exeext
8341 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008342 break
8343fi
8344done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008345if test "${ac_cv_search_opendir+set}" = set; then
8346 :
Reid Spencera773bd52006-08-04 18:18:08 +00008347else
8348 ac_cv_search_opendir=no
8349fi
8350rm conftest.$ac_ext
8351LIBS=$ac_func_search_save_LIBS
8352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008353{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8354echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008355ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8358
8359fi
8360
8361fi
John Criswell7a73b802003-06-30 21:59:07 +00008362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008363
John Criswell7a73b802003-06-30 21:59:07 +00008364for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008365do
8366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8372fi
8373ac_res=`eval echo '${'$as_ac_Header'}'`
8374 { echo "$as_me:$LINENO: result: $ac_res" >&5
8375echo "${ECHO_T}$ac_res" >&6; }
8376else
8377 # Is the header compilable?
8378{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8380cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
8386$ac_includes_default
8387#include <$ac_header>
8388_ACEOF
8389rm -f conftest.$ac_objext
8390if { (ac_try="$ac_compile"
8391case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394esac
8395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404 { (case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407esac
8408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_try") 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8417esac
8418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_try") 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_header_compiler=yes
8424else
8425 echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428 ac_header_compiler=no
8429fi
8430
8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8433echo "${ECHO_T}$ac_header_compiler" >&6; }
8434
8435# Is the header present?
8436{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8438cat >conftest.$ac_ext <<_ACEOF
8439/* confdefs.h. */
8440_ACEOF
8441cat confdefs.h >>conftest.$ac_ext
8442cat >>conftest.$ac_ext <<_ACEOF
8443/* end confdefs.h. */
8444#include <$ac_header>
8445_ACEOF
8446if { (ac_try="$ac_cpp conftest.$ac_ext"
8447case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8450esac
8451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } >/dev/null; then
8459 if test -s conftest.err; then
8460 ac_cpp_err=$ac_c_preproc_warn_flag
8461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8462 else
8463 ac_cpp_err=
8464 fi
8465else
8466 ac_cpp_err=yes
8467fi
8468if test -z "$ac_cpp_err"; then
8469 ac_header_preproc=yes
8470else
8471 echo "$as_me: failed program was:" >&5
8472sed 's/^/| /' conftest.$ac_ext >&5
8473
8474 ac_header_preproc=no
8475fi
8476
8477rm -f conftest.err conftest.$ac_ext
8478{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8479echo "${ECHO_T}$ac_header_preproc" >&6; }
8480
8481# So? What about this header?
8482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8483 yes:no: )
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8488 ac_header_preproc=yes
8489 ;;
8490 no:yes:* )
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8503 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008504## ------------------------------------ ##
8505## Report this to http://llvm.org/bugs/ ##
8506## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008507_ASBOX
8508 ) | sed "s/^/$as_me: WARNING: /" >&2
8509 ;;
8510esac
8511{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515else
8516 eval "$as_ac_Header=\$ac_header_preproc"
8517fi
8518ac_res=`eval echo '${'$as_ac_Header'}'`
8519 { echo "$as_me:$LINENO: result: $ac_res" >&5
8520echo "${ECHO_T}$ac_res" >&6; }
8521
8522fi
8523if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008524 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008526_ACEOF
8527
8528fi
8529
8530done
8531
Reid Spencera773bd52006-08-04 18:18:08 +00008532# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008533if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008534 enableval=$enable_ltdl_install;
8535fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008536
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008538
8539
8540if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008541 INSTALL_LTDL_TRUE=
8542 INSTALL_LTDL_FALSE='#'
8543else
8544 INSTALL_LTDL_TRUE='#'
8545 INSTALL_LTDL_FALSE=
8546fi
8547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548
8549
8550if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008551 CONVENIENCE_LTDL_TRUE=
8552 CONVENIENCE_LTDL_FALSE='#'
8553else
8554 CONVENIENCE_LTDL_TRUE='#'
8555 CONVENIENCE_LTDL_FALSE=
8556fi
8557
8558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008559{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8560echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008561library_names_spec=
8562libname_spec='lib$name'
8563soname_spec=
8564shrext_cmds=".so"
8565postinstall_cmds=
8566postuninstall_cmds=
8567finish_cmds=
8568finish_eval=
8569shlibpath_var=
8570shlibpath_overrides_runpath=unknown
8571version_type=none
8572dynamic_linker="$host_os ld.so"
8573sys_lib_dlsearch_path_spec="/lib /usr/lib"
8574if test "$GCC" = yes; then
8575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8576 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8577 # if the path contains ";" then we assume it to be the separator
8578 # otherwise default to the standard path separator (i.e. ":") - it is
8579 # assumed that no part of a normal pathname contains ";" but that should
8580 # okay in the real world where ";" in dirpaths is itself problematic.
8581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8582 else
8583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8584 fi
8585else
8586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8587fi
8588need_lib_prefix=unknown
8589hardcode_into_libs=no
8590
8591# when you set need_version to no, make sure it does not cause -set_version
8592# flags to be left without arguments
8593need_version=unknown
8594
8595case $host_os in
8596aix3*)
8597 version_type=linux
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8599 shlibpath_var=LIBPATH
8600
8601 # AIX 3 has no versioning support, so we append a major version to the name.
8602 soname_spec='${libname}${release}${shared_ext}$major'
8603 ;;
8604
8605aix4* | aix5*)
8606 version_type=linux
8607 need_lib_prefix=no
8608 need_version=no
8609 hardcode_into_libs=yes
8610 if test "$host_cpu" = ia64; then
8611 # AIX 5 supports IA64
8612 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8613 shlibpath_var=LD_LIBRARY_PATH
8614 else
8615 # With GCC up to 2.95.x, collect2 would create an import file
8616 # for dependence libraries. The import file would start with
8617 # the line `#! .'. This would cause the generated library to
8618 # depend on `.', always an invalid library. This was fixed in
8619 # development snapshots of GCC prior to 3.0.
8620 case $host_os in
8621 aix4 | aix4.[01] | aix4.[01].*)
8622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8623 echo ' yes '
8624 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8625 :
8626 else
8627 can_build_shared=no
8628 fi
8629 ;;
8630 esac
8631 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8632 # soname into executable. Probably we can add versioning support to
8633 # collect2, so additional links can be useful in future.
8634 if test "$aix_use_runtimelinking" = yes; then
8635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8636 # instead of lib<name>.a to let people know that these are not
8637 # typical AIX shared libraries.
8638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8639 else
8640 # We preserve .a as extension for shared libraries through AIX4.2
8641 # and later when we are not doing run time linking.
8642 library_names_spec='${libname}${release}.a $libname.a'
8643 soname_spec='${libname}${release}${shared_ext}$major'
8644 fi
8645 shlibpath_var=LIBPATH
8646 fi
8647 ;;
8648
8649amigaos*)
8650 library_names_spec='$libname.ixlibrary $libname.a'
8651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8652 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'
8653 ;;
8654
8655beos*)
8656 library_names_spec='${libname}${shared_ext}'
8657 dynamic_linker="$host_os ld.so"
8658 shlibpath_var=LIBRARY_PATH
8659 ;;
8660
8661bsdi[45]*)
8662 version_type=linux
8663 need_version=no
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8665 soname_spec='${libname}${release}${shared_ext}$major'
8666 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8667 shlibpath_var=LD_LIBRARY_PATH
8668 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8669 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8670 # the default ld.so.conf also contains /usr/contrib/lib and
8671 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8672 # libtool to hard-code these into programs
8673 ;;
8674
8675cygwin* | mingw* | pw32*)
8676 version_type=windows
8677 shrext_cmds=".dll"
8678 need_version=no
8679 need_lib_prefix=no
8680
8681 case $GCC,$host_os in
8682 yes,cygwin* | yes,mingw* | yes,pw32*)
8683 library_names_spec='$libname.dll.a'
8684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8685 postinstall_cmds='base_file=`basename \${file}`~
8686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8687 dldir=$destdir/`dirname \$dlpath`~
8688 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008689 $install_prog $dir/$dlname \$dldir/$dlname~
8690 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8692 dlpath=$dir/\$dldll~
8693 $rm \$dlpath'
8694 shlibpath_overrides_runpath=yes
8695
8696 case $host_os in
8697 cygwin*)
8698 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8699 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8700 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8701 ;;
8702 mingw*)
8703 # MinGW DLLs use traditional 'lib' prefix
8704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8705 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8706 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8707 # It is most probably a Windows format PATH printed by
8708 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8709 # path with ; separators, and with drive letters. We can handle the
8710 # drive letters (cygwin fileutils understands them), so leave them,
8711 # especially as we might pass files found there to a mingw objdump,
8712 # which wouldn't understand a cygwinified path. Ahh.
8713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8714 else
8715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8716 fi
8717 ;;
8718 pw32*)
8719 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008720 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 +00008721 ;;
8722 esac
8723 ;;
8724
8725 *)
8726 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8727 ;;
8728 esac
8729 dynamic_linker='Win32 ld.exe'
8730 # FIXME: first we should search . and the directory the executable is in
8731 shlibpath_var=PATH
8732 ;;
8733
8734darwin* | rhapsody*)
8735 dynamic_linker="$host_os dyld"
8736 version_type=darwin
8737 need_lib_prefix=no
8738 need_version=no
8739 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8740 soname_spec='${libname}${release}${major}$shared_ext'
8741 shlibpath_overrides_runpath=yes
8742 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008743 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008744 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8745 if test "$GCC" = yes; then
8746 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"`
8747 else
8748 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8749 fi
8750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8751 ;;
8752
8753dgux*)
8754 version_type=linux
8755 need_lib_prefix=no
8756 need_version=no
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8759 shlibpath_var=LD_LIBRARY_PATH
8760 ;;
8761
Eric Christopher360fa9a2011-10-26 00:42:12 +00008762freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008763 dynamic_linker=no
8764 ;;
8765
8766kfreebsd*-gnu)
8767 version_type=linux
8768 need_lib_prefix=no
8769 need_version=no
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 shlibpath_var=LD_LIBRARY_PATH
8773 shlibpath_overrides_runpath=no
8774 hardcode_into_libs=yes
8775 dynamic_linker='GNU ld.so'
8776 ;;
8777
Reid Spencera773bd52006-08-04 18:18:08 +00008778freebsd* | dragonfly*)
8779 # DragonFly does not have aout. When/if they implement a new
8780 # versioning mechanism, adjust this.
8781 if test -x /usr/bin/objformat; then
8782 objformat=`/usr/bin/objformat`
8783 else
8784 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008785 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008786 *) objformat=elf ;;
8787 esac
8788 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008789 version_type=freebsd-$objformat
8790 case $version_type in
8791 freebsd-elf*)
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8793 need_version=no
8794 need_lib_prefix=no
8795 ;;
8796 freebsd-*)
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8798 need_version=yes
8799 ;;
8800 esac
8801 shlibpath_var=LD_LIBRARY_PATH
8802 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008803 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008804 shlibpath_overrides_runpath=yes
8805 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008806 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008807 shlibpath_overrides_runpath=yes
8808 hardcode_into_libs=yes
8809 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008810 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8811 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008812 shlibpath_overrides_runpath=no
8813 hardcode_into_libs=yes
8814 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008815 freebsd*) # from 4.6 on
8816 shlibpath_overrides_runpath=yes
8817 hardcode_into_libs=yes
8818 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008819 esac
8820 ;;
8821
8822gnu*)
8823 version_type=linux
8824 need_lib_prefix=no
8825 need_version=no
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 hardcode_into_libs=yes
8830 ;;
8831
8832hpux9* | hpux10* | hpux11*)
8833 # Give a soname corresponding to the major version so that dld.sl refuses to
8834 # link against other versions.
8835 version_type=sunos
8836 need_lib_prefix=no
8837 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008838 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008839 ia64*)
8840 shrext_cmds='.so'
8841 hardcode_into_libs=yes
8842 dynamic_linker="$host_os dld.so"
8843 shlibpath_var=LD_LIBRARY_PATH
8844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 if test "X$HPUX_IA64_MODE" = X32; then
8848 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8849 else
8850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8851 fi
8852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8853 ;;
8854 hppa*64*)
8855 shrext_cmds='.sl'
8856 hardcode_into_libs=yes
8857 dynamic_linker="$host_os dld.sl"
8858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8864 ;;
8865 *)
8866 shrext_cmds='.sl'
8867 dynamic_linker="$host_os dld.sl"
8868 shlibpath_var=SHLIB_PATH
8869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 ;;
8873 esac
8874 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8875 postinstall_cmds='chmod 555 $lib'
8876 ;;
8877
Reid Spencera773bd52006-08-04 18:18:08 +00008878interix3*)
8879 version_type=linux
8880 need_lib_prefix=no
8881 need_version=no
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8885 shlibpath_var=LD_LIBRARY_PATH
8886 shlibpath_overrides_runpath=no
8887 hardcode_into_libs=yes
8888 ;;
8889
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008890irix5* | irix6* | nonstopux*)
8891 case $host_os in
8892 nonstopux*) version_type=nonstopux ;;
8893 *)
8894 if test "$lt_cv_prog_gnu_ld" = yes; then
8895 version_type=linux
8896 else
8897 version_type=irix
8898 fi ;;
8899 esac
8900 need_lib_prefix=no
8901 need_version=no
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8904 case $host_os in
8905 irix5* | nonstopux*)
8906 libsuff= shlibsuff=
8907 ;;
8908 *)
8909 case $LD in # libtool.m4 will add one of these switches to LD
8910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8911 libsuff= shlibsuff= libmagic=32-bit;;
8912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8913 libsuff=32 shlibsuff=N32 libmagic=N32;;
8914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8916 *) libsuff= shlibsuff= libmagic=never-match;;
8917 esac
8918 ;;
8919 esac
8920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8921 shlibpath_overrides_runpath=no
8922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8924 hardcode_into_libs=yes
8925 ;;
8926
8927# No shared lib support for Linux oldld, aout, or coff.
8928linux*oldld* | linux*aout* | linux*coff*)
8929 dynamic_linker=no
8930 ;;
8931
8932# This must be Linux ELF.
8933linux*)
8934 version_type=linux
8935 need_lib_prefix=no
8936 need_version=no
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 shlibpath_overrides_runpath=no
8942 # This implies no fast_install, which is unacceptable.
8943 # Some rework will be needed to allow for fast_install
8944 # before this can be enabled.
8945 hardcode_into_libs=yes
8946
8947 # Append ld.so.conf contents to the search path
8948 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008949 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 +00008950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8951 fi
8952
8953 # We used to test for /lib/ld.so.1 and disable shared libraries on
8954 # powerpc, because MkLinux only supported shared libraries with the
8955 # GNU dynamic linker. Since this was broken with cross compilers,
8956 # most powerpc-linux boxes support dynamic linking these days and
8957 # people can always --disable-shared, the test was removed, and we
8958 # assume the GNU/Linux dynamic linker is in use.
8959 dynamic_linker='GNU/Linux ld.so'
8960 ;;
8961
8962knetbsd*-gnu)
8963 version_type=linux
8964 need_lib_prefix=no
8965 need_version=no
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 shlibpath_var=LD_LIBRARY_PATH
8969 shlibpath_overrides_runpath=no
8970 hardcode_into_libs=yes
8971 dynamic_linker='GNU ld.so'
8972 ;;
8973
8974netbsd*)
8975 version_type=sunos
8976 need_lib_prefix=no
8977 need_version=no
8978 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8981 dynamic_linker='NetBSD (a.out) ld.so'
8982 else
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 dynamic_linker='NetBSD ld.elf_so'
8986 fi
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=yes
8989 hardcode_into_libs=yes
8990 ;;
8991
8992newsos6)
8993 version_type=linux
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=yes
8997 ;;
8998
8999nto-qnx*)
9000 version_type=linux
9001 need_lib_prefix=no
9002 need_version=no
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 shlibpath_overrides_runpath=yes
9007 ;;
9008
Eric Christopherb0f67592012-08-06 20:52:18 +00009009openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009010 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009011 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009012 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009013 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9014 case $host_os in
9015 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9016 *) need_version=no ;;
9017 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9022 case $host_os in
9023 openbsd2.[89] | openbsd2.[89].*)
9024 shlibpath_overrides_runpath=no
9025 ;;
9026 *)
9027 shlibpath_overrides_runpath=yes
9028 ;;
9029 esac
9030 else
9031 shlibpath_overrides_runpath=yes
9032 fi
9033 ;;
9034
9035os2*)
9036 libname_spec='$name'
9037 shrext_cmds=".dll"
9038 need_lib_prefix=no
9039 library_names_spec='$libname${shared_ext} $libname.a'
9040 dynamic_linker='OS/2 ld.exe'
9041 shlibpath_var=LIBPATH
9042 ;;
9043
9044osf3* | osf4* | osf5*)
9045 version_type=osf
9046 need_lib_prefix=no
9047 need_version=no
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9052 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9053 ;;
9054
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009055solaris*)
9056 version_type=linux
9057 need_lib_prefix=no
9058 need_version=no
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9064 # ldd complains unless libraries are executable
9065 postinstall_cmds='chmod +x $lib'
9066 ;;
9067
9068sunos4*)
9069 version_type=sunos
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 if test "$with_gnu_ld" = yes; then
9075 need_lib_prefix=no
9076 fi
9077 need_version=yes
9078 ;;
9079
Reid Spencera773bd52006-08-04 18:18:08 +00009080sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009081 version_type=linux
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 case $host_vendor in
9086 sni)
9087 shlibpath_overrides_runpath=no
9088 need_lib_prefix=no
9089 export_dynamic_flag_spec='${wl}-Blargedynsym'
9090 runpath_var=LD_RUN_PATH
9091 ;;
9092 siemens)
9093 need_lib_prefix=no
9094 ;;
9095 motorola)
9096 need_lib_prefix=no
9097 need_version=no
9098 shlibpath_overrides_runpath=no
9099 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9100 ;;
9101 esac
9102 ;;
9103
9104sysv4*MP*)
9105 if test -d /usr/nec ;then
9106 version_type=linux
9107 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9108 soname_spec='$libname${shared_ext}.$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 fi
9111 ;;
9112
Reid Spencera773bd52006-08-04 18:18:08 +00009113sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9114 version_type=freebsd-elf
9115 need_lib_prefix=no
9116 need_version=no
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 hardcode_into_libs=yes
9121 if test "$with_gnu_ld" = yes; then
9122 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9123 shlibpath_overrides_runpath=no
9124 else
9125 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9126 shlibpath_overrides_runpath=yes
9127 case $host_os in
9128 sco3.2v5*)
9129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9130 ;;
9131 esac
9132 fi
9133 sys_lib_dlsearch_path_spec='/usr/lib'
9134 ;;
9135
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009136uts4*)
9137 version_type=linux
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 ;;
9142
9143*)
9144 dynamic_linker=no
9145 ;;
9146esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009147{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9148echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009149test "$dynamic_linker" = no && can_build_shared=no
9150
Reid Spencera773bd52006-08-04 18:18:08 +00009151variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9152if test "$GCC" = yes; then
9153 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9154fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155
Reid Spencera773bd52006-08-04 18:18:08 +00009156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009157{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9158echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9159if test "${libltdl_cv_shlibext+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009161else
9162
9163module=yes
9164eval libltdl_cv_shlibext=$shrext_cmds
9165
9166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009167{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9168echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009169if test -n "$libltdl_cv_shlibext"; then
9170
9171cat >>confdefs.h <<_ACEOF
9172#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9173_ACEOF
9174
9175fi
9176
9177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009178{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9179echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9180if test "${libltdl_cv_shlibpath_var+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009182else
9183 libltdl_cv_shlibpath_var="$shlibpath_var"
9184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009185{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9186echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009187if test -n "$libltdl_cv_shlibpath_var"; then
9188
9189cat >>confdefs.h <<_ACEOF
9190#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9191_ACEOF
9192
9193fi
9194
9195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009196{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9197echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9198if test "${libltdl_cv_sys_search_path+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009200else
9201 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009203{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9204echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009205if test -n "$libltdl_cv_sys_search_path"; then
9206 sys_search_path=
9207 for dir in $libltdl_cv_sys_search_path; do
9208 if test -z "$sys_search_path"; then
9209 sys_search_path="$dir"
9210 else
9211 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9212 fi
9213 done
9214
9215cat >>confdefs.h <<_ACEOF
9216#define LTDL_SYSSEARCHPATH "$sys_search_path"
9217_ACEOF
9218
9219fi
9220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009221{ echo "$as_me:$LINENO: checking for objdir" >&5
9222echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9223if test "${libltdl_cv_objdir+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009225else
9226 libltdl_cv_objdir="$objdir"
9227 if test -n "$objdir"; then
9228 :
9229 else
9230 rm -f .libs 2>/dev/null
9231 mkdir .libs 2>/dev/null
9232 if test -d .libs; then
9233 libltdl_cv_objdir=.libs
9234 else
9235 # MS-DOS does not allow filenames that begin with a dot.
9236 libltdl_cv_objdir=_libs
9237 fi
9238 rmdir .libs 2>/dev/null
9239 fi
9240
9241fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009242{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9243echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009244
9245cat >>confdefs.h <<_ACEOF
9246#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9247_ACEOF
9248
9249
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009250
9251
9252
9253
9254# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009255{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9256echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9257if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259else
9260
9261# These are sane defaults that work on at least a few old systems.
9262# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9263
9264# Character class describing NM global symbol codes.
9265symcode='[BCDEGRST]'
9266
9267# Regexp to match symbols that can be accessed directly from C.
9268sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9269
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270# Transform an extracted symbol line into a proper C declaration
9271lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9272
9273# Transform an extracted symbol line into symbol name and symbol address
9274lt_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'"
9275
9276# Define system-specific variables.
9277case $host_os in
9278aix*)
9279 symcode='[BCDT]'
9280 ;;
9281cygwin* | mingw* | pw32*)
9282 symcode='[ABCDGISTW]'
9283 ;;
9284hpux*) # Its linker distinguishes data from code symbols
9285 if test "$host_cpu" = ia64; then
9286 symcode='[ABCDEGRST]'
9287 fi
9288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9289 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'"
9290 ;;
9291linux*)
9292 if test "$host_cpu" = ia64; then
9293 symcode='[ABCDGIRSTW]'
9294 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9295 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'"
9296 fi
9297 ;;
9298irix* | nonstopux*)
9299 symcode='[BCDEGRST]'
9300 ;;
9301osf*)
9302 symcode='[BCDEGQRST]'
9303 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009304solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009305 symcode='[BDRT]'
9306 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009307sco3.2v5*)
9308 symcode='[DT]'
9309 ;;
9310sysv4.2uw2*)
9311 symcode='[DT]'
9312 ;;
9313sysv5* | sco5v6* | unixware* | OpenUNIX*)
9314 symcode='[ABDT]'
9315 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009316sysv4)
9317 symcode='[DFNSTU]'
9318 ;;
9319esac
9320
9321# Handle CRLF in mingw tool chain
9322opt_cr=
9323case $build_os in
9324mingw*)
9325 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9326 ;;
9327esac
9328
9329# If we're using GNU nm, then use its standard symbol codes.
9330case `$NM -V 2>&1` in
9331*GNU* | *'with BFD'*)
9332 symcode='[ABCDGIRSTW]' ;;
9333esac
9334
9335# Try without a prefix undercore, then with it.
9336for ac_symprfx in "" "_"; do
9337
Reid Spencera773bd52006-08-04 18:18:08 +00009338 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9339 symxfrm="\\1 $ac_symprfx\\2 \\2"
9340
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009341 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009342 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 +00009343
9344 # Check to see that the pipe works correctly.
9345 pipe_works=no
9346
9347 rm -f conftest*
9348 cat > conftest.$ac_ext <<EOF
9349#ifdef __cplusplus
9350extern "C" {
9351#endif
9352char nm_test_var;
9353void nm_test_func(){}
9354#ifdef __cplusplus
9355}
9356#endif
9357int main(){nm_test_var='a';nm_test_func();return(0);}
9358EOF
9359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009361 (eval $ac_compile) 2>&5
9362 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009365 # Now try to grab the symbols.
9366 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009367 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 +00009368 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9369 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009372 # Try sorting and uniquifying the output.
9373 if sort "$nlist" | uniq > "$nlist"T; then
9374 mv -f "$nlist"T "$nlist"
9375 else
9376 rm -f "$nlist"T
9377 fi
9378
9379 # Make sure that we snagged all the symbols we need.
9380 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9381 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9382 cat <<EOF > conftest.$ac_ext
9383#ifdef __cplusplus
9384extern "C" {
9385#endif
9386
9387EOF
9388 # Now generate the symbol file.
9389 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9390
9391 cat <<EOF >> conftest.$ac_ext
9392#if defined (__STDC__) && __STDC__
9393# define lt_ptr_t void *
9394#else
9395# define lt_ptr_t char *
9396# define const
9397#endif
9398
9399/* The mapping between symbol names and symbols. */
9400const struct {
9401 const char *name;
9402 lt_ptr_t address;
9403}
9404lt_preloaded_symbols[] =
9405{
9406EOF
9407 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9408 cat <<\EOF >> conftest.$ac_ext
9409 {0, (lt_ptr_t) 0}
9410};
9411
9412#ifdef __cplusplus
9413}
9414#endif
9415EOF
9416 # Now try linking the two files.
9417 mv conftest.$ac_objext conftstm.$ac_objext
9418 lt_save_LIBS="$LIBS"
9419 lt_save_CFLAGS="$CFLAGS"
9420 LIBS="conftstm.$ac_objext"
9421 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009423 (eval $ac_link) 2>&5
9424 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009427 pipe_works=yes
9428 fi
9429 LIBS="$lt_save_LIBS"
9430 CFLAGS="$lt_save_CFLAGS"
9431 else
9432 echo "cannot find nm_test_func in $nlist" >&5
9433 fi
9434 else
9435 echo "cannot find nm_test_var in $nlist" >&5
9436 fi
9437 else
9438 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9439 fi
9440 else
9441 echo "$progname: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9443 fi
9444 rm -f conftest* conftst*
9445
9446 # Do not use the global_symbol_pipe unless it works.
9447 if test "$pipe_works" = yes; then
9448 break
9449 else
9450 lt_cv_sys_global_symbol_pipe=
9451 fi
9452done
9453
9454fi
9455
9456if test -z "$lt_cv_sys_global_symbol_pipe"; then
9457 lt_cv_sys_global_symbol_to_cdecl=
9458fi
9459if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009460 { echo "$as_me:$LINENO: result: failed" >&5
9461echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009463 { echo "$as_me:$LINENO: result: ok" >&5
9464echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009465fi
9466
9467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009468{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9469echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9470if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009472else
9473 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9474 libltdl_cv_preloaded_symbols=yes
9475 else
9476 libltdl_cv_preloaded_symbols=no
9477 fi
9478
9479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009480{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9481echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009484cat >>confdefs.h <<\_ACEOF
9485#define HAVE_PRELOADED_SYMBOLS 1
9486_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487
9488fi
9489
9490LIBADD_DL=
9491
9492ac_ext=c
9493ac_cpp='$CPP $CPPFLAGS'
9494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496ac_compiler_gnu=$ac_cv_c_compiler_gnu
9497
9498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009499{ echo "$as_me:$LINENO: checking for shl_load" >&5
9500echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9501if test "${ac_cv_func_shl_load+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503else
9504 cat >conftest.$ac_ext <<_ACEOF
9505/* confdefs.h. */
9506_ACEOF
9507cat confdefs.h >>conftest.$ac_ext
9508cat >>conftest.$ac_ext <<_ACEOF
9509/* end confdefs.h. */
9510/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9512#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009514/* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char shl_load (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9518
9519#ifdef __STDC__
9520# include <limits.h>
9521#else
9522# include <assert.h>
9523#endif
9524
9525#undef shl_load
9526
9527/* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9530#ifdef __cplusplus
9531extern "C"
9532#endif
9533char shl_load ();
9534/* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537#if defined __stub_shl_load || defined __stub___shl_load
9538choke me
9539#endif
9540
9541int
9542main ()
9543{
9544return shl_load ();
9545 ;
9546 return 0;
9547}
9548_ACEOF
9549rm -f conftest.$ac_objext conftest$ac_exeext
9550if { (ac_try="$ac_link"
9551case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554esac
9555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9564 { (case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567esac
9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_try") 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577esac
9578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_try") 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_func_shl_load=yes
9584else
9585 echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 ac_cv_func_shl_load=no
9589fi
9590
9591rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593fi
9594{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9595echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9596if test $ac_cv_func_shl_load = yes; then
9597
9598cat >>confdefs.h <<\_ACEOF
9599#define HAVE_SHL_LOAD 1
9600_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601
9602else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009603 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9604echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9605if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607else
9608 ac_check_lib_save_LIBS=$LIBS
9609LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610cat >conftest.$ac_ext <<_ACEOF
9611/* confdefs.h. */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009615/* end confdefs.h. */
9616
Reid Spencera773bd52006-08-04 18:18:08 +00009617/* Override any GCC internal prototype to avoid an error.
9618 Use char because int might match the return type of a GCC
9619 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009620#ifdef __cplusplus
9621extern "C"
9622#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009623char shl_load ();
9624int
9625main ()
9626{
Reid Spencera773bd52006-08-04 18:18:08 +00009627return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009628 ;
9629 return 0;
9630}
9631_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009632rm -f conftest.$ac_objext conftest$ac_exeext
9633if { (ac_try="$ac_link"
9634case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637esac
9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_link") 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9647 { (case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650esac
9651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_try") 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try='test -s conftest$ac_exeext'
9657 { (case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9660esac
9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_try") 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666 ac_cv_lib_dld_shl_load=yes
9667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009668 echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009673
Bill Wendlingebcceee2009-04-18 11:20:33 +00009674rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009675 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009676LIBS=$ac_check_lib_save_LIBS
9677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009678{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9679echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9680if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009682cat >>confdefs.h <<\_ACEOF
9683#define HAVE_SHL_LOAD 1
9684_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009685
9686 LIBADD_DL="$LIBADD_DL -ldld"
9687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009688 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9689echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9690if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692else
9693 ac_check_lib_save_LIBS=$LIBS
9694LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009695cat >conftest.$ac_ext <<_ACEOF
9696/* confdefs.h. */
9697_ACEOF
9698cat confdefs.h >>conftest.$ac_ext
9699cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009700/* end confdefs.h. */
9701
Reid Spencera773bd52006-08-04 18:18:08 +00009702/* Override any GCC internal prototype to avoid an error.
9703 Use char because int might match the return type of a GCC
9704 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705#ifdef __cplusplus
9706extern "C"
9707#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009708char dlopen ();
9709int
9710main ()
9711{
Reid Spencera773bd52006-08-04 18:18:08 +00009712return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009713 ;
9714 return 0;
9715}
9716_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009717rm -f conftest.$ac_objext conftest$ac_exeext
9718if { (ac_try="$ac_link"
9719case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722esac
9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_link") 2>conftest.er1
9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9732 { (case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735esac
9736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_try") 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745esac
9746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_try") 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751 ac_cv_lib_dl_dlopen=yes
9752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009753 echo "$as_me: failed program was:" >&5
9754sed 's/^/| /' conftest.$ac_ext >&5
9755
9756 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009758
Bill Wendlingebcceee2009-04-18 11:20:33 +00009759rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009760 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761LIBS=$ac_check_lib_save_LIBS
9762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009763{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9764echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9765if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009767cat >>confdefs.h <<\_ACEOF
9768#define HAVE_LIBDL 1
9769_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770
9771 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009773 cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009778/* end confdefs.h. */
9779#if HAVE_DLFCN_H
9780# include <dlfcn.h>
9781#endif
9782
9783int
9784main ()
9785{
9786dlopen(0, 0);
9787 ;
9788 return 0;
9789}
9790_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009791rm -f conftest.$ac_objext conftest$ac_exeext
9792if { (ac_try="$ac_link"
9793case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796esac
9797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_link") 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9806 { (case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809esac
9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_try") 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; } &&
9815 { ac_try='test -s conftest$ac_exeext'
9816 { (case "(($ac_try" in
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9819esac
9820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_try") 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009826cat >>confdefs.h <<\_ACEOF
9827#define HAVE_LIBDL 1
9828_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009829 libltdl_cv_func_dlopen="yes"
9830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009831 echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9835echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9836if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838else
9839 ac_check_lib_save_LIBS=$LIBS
9840LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009841cat >conftest.$ac_ext <<_ACEOF
9842/* confdefs.h. */
9843_ACEOF
9844cat confdefs.h >>conftest.$ac_ext
9845cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009846/* end confdefs.h. */
9847
Reid Spencera773bd52006-08-04 18:18:08 +00009848/* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851#ifdef __cplusplus
9852extern "C"
9853#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854char dlopen ();
9855int
9856main ()
9857{
Reid Spencera773bd52006-08-04 18:18:08 +00009858return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859 ;
9860 return 0;
9861}
9862_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009863rm -f conftest.$ac_objext conftest$ac_exeext
9864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897 ac_cv_lib_svld_dlopen=yes
9898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009899 echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009904
Bill Wendlingebcceee2009-04-18 11:20:33 +00009905rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009906 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009907LIBS=$ac_check_lib_save_LIBS
9908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009909{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9910echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9911if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009913cat >>confdefs.h <<\_ACEOF
9914#define HAVE_LIBDL 1
9915_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009916
9917 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009919 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9920echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9921if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923else
9924 ac_check_lib_save_LIBS=$LIBS
9925LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009926cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h. */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931/* end confdefs.h. */
9932
Reid Spencera773bd52006-08-04 18:18:08 +00009933/* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936#ifdef __cplusplus
9937extern "C"
9938#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939char dld_link ();
9940int
9941main ()
9942{
Reid Spencera773bd52006-08-04 18:18:08 +00009943return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944 ;
9945 return 0;
9946}
9947_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009948rm -f conftest.$ac_objext conftest$ac_exeext
9949if { (ac_try="$ac_link"
9950case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953esac
9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982 ac_cv_lib_dld_dld_link=yes
9983else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009984 echo "$as_me: failed program was:" >&5
9985sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009989
Bill Wendlingebcceee2009-04-18 11:20:33 +00009990rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009991 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992LIBS=$ac_check_lib_save_LIBS
9993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009994{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9995echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9996if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009998cat >>confdefs.h <<\_ACEOF
9999#define HAVE_DLD 1
10000_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001
10002 LIBADD_DL="$LIBADD_DL -ldld"
10003else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010004 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10005echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10006if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008else
10009 cat >conftest.$ac_ext <<_ACEOF
10010/* confdefs.h. */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h. */
10015/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10017#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010019/* System header to define __stub macros and hopefully few prototypes,
10020 which can conflict with char _dyld_func_lookup (); below.
10021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10022 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010024#ifdef __STDC__
10025# include <limits.h>
10026#else
10027# include <assert.h>
10028#endif
10029
10030#undef _dyld_func_lookup
10031
10032/* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
10035#ifdef __cplusplus
10036extern "C"
10037#endif
10038char _dyld_func_lookup ();
10039/* The GNU C library defines this for functions which it implements
10040 to always fail with ENOSYS. Some functions are actually named
10041 something starting with __ and the normal name is an alias. */
10042#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10043choke me
10044#endif
10045
10046int
10047main ()
10048{
10049return _dyld_func_lookup ();
10050 ;
10051 return 0;
10052}
10053_ACEOF
10054rm -f conftest.$ac_objext conftest$ac_exeext
10055if { (ac_try="$ac_link"
10056case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10059esac
10060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_link") 2>conftest.er1
10062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest$ac_exeext'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082esac
10083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_func__dyld_func_lookup=yes
10089else
10090 echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
10092
10093 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094fi
Reid Spencera773bd52006-08-04 18:18:08 +000010095
Bill Wendlingebcceee2009-04-18 11:20:33 +000010096rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010097 conftest$ac_exeext conftest.$ac_ext
10098fi
10099{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10100echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10101if test $ac_cv_func__dyld_func_lookup = yes; then
10102
10103cat >>confdefs.h <<\_ACEOF
10104#define HAVE_DYLD 1
10105_ACEOF
10106
10107fi
10108
10109
10110fi
10111
10112
10113fi
10114
10115
10116fi
10117
10118rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010120
10121fi
10122
10123
10124fi
10125
10126
10127fi
10128
10129
10130if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10131then
10132 lt_save_LIBS="$LIBS"
10133 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010134
10135for ac_func in dlerror
10136do
10137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10138{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10140if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142else
10143 cat >conftest.$ac_ext <<_ACEOF
10144/* confdefs.h. */
10145_ACEOF
10146cat confdefs.h >>conftest.$ac_ext
10147cat >>conftest.$ac_ext <<_ACEOF
10148/* end confdefs.h. */
10149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10151#define $ac_func innocuous_$ac_func
10152
10153/* System header to define __stub macros and hopefully few prototypes,
10154 which can conflict with char $ac_func (); below.
10155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10156 <limits.h> exists even on freestanding compilers. */
10157
10158#ifdef __STDC__
10159# include <limits.h>
10160#else
10161# include <assert.h>
10162#endif
10163
10164#undef $ac_func
10165
10166/* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10169#ifdef __cplusplus
10170extern "C"
10171#endif
10172char $ac_func ();
10173/* The GNU C library defines this for functions which it implements
10174 to always fail with ENOSYS. Some functions are actually named
10175 something starting with __ and the normal name is an alias. */
10176#if defined __stub_$ac_func || defined __stub___$ac_func
10177choke me
10178#endif
10179
10180int
10181main ()
10182{
10183return $ac_func ();
10184 ;
10185 return 0;
10186}
10187_ACEOF
10188rm -f conftest.$ac_objext conftest$ac_exeext
10189if { (ac_try="$ac_link"
10190case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10193esac
10194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_link") 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest$ac_exeext'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 eval "$as_ac_var=yes"
10223else
10224 echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
10227 eval "$as_ac_var=no"
10228fi
10229
10230rm -f core conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10232fi
10233ac_res=`eval echo '${'$as_ac_var'}'`
10234 { echo "$as_me:$LINENO: result: $ac_res" >&5
10235echo "${ECHO_T}$ac_res" >&6; }
10236if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239_ACEOF
10240
10241fi
10242done
10243
10244 LIBS="$lt_save_LIBS"
10245fi
10246ac_ext=c
10247ac_cpp='$CPP $CPPFLAGS'
10248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10250ac_compiler_gnu=$ac_cv_c_compiler_gnu
10251
10252
10253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010254{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10255echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10256if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010258else
10259 ac_cv_sys_symbol_underscore=no
10260 cat > conftest.$ac_ext <<EOF
10261void nm_test_func(){}
10262int main(){nm_test_func;return 0;}
10263EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265 (eval $ac_compile) 2>&5
10266 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269 # Now try to grab the symbols.
10270 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010271 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 +000010272 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10273 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276 # See whether the symbols have a leading underscore.
10277 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10278 ac_cv_sys_symbol_underscore=yes
10279 else
10280 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10281 :
10282 else
10283 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10284 fi
10285 fi
10286 else
10287 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10288 fi
10289 else
10290 echo "configure: failed program was:" >&5
10291 cat conftest.c >&5
10292 fi
10293 rm -rf conftest*
10294
10295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010296{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10297echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298
10299
10300if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10301 if test x"$libltdl_cv_func_dlopen" = xyes ||
10302 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010303 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10304echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10305if test "${libltdl_cv_need_uscore+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307else
10308 libltdl_cv_need_uscore=unknown
10309 save_LIBS="$LIBS"
10310 LIBS="$LIBS $LIBADD_DL"
10311 if test "$cross_compiling" = yes; then :
10312 libltdl_cv_need_uscore=cross
10313else
10314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10315 lt_status=$lt_dlunknown
10316 cat > conftest.$ac_ext <<EOF
Eric Christopherf0b3b742012-11-19 19:31:02 +000010317#line 10317 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318#include "confdefs.h"
10319
10320#if HAVE_DLFCN_H
10321#include <dlfcn.h>
10322#endif
10323
10324#include <stdio.h>
10325
10326#ifdef RTLD_GLOBAL
10327# define LT_DLGLOBAL RTLD_GLOBAL
10328#else
10329# ifdef DL_GLOBAL
10330# define LT_DLGLOBAL DL_GLOBAL
10331# else
10332# define LT_DLGLOBAL 0
10333# endif
10334#endif
10335
10336/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10337 find out it does not work in some platform. */
10338#ifndef LT_DLLAZY_OR_NOW
10339# ifdef RTLD_LAZY
10340# define LT_DLLAZY_OR_NOW RTLD_LAZY
10341# else
10342# ifdef DL_LAZY
10343# define LT_DLLAZY_OR_NOW DL_LAZY
10344# else
10345# ifdef RTLD_NOW
10346# define LT_DLLAZY_OR_NOW RTLD_NOW
10347# else
10348# ifdef DL_NOW
10349# define LT_DLLAZY_OR_NOW DL_NOW
10350# else
10351# define LT_DLLAZY_OR_NOW 0
10352# endif
10353# endif
10354# endif
10355# endif
10356#endif
10357
10358#ifdef __cplusplus
10359extern "C" void exit (int);
10360#endif
10361
10362void fnord() { int i=42;}
10363int main ()
10364{
10365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10366 int status = $lt_dlunknown;
10367
10368 if (self)
10369 {
10370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10371 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10372 /* dlclose (self); */
10373 }
Reid Spencera773bd52006-08-04 18:18:08 +000010374 else
10375 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010376
10377 exit (status);
10378}
10379EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010381 (eval $ac_link) 2>&5
10382 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010385 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386 lt_status=$?
10387 case x$lt_status in
10388 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10389 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010390 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010391 esac
10392 else :
10393 # compilation failed
10394
10395 fi
10396fi
10397rm -fr conftest*
10398
10399 LIBS="$save_LIBS"
10400
10401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010402{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10403echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404 fi
10405fi
10406
10407if test x"$libltdl_cv_need_uscore" = xyes; then
10408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010409cat >>confdefs.h <<\_ACEOF
10410#define NEED_USCORE 1
10411_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412
10413fi
10414
10415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010416{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10417echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10418if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420else
10421 # PORTME does your system automatically load deplibs for dlopen?
10422 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10423 # For now, we just catch OSes we know something about -- in the
10424 # future, we'll try test this programmatically.
10425 libltdl_cv_sys_dlopen_deplibs=unknown
10426 case "$host_os" in
10427 aix3*|aix4.1.*|aix4.2.*)
10428 # Unknown whether this is true for these versions of AIX, but
10429 # we want this `case' here to explicitly catch those versions.
10430 libltdl_cv_sys_dlopen_deplibs=unknown
10431 ;;
10432 aix[45]*)
10433 libltdl_cv_sys_dlopen_deplibs=yes
10434 ;;
10435 darwin*)
10436 # Assuming the user has installed a libdl from somewhere, this is true
10437 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10438 libltdl_cv_sys_dlopen_deplibs=yes
10439 ;;
10440 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10441 # GNU and its variants, using gnu ld.so (Glibc)
10442 libltdl_cv_sys_dlopen_deplibs=yes
10443 ;;
10444 hpux10*|hpux11*)
10445 libltdl_cv_sys_dlopen_deplibs=yes
10446 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010447 interix*)
10448 libltdl_cv_sys_dlopen_deplibs=yes
10449 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450 irix[12345]*|irix6.[01]*)
10451 # Catch all versions of IRIX before 6.2, and indicate that we don't
10452 # know how it worked for any of those versions.
10453 libltdl_cv_sys_dlopen_deplibs=unknown
10454 ;;
10455 irix*)
10456 # The case above catches anything before 6.2, and it's known that
10457 # at 6.2 and later dlopen does load deplibs.
10458 libltdl_cv_sys_dlopen_deplibs=yes
10459 ;;
10460 netbsd*)
10461 libltdl_cv_sys_dlopen_deplibs=yes
10462 ;;
10463 openbsd*)
10464 libltdl_cv_sys_dlopen_deplibs=yes
10465 ;;
10466 osf[1234]*)
10467 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10468 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010469 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470 libltdl_cv_sys_dlopen_deplibs=no
10471 ;;
10472 osf5.0|osf5.0a|osf5.1)
10473 # dlopen *does* load deplibs and with the right loader patch applied
10474 # it even uses RPATH in a shared library to search for shared objects
10475 # that the library depends on, but there's no easy way to know if that
10476 # patch is installed. Since this is the case, all we can really
10477 # say is unknown -- it depends on the patch being installed. If
10478 # it is, this changes to `yes'. Without it, it would be `no'.
10479 libltdl_cv_sys_dlopen_deplibs=unknown
10480 ;;
10481 osf*)
10482 # the two cases above should catch all versions of osf <= 5.1. Read
10483 # the comments above for what we know about them.
10484 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10485 # is used to find them so we can finally say `yes'.
10486 libltdl_cv_sys_dlopen_deplibs=yes
10487 ;;
10488 solaris*)
10489 libltdl_cv_sys_dlopen_deplibs=yes
10490 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10492 libltdl_cv_sys_dlopen_deplibs=yes
10493 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494 esac
10495
10496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010497{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10498echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010501cat >>confdefs.h <<\_ACEOF
10502#define LTDL_DLOPEN_DEPLIBS 1
10503_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504
10505fi
10506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010507
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010509do
10510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516fi
10517ac_res=`eval echo '${'$as_ac_Header'}'`
10518 { echo "$as_me:$LINENO: result: $ac_res" >&5
10519echo "${ECHO_T}$ac_res" >&6; }
10520else
10521 # Is the header compilable?
10522{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10524cat >conftest.$ac_ext <<_ACEOF
10525/* confdefs.h. */
10526_ACEOF
10527cat confdefs.h >>conftest.$ac_ext
10528cat >>conftest.$ac_ext <<_ACEOF
10529/* end confdefs.h. */
10530$ac_includes_default
10531#include <$ac_header>
10532_ACEOF
10533rm -f conftest.$ac_objext
10534if { (ac_try="$ac_compile"
10535case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538esac
10539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_compile") 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551esac
10552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561esac
10562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_header_compiler=yes
10568else
10569 echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 ac_header_compiler=no
10573fi
10574
10575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10577echo "${ECHO_T}$ac_header_compiler" >&6; }
10578
10579# Is the header present?
10580{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10582cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
10588#include <$ac_header>
10589_ACEOF
10590if { (ac_try="$ac_cpp conftest.$ac_ext"
10591case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594esac
10595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } >/dev/null; then
10603 if test -s conftest.err; then
10604 ac_cpp_err=$ac_c_preproc_warn_flag
10605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10606 else
10607 ac_cpp_err=
10608 fi
10609else
10610 ac_cpp_err=yes
10611fi
10612if test -z "$ac_cpp_err"; then
10613 ac_header_preproc=yes
10614else
10615 echo "$as_me: failed program was:" >&5
10616sed 's/^/| /' conftest.$ac_ext >&5
10617
10618 ac_header_preproc=no
10619fi
10620
10621rm -f conftest.err conftest.$ac_ext
10622{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10623echo "${ECHO_T}$ac_header_preproc" >&6; }
10624
10625# So? What about this header?
10626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10627 yes:no: )
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10629echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10631echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10632 ac_header_preproc=yes
10633 ;;
10634 no:yes:* )
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10638echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10640echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10642echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10646echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10647 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010648## ------------------------------------ ##
10649## Report this to http://llvm.org/bugs/ ##
10650## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010651_ASBOX
10652 ) | sed "s/^/$as_me: WARNING: /" >&2
10653 ;;
10654esac
10655{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660 eval "$as_ac_Header=\$ac_header_preproc"
10661fi
10662ac_res=`eval echo '${'$as_ac_Header'}'`
10663 { echo "$as_me:$LINENO: result: $ac_res" >&5
10664echo "${ECHO_T}$ac_res" >&6; }
10665
10666fi
10667if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670_ACEOF
10671
10672fi
10673
10674done
10675
10676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010677{ echo "$as_me:$LINENO: checking for error_t" >&5
10678echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10679if test "${ac_cv_type_error_t+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682 cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h. */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h. */
10688#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010689# include <argz.h>
10690#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010691
10692typedef error_t ac__type_new_;
10693int
10694main ()
10695{
10696if ((ac__type_new_ *) 0)
10697 return 0;
10698if (sizeof (ac__type_new_))
10699 return 0;
10700 ;
10701 return 0;
10702}
10703_ACEOF
10704rm -f conftest.$ac_objext
10705if { (ac_try="$ac_compile"
10706case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
10710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719 { (case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
10723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_try") 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest.$ac_objext'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732esac
10733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_type_error_t=yes
10739else
10740 echo "$as_me: failed program was:" >&5
10741sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_cv_type_error_t=no
10744fi
10745
10746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747fi
10748{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10749echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10750if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751
10752cat >>confdefs.h <<_ACEOF
10753#define HAVE_ERROR_T 1
10754_ACEOF
10755
10756
10757else
10758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010759cat >>confdefs.h <<\_ACEOF
10760#define error_t int
10761_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762
10763fi
10764
10765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010766
10767
10768
10769
10770
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010771for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010772do
10773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10776if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779 cat >conftest.$ac_ext <<_ACEOF
10780/* confdefs.h. */
10781_ACEOF
10782cat confdefs.h >>conftest.$ac_ext
10783cat >>conftest.$ac_ext <<_ACEOF
10784/* end confdefs.h. */
10785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10787#define $ac_func innocuous_$ac_func
10788
10789/* System header to define __stub macros and hopefully few prototypes,
10790 which can conflict with char $ac_func (); below.
10791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792 <limits.h> exists even on freestanding compilers. */
10793
10794#ifdef __STDC__
10795# include <limits.h>
10796#else
10797# include <assert.h>
10798#endif
10799
10800#undef $ac_func
10801
10802/* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10805#ifdef __cplusplus
10806extern "C"
10807#endif
10808char $ac_func ();
10809/* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812#if defined __stub_$ac_func || defined __stub___$ac_func
10813choke me
10814#endif
10815
10816int
10817main ()
10818{
10819return $ac_func ();
10820 ;
10821 return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext conftest$ac_exeext
10825if { (ac_try="$ac_link"
10826case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829esac
10830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839 { (case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842esac
10843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_try") 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; } &&
10848 { ac_try='test -s conftest$ac_exeext'
10849 { (case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852esac
10853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_try") 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 eval "$as_ac_var=yes"
10859else
10860 echo "$as_me: failed program was:" >&5
10861sed 's/^/| /' conftest.$ac_ext >&5
10862
10863 eval "$as_ac_var=no"
10864fi
10865
10866rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868fi
10869ac_res=`eval echo '${'$as_ac_var'}'`
10870 { echo "$as_me:$LINENO: result: $ac_res" >&5
10871echo "${ECHO_T}$ac_res" >&6; }
10872if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010873 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875_ACEOF
10876
10877fi
10878done
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010899
10900
10901
10902
10903
10904
10905
10906
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010907for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10908 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010909do
10910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916fi
10917ac_res=`eval echo '${'$as_ac_Header'}'`
10918 { echo "$as_me:$LINENO: result: $ac_res" >&5
10919echo "${ECHO_T}$ac_res" >&6; }
10920else
10921 # Is the header compilable?
10922{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10924cat >conftest.$ac_ext <<_ACEOF
10925/* confdefs.h. */
10926_ACEOF
10927cat confdefs.h >>conftest.$ac_ext
10928cat >>conftest.$ac_ext <<_ACEOF
10929/* end confdefs.h. */
10930$ac_includes_default
10931#include <$ac_header>
10932_ACEOF
10933rm -f conftest.$ac_objext
10934if { (ac_try="$ac_compile"
10935case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_compile") 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951esac
10952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest.$ac_objext'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961esac
10962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_header_compiler=yes
10968else
10969 echo "$as_me: failed program was:" >&5
10970sed 's/^/| /' conftest.$ac_ext >&5
10971
10972 ac_header_compiler=no
10973fi
10974
10975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10977echo "${ECHO_T}$ac_header_compiler" >&6; }
10978
10979# Is the header present?
10980{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10982cat >conftest.$ac_ext <<_ACEOF
10983/* confdefs.h. */
10984_ACEOF
10985cat confdefs.h >>conftest.$ac_ext
10986cat >>conftest.$ac_ext <<_ACEOF
10987/* end confdefs.h. */
10988#include <$ac_header>
10989_ACEOF
10990if { (ac_try="$ac_cpp conftest.$ac_ext"
10991case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994esac
10995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } >/dev/null; then
11003 if test -s conftest.err; then
11004 ac_cpp_err=$ac_c_preproc_warn_flag
11005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11006 else
11007 ac_cpp_err=
11008 fi
11009else
11010 ac_cpp_err=yes
11011fi
11012if test -z "$ac_cpp_err"; then
11013 ac_header_preproc=yes
11014else
11015 echo "$as_me: failed program was:" >&5
11016sed 's/^/| /' conftest.$ac_ext >&5
11017
11018 ac_header_preproc=no
11019fi
11020
11021rm -f conftest.err conftest.$ac_ext
11022{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11023echo "${ECHO_T}$ac_header_preproc" >&6; }
11024
11025# So? What about this header?
11026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11027 yes:no: )
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11029echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11031echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11032 ac_header_preproc=yes
11033 ;;
11034 no:yes:* )
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11038echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11040echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11042echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11046echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11047 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011048## ------------------------------------ ##
11049## Report this to http://llvm.org/bugs/ ##
11050## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011051_ASBOX
11052 ) | sed "s/^/$as_me: WARNING: /" >&2
11053 ;;
11054esac
11055{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11059else
11060 eval "$as_ac_Header=\$ac_header_preproc"
11061fi
11062ac_res=`eval echo '${'$as_ac_Header'}'`
11063 { echo "$as_me:$LINENO: result: $ac_res" >&5
11064echo "${ECHO_T}$ac_res" >&6; }
11065
11066fi
11067if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070_ACEOF
11071
11072fi
11073
11074done
11075
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011076
11077
11078
11079
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011081do
11082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088fi
11089ac_res=`eval echo '${'$as_ac_Header'}'`
11090 { echo "$as_me:$LINENO: result: $ac_res" >&5
11091echo "${ECHO_T}$ac_res" >&6; }
11092else
11093 # Is the header compilable?
11094{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11096cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h. */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h. */
11102$ac_includes_default
11103#include <$ac_header>
11104_ACEOF
11105rm -f conftest.$ac_objext
11106if { (ac_try="$ac_compile"
11107case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110esac
11111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_compile") 2>conftest.er1
11113 ac_status=$?
11114 grep -v '^ *+' conftest.er1 >conftest.err
11115 rm -f conftest.er1
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120 { (case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_try") 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133esac
11134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_try") 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_header_compiler=yes
11140else
11141 echo "$as_me: failed program was:" >&5
11142sed 's/^/| /' conftest.$ac_ext >&5
11143
11144 ac_header_compiler=no
11145fi
11146
11147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11148{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11149echo "${ECHO_T}$ac_header_compiler" >&6; }
11150
11151# Is the header present?
11152{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11154cat >conftest.$ac_ext <<_ACEOF
11155/* confdefs.h. */
11156_ACEOF
11157cat confdefs.h >>conftest.$ac_ext
11158cat >>conftest.$ac_ext <<_ACEOF
11159/* end confdefs.h. */
11160#include <$ac_header>
11161_ACEOF
11162if { (ac_try="$ac_cpp conftest.$ac_ext"
11163case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev/null; then
11175 if test -s conftest.err; then
11176 ac_cpp_err=$ac_c_preproc_warn_flag
11177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11178 else
11179 ac_cpp_err=
11180 fi
11181else
11182 ac_cpp_err=yes
11183fi
11184if test -z "$ac_cpp_err"; then
11185 ac_header_preproc=yes
11186else
11187 echo "$as_me: failed program was:" >&5
11188sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 ac_header_preproc=no
11191fi
11192
11193rm -f conftest.err conftest.$ac_ext
11194{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11195echo "${ECHO_T}$ac_header_preproc" >&6; }
11196
11197# So? What about this header?
11198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11199 yes:no: )
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11204 ac_header_preproc=yes
11205 ;;
11206 no:yes:* )
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11219 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011220## ------------------------------------ ##
11221## Report this to http://llvm.org/bugs/ ##
11222## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011223_ASBOX
11224 ) | sed "s/^/$as_me: WARNING: /" >&2
11225 ;;
11226esac
11227{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11231else
11232 eval "$as_ac_Header=\$ac_header_preproc"
11233fi
11234ac_res=`eval echo '${'$as_ac_Header'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236echo "${ECHO_T}$ac_res" >&6; }
11237
11238fi
11239if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242_ACEOF
11243
11244fi
11245
11246done
11247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011248
11249
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251do
11252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258fi
11259ac_res=`eval echo '${'$as_ac_Header'}'`
11260 { echo "$as_me:$LINENO: result: $ac_res" >&5
11261echo "${ECHO_T}$ac_res" >&6; }
11262else
11263 # Is the header compilable?
11264{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11266cat >conftest.$ac_ext <<_ACEOF
11267/* confdefs.h. */
11268_ACEOF
11269cat confdefs.h >>conftest.$ac_ext
11270cat >>conftest.$ac_ext <<_ACEOF
11271/* end confdefs.h. */
11272$ac_includes_default
11273#include <$ac_header>
11274_ACEOF
11275rm -f conftest.$ac_objext
11276if { (ac_try="$ac_compile"
11277case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_compile") 2>conftest.er1
11283 ac_status=$?
11284 grep -v '^ *+' conftest.er1 >conftest.err
11285 rm -f conftest.er1
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11290 { (case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11293esac
11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_try") 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; } &&
11299 { ac_try='test -s conftest.$ac_objext'
11300 { (case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_try") 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_header_compiler=yes
11310else
11311 echo "$as_me: failed program was:" >&5
11312sed 's/^/| /' conftest.$ac_ext >&5
11313
11314 ac_header_compiler=no
11315fi
11316
11317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11319echo "${ECHO_T}$ac_header_compiler" >&6; }
11320
11321# Is the header present?
11322{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11323echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11324cat >conftest.$ac_ext <<_ACEOF
11325/* confdefs.h. */
11326_ACEOF
11327cat confdefs.h >>conftest.$ac_ext
11328cat >>conftest.$ac_ext <<_ACEOF
11329/* end confdefs.h. */
11330#include <$ac_header>
11331_ACEOF
11332if { (ac_try="$ac_cpp conftest.$ac_ext"
11333case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11336esac
11337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } >/dev/null; then
11345 if test -s conftest.err; then
11346 ac_cpp_err=$ac_c_preproc_warn_flag
11347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11348 else
11349 ac_cpp_err=
11350 fi
11351else
11352 ac_cpp_err=yes
11353fi
11354if test -z "$ac_cpp_err"; then
11355 ac_header_preproc=yes
11356else
11357 echo "$as_me: failed program was:" >&5
11358sed 's/^/| /' conftest.$ac_ext >&5
11359
11360 ac_header_preproc=no
11361fi
11362
11363rm -f conftest.err conftest.$ac_ext
11364{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11365echo "${ECHO_T}$ac_header_preproc" >&6; }
11366
11367# So? What about this header?
11368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11369 yes:no: )
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11371echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11373echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11374 ac_header_preproc=yes
11375 ;;
11376 no:yes:* )
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11380echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11382echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11384echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11388echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11389 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011390## ------------------------------------ ##
11391## Report this to http://llvm.org/bugs/ ##
11392## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011393_ASBOX
11394 ) | sed "s/^/$as_me: WARNING: /" >&2
11395 ;;
11396esac
11397{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 eval "$as_ac_Header=\$ac_header_preproc"
11403fi
11404ac_res=`eval echo '${'$as_ac_Header'}'`
11405 { echo "$as_me:$LINENO: result: $ac_res" >&5
11406echo "${ECHO_T}$ac_res" >&6; }
11407
11408fi
11409if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412_ACEOF
11413 break
11414fi
11415
11416done
11417
11418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011419
11420
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011422do
11423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11424{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11426if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11428else
11429 cat >conftest.$ac_ext <<_ACEOF
11430/* confdefs.h. */
11431_ACEOF
11432cat confdefs.h >>conftest.$ac_ext
11433cat >>conftest.$ac_ext <<_ACEOF
11434/* end confdefs.h. */
11435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11437#define $ac_func innocuous_$ac_func
11438
11439/* System header to define __stub macros and hopefully few prototypes,
11440 which can conflict with char $ac_func (); below.
11441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11442 <limits.h> exists even on freestanding compilers. */
11443
11444#ifdef __STDC__
11445# include <limits.h>
11446#else
11447# include <assert.h>
11448#endif
11449
11450#undef $ac_func
11451
11452/* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11455#ifdef __cplusplus
11456extern "C"
11457#endif
11458char $ac_func ();
11459/* The GNU C library defines this for functions which it implements
11460 to always fail with ENOSYS. Some functions are actually named
11461 something starting with __ and the normal name is an alias. */
11462#if defined __stub_$ac_func || defined __stub___$ac_func
11463choke me
11464#endif
11465
11466int
11467main ()
11468{
11469return $ac_func ();
11470 ;
11471 return 0;
11472}
11473_ACEOF
11474rm -f conftest.$ac_objext conftest$ac_exeext
11475if { (ac_try="$ac_link"
11476case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479esac
11480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_link") 2>conftest.er1
11482 ac_status=$?
11483 grep -v '^ *+' conftest.er1 >conftest.err
11484 rm -f conftest.er1
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } &&
11488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11489 { (case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492esac
11493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_try") 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest$ac_exeext'
11499 { (case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502esac
11503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_try") 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 eval "$as_ac_var=yes"
11509else
11510 echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 eval "$as_ac_var=no"
11514fi
11515
11516rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518fi
11519ac_res=`eval echo '${'$as_ac_var'}'`
11520 { echo "$as_me:$LINENO: result: $ac_res" >&5
11521echo "${ECHO_T}$ac_res" >&6; }
11522if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525_ACEOF
11526 break
11527fi
11528done
11529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011530
11531
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011533do
11534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11535{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11537if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539else
11540 cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
11546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11548#define $ac_func innocuous_$ac_func
11549
11550/* System header to define __stub macros and hopefully few prototypes,
11551 which can conflict with char $ac_func (); below.
11552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11553 <limits.h> exists even on freestanding compilers. */
11554
11555#ifdef __STDC__
11556# include <limits.h>
11557#else
11558# include <assert.h>
11559#endif
11560
11561#undef $ac_func
11562
11563/* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11566#ifdef __cplusplus
11567extern "C"
11568#endif
11569char $ac_func ();
11570/* The GNU C library defines this for functions which it implements
11571 to always fail with ENOSYS. Some functions are actually named
11572 something starting with __ and the normal name is an alias. */
11573#if defined __stub_$ac_func || defined __stub___$ac_func
11574choke me
11575#endif
11576
11577int
11578main ()
11579{
11580return $ac_func ();
11581 ;
11582 return 0;
11583}
11584_ACEOF
11585rm -f conftest.$ac_objext conftest$ac_exeext
11586if { (ac_try="$ac_link"
11587case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590esac
11591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_link") 2>conftest.er1
11593 ac_status=$?
11594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11600 { (case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11603esac
11604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_try") 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; } &&
11609 { ac_try='test -s conftest$ac_exeext'
11610 { (case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613esac
11614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_try") 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 eval "$as_ac_var=yes"
11620else
11621 echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 eval "$as_ac_var=no"
11625fi
11626
11627rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11629fi
11630ac_res=`eval echo '${'$as_ac_var'}'`
11631 { echo "$as_me:$LINENO: result: $ac_res" >&5
11632echo "${ECHO_T}$ac_res" >&6; }
11633if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636_ACEOF
11637 break
11638fi
11639done
11640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011641
11642
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011643for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011644do
11645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11646{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11648if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651 cat >conftest.$ac_ext <<_ACEOF
11652/* confdefs.h. */
11653_ACEOF
11654cat confdefs.h >>conftest.$ac_ext
11655cat >>conftest.$ac_ext <<_ACEOF
11656/* end confdefs.h. */
11657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11659#define $ac_func innocuous_$ac_func
11660
11661/* System header to define __stub macros and hopefully few prototypes,
11662 which can conflict with char $ac_func (); below.
11663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11664 <limits.h> exists even on freestanding compilers. */
11665
11666#ifdef __STDC__
11667# include <limits.h>
11668#else
11669# include <assert.h>
11670#endif
11671
11672#undef $ac_func
11673
11674/* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11677#ifdef __cplusplus
11678extern "C"
11679#endif
11680char $ac_func ();
11681/* The GNU C library defines this for functions which it implements
11682 to always fail with ENOSYS. Some functions are actually named
11683 something starting with __ and the normal name is an alias. */
11684#if defined __stub_$ac_func || defined __stub___$ac_func
11685choke me
11686#endif
11687
11688int
11689main ()
11690{
11691return $ac_func ();
11692 ;
11693 return 0;
11694}
11695_ACEOF
11696rm -f conftest.$ac_objext conftest$ac_exeext
11697if { (ac_try="$ac_link"
11698case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701esac
11702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_link") 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try='test -s conftest$ac_exeext'
11721 { (case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724esac
11725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_try") 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 eval "$as_ac_var=yes"
11731else
11732 echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 eval "$as_ac_var=no"
11736fi
11737
11738rm -f core conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11740fi
11741ac_res=`eval echo '${'$as_ac_var'}'`
11742 { echo "$as_me:$LINENO: result: $ac_res" >&5
11743echo "${ECHO_T}$ac_res" >&6; }
11744if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747_ACEOF
11748 break
11749fi
11750done
11751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011752
11753
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011755do
11756as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11757{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11758echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11759if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761else
11762 cat >conftest.$ac_ext <<_ACEOF
11763/* confdefs.h. */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
11767/* end confdefs.h. */
11768/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11770#define $ac_func innocuous_$ac_func
11771
11772/* System header to define __stub macros and hopefully few prototypes,
11773 which can conflict with char $ac_func (); below.
11774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11775 <limits.h> exists even on freestanding compilers. */
11776
11777#ifdef __STDC__
11778# include <limits.h>
11779#else
11780# include <assert.h>
11781#endif
11782
11783#undef $ac_func
11784
11785/* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11788#ifdef __cplusplus
11789extern "C"
11790#endif
11791char $ac_func ();
11792/* The GNU C library defines this for functions which it implements
11793 to always fail with ENOSYS. Some functions are actually named
11794 something starting with __ and the normal name is an alias. */
11795#if defined __stub_$ac_func || defined __stub___$ac_func
11796choke me
11797#endif
11798
11799int
11800main ()
11801{
11802return $ac_func ();
11803 ;
11804 return 0;
11805}
11806_ACEOF
11807rm -f conftest.$ac_objext conftest$ac_exeext
11808if { (ac_try="$ac_link"
11809case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812esac
11813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_link") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825esac
11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835esac
11836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 eval "$as_ac_var=yes"
11842else
11843 echo "$as_me: failed program was:" >&5
11844sed 's/^/| /' conftest.$ac_ext >&5
11845
11846 eval "$as_ac_var=no"
11847fi
11848
11849rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851fi
11852ac_res=`eval echo '${'$as_ac_var'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854echo "${ECHO_T}$ac_res" >&6; }
11855if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011858_ACEOF
11859
11860fi
11861done
11862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011863
11864
11865
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011866for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011867do
11868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11871if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11873else
11874 cat >conftest.$ac_ext <<_ACEOF
11875/* confdefs.h. */
11876_ACEOF
11877cat confdefs.h >>conftest.$ac_ext
11878cat >>conftest.$ac_ext <<_ACEOF
11879/* end confdefs.h. */
11880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11882#define $ac_func innocuous_$ac_func
11883
11884/* System header to define __stub macros and hopefully few prototypes,
11885 which can conflict with char $ac_func (); below.
11886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11887 <limits.h> exists even on freestanding compilers. */
11888
11889#ifdef __STDC__
11890# include <limits.h>
11891#else
11892# include <assert.h>
11893#endif
11894
11895#undef $ac_func
11896
11897/* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11900#ifdef __cplusplus
11901extern "C"
11902#endif
11903char $ac_func ();
11904/* The GNU C library defines this for functions which it implements
11905 to always fail with ENOSYS. Some functions are actually named
11906 something starting with __ and the normal name is an alias. */
11907#if defined __stub_$ac_func || defined __stub___$ac_func
11908choke me
11909#endif
11910
11911int
11912main ()
11913{
11914return $ac_func ();
11915 ;
11916 return 0;
11917}
11918_ACEOF
11919rm -f conftest.$ac_objext conftest$ac_exeext
11920if { (ac_try="$ac_link"
11921case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11924esac
11925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_link") 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11934 { (case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937esac
11938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_try") 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
11944 { (case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_try") 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 eval "$as_ac_var=yes"
11954else
11955 echo "$as_me: failed program was:" >&5
11956sed 's/^/| /' conftest.$ac_ext >&5
11957
11958 eval "$as_ac_var=no"
11959fi
11960
11961rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963fi
11964ac_res=`eval echo '${'$as_ac_var'}'`
11965 { echo "$as_me:$LINENO: result: $ac_res" >&5
11966echo "${ECHO_T}$ac_res" >&6; }
11967if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970_ACEOF
11971
11972fi
11973done
11974
11975
Douglas Gregor01746742009-05-11 18:05:52 +000011976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011977{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11978echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011979
Reid Spencer86901802004-12-08 23:07:27 +000011980ICC=no
11981IXX=no
11982case $CC in
11983 icc*|icpc*)
11984 ICC=yes
11985 IXX=yes
11986 ;;
11987 *)
11988 ;;
11989esac
11990
Duraid Madina937c60a2006-02-15 07:57:42 +000011991if test "$GCC" != "yes" && test "$ICC" != "yes"
11992then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011993 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11994echo "$as_me: error: gcc|icc required but not found" >&2;}
11995 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011996fi
11997
11998if test "$GXX" != "yes" && test "$IXX" != "yes"
11999then
Eric Christopher73e36da2010-12-08 02:02:14 +000012000 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12001echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012002 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012003fi
12004
Reid Spencer86901802004-12-08 23:07:27 +000012005if test "$GCC" = "yes"
12006then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012007 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012008#if !defined(__GNUC__) || __GNUC__ < 3
12009#error Unsupported GCC version
12010#endif
12011
12012_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012013rm -f conftest.$ac_objext
12014if { (ac_try="$ac_compile"
12015case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018esac
12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031esac
12032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12053echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12054 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012056
Chris Lattner399c7c72008-02-05 19:43:53 +000012057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012058fi
12059
12060if test -z "$llvm_cv_gnu_make_command"
12061then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012062 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12063echo "$as_me: error: GNU Make required but not found" >&2;}
12064 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012065fi
12066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012067{ echo "$as_me:$LINENO: result: ok" >&5
12068echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012070{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12071echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012072NO_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 +000012073
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012074NO_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 +000012075
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012076COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12077
12078{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12079echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012080
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012082
12083{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12084echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12085if test "${ac_cv_lib_m_sin+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012087else
12088 ac_check_lib_save_LIBS=$LIBS
12089LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012090cat >conftest.$ac_ext <<_ACEOF
12091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012095/* end confdefs.h. */
12096
Reid Spencera773bd52006-08-04 18:18:08 +000012097/* Override any GCC internal prototype to avoid an error.
12098 Use char because int might match the return type of a GCC
12099 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012100#ifdef __cplusplus
12101extern "C"
12102#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012103char sin ();
12104int
12105main ()
12106{
Reid Spencera773bd52006-08-04 18:18:08 +000012107return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012108 ;
12109 return 0;
12110}
12111_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012112rm -f conftest.$ac_objext conftest$ac_exeext
12113if { (ac_try="$ac_link"
12114case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_link") 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try='test -s conftest$ac_exeext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140esac
12141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012146 ac_cv_lib_m_sin=yes
12147else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012153
Bill Wendlingebcceee2009-04-18 11:20:33 +000012154rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012155 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012156LIBS=$ac_check_lib_save_LIBS
12157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012158{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12159echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12160if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012161 cat >>confdefs.h <<_ACEOF
12162#define HAVE_LIBM 1
12163_ACEOF
12164
12165 LIBS="-lm $LIBS"
12166
12167fi
12168
Jeff Cohen28783c32007-01-12 18:22:38 +000012169if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012170
12171{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12172echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12173if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012175else
12176 ac_check_lib_save_LIBS=$LIBS
12177LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012178cat >conftest.$ac_ext <<_ACEOF
12179/* confdefs.h. */
12180_ACEOF
12181cat confdefs.h >>conftest.$ac_ext
12182cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012183/* end confdefs.h. */
12184
Reid Spencer48fdf912006-06-01 19:03:21 +000012185
Reid Spencer484fc8e2006-06-01 16:55:59 +000012186int
12187main ()
12188{
Reid Spencera773bd52006-08-04 18:18:08 +000012189return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012190 ;
12191 return 0;
12192}
12193_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012194rm -f conftest.$ac_objext conftest$ac_exeext
12195if { (ac_try="$ac_link"
12196case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199esac
12200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_link") 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212esac
12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest$ac_exeext'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012228 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012229else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012235
Bill Wendlingebcceee2009-04-18 11:20:33 +000012236rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012238LIBS=$ac_check_lib_save_LIBS
12239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012240{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12241echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12242if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012243 cat >>confdefs.h <<_ACEOF
12244#define HAVE_LIBIMAGEHLP 1
12245_ACEOF
12246
12247 LIBS="-limagehlp $LIBS"
12248
12249fi
12250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012251
12252{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12253echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12254if test "${ac_cv_lib_psapi_main+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012256else
12257 ac_check_lib_save_LIBS=$LIBS
12258LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012259cat >conftest.$ac_ext <<_ACEOF
12260/* confdefs.h. */
12261_ACEOF
12262cat confdefs.h >>conftest.$ac_ext
12263cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012264/* end confdefs.h. */
12265
Reid Spencer48fdf912006-06-01 19:03:21 +000012266
Reid Spencer484fc8e2006-06-01 16:55:59 +000012267int
12268main ()
12269{
Reid Spencera773bd52006-08-04 18:18:08 +000012270return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012271 ;
12272 return 0;
12273}
12274_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012275rm -f conftest.$ac_objext conftest$ac_exeext
12276if { (ac_try="$ac_link"
12277case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12280esac
12281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_link") 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293esac
12294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_try") 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012309 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012311 echo "$as_me: failed program was:" >&5
12312sed 's/^/| /' conftest.$ac_ext >&5
12313
12314 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012316
Bill Wendlingebcceee2009-04-18 11:20:33 +000012317rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012318 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012319LIBS=$ac_check_lib_save_LIBS
12320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12322echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12323if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012324 cat >>confdefs.h <<_ACEOF
12325#define HAVE_LIBPSAPI 1
12326_ACEOF
12327
12328 LIBS="-lpsapi $LIBS"
12329
12330fi
12331
12332fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012334{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12335echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12336if test "${ac_cv_search_dlopen+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012338else
12339 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012340cat >conftest.$ac_ext <<_ACEOF
12341/* confdefs.h. */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012345/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012346
Reid Spencera773bd52006-08-04 18:18:08 +000012347/* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012350#ifdef __cplusplus
12351extern "C"
12352#endif
John Criswell7a73b802003-06-30 21:59:07 +000012353char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012354int
12355main ()
12356{
Reid Spencera773bd52006-08-04 18:18:08 +000012357return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012358 ;
12359 return 0;
12360}
12361_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012362for ac_lib in '' dl; do
12363 if test -z "$ac_lib"; then
12364 ac_res="none required"
12365 else
12366 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012368 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012369 rm -f conftest.$ac_objext conftest$ac_exeext
12370if { (ac_try="$ac_link"
12371case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374esac
12375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_link") 2>conftest.er1
12377 ac_status=$?
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12384 { (case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12387esac
12388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389 (eval "$ac_try") 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012403 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012404else
12405 echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
12408
John Criswell7a73b802003-06-30 21:59:07 +000012409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012410
Bill Wendlingebcceee2009-04-18 11:20:33 +000012411rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012412 conftest$ac_exeext
12413 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012414 break
John Criswell7a73b802003-06-30 21:59:07 +000012415fi
Reid Spencera773bd52006-08-04 18:18:08 +000012416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012417if test "${ac_cv_search_dlopen+set}" = set; then
12418 :
Reid Spencera773bd52006-08-04 18:18:08 +000012419else
12420 ac_cv_search_dlopen=no
12421fi
12422rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012423LIBS=$ac_func_search_save_LIBS
12424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012425{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12426echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012427ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012428if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012431cat >>confdefs.h <<\_ACEOF
12432#define HAVE_DLOPEN 1
12433_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012434
12435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012436 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12437echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012438fi
12439
12440
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012441if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012442 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12443echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12444if test "${ac_cv_search_ffi_call+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012446else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012447 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012448cat >conftest.$ac_ext <<_ACEOF
12449/* confdefs.h. */
12450_ACEOF
12451cat confdefs.h >>conftest.$ac_ext
12452cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012453/* end confdefs.h. */
12454
12455/* Override any GCC internal prototype to avoid an error.
12456 Use char because int might match the return type of a GCC
12457 builtin and then its argument prototype would still apply. */
12458#ifdef __cplusplus
12459extern "C"
12460#endif
12461char ffi_call ();
12462int
12463main ()
12464{
12465return ffi_call ();
12466 ;
12467 return 0;
12468}
12469_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012470for ac_lib in '' ffi; do
12471 if test -z "$ac_lib"; then
12472 ac_res="none required"
12473 else
12474 ac_res=-l$ac_lib
12475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12476 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012477 rm -f conftest.$ac_objext conftest$ac_exeext
12478if { (ac_try="$ac_link"
12479case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12482esac
12483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_link") 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12492 { (case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495esac
12496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_try") 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505esac
12506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012511 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012512else
12513 echo "$as_me: failed program was:" >&5
12514sed 's/^/| /' conftest.$ac_ext >&5
12515
12516
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012518
Bill Wendlingebcceee2009-04-18 11:20:33 +000012519rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012520 conftest$ac_exeext
12521 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012522 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012523fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012524done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012525if test "${ac_cv_search_ffi_call+set}" = set; then
12526 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012527else
12528 ac_cv_search_ffi_call=no
12529fi
12530rm conftest.$ac_ext
12531LIBS=$ac_func_search_save_LIBS
12532fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012533{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12534echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012535ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012536if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012539cat >>confdefs.h <<\_ACEOF
12540#define HAVE_FFI_CALL 1
12541_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012542
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012543else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012544 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12545echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12546 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012547fi
12548
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012549fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012551{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12552echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12553if test "${ac_cv_search_mallinfo+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012555else
12556 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012557cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012562/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012563
Reid Spencera773bd52006-08-04 18:18:08 +000012564/* Override any GCC internal prototype to avoid an error.
12565 Use char because int might match the return type of a GCC
12566 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012567#ifdef __cplusplus
12568extern "C"
12569#endif
John Criswell7a73b802003-06-30 21:59:07 +000012570char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012571int
12572main ()
12573{
Reid Spencera773bd52006-08-04 18:18:08 +000012574return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012575 ;
12576 return 0;
12577}
12578_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012579for ac_lib in '' malloc; do
12580 if test -z "$ac_lib"; then
12581 ac_res="none required"
12582 else
12583 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012585 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012586 rm -f conftest.$ac_objext conftest$ac_exeext
12587if { (ac_try="$ac_link"
12588case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591esac
12592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_link") 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; } &&
12610 { ac_try='test -s conftest$ac_exeext'
12611 { (case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614esac
12615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_try") 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012620 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012621else
12622 echo "$as_me: failed program was:" >&5
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
12625
John Criswell7a73b802003-06-30 21:59:07 +000012626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012627
Bill Wendlingebcceee2009-04-18 11:20:33 +000012628rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012629 conftest$ac_exeext
12630 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012631 break
John Criswell7a73b802003-06-30 21:59:07 +000012632fi
Reid Spencera773bd52006-08-04 18:18:08 +000012633done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012634if test "${ac_cv_search_mallinfo+set}" = set; then
12635 :
Reid Spencera773bd52006-08-04 18:18:08 +000012636else
12637 ac_cv_search_mallinfo=no
12638fi
12639rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012640LIBS=$ac_func_search_save_LIBS
12641fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012642{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12643echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012644ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012645if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012648cat >>confdefs.h <<\_ACEOF
12649#define HAVE_MALLINFO 1
12650_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012651
12652fi
12653
12654
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012655if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012656
12657{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12658echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12659if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012661else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012662 ac_check_lib_save_LIBS=$LIBS
12663LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012664cat >conftest.$ac_ext <<_ACEOF
12665/* confdefs.h. */
12666_ACEOF
12667cat confdefs.h >>conftest.$ac_ext
12668cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012669/* end confdefs.h. */
12670
Reid Spencera773bd52006-08-04 18:18:08 +000012671/* Override any GCC internal prototype to avoid an error.
12672 Use char because int might match the return type of a GCC
12673 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012674#ifdef __cplusplus
12675extern "C"
12676#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012677char pthread_mutex_init ();
12678int
12679main ()
12680{
Reid Spencera773bd52006-08-04 18:18:08 +000012681return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012682 ;
12683 return 0;
12684}
12685_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012686rm -f conftest.$ac_objext conftest$ac_exeext
12687if { (ac_try="$ac_link"
12688case "(($ac_try" in
12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12691esac
12692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693 (eval "$ac_link") 2>conftest.er1
12694 ac_status=$?
12695 grep -v '^ *+' conftest.er1 >conftest.err
12696 rm -f conftest.er1
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12701 { (case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12704esac
12705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_try") 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest$ac_exeext'
12711 { (case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714esac
12715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_try") 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012720 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012722 echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012726fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012727
Bill Wendlingebcceee2009-04-18 11:20:33 +000012728rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012729 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012730LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012732{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12733echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12734if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012735 cat >>confdefs.h <<_ACEOF
12736#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012737_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012738
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012739 LIBS="-lpthread $LIBS"
12740
Reid Spencer22177fe2005-07-12 15:24:20 +000012741fi
12742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012743 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12744echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12745if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012747else
12748 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012749cat >conftest.$ac_ext <<_ACEOF
12750/* confdefs.h. */
12751_ACEOF
12752cat confdefs.h >>conftest.$ac_ext
12753cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012754/* end confdefs.h. */
12755
Reid Spencera773bd52006-08-04 18:18:08 +000012756/* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012759#ifdef __cplusplus
12760extern "C"
12761#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012762char pthread_mutex_lock ();
12763int
12764main ()
12765{
Reid Spencera773bd52006-08-04 18:18:08 +000012766return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012767 ;
12768 return 0;
12769}
12770_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012771for ac_lib in '' pthread; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12774 else
12775 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012777 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778 rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (ac_try="$ac_link"
12780case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783esac
12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012812 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012813else
12814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817
Brian Gaeke5f268f72003-12-05 19:29:01 +000012818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819
Bill Wendlingebcceee2009-04-18 11:20:33 +000012820rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821 conftest$ac_exeext
12822 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012823 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012824fi
Reid Spencera773bd52006-08-04 18:18:08 +000012825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012826if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12827 :
Reid Spencera773bd52006-08-04 18:18:08 +000012828else
12829 ac_cv_search_pthread_mutex_lock=no
12830fi
12831rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012832LIBS=$ac_func_search_save_LIBS
12833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012834{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12835echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012836ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012840cat >>confdefs.h <<\_ACEOF
12841#define HAVE_PTHREAD_MUTEX_LOCK 1
12842_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012843
12844fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012846 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12847echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12848if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012850else
12851 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012852cat >conftest.$ac_ext <<_ACEOF
12853/* confdefs.h. */
12854_ACEOF
12855cat confdefs.h >>conftest.$ac_ext
12856cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012857/* end confdefs.h. */
12858
12859/* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12862#ifdef __cplusplus
12863extern "C"
12864#endif
12865char pthread_rwlock_init ();
12866int
12867main ()
12868{
12869return pthread_rwlock_init ();
12870 ;
12871 return 0;
12872}
12873_ACEOF
12874for ac_lib in '' pthread; do
12875 if test -z "$ac_lib"; then
12876 ac_res="none required"
12877 else
12878 ac_res=-l$ac_lib
12879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12880 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012881 rm -f conftest.$ac_objext conftest$ac_exeext
12882if { (ac_try="$ac_link"
12883case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12886esac
12887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_link") 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899esac
12900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012915 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012916else
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
12920
Owen Andersonde8aed22009-06-16 18:20:20 +000012921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012922
Owen Andersonde8aed22009-06-16 18:20:20 +000012923rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012924 conftest$ac_exeext
12925 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012926 break
12927fi
12928done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012929if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12930 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012931else
12932 ac_cv_search_pthread_rwlock_init=no
12933fi
12934rm conftest.$ac_ext
12935LIBS=$ac_func_search_save_LIBS
12936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012937{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12938echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012939ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012940if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012943cat >>confdefs.h <<\_ACEOF
12944#define HAVE_PTHREAD_RWLOCK_INIT 1
12945_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012946
12947fi
12948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012949 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12950echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12951if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012953else
12954 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012955cat >conftest.$ac_ext <<_ACEOF
12956/* confdefs.h. */
12957_ACEOF
12958cat confdefs.h >>conftest.$ac_ext
12959cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012960/* end confdefs.h. */
12961
12962/* Override any GCC internal prototype to avoid an error.
12963 Use char because int might match the return type of a GCC
12964 builtin and then its argument prototype would still apply. */
12965#ifdef __cplusplus
12966extern "C"
12967#endif
12968char pthread_getspecific ();
12969int
12970main ()
12971{
12972return pthread_getspecific ();
12973 ;
12974 return 0;
12975}
12976_ACEOF
12977for ac_lib in '' pthread; do
12978 if test -z "$ac_lib"; then
12979 ac_res="none required"
12980 else
12981 ac_res=-l$ac_lib
12982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12983 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984 rm -f conftest.$ac_objext conftest$ac_exeext
12985if { (ac_try="$ac_link"
12986case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989esac
12990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_link") 2>conftest.er1
12992 ac_status=$?
12993 grep -v '^ *+' conftest.er1 >conftest.err
12994 rm -f conftest.er1
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12999 { (case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002esac
13003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_try") 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest$ac_exeext'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013018 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013019else
13020 echo "$as_me: failed program was:" >&5
13021sed 's/^/| /' conftest.$ac_ext >&5
13022
13023
Owen Anderson27fcfe12009-06-25 23:10:26 +000013024fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013025
Owen Anderson27fcfe12009-06-25 23:10:26 +000013026rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013027 conftest$ac_exeext
13028 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013029 break
13030fi
13031done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013032if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13033 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013034else
13035 ac_cv_search_pthread_getspecific=no
13036fi
13037rm conftest.$ac_ext
13038LIBS=$ac_func_search_save_LIBS
13039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013040{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13041echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013042ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013043if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013046cat >>confdefs.h <<\_ACEOF
13047#define HAVE_PTHREAD_GETSPECIFIC 1
13048_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013049
13050fi
13051
Reid Spencer0a262ba2005-08-24 10:07:20 +000013052fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013053
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013054
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013055# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013056if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013057 withval=$with_udis86;
13058 USE_UDIS86=1
13059
13060 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013061 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013062 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13063 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013064
13065{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13066echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13067if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013069else
13070 ac_check_lib_save_LIBS=$LIBS
13071LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013072cat >conftest.$ac_ext <<_ACEOF
13073/* confdefs.h. */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013077/* end confdefs.h. */
13078
13079/* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13082#ifdef __cplusplus
13083extern "C"
13084#endif
13085char ud_init ();
13086int
13087main ()
13088{
13089return ud_init ();
13090 ;
13091 return 0;
13092}
13093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013094rm -f conftest.$ac_objext conftest$ac_exeext
13095if { (ac_try="$ac_link"
13096case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099esac
13100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_link") 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13109 { (case "(($ac_try" in
13110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13112esac
13113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_try") 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest$ac_exeext'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013128 ac_cv_lib_udis86_ud_init=yes
13129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013130 echo "$as_me: failed program was:" >&5
13131sed 's/^/| /' conftest.$ac_ext >&5
13132
13133 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013135
Bill Wendlingebcceee2009-04-18 11:20:33 +000013136rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013137 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013138LIBS=$ac_check_lib_save_LIBS
13139fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013140{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13141echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13142if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013143 cat >>confdefs.h <<_ACEOF
13144#define HAVE_LIBUDIS86 1
13145_ACEOF
13146
13147 LIBS="-ludis86 $LIBS"
13148
13149else
13150
13151 echo "Error! You need to have libudis86 around."
13152 exit -1
13153
13154fi
13155
13156
13157else
13158 USE_UDIS86=0
13159
13160fi
13161
13162
13163cat >>confdefs.h <<_ACEOF
13164#define USE_UDIS86 $USE_UDIS86
13165_ACEOF
13166
13167
13168
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013169# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013170if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013171 withval=$with_oprofile;
13172 USE_OPROFILE=1
13173
13174 case "$withval" in
13175 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013176 no) llvm_cv_oppath=
13177 USE_OPROFILE=0
13178 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013179 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013180 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013181 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013182 case $llvm_cv_os_type in
13183 Linux)
13184 if test -n "$llvm_cv_oppath" ; then
13185 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13186 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13188if test "${ac_cv_search_bfd_init+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013190else
13191 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013192cat >conftest.$ac_ext <<_ACEOF
13193/* confdefs.h. */
13194_ACEOF
13195cat confdefs.h >>conftest.$ac_ext
13196cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013197/* end confdefs.h. */
13198
13199/* Override any GCC internal prototype to avoid an error.
13200 Use char because int might match the return type of a GCC
13201 builtin and then its argument prototype would still apply. */
13202#ifdef __cplusplus
13203extern "C"
13204#endif
13205char bfd_init ();
13206int
13207main ()
13208{
13209return bfd_init ();
13210 ;
13211 return 0;
13212}
13213_ACEOF
13214for ac_lib in '' bfd; do
13215 if test -z "$ac_lib"; then
13216 ac_res="none required"
13217 else
13218 ac_res=-l$ac_lib
13219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13220 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013221 rm -f conftest.$ac_objext conftest$ac_exeext
13222if { (ac_try="$ac_link"
13223case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226esac
13227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_link") 2>conftest.er1
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
13235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13236 { (case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239esac
13240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_try") 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest$ac_exeext'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249esac
13250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013255 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013256else
13257 echo "$as_me: failed program was:" >&5
13258sed 's/^/| /' conftest.$ac_ext >&5
13259
13260
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013262
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013263rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013264 conftest$ac_exeext
13265 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013266 break
13267fi
13268done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013269if test "${ac_cv_search_bfd_init+set}" = set; then
13270 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013271else
13272 ac_cv_search_bfd_init=no
13273fi
13274rm conftest.$ac_ext
13275LIBS=$ac_func_search_save_LIBS
13276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13278echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013279ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13282
13283fi
13284
Eli Bendersky61b18512012-03-13 08:33:15 +000013285 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013286echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13287if test "${ac_cv_search_op_open_agent+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013289else
13290 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013291cat >conftest.$ac_ext <<_ACEOF
13292/* confdefs.h. */
13293_ACEOF
13294cat confdefs.h >>conftest.$ac_ext
13295cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013296/* end confdefs.h. */
13297
13298/* Override any GCC internal prototype to avoid an error.
13299 Use char because int might match the return type of a GCC
13300 builtin and then its argument prototype would still apply. */
13301#ifdef __cplusplus
13302extern "C"
13303#endif
13304char op_open_agent ();
13305int
13306main ()
13307{
13308return op_open_agent ();
13309 ;
13310 return 0;
13311}
13312_ACEOF
13313for ac_lib in '' opagent; do
13314 if test -z "$ac_lib"; then
13315 ac_res="none required"
13316 else
13317 ac_res=-l$ac_lib
13318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13319 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013320 rm -f conftest.$ac_objext conftest$ac_exeext
13321if { (ac_try="$ac_link"
13322case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13325esac
13326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_link") 2>conftest.er1
13328 ac_status=$?
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
13334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest$ac_exeext'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348esac
13349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013354 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013355else
13356 echo "$as_me: failed program was:" >&5
13357sed 's/^/| /' conftest.$ac_ext >&5
13358
13359
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013361
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013362rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363 conftest$ac_exeext
13364 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013365 break
13366fi
13367done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013368if test "${ac_cv_search_op_open_agent+set}" = set; then
13369 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013370else
13371 ac_cv_search_op_open_agent=no
13372fi
13373rm conftest.$ac_ext
13374LIBS=$ac_func_search_save_LIBS
13375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013376{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13377echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013378ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013379if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13381
13382else
13383
Eli Bendersky61b18512012-03-13 08:33:15 +000013384 echo "Error! You need to have libopagent around."
13385 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013386
13387fi
13388
Eli Bendersky61b18512012-03-13 08:33:15 +000013389 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013390 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13391echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13392if test "${ac_cv_header_opagent_h+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394fi
13395{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13396echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13397else
13398 # Is the header compilable?
13399{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13400echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13401cat >conftest.$ac_ext <<_ACEOF
13402/* confdefs.h. */
13403_ACEOF
13404cat confdefs.h >>conftest.$ac_ext
13405cat >>conftest.$ac_ext <<_ACEOF
13406/* end confdefs.h. */
13407$ac_includes_default
13408#include <opagent.h>
13409_ACEOF
13410rm -f conftest.$ac_objext
13411if { (ac_try="$ac_compile"
13412case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415esac
13416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_compile") 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428esac
13429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13438esac
13439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 ac_header_compiler=yes
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013449 ac_header_compiler=no
13450fi
13451
13452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13454echo "${ECHO_T}$ac_header_compiler" >&6; }
13455
13456# Is the header present?
13457{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13458echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13459cat >conftest.$ac_ext <<_ACEOF
13460/* confdefs.h. */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h. */
13465#include <opagent.h>
13466_ACEOF
13467if { (ac_try="$ac_cpp conftest.$ac_ext"
13468case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13471esac
13472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } >/dev/null; then
13480 if test -s conftest.err; then
13481 ac_cpp_err=$ac_c_preproc_warn_flag
13482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13483 else
13484 ac_cpp_err=
13485 fi
13486else
13487 ac_cpp_err=yes
13488fi
13489if test -z "$ac_cpp_err"; then
13490 ac_header_preproc=yes
13491else
13492 echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_header_preproc=no
13496fi
13497
13498rm -f conftest.err conftest.$ac_ext
13499{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13500echo "${ECHO_T}$ac_header_preproc" >&6; }
13501
13502# So? What about this header?
13503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13504 yes:no: )
13505 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13506echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13508echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13509 ac_header_preproc=yes
13510 ;;
13511 no:yes:* )
13512 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13513echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13515echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13517echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13519echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13521echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13523echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13524 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013525## ------------------------------------ ##
13526## Report this to http://llvm.org/bugs/ ##
13527## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013528_ASBOX
13529 ) | sed "s/^/$as_me: WARNING: /" >&2
13530 ;;
13531esac
13532{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13533echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13534if test "${ac_cv_header_opagent_h+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13536else
13537 ac_cv_header_opagent_h=$ac_header_preproc
13538fi
13539{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13540echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13541
13542fi
13543if test $ac_cv_header_opagent_h = yes; then
13544 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013545else
13546
Eli Bendersky61b18512012-03-13 08:33:15 +000013547 echo "Error! You need to have opagent.h around."
13548 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013549
13550fi
13551
13552
Eli Bendersky61b18512012-03-13 08:33:15 +000013553 fi ;;
13554 *)
13555 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13556echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13557 { (exit 1); exit 1; }; } ;;
13558 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013559
13560else
13561
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013562 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013563
13564
13565fi
13566
13567
13568cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013569#define LLVM_USE_OPROFILE $USE_OPROFILE
13570_ACEOF
13571
13572
13573
13574# Check whether --with-intel-jitevents was given.
13575if test "${with_intel_jitevents+set}" = set; then
13576 withval=$with_intel_jitevents;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013577 case "$withval" in
13578 yes) USE_INTEL_JITEVENTS=1
13579;;
13580 no) USE_INTEL_JITEVENTS=0
13581;;
13582 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13583echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13584 { (exit 1); exit 1; }; };;
13585 esac
13586
Eli Bendersky61b18512012-03-13 08:33:15 +000013587 case $llvm_cv_os_type in
13588 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013589 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13590echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13591 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013592 esac
13593
Eli Bendersky61b18512012-03-13 08:33:15 +000013594 case "$llvm_cv_target_arch" in
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013595 x86|x86_64) ;;
13596 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13597echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13598 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013599 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013600
13601else
13602
13603 USE_INTEL_JITEVENTS=0
13604
13605
13606fi
13607
13608
13609cat >>confdefs.h <<_ACEOF
13610#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013611_ACEOF
13612
13613
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013614for ac_prog in xml2-config
13615do
13616 # Extract the first word of "$ac_prog", so it can be a program name with args.
13617set dummy $ac_prog; ac_word=$2
13618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13620if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622else
13623 if test -n "$XML2CONFIG"; then
13624 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13625else
13626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627for as_dir in $PATH
13628do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13633 ac_cv_prog_XML2CONFIG="$ac_prog"
13634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13636 fi
13637done
13638done
13639IFS=$as_save_IFS
13640
13641fi
13642fi
13643XML2CONFIG=$ac_cv_prog_XML2CONFIG
13644if test -n "$XML2CONFIG"; then
13645 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13646echo "${ECHO_T}$XML2CONFIG" >&6; }
13647else
13648 { echo "$as_me:$LINENO: result: no" >&5
13649echo "${ECHO_T}no" >&6; }
13650fi
13651
13652
13653 test -n "$XML2CONFIG" && break
13654done
13655
13656
13657{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13658echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13659if test "x$XML2CONFIG" = "x"; then
13660 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13661echo "${ECHO_T}xml2-config not found" >&6; }
13662else
13663 LIBXML2_INC=`$XML2CONFIG --cflags`
13664 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13665echo "${ECHO_T}$LIBXML2_INC" >&6; }
13666 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13667echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13668if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670else
13671 ac_check_lib_save_LIBS=$LIBS
13672LIBS="-lxml2 $LIBS"
13673cat >conftest.$ac_ext <<_ACEOF
13674/* confdefs.h. */
13675_ACEOF
13676cat confdefs.h >>conftest.$ac_ext
13677cat >>conftest.$ac_ext <<_ACEOF
13678/* end confdefs.h. */
13679
13680/* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13683#ifdef __cplusplus
13684extern "C"
13685#endif
13686char xmlReadFile ();
13687int
13688main ()
13689{
13690return xmlReadFile ();
13691 ;
13692 return 0;
13693}
13694_ACEOF
13695rm -f conftest.$ac_objext conftest$ac_exeext
13696if { (ac_try="$ac_link"
13697case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13700esac
13701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723esac
13724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_try") 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_lib_xml2_xmlReadFile=yes
13730else
13731 echo "$as_me: failed program was:" >&5
13732sed 's/^/| /' conftest.$ac_ext >&5
13733
13734 ac_cv_lib_xml2_xmlReadFile=no
13735fi
13736
13737rm -f core conftest.err conftest.$ac_objext \
13738 conftest$ac_exeext conftest.$ac_ext
13739LIBS=$ac_check_lib_save_LIBS
13740fi
13741{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13742echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13743if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13744
13745cat >>confdefs.h <<\_ACEOF
13746#define CLANG_HAVE_LIBXML 1
13747_ACEOF
13748
13749 LIBXML2_LIBS="-lxml2"
13750fi
13751
13752fi
13753
13754
13755
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013757
13758
13759
13760
13761
Reid Spencer59473af2004-12-25 07:31:29 +000013762ac_header_dirent=no
13763for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013764 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13765{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13766echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013770 cat >conftest.$ac_ext <<_ACEOF
13771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013775/* end confdefs.h. */
13776#include <sys/types.h>
13777#include <$ac_hdr>
13778
13779int
13780main ()
13781{
13782if ((DIR *) 0)
13783return 0;
13784 ;
13785 return 0;
13786}
13787_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013788rm -f conftest.$ac_objext
13789if { (ac_try="$ac_compile"
13790case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793esac
13794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_compile") 2>conftest.er1
13796 ac_status=$?
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13803 { (case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_try") 2>&5
13809 ac_status=$?
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest.$ac_objext'
13813 { (case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13816esac
13817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_try") 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013822 eval "$as_ac_Header=yes"
13823else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013824 echo "$as_me: failed program was:" >&5
13825sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013829
Reid Spencera773bd52006-08-04 18:18:08 +000013830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013831fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013832ac_res=`eval echo '${'$as_ac_Header'}'`
13833 { echo "$as_me:$LINENO: result: $ac_res" >&5
13834echo "${ECHO_T}$ac_res" >&6; }
13835if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013836 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013838_ACEOF
13839
13840ac_header_dirent=$ac_hdr; break
13841fi
13842
13843done
13844# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13845if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013846 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13847echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13848if test "${ac_cv_search_opendir+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013850else
13851 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013852cat >conftest.$ac_ext <<_ACEOF
13853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013857/* end confdefs.h. */
13858
Reid Spencera773bd52006-08-04 18:18:08 +000013859/* Override any GCC internal prototype to avoid an error.
13860 Use char because int might match the return type of a GCC
13861 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013862#ifdef __cplusplus
13863extern "C"
13864#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013865char opendir ();
13866int
13867main ()
13868{
Reid Spencera773bd52006-08-04 18:18:08 +000013869return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013870 ;
13871 return 0;
13872}
13873_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013874for ac_lib in '' dir; do
13875 if test -z "$ac_lib"; then
13876 ac_res="none required"
13877 else
13878 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013880 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013881 rm -f conftest.$ac_objext conftest$ac_exeext
13882if { (ac_try="$ac_link"
13883case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886esac
13887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_link") 2>conftest.er1
13889 ac_status=$?
13890 grep -v '^ *+' conftest.er1 >conftest.err
13891 rm -f conftest.er1
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13896 { (case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13899esac
13900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_try") 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest$ac_exeext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909esac
13910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013915 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013916else
13917 echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
13920
Reid Spencer59473af2004-12-25 07:31:29 +000013921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013922
Bill Wendlingebcceee2009-04-18 11:20:33 +000013923rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924 conftest$ac_exeext
13925 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013926 break
Reid Spencer59473af2004-12-25 07:31:29 +000013927fi
Reid Spencera773bd52006-08-04 18:18:08 +000013928done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013929if test "${ac_cv_search_opendir+set}" = set; then
13930 :
Reid Spencera773bd52006-08-04 18:18:08 +000013931else
13932 ac_cv_search_opendir=no
13933fi
13934rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013935LIBS=$ac_func_search_save_LIBS
13936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013937{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13938echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013939ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013940if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013942
13943fi
13944
13945else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013946 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13947echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13948if test "${ac_cv_search_opendir+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013950else
13951 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013952cat >conftest.$ac_ext <<_ACEOF
13953/* confdefs.h. */
13954_ACEOF
13955cat confdefs.h >>conftest.$ac_ext
13956cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013957/* end confdefs.h. */
13958
Reid Spencera773bd52006-08-04 18:18:08 +000013959/* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013962#ifdef __cplusplus
13963extern "C"
13964#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013965char opendir ();
13966int
13967main ()
13968{
Reid Spencera773bd52006-08-04 18:18:08 +000013969return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013970 ;
13971 return 0;
13972}
13973_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013974for ac_lib in '' x; do
13975 if test -z "$ac_lib"; then
13976 ac_res="none required"
13977 else
13978 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013980 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013981 rm -f conftest.$ac_objext conftest$ac_exeext
13982if { (ac_try="$ac_link"
13983case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986esac
13987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_link") 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999esac
14000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest$ac_exeext'
14006 { (case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14009esac
14010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_try") 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014015 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014016else
14017 echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020
Reid Spencer59473af2004-12-25 07:31:29 +000014021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014022
Bill Wendlingebcceee2009-04-18 11:20:33 +000014023rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014024 conftest$ac_exeext
14025 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014026 break
Reid Spencer59473af2004-12-25 07:31:29 +000014027fi
Reid Spencera773bd52006-08-04 18:18:08 +000014028done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014029if test "${ac_cv_search_opendir+set}" = set; then
14030 :
Reid Spencera773bd52006-08-04 18:18:08 +000014031else
14032 ac_cv_search_opendir=no
14033fi
14034rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014035LIBS=$ac_func_search_save_LIBS
14036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014037{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14038echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014039ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014040if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014042
14043fi
14044
14045fi
14046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14048echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14049if test "${ac_cv_header_mmap_anon+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014051else
14052 ac_ext=c
14053ac_cpp='$CPP $CPPFLAGS'
14054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14056ac_compiler_gnu=$ac_cv_c_compiler_gnu
14057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014058 cat >conftest.$ac_ext <<_ACEOF
14059/* confdefs.h. */
14060_ACEOF
14061cat confdefs.h >>conftest.$ac_ext
14062cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014063/* end confdefs.h. */
14064#include <sys/mman.h>
14065#include <unistd.h>
14066#include <fcntl.h>
14067int
14068main ()
14069{
14070mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14071 ;
14072 return 0;
14073}
14074_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014075rm -f conftest.$ac_objext
14076if { (ac_try="$ac_compile"
14077case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14080esac
14081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_compile") 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14090 { (case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14093esac
14094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095 (eval "$ac_try") 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103esac
14104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_try") 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014109 ac_cv_header_mmap_anon=yes
14110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111 echo "$as_me: failed program was:" >&5
14112sed 's/^/| /' conftest.$ac_ext >&5
14113
14114 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014116
Reid Spencera773bd52006-08-04 18:18:08 +000014117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014118 ac_ext=c
14119ac_cpp='$CPP $CPPFLAGS'
14120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14122ac_compiler_gnu=$ac_cv_c_compiler_gnu
14123
14124
14125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14127echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014128if test "$ac_cv_header_mmap_anon" = yes; then
14129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130cat >>confdefs.h <<\_ACEOF
14131#define HAVE_MMAP_ANONYMOUS 1
14132_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014133
14134fi
14135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014136{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14137echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14138if test "${ac_cv_header_stat_broken+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141 cat >conftest.$ac_ext <<_ACEOF
14142/* confdefs.h. */
14143_ACEOF
14144cat confdefs.h >>conftest.$ac_ext
14145cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014146/* end confdefs.h. */
14147#include <sys/types.h>
14148#include <sys/stat.h>
14149
Reid Spencera773bd52006-08-04 18:18:08 +000014150#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151# if S_ISBLK (S_IFDIR)
14152You lose.
14153# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014154#endif
14155
Reid Spencera773bd52006-08-04 18:18:08 +000014156#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014157# if S_ISBLK (S_IFCHR)
14158You lose.
14159# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014160#endif
14161
Reid Spencera773bd52006-08-04 18:18:08 +000014162#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163# if S_ISLNK (S_IFREG)
14164You lose.
14165# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014166#endif
14167
Reid Spencera773bd52006-08-04 18:18:08 +000014168#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169# if S_ISSOCK (S_IFREG)
14170You lose.
14171# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014172#endif
14173
14174_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14176 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014177 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014178else
14179 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014181rm -f conftest*
14182
Reid Spencer59473af2004-12-25 07:31:29 +000014183fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014184{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14185echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014186if test $ac_cv_header_stat_broken = yes; then
14187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014188cat >>confdefs.h <<\_ACEOF
14189#define STAT_MACROS_BROKEN 1
14190_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014191
14192fi
14193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014194{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14195echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14196if test "${ac_cv_header_sys_wait_h+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014199 cat >conftest.$ac_ext <<_ACEOF
14200/* confdefs.h. */
14201_ACEOF
14202cat confdefs.h >>conftest.$ac_ext
14203cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014205#include <sys/types.h>
14206#include <sys/wait.h>
14207#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014208# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014209#endif
14210#ifndef WIFEXITED
14211# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14212#endif
14213
John Criswell7a73b802003-06-30 21:59:07 +000014214int
14215main ()
14216{
14217 int s;
14218 wait (&s);
14219 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14220 ;
14221 return 0;
14222}
14223_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014224rm -f conftest.$ac_objext
14225if { (ac_try="$ac_compile"
14226case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229esac
14230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_compile") 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest.$ac_objext'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252esac
14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014258 ac_cv_header_sys_wait_h=yes
14259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014260 echo "$as_me: failed program was:" >&5
14261sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014265
Reid Spencera773bd52006-08-04 18:18:08 +000014266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014268{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14269echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014270if test $ac_cv_header_sys_wait_h = yes; then
14271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272cat >>confdefs.h <<\_ACEOF
14273#define HAVE_SYS_WAIT_H 1
14274_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014275
14276fi
14277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014278{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14279echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14280if test "${ac_cv_header_time+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014283 cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014288/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014289#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014290#include <sys/time.h>
14291#include <time.h>
14292
14293int
14294main ()
14295{
14296if ((struct tm *) 0)
14297return 0;
14298 ;
14299 return 0;
14300}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014301_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014302rm -f conftest.$ac_objext
14303if { (ac_try="$ac_compile"
14304case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307esac
14308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320esac
14321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330esac
14331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014336 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014338 echo "$as_me: failed program was:" >&5
14339sed 's/^/| /' conftest.$ac_ext >&5
14340
14341 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014343
Reid Spencera773bd52006-08-04 18:18:08 +000014344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14347echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014348if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014350cat >>confdefs.h <<\_ACEOF
14351#define TIME_WITH_SYS_TIME 1
14352_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014353
14354fi
14355
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014357
14358
14359
14360
14361
14362
Reid Spencer59473af2004-12-25 07:31:29 +000014363for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014364do
14365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371fi
14372ac_res=`eval echo '${'$as_ac_Header'}'`
14373 { echo "$as_me:$LINENO: result: $ac_res" >&5
14374echo "${ECHO_T}$ac_res" >&6; }
14375else
14376 # Is the header compilable?
14377{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14379cat >conftest.$ac_ext <<_ACEOF
14380/* confdefs.h. */
14381_ACEOF
14382cat confdefs.h >>conftest.$ac_ext
14383cat >>conftest.$ac_ext <<_ACEOF
14384/* end confdefs.h. */
14385$ac_includes_default
14386#include <$ac_header>
14387_ACEOF
14388rm -f conftest.$ac_objext
14389if { (ac_try="$ac_compile"
14390case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393esac
14394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_compile") 2>conftest.er1
14396 ac_status=$?
14397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14403 { (case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14406esac
14407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_try") 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416esac
14417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_header_compiler=yes
14423else
14424 echo "$as_me: failed program was:" >&5
14425sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 ac_header_compiler=no
14428fi
14429
14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14432echo "${ECHO_T}$ac_header_compiler" >&6; }
14433
14434# Is the header present?
14435{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14437cat >conftest.$ac_ext <<_ACEOF
14438/* confdefs.h. */
14439_ACEOF
14440cat confdefs.h >>conftest.$ac_ext
14441cat >>conftest.$ac_ext <<_ACEOF
14442/* end confdefs.h. */
14443#include <$ac_header>
14444_ACEOF
14445if { (ac_try="$ac_cpp conftest.$ac_ext"
14446case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449esac
14450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } >/dev/null; then
14458 if test -s conftest.err; then
14459 ac_cpp_err=$ac_c_preproc_warn_flag
14460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14461 else
14462 ac_cpp_err=
14463 fi
14464else
14465 ac_cpp_err=yes
14466fi
14467if test -z "$ac_cpp_err"; then
14468 ac_header_preproc=yes
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_header_preproc=no
14474fi
14475
14476rm -f conftest.err conftest.$ac_ext
14477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14478echo "${ECHO_T}$ac_header_preproc" >&6; }
14479
14480# So? What about this header?
14481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14482 yes:no: )
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14487 ac_header_preproc=yes
14488 ;;
14489 no:yes:* )
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14502 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014503## ------------------------------------ ##
14504## Report this to http://llvm.org/bugs/ ##
14505## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014506_ASBOX
14507 ) | sed "s/^/$as_me: WARNING: /" >&2
14508 ;;
14509esac
14510{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514else
14515 eval "$as_ac_Header=\$ac_header_preproc"
14516fi
14517ac_res=`eval echo '${'$as_ac_Header'}'`
14518 { echo "$as_me:$LINENO: result: $ac_res" >&5
14519echo "${ECHO_T}$ac_res" >&6; }
14520
14521fi
14522if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014523 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014525_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014526
14527fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014528
Reid Spencer59473af2004-12-25 07:31:29 +000014529done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014531
14532
14533
14534
14535
14536
Douglas Gregor071d73d2009-05-18 17:21:34 +000014537for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014538do
14539as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14545fi
14546ac_res=`eval echo '${'$as_ac_Header'}'`
14547 { echo "$as_me:$LINENO: result: $ac_res" >&5
14548echo "${ECHO_T}$ac_res" >&6; }
14549else
14550 # Is the header compilable?
14551{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14553cat >conftest.$ac_ext <<_ACEOF
14554/* confdefs.h. */
14555_ACEOF
14556cat confdefs.h >>conftest.$ac_ext
14557cat >>conftest.$ac_ext <<_ACEOF
14558/* end confdefs.h. */
14559$ac_includes_default
14560#include <$ac_header>
14561_ACEOF
14562rm -f conftest.$ac_objext
14563if { (ac_try="$ac_compile"
14564case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567esac
14568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_compile") 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14577 { (case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580esac
14581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_try") 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest.$ac_objext'
14587 { (case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14590esac
14591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_try") 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_header_compiler=yes
14597else
14598 echo "$as_me: failed program was:" >&5
14599sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 ac_header_compiler=no
14602fi
14603
14604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14606echo "${ECHO_T}$ac_header_compiler" >&6; }
14607
14608# Is the header present?
14609{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14611cat >conftest.$ac_ext <<_ACEOF
14612/* confdefs.h. */
14613_ACEOF
14614cat confdefs.h >>conftest.$ac_ext
14615cat >>conftest.$ac_ext <<_ACEOF
14616/* end confdefs.h. */
14617#include <$ac_header>
14618_ACEOF
14619if { (ac_try="$ac_cpp conftest.$ac_ext"
14620case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14623esac
14624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } >/dev/null; then
14632 if test -s conftest.err; then
14633 ac_cpp_err=$ac_c_preproc_warn_flag
14634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14635 else
14636 ac_cpp_err=
14637 fi
14638else
14639 ac_cpp_err=yes
14640fi
14641if test -z "$ac_cpp_err"; then
14642 ac_header_preproc=yes
14643else
14644 echo "$as_me: failed program was:" >&5
14645sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 ac_header_preproc=no
14648fi
14649
14650rm -f conftest.err conftest.$ac_ext
14651{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14652echo "${ECHO_T}$ac_header_preproc" >&6; }
14653
14654# So? What about this header?
14655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14656 yes:no: )
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14661 ac_header_preproc=yes
14662 ;;
14663 no:yes:* )
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14667echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14671echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14676 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014677## ------------------------------------ ##
14678## Report this to http://llvm.org/bugs/ ##
14679## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014680_ASBOX
14681 ) | sed "s/^/$as_me: WARNING: /" >&2
14682 ;;
14683esac
14684{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688else
14689 eval "$as_ac_Header=\$ac_header_preproc"
14690fi
14691ac_res=`eval echo '${'$as_ac_Header'}'`
14692 { echo "$as_me:$LINENO: result: $ac_res" >&5
14693echo "${ECHO_T}$ac_res" >&6; }
14694
14695fi
14696if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014697 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014699_ACEOF
14700
14701fi
14702
14703done
14704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014705
14706
Douglas Gregor071d73d2009-05-18 17:21:34 +000014707for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014708do
14709as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715fi
14716ac_res=`eval echo '${'$as_ac_Header'}'`
14717 { echo "$as_me:$LINENO: result: $ac_res" >&5
14718echo "${ECHO_T}$ac_res" >&6; }
14719else
14720 # Is the header compilable?
14721{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14723cat >conftest.$ac_ext <<_ACEOF
14724/* confdefs.h. */
14725_ACEOF
14726cat confdefs.h >>conftest.$ac_ext
14727cat >>conftest.$ac_ext <<_ACEOF
14728/* end confdefs.h. */
14729$ac_includes_default
14730#include <$ac_header>
14731_ACEOF
14732rm -f conftest.$ac_objext
14733if { (ac_try="$ac_compile"
14734case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737esac
14738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_compile") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760esac
14761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_header_compiler=yes
14767else
14768 echo "$as_me: failed program was:" >&5
14769sed 's/^/| /' conftest.$ac_ext >&5
14770
14771 ac_header_compiler=no
14772fi
14773
14774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14776echo "${ECHO_T}$ac_header_compiler" >&6; }
14777
14778# Is the header present?
14779{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14781cat >conftest.$ac_ext <<_ACEOF
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h. */
14787#include <$ac_header>
14788_ACEOF
14789if { (ac_try="$ac_cpp conftest.$ac_ext"
14790case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793esac
14794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } >/dev/null; then
14802 if test -s conftest.err; then
14803 ac_cpp_err=$ac_c_preproc_warn_flag
14804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14805 else
14806 ac_cpp_err=
14807 fi
14808else
14809 ac_cpp_err=yes
14810fi
14811if test -z "$ac_cpp_err"; then
14812 ac_header_preproc=yes
14813else
14814 echo "$as_me: failed program was:" >&5
14815sed 's/^/| /' conftest.$ac_ext >&5
14816
14817 ac_header_preproc=no
14818fi
14819
14820rm -f conftest.err conftest.$ac_ext
14821{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14822echo "${ECHO_T}$ac_header_preproc" >&6; }
14823
14824# So? What about this header?
14825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14826 yes:no: )
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14831 ac_header_preproc=yes
14832 ;;
14833 no:yes:* )
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14846 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014847## ------------------------------------ ##
14848## Report this to http://llvm.org/bugs/ ##
14849## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014850_ASBOX
14851 ) | sed "s/^/$as_me: WARNING: /" >&2
14852 ;;
14853esac
14854{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858else
14859 eval "$as_ac_Header=\$ac_header_preproc"
14860fi
14861ac_res=`eval echo '${'$as_ac_Header'}'`
14862 { echo "$as_me:$LINENO: result: $ac_res" >&5
14863echo "${ECHO_T}$ac_res" >&6; }
14864
14865fi
14866if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014867 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014869_ACEOF
14870
14871fi
14872
14873done
Reid Spencer59473af2004-12-25 07:31:29 +000014874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014875
14876
14877
14878
Daniel Dunbar3e462932011-02-03 02:40:02 +000014879
14880for 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 +000014881do
14882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14887 echo $ECHO_N "(cached) $ECHO_C" >&6
14888fi
14889ac_res=`eval echo '${'$as_ac_Header'}'`
14890 { echo "$as_me:$LINENO: result: $ac_res" >&5
14891echo "${ECHO_T}$ac_res" >&6; }
14892else
14893 # Is the header compilable?
14894{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14896cat >conftest.$ac_ext <<_ACEOF
14897/* confdefs.h. */
14898_ACEOF
14899cat confdefs.h >>conftest.$ac_ext
14900cat >>conftest.$ac_ext <<_ACEOF
14901/* end confdefs.h. */
14902$ac_includes_default
14903#include <$ac_header>
14904_ACEOF
14905rm -f conftest.$ac_objext
14906if { (ac_try="$ac_compile"
14907case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910esac
14911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_compile") 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14920 { (case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923esac
14924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_try") 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; } &&
14929 { ac_try='test -s conftest.$ac_objext'
14930 { (case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933esac
14934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_try") 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_header_compiler=yes
14940else
14941 echo "$as_me: failed program was:" >&5
14942sed 's/^/| /' conftest.$ac_ext >&5
14943
14944 ac_header_compiler=no
14945fi
14946
14947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14949echo "${ECHO_T}$ac_header_compiler" >&6; }
14950
14951# Is the header present?
14952{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14954cat >conftest.$ac_ext <<_ACEOF
14955/* confdefs.h. */
14956_ACEOF
14957cat confdefs.h >>conftest.$ac_ext
14958cat >>conftest.$ac_ext <<_ACEOF
14959/* end confdefs.h. */
14960#include <$ac_header>
14961_ACEOF
14962if { (ac_try="$ac_cpp conftest.$ac_ext"
14963case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14966esac
14967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } >/dev/null; then
14975 if test -s conftest.err; then
14976 ac_cpp_err=$ac_c_preproc_warn_flag
14977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14978 else
14979 ac_cpp_err=
14980 fi
14981else
14982 ac_cpp_err=yes
14983fi
14984if test -z "$ac_cpp_err"; then
14985 ac_header_preproc=yes
14986else
14987 echo "$as_me: failed program was:" >&5
14988sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_header_preproc=no
14991fi
14992
14993rm -f conftest.err conftest.$ac_ext
14994{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14995echo "${ECHO_T}$ac_header_preproc" >&6; }
14996
14997# So? What about this header?
14998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14999 yes:no: )
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15004 ac_header_preproc=yes
15005 ;;
15006 no:yes:* )
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15019 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015020## ------------------------------------ ##
15021## Report this to http://llvm.org/bugs/ ##
15022## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015023_ASBOX
15024 ) | sed "s/^/$as_me: WARNING: /" >&2
15025 ;;
15026esac
15027{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15031else
15032 eval "$as_ac_Header=\$ac_header_preproc"
15033fi
15034ac_res=`eval echo '${'$as_ac_Header'}'`
15035 { echo "$as_me:$LINENO: result: $ac_res" >&5
15036echo "${ECHO_T}$ac_res" >&6; }
15037
15038fi
15039if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015040 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015042_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015043
15044fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015045
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015046done
15047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015048
15049
15050
15051
Douglas Gregor01746742009-05-11 18:05:52 +000015052for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015053do
15054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15060fi
15061ac_res=`eval echo '${'$as_ac_Header'}'`
15062 { echo "$as_me:$LINENO: result: $ac_res" >&5
15063echo "${ECHO_T}$ac_res" >&6; }
15064else
15065 # Is the header compilable?
15066{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15068cat >conftest.$ac_ext <<_ACEOF
15069/* confdefs.h. */
15070_ACEOF
15071cat confdefs.h >>conftest.$ac_ext
15072cat >>conftest.$ac_ext <<_ACEOF
15073/* end confdefs.h. */
15074$ac_includes_default
15075#include <$ac_header>
15076_ACEOF
15077rm -f conftest.$ac_objext
15078if { (ac_try="$ac_compile"
15079case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15082esac
15083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_compile") 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest.$ac_objext'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105esac
15106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15111 ac_header_compiler=yes
15112else
15113 echo "$as_me: failed program was:" >&5
15114sed 's/^/| /' conftest.$ac_ext >&5
15115
15116 ac_header_compiler=no
15117fi
15118
15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15121echo "${ECHO_T}$ac_header_compiler" >&6; }
15122
15123# Is the header present?
15124{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15126cat >conftest.$ac_ext <<_ACEOF
15127/* confdefs.h. */
15128_ACEOF
15129cat confdefs.h >>conftest.$ac_ext
15130cat >>conftest.$ac_ext <<_ACEOF
15131/* end confdefs.h. */
15132#include <$ac_header>
15133_ACEOF
15134if { (ac_try="$ac_cpp conftest.$ac_ext"
15135case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15138esac
15139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } >/dev/null; then
15147 if test -s conftest.err; then
15148 ac_cpp_err=$ac_c_preproc_warn_flag
15149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15150 else
15151 ac_cpp_err=
15152 fi
15153else
15154 ac_cpp_err=yes
15155fi
15156if test -z "$ac_cpp_err"; then
15157 ac_header_preproc=yes
15158else
15159 echo "$as_me: failed program was:" >&5
15160sed 's/^/| /' conftest.$ac_ext >&5
15161
15162 ac_header_preproc=no
15163fi
15164
15165rm -f conftest.err conftest.$ac_ext
15166{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15167echo "${ECHO_T}$ac_header_preproc" >&6; }
15168
15169# So? What about this header?
15170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15171 yes:no: )
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15176 ac_header_preproc=yes
15177 ;;
15178 no:yes:* )
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15186echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15191 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015192## ------------------------------------ ##
15193## Report this to http://llvm.org/bugs/ ##
15194## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015195_ASBOX
15196 ) | sed "s/^/$as_me: WARNING: /" >&2
15197 ;;
15198esac
15199{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15203else
15204 eval "$as_ac_Header=\$ac_header_preproc"
15205fi
15206ac_res=`eval echo '${'$as_ac_Header'}'`
15207 { echo "$as_me:$LINENO: result: $ac_res" >&5
15208echo "${ECHO_T}$ac_res" >&6; }
15209
15210fi
15211if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015212 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015214_ACEOF
15215
15216fi
15217
15218done
15219
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015220
15221for ac_header in valgrind/valgrind.h
15222do
15223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15229fi
15230ac_res=`eval echo '${'$as_ac_Header'}'`
15231 { echo "$as_me:$LINENO: result: $ac_res" >&5
15232echo "${ECHO_T}$ac_res" >&6; }
15233else
15234 # Is the header compilable?
15235{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15237cat >conftest.$ac_ext <<_ACEOF
15238/* confdefs.h. */
15239_ACEOF
15240cat confdefs.h >>conftest.$ac_ext
15241cat >>conftest.$ac_ext <<_ACEOF
15242/* end confdefs.h. */
15243$ac_includes_default
15244#include <$ac_header>
15245_ACEOF
15246rm -f conftest.$ac_objext
15247if { (ac_try="$ac_compile"
15248case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251esac
15252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_compile") 2>conftest.er1
15254 ac_status=$?
15255 grep -v '^ *+' conftest.er1 >conftest.err
15256 rm -f conftest.er1
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261 { (case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264esac
15265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_try") 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15274esac
15275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_try") 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_header_compiler=yes
15281else
15282 echo "$as_me: failed program was:" >&5
15283sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 ac_header_compiler=no
15286fi
15287
15288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15290echo "${ECHO_T}$ac_header_compiler" >&6; }
15291
15292# Is the header present?
15293{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15295cat >conftest.$ac_ext <<_ACEOF
15296/* confdefs.h. */
15297_ACEOF
15298cat confdefs.h >>conftest.$ac_ext
15299cat >>conftest.$ac_ext <<_ACEOF
15300/* end confdefs.h. */
15301#include <$ac_header>
15302_ACEOF
15303if { (ac_try="$ac_cpp conftest.$ac_ext"
15304case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307esac
15308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } >/dev/null; then
15316 if test -s conftest.err; then
15317 ac_cpp_err=$ac_c_preproc_warn_flag
15318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15319 else
15320 ac_cpp_err=
15321 fi
15322else
15323 ac_cpp_err=yes
15324fi
15325if test -z "$ac_cpp_err"; then
15326 ac_header_preproc=yes
15327else
15328 echo "$as_me: failed program was:" >&5
15329sed 's/^/| /' conftest.$ac_ext >&5
15330
15331 ac_header_preproc=no
15332fi
15333
15334rm -f conftest.err conftest.$ac_ext
15335{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15336echo "${ECHO_T}$ac_header_preproc" >&6; }
15337
15338# So? What about this header?
15339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15340 yes:no: )
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15345 ac_header_preproc=yes
15346 ;;
15347 no:yes:* )
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15360 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015361## ------------------------------------ ##
15362## Report this to http://llvm.org/bugs/ ##
15363## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015364_ASBOX
15365 ) | sed "s/^/$as_me: WARNING: /" >&2
15366 ;;
15367esac
15368{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372else
15373 eval "$as_ac_Header=\$ac_header_preproc"
15374fi
15375ac_res=`eval echo '${'$as_ac_Header'}'`
15376 { echo "$as_me:$LINENO: result: $ac_res" >&5
15377echo "${ECHO_T}$ac_res" >&6; }
15378
15379fi
15380if test `eval echo '${'$as_ac_Header'}'` = yes; then
15381 cat >>confdefs.h <<_ACEOF
15382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15383_ACEOF
15384
15385fi
15386
15387done
15388
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015389
15390for ac_header in fenv.h
15391do
15392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398fi
15399ac_res=`eval echo '${'$as_ac_Header'}'`
15400 { echo "$as_me:$LINENO: result: $ac_res" >&5
15401echo "${ECHO_T}$ac_res" >&6; }
15402else
15403 # Is the header compilable?
15404{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15406cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h. */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h. */
15412$ac_includes_default
15413#include <$ac_header>
15414_ACEOF
15415rm -f conftest.$ac_objext
15416if { (ac_try="$ac_compile"
15417case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420esac
15421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_compile") 2>conftest.er1
15423 ac_status=$?
15424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15430 { (case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433esac
15434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_try") 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443esac
15444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_try") 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_header_compiler=yes
15450else
15451 echo "$as_me: failed program was:" >&5
15452sed 's/^/| /' conftest.$ac_ext >&5
15453
15454 ac_header_compiler=no
15455fi
15456
15457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15458{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15459echo "${ECHO_T}$ac_header_compiler" >&6; }
15460
15461# Is the header present?
15462{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15464cat >conftest.$ac_ext <<_ACEOF
15465/* confdefs.h. */
15466_ACEOF
15467cat confdefs.h >>conftest.$ac_ext
15468cat >>conftest.$ac_ext <<_ACEOF
15469/* end confdefs.h. */
15470#include <$ac_header>
15471_ACEOF
15472if { (ac_try="$ac_cpp conftest.$ac_ext"
15473case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15476esac
15477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } >/dev/null; then
15485 if test -s conftest.err; then
15486 ac_cpp_err=$ac_c_preproc_warn_flag
15487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15488 else
15489 ac_cpp_err=
15490 fi
15491else
15492 ac_cpp_err=yes
15493fi
15494if test -z "$ac_cpp_err"; then
15495 ac_header_preproc=yes
15496else
15497 echo "$as_me: failed program was:" >&5
15498sed 's/^/| /' conftest.$ac_ext >&5
15499
15500 ac_header_preproc=no
15501fi
15502
15503rm -f conftest.err conftest.$ac_ext
15504{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15505echo "${ECHO_T}$ac_header_preproc" >&6; }
15506
15507# So? What about this header?
15508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15509 yes:no: )
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15514 ac_header_preproc=yes
15515 ;;
15516 no:yes:* )
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15529 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015530## ------------------------------------ ##
15531## Report this to http://llvm.org/bugs/ ##
15532## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015533_ASBOX
15534 ) | sed "s/^/$as_me: WARNING: /" >&2
15535 ;;
15536esac
15537{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15541else
15542 eval "$as_ac_Header=\$ac_header_preproc"
15543fi
15544ac_res=`eval echo '${'$as_ac_Header'}'`
15545 { echo "$as_me:$LINENO: result: $ac_res" >&5
15546echo "${ECHO_T}$ac_res" >&6; }
15547
15548fi
15549if test `eval echo '${'$as_ac_Header'}'` = yes; then
15550 cat >>confdefs.h <<_ACEOF
15551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15552_ACEOF
15553
15554fi
15555
15556done
15557
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015558if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015559
15560for ac_header in pthread.h
15561do
15562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15568fi
15569ac_res=`eval echo '${'$as_ac_Header'}'`
15570 { echo "$as_me:$LINENO: result: $ac_res" >&5
15571echo "${ECHO_T}$ac_res" >&6; }
15572else
15573 # Is the header compilable?
15574{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15575echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
15583#include <$ac_header>
15584_ACEOF
15585rm -f conftest.$ac_objext
15586if { (ac_try="$ac_compile"
15587case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590esac
15591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_compile") 2>conftest.er1
15593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600 { (case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15603esac
15604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_try") 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; } &&
15609 { ac_try='test -s conftest.$ac_objext'
15610 { (case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15613esac
15614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_try") 2>&5
15616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 ac_header_compiler=yes
15620else
15621 echo "$as_me: failed program was:" >&5
15622sed 's/^/| /' conftest.$ac_ext >&5
15623
15624 ac_header_compiler=no
15625fi
15626
15627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15628{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15629echo "${ECHO_T}$ac_header_compiler" >&6; }
15630
15631# Is the header present?
15632{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15634cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
15640#include <$ac_header>
15641_ACEOF
15642if { (ac_try="$ac_cpp conftest.$ac_ext"
15643case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646esac
15647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } >/dev/null; then
15655 if test -s conftest.err; then
15656 ac_cpp_err=$ac_c_preproc_warn_flag
15657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15658 else
15659 ac_cpp_err=
15660 fi
15661else
15662 ac_cpp_err=yes
15663fi
15664if test -z "$ac_cpp_err"; then
15665 ac_header_preproc=yes
15666else
15667 echo "$as_me: failed program was:" >&5
15668sed 's/^/| /' conftest.$ac_ext >&5
15669
15670 ac_header_preproc=no
15671fi
15672
15673rm -f conftest.err conftest.$ac_ext
15674{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15675echo "${ECHO_T}$ac_header_preproc" >&6; }
15676
15677# So? What about this header?
15678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15679 yes:no: )
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15684 ac_header_preproc=yes
15685 ;;
15686 no:yes:* )
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15690echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15694echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15699 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015700## ------------------------------------ ##
15701## Report this to http://llvm.org/bugs/ ##
15702## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015703_ASBOX
15704 ) | sed "s/^/$as_me: WARNING: /" >&2
15705 ;;
15706esac
15707{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15711else
15712 eval "$as_ac_Header=\$ac_header_preproc"
15713fi
15714ac_res=`eval echo '${'$as_ac_Header'}'`
15715 { echo "$as_me:$LINENO: result: $ac_res" >&5
15716echo "${ECHO_T}$ac_res" >&6; }
15717
15718fi
15719if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015720 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015722_ACEOF
15723 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015724
15725else
15726 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015727
15728fi
15729
Reid Spencerbe3e4192007-08-17 05:45:26 +000015730done
Reid Spencer1000b732006-12-01 00:37:14 +000015731
15732else
15733 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015734
15735fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015736
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015737if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015738
15739
15740for ac_header in ffi.h ffi/ffi.h
15741do
15742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15748fi
15749ac_res=`eval echo '${'$as_ac_Header'}'`
15750 { echo "$as_me:$LINENO: result: $ac_res" >&5
15751echo "${ECHO_T}$ac_res" >&6; }
15752else
15753 # Is the header compilable?
15754{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15756cat >conftest.$ac_ext <<_ACEOF
15757/* confdefs.h. */
15758_ACEOF
15759cat confdefs.h >>conftest.$ac_ext
15760cat >>conftest.$ac_ext <<_ACEOF
15761/* end confdefs.h. */
15762$ac_includes_default
15763#include <$ac_header>
15764_ACEOF
15765rm -f conftest.$ac_objext
15766if { (ac_try="$ac_compile"
15767case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15770esac
15771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_compile") 2>conftest.er1
15773 ac_status=$?
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783esac
15784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
15790 { (case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15793esac
15794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_try") 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 ac_header_compiler=yes
15800else
15801 echo "$as_me: failed program was:" >&5
15802sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 ac_header_compiler=no
15805fi
15806
15807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15809echo "${ECHO_T}$ac_header_compiler" >&6; }
15810
15811# Is the header present?
15812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15814cat >conftest.$ac_ext <<_ACEOF
15815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
15820#include <$ac_header>
15821_ACEOF
15822if { (ac_try="$ac_cpp conftest.$ac_ext"
15823case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826esac
15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } >/dev/null; then
15835 if test -s conftest.err; then
15836 ac_cpp_err=$ac_c_preproc_warn_flag
15837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15838 else
15839 ac_cpp_err=
15840 fi
15841else
15842 ac_cpp_err=yes
15843fi
15844if test -z "$ac_cpp_err"; then
15845 ac_header_preproc=yes
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850 ac_header_preproc=no
15851fi
15852
15853rm -f conftest.err conftest.$ac_ext
15854{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15855echo "${ECHO_T}$ac_header_preproc" >&6; }
15856
15857# So? What about this header?
15858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15859 yes:no: )
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15863echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15864 ac_header_preproc=yes
15865 ;;
15866 no:yes:* )
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15868echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15870echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15872echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15874echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15878echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15879 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015880## ------------------------------------ ##
15881## Report this to http://llvm.org/bugs/ ##
15882## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015883_ASBOX
15884 ) | sed "s/^/$as_me: WARNING: /" >&2
15885 ;;
15886esac
15887{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891else
15892 eval "$as_ac_Header=\$ac_header_preproc"
15893fi
15894ac_res=`eval echo '${'$as_ac_Header'}'`
15895 { echo "$as_me:$LINENO: result: $ac_res" >&5
15896echo "${ECHO_T}$ac_res" >&6; }
15897
15898fi
15899if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015900 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015902_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015903
15904fi
15905
15906done
15907
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015908fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015909
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015910
Eric Christopher654dee42010-06-22 21:01:04 +000015911for ac_header in CrashReporterClient.h
15912do
15913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919fi
15920ac_res=`eval echo '${'$as_ac_Header'}'`
15921 { echo "$as_me:$LINENO: result: $ac_res" >&5
15922echo "${ECHO_T}$ac_res" >&6; }
15923else
15924 # Is the header compilable?
15925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15927cat >conftest.$ac_ext <<_ACEOF
15928/* confdefs.h. */
15929_ACEOF
15930cat confdefs.h >>conftest.$ac_ext
15931cat >>conftest.$ac_ext <<_ACEOF
15932/* end confdefs.h. */
15933$ac_includes_default
15934#include <$ac_header>
15935_ACEOF
15936rm -f conftest.$ac_objext
15937if { (ac_try="$ac_compile"
15938case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15941esac
15942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_compile") 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15951 { (case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954esac
15955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_try") 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
15961 { (case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964esac
15965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_try") 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 ac_header_compiler=yes
15971else
15972 echo "$as_me: failed program was:" >&5
15973sed 's/^/| /' conftest.$ac_ext >&5
15974
15975 ac_header_compiler=no
15976fi
15977
15978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15980echo "${ECHO_T}$ac_header_compiler" >&6; }
15981
15982# Is the header present?
15983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15985cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991#include <$ac_header>
15992_ACEOF
15993if { (ac_try="$ac_cpp conftest.$ac_ext"
15994case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15997esac
15998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_c_preproc_warn_flag
16008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009 else
16010 ac_cpp_err=
16011 fi
16012else
16013 ac_cpp_err=yes
16014fi
16015if test -z "$ac_cpp_err"; then
16016 ac_header_preproc=yes
16017else
16018 echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021 ac_header_preproc=no
16022fi
16023
16024rm -f conftest.err conftest.$ac_ext
16025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16026echo "${ECHO_T}$ac_header_preproc" >&6; }
16027
16028# So? What about this header?
16029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16030 yes:no: )
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16035 ac_header_preproc=yes
16036 ;;
16037 no:yes:* )
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16050 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016051## ------------------------------------ ##
16052## Report this to http://llvm.org/bugs/ ##
16053## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016054_ASBOX
16055 ) | sed "s/^/$as_me: WARNING: /" >&2
16056 ;;
16057esac
16058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062else
16063 eval "$as_ac_Header=\$ac_header_preproc"
16064fi
16065ac_res=`eval echo '${'$as_ac_Header'}'`
16066 { echo "$as_me:$LINENO: result: $ac_res" >&5
16067echo "${ECHO_T}$ac_res" >&6; }
16068
16069fi
16070if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16073_ACEOF
16074
16075fi
16076
16077done
16078
16079
Eric Christopher51e57132010-12-07 02:05:42 +000016080{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16081echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016082cat >conftest.$ac_ext <<_ACEOF
16083/* confdefs.h. */
16084_ACEOF
16085cat confdefs.h >>conftest.$ac_ext
16086cat >>conftest.$ac_ext <<_ACEOF
16087/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016088extern const char *__crashreporter_info__;
16089 int main() {
16090 __crashreporter_info__ = "test";
16091 return 0;
16092 }
Eric Christopher481d4022010-12-03 07:45:22 +000016093
Eric Christopher481d4022010-12-03 07:45:22 +000016094_ACEOF
16095rm -f conftest.$ac_objext conftest$ac_exeext
16096if { (ac_try="$ac_link"
16097case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16100esac
16101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_link") 2>conftest.er1
16103 ac_status=$?
16104 grep -v '^ *+' conftest.er1 >conftest.err
16105 rm -f conftest.er1
16106 cat conftest.err >&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } &&
16109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16110 { (case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16113esac
16114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_try") 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; } &&
16119 { ac_try='test -s conftest$ac_exeext'
16120 { (case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123esac
16124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_try") 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016129 { echo "$as_me:$LINENO: result: yes" >&5
16130echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016131
16132cat >>confdefs.h <<\_ACEOF
16133#define HAVE_CRASHREPORTER_INFO 1
16134_ACEOF
16135
Eric Christopher51e57132010-12-07 02:05:42 +000016136else
16137 echo "$as_me: failed program was:" >&5
16138sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 { echo "$as_me:$LINENO: result: no" >&5
16141echo "${ECHO_T}no" >&6; }
16142
16143cat >>confdefs.h <<\_ACEOF
16144#define HAVE_CRASHREPORTER_INFO 0
16145_ACEOF
16146
Eric Christopher481d4022010-12-03 07:45:22 +000016147fi
Eric Christopher654dee42010-06-22 21:01:04 +000016148
Eric Christopher51e57132010-12-07 02:05:42 +000016149rm -f core conftest.err conftest.$ac_objext \
16150 conftest$ac_exeext conftest.$ac_ext
16151
16152
Reid Spencer8085cff2005-01-16 02:58:39 +000016153
Torok Edwin871384f2010-01-26 08:50:50 +000016154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016155 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16156echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16157if test "${ac_cv_huge_val_sanity+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016159else
16160
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016161 ac_ext=cpp
16162ac_cpp='$CXXCPP $CPPFLAGS'
16163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016166
Eric Christopherc7718502010-03-02 05:06:54 +000016167 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016168 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016169 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016170 ac_cv_huge_val_sanity=yes
16171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016172 cat >conftest.$ac_ext <<_ACEOF
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016177/* end confdefs.h. */
16178#include <math.h>
16179int
16180main ()
16181{
16182double x = HUGE_VAL; return x != x;
16183 ;
16184 return 0;
16185}
16186_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016187rm -f conftest$ac_exeext
16188if { (ac_try="$ac_link"
16189case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16192esac
16193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_link") 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16198 { (case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16201esac
16202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_try") 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016207 ac_cv_huge_val_sanity=yes
16208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016209 echo "$as_me: program exited with status $ac_status" >&5
16210echo "$as_me: failed program was:" >&5
16211sed 's/^/| /' conftest.$ac_ext >&5
16212
16213( exit $ac_status )
16214ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016216rm -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 +000016217fi
16218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016219
Eric Christopherc7718502010-03-02 05:06:54 +000016220 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016221 ac_ext=c
16222ac_cpp='$CPP $CPPFLAGS'
16223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16225ac_compiler_gnu=$ac_cv_c_compiler_gnu
16226
16227
16228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016229{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16230echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016231 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16232
16233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016234{ echo "$as_me:$LINENO: checking for pid_t" >&5
16235echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16236if test "${ac_cv_type_pid_t+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16238else
16239 cat >conftest.$ac_ext <<_ACEOF
16240/* confdefs.h. */
16241_ACEOF
16242cat confdefs.h >>conftest.$ac_ext
16243cat >>conftest.$ac_ext <<_ACEOF
16244/* end confdefs.h. */
16245$ac_includes_default
16246typedef pid_t ac__type_new_;
16247int
16248main ()
16249{
16250if ((ac__type_new_ *) 0)
16251 return 0;
16252if (sizeof (ac__type_new_))
16253 return 0;
16254 ;
16255 return 0;
16256}
16257_ACEOF
16258rm -f conftest.$ac_objext
16259if { (ac_try="$ac_compile"
16260case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16263esac
16264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_compile") 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16273 { (case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16276esac
16277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_try") 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16286esac
16287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ac_cv_type_pid_t=yes
16293else
16294 echo "$as_me: failed program was:" >&5
16295sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016297 ac_cv_type_pid_t=no
16298fi
16299
16300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301fi
16302{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16303echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16304if test $ac_cv_type_pid_t = yes; then
16305 :
John Criswell7a73b802003-06-30 21:59:07 +000016306else
16307
16308cat >>confdefs.h <<_ACEOF
16309#define pid_t int
16310_ACEOF
16311
16312fi
16313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016314{ echo "$as_me:$LINENO: checking for size_t" >&5
16315echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16316if test "${ac_cv_type_size_t+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16318else
16319 cat >conftest.$ac_ext <<_ACEOF
16320/* confdefs.h. */
16321_ACEOF
16322cat confdefs.h >>conftest.$ac_ext
16323cat >>conftest.$ac_ext <<_ACEOF
16324/* end confdefs.h. */
16325$ac_includes_default
16326typedef size_t ac__type_new_;
16327int
16328main ()
16329{
16330if ((ac__type_new_ *) 0)
16331 return 0;
16332if (sizeof (ac__type_new_))
16333 return 0;
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338rm -f conftest.$ac_objext
16339if { (ac_try="$ac_compile"
16340case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16343esac
16344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_compile") 2>conftest.er1
16346 ac_status=$?
16347 grep -v '^ *+' conftest.er1 >conftest.err
16348 rm -f conftest.er1
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353 { (case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16356esac
16357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_try") 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366esac
16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_cv_type_size_t=yes
16373else
16374 echo "$as_me: failed program was:" >&5
16375sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016377 ac_cv_type_size_t=no
16378fi
16379
16380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381fi
16382{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16383echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16384if test $ac_cv_type_size_t = yes; then
16385 :
John Criswell7a73b802003-06-30 21:59:07 +000016386else
16387
16388cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016389#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016390_ACEOF
16391
16392fi
16393
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016394
16395cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016396#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016397_ACEOF
16398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016399{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16400echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16401if test "${ac_cv_struct_tm+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016404 cat >conftest.$ac_ext <<_ACEOF
16405/* confdefs.h. */
16406_ACEOF
16407cat confdefs.h >>conftest.$ac_ext
16408cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016409/* end confdefs.h. */
16410#include <sys/types.h>
16411#include <time.h>
16412
16413int
16414main ()
16415{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016416struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016417 ;
16418 return 0;
16419}
16420_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016421rm -f conftest.$ac_objext
16422if { (ac_try="$ac_compile"
16423case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426esac
16427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_compile") 2>conftest.er1
16429 ac_status=$?
16430 grep -v '^ *+' conftest.er1 >conftest.err
16431 rm -f conftest.er1
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
16435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16436 { (case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16439esac
16440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_try") 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; } &&
16445 { ac_try='test -s conftest.$ac_objext'
16446 { (case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16449esac
16450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_try") 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016455 ac_cv_struct_tm=time.h
16456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016457 echo "$as_me: failed program was:" >&5
16458sed 's/^/| /' conftest.$ac_ext >&5
16459
16460 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016462
Reid Spencera773bd52006-08-04 18:18:08 +000016463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016465{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16466echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016467if test $ac_cv_struct_tm = sys/time.h; then
16468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016469cat >>confdefs.h <<\_ACEOF
16470#define TM_IN_SYS_TIME 1
16471_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016472
16473fi
16474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016475{ echo "$as_me:$LINENO: checking for int64_t" >&5
16476echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16477if test "${ac_cv_type_int64_t+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16479else
16480 cat >conftest.$ac_ext <<_ACEOF
16481/* confdefs.h. */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h. */
16486$ac_includes_default
16487typedef int64_t ac__type_new_;
16488int
16489main ()
16490{
16491if ((ac__type_new_ *) 0)
16492 return 0;
16493if (sizeof (ac__type_new_))
16494 return 0;
16495 ;
16496 return 0;
16497}
16498_ACEOF
16499rm -f conftest.$ac_objext
16500if { (ac_try="$ac_compile"
16501case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16504esac
16505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_compile") 2>conftest.er1
16507 ac_status=$?
16508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
16513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514 { (case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517esac
16518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_try") 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } &&
16523 { ac_try='test -s conftest.$ac_objext'
16524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16527esac
16528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
16533 ac_cv_type_int64_t=yes
16534else
16535 echo "$as_me: failed program was:" >&5
16536sed 's/^/| /' conftest.$ac_ext >&5
16537
16538 ac_cv_type_int64_t=no
16539fi
16540
16541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542fi
16543{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16544echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16545if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016546
16547cat >>confdefs.h <<_ACEOF
16548#define HAVE_INT64_T 1
16549_ACEOF
16550
16551
16552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016553 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16554echo "$as_me: error: Type int64_t required but not found" >&2;}
16555 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016556fi
16557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016558{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16559echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16560if test "${ac_cv_type_uint64_t+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16562else
16563 cat >conftest.$ac_ext <<_ACEOF
16564/* confdefs.h. */
16565_ACEOF
16566cat confdefs.h >>conftest.$ac_ext
16567cat >>conftest.$ac_ext <<_ACEOF
16568/* end confdefs.h. */
16569$ac_includes_default
16570typedef uint64_t ac__type_new_;
16571int
16572main ()
16573{
16574if ((ac__type_new_ *) 0)
16575 return 0;
16576if (sizeof (ac__type_new_))
16577 return 0;
16578 ;
16579 return 0;
16580}
16581_ACEOF
16582rm -f conftest.$ac_objext
16583if { (ac_try="$ac_compile"
16584case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587esac
16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_compile") 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16597 { (case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16600esac
16601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_try") 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16610esac
16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_cv_type_uint64_t=yes
16617else
16618 echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
16620
16621 ac_cv_type_uint64_t=no
16622fi
16623
16624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625fi
16626{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16627echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16628if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016629
16630cat >>confdefs.h <<_ACEOF
16631#define HAVE_UINT64_T 1
16632_ACEOF
16633
16634
16635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016636 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16637echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16638if test "${ac_cv_type_u_int64_t+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640else
16641 cat >conftest.$ac_ext <<_ACEOF
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647$ac_includes_default
16648typedef u_int64_t ac__type_new_;
16649int
16650main ()
16651{
16652if ((ac__type_new_ *) 0)
16653 return 0;
16654if (sizeof (ac__type_new_))
16655 return 0;
16656 ;
16657 return 0;
16658}
16659_ACEOF
16660rm -f conftest.$ac_objext
16661if { (ac_try="$ac_compile"
16662case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16665esac
16666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_compile") 2>conftest.er1
16668 ac_status=$?
16669 grep -v '^ *+' conftest.er1 >conftest.err
16670 rm -f conftest.er1
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678esac
16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; } &&
16684 { ac_try='test -s conftest.$ac_objext'
16685 { (case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16688esac
16689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_try") 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_cv_type_u_int64_t=yes
16695else
16696 echo "$as_me: failed program was:" >&5
16697sed 's/^/| /' conftest.$ac_ext >&5
16698
16699 ac_cv_type_u_int64_t=no
16700fi
16701
16702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703fi
16704{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16705echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16706if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016707
16708cat >>confdefs.h <<_ACEOF
16709#define HAVE_U_INT64_T 1
16710_ACEOF
16711
16712
Misha Brukmanceca9042004-09-02 23:02:30 +000016713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016714 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16715echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16716 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016717fi
16718
John Criswell679ff312004-09-02 18:44:44 +000016719fi
16720
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016721
16722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016723
16724
16725
16726
16727
16728
16729
Reid Spencerdf3be822006-01-23 08:15:53 +000016730for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016731do
16732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16733{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16735if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16736 echo $ECHO_N "(cached) $ECHO_C" >&6
16737else
16738 cat >conftest.$ac_ext <<_ACEOF
16739/* confdefs.h. */
16740_ACEOF
16741cat confdefs.h >>conftest.$ac_ext
16742cat >>conftest.$ac_ext <<_ACEOF
16743/* end confdefs.h. */
16744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16746#define $ac_func innocuous_$ac_func
16747
16748/* System header to define __stub macros and hopefully few prototypes,
16749 which can conflict with char $ac_func (); below.
16750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16751 <limits.h> exists even on freestanding compilers. */
16752
16753#ifdef __STDC__
16754# include <limits.h>
16755#else
16756# include <assert.h>
16757#endif
16758
16759#undef $ac_func
16760
16761/* Override any GCC internal prototype to avoid an error.
16762 Use char because int might match the return type of a GCC
16763 builtin and then its argument prototype would still apply. */
16764#ifdef __cplusplus
16765extern "C"
16766#endif
16767char $ac_func ();
16768/* The GNU C library defines this for functions which it implements
16769 to always fail with ENOSYS. Some functions are actually named
16770 something starting with __ and the normal name is an alias. */
16771#if defined __stub_$ac_func || defined __stub___$ac_func
16772choke me
16773#endif
16774
16775int
16776main ()
16777{
16778return $ac_func ();
16779 ;
16780 return 0;
16781}
16782_ACEOF
16783rm -f conftest.$ac_objext conftest$ac_exeext
16784if { (ac_try="$ac_link"
16785case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788esac
16789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_link") 2>conftest.er1
16791 ac_status=$?
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
16797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16798 { (case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801esac
16802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_try") 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; } &&
16807 { ac_try='test -s conftest$ac_exeext'
16808 { (case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16811esac
16812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_try") 2>&5
16814 ac_status=$?
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; }; then
16817 eval "$as_ac_var=yes"
16818else
16819 echo "$as_me: failed program was:" >&5
16820sed 's/^/| /' conftest.$ac_ext >&5
16821
16822 eval "$as_ac_var=no"
16823fi
16824
16825rm -f core conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16827fi
16828ac_res=`eval echo '${'$as_ac_var'}'`
16829 { echo "$as_me:$LINENO: result: $ac_res" >&5
16830echo "${ECHO_T}$ac_res" >&6; }
16831if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016832 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016834_ACEOF
16835
16836fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016837done
John Criswell7a73b802003-06-30 21:59:07 +000016838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016839
16840
16841
16842
Reid Spencer96cf5872007-07-13 10:05:30 +000016843for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016844do
16845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16846{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16848if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16850else
16851 cat >conftest.$ac_ext <<_ACEOF
16852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
16857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16859#define $ac_func innocuous_$ac_func
16860
16861/* System header to define __stub macros and hopefully few prototypes,
16862 which can conflict with char $ac_func (); below.
16863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16864 <limits.h> exists even on freestanding compilers. */
16865
16866#ifdef __STDC__
16867# include <limits.h>
16868#else
16869# include <assert.h>
16870#endif
16871
16872#undef $ac_func
16873
16874/* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
16877#ifdef __cplusplus
16878extern "C"
16879#endif
16880char $ac_func ();
16881/* The GNU C library defines this for functions which it implements
16882 to always fail with ENOSYS. Some functions are actually named
16883 something starting with __ and the normal name is an alias. */
16884#if defined __stub_$ac_func || defined __stub___$ac_func
16885choke me
16886#endif
16887
16888int
16889main ()
16890{
16891return $ac_func ();
16892 ;
16893 return 0;
16894}
16895_ACEOF
16896rm -f conftest.$ac_objext conftest$ac_exeext
16897if { (ac_try="$ac_link"
16898case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16901esac
16902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_link") 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911 { (case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16914esac
16915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_try") 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest$ac_exeext'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 eval "$as_ac_var=yes"
16931else
16932 echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 eval "$as_ac_var=no"
16936fi
16937
16938rm -f core conftest.err conftest.$ac_objext \
16939 conftest$ac_exeext conftest.$ac_ext
16940fi
16941ac_res=`eval echo '${'$as_ac_var'}'`
16942 { echo "$as_me:$LINENO: result: $ac_res" >&5
16943echo "${ECHO_T}$ac_res" >&6; }
16944if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016945 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016947_ACEOF
16948
16949fi
16950done
16951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016952
16953
16954
16955
16956
Reid Spencerb90645c2007-02-16 19:17:20 +000016957for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016958do
16959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16964else
16965 cat >conftest.$ac_ext <<_ACEOF
16966/* confdefs.h. */
16967_ACEOF
16968cat confdefs.h >>conftest.$ac_ext
16969cat >>conftest.$ac_ext <<_ACEOF
16970/* end confdefs.h. */
16971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16973#define $ac_func innocuous_$ac_func
16974
16975/* System header to define __stub macros and hopefully few prototypes,
16976 which can conflict with char $ac_func (); below.
16977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16978 <limits.h> exists even on freestanding compilers. */
16979
16980#ifdef __STDC__
16981# include <limits.h>
16982#else
16983# include <assert.h>
16984#endif
16985
16986#undef $ac_func
16987
16988/* Override any GCC internal prototype to avoid an error.
16989 Use char because int might match the return type of a GCC
16990 builtin and then its argument prototype would still apply. */
16991#ifdef __cplusplus
16992extern "C"
16993#endif
16994char $ac_func ();
16995/* The GNU C library defines this for functions which it implements
16996 to always fail with ENOSYS. Some functions are actually named
16997 something starting with __ and the normal name is an alias. */
16998#if defined __stub_$ac_func || defined __stub___$ac_func
16999choke me
17000#endif
17001
17002int
17003main ()
17004{
17005return $ac_func ();
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest.$ac_objext conftest$ac_exeext
17011if { (ac_try="$ac_link"
17012case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015esac
17016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_link") 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17025 { (case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028esac
17029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_try") 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17038esac
17039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_try") 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 eval "$as_ac_var=yes"
17045else
17046 echo "$as_me: failed program was:" >&5
17047sed 's/^/| /' conftest.$ac_ext >&5
17048
17049 eval "$as_ac_var=no"
17050fi
17051
17052rm -f core conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17054fi
17055ac_res=`eval echo '${'$as_ac_var'}'`
17056 { echo "$as_me:$LINENO: result: $ac_res" >&5
17057echo "${ECHO_T}$ac_res" >&6; }
17058if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017059 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017061_ACEOF
17062
17063fi
17064done
17065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017066
17067
17068
Reid Spencerb90645c2007-02-16 19:17:20 +000017069for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017070do
17071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17072{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17074if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17076else
17077 cat >conftest.$ac_ext <<_ACEOF
17078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
17083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17085#define $ac_func innocuous_$ac_func
17086
17087/* System header to define __stub macros and hopefully few prototypes,
17088 which can conflict with char $ac_func (); below.
17089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090 <limits.h> exists even on freestanding compilers. */
17091
17092#ifdef __STDC__
17093# include <limits.h>
17094#else
17095# include <assert.h>
17096#endif
17097
17098#undef $ac_func
17099
17100/* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17103#ifdef __cplusplus
17104extern "C"
17105#endif
17106char $ac_func ();
17107/* The GNU C library defines this for functions which it implements
17108 to always fail with ENOSYS. Some functions are actually named
17109 something starting with __ and the normal name is an alias. */
17110#if defined __stub_$ac_func || defined __stub___$ac_func
17111choke me
17112#endif
17113
17114int
17115main ()
17116{
17117return $ac_func ();
17118 ;
17119 return 0;
17120}
17121_ACEOF
17122rm -f conftest.$ac_objext conftest$ac_exeext
17123if { (ac_try="$ac_link"
17124case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17127esac
17128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_link") 2>conftest.er1
17130 ac_status=$?
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } &&
17136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17137 { (case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140esac
17141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_try") 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try='test -s conftest$ac_exeext'
17147 { (case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17150esac
17151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_try") 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 eval "$as_ac_var=yes"
17157else
17158 echo "$as_me: failed program was:" >&5
17159sed 's/^/| /' conftest.$ac_ext >&5
17160
17161 eval "$as_ac_var=no"
17162fi
17163
17164rm -f core conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17166fi
17167ac_res=`eval echo '${'$as_ac_var'}'`
17168 { echo "$as_me:$LINENO: result: $ac_res" >&5
17169echo "${ECHO_T}$ac_res" >&6; }
17170if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017171 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017173_ACEOF
17174
17175fi
17176done
17177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017178
17179
17180
17181
17182
Eric Christophere4291822010-04-16 05:14:21 +000017183
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017184
17185for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017186do
17187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17188{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17190if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17192else
17193 cat >conftest.$ac_ext <<_ACEOF
17194/* confdefs.h. */
17195_ACEOF
17196cat confdefs.h >>conftest.$ac_ext
17197cat >>conftest.$ac_ext <<_ACEOF
17198/* end confdefs.h. */
17199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17201#define $ac_func innocuous_$ac_func
17202
17203/* System header to define __stub macros and hopefully few prototypes,
17204 which can conflict with char $ac_func (); below.
17205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17206 <limits.h> exists even on freestanding compilers. */
17207
17208#ifdef __STDC__
17209# include <limits.h>
17210#else
17211# include <assert.h>
17212#endif
17213
17214#undef $ac_func
17215
17216/* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17219#ifdef __cplusplus
17220extern "C"
17221#endif
17222char $ac_func ();
17223/* The GNU C library defines this for functions which it implements
17224 to always fail with ENOSYS. Some functions are actually named
17225 something starting with __ and the normal name is an alias. */
17226#if defined __stub_$ac_func || defined __stub___$ac_func
17227choke me
17228#endif
17229
17230int
17231main ()
17232{
17233return $ac_func ();
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext conftest$ac_exeext
17239if { (ac_try="$ac_link"
17240case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17243esac
17244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>conftest.er1
17246 ac_status=$?
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253 { (case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256esac
17257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_try") 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest$ac_exeext'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266esac
17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 eval "$as_ac_var=yes"
17273else
17274 echo "$as_me: failed program was:" >&5
17275sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 eval "$as_ac_var=no"
17278fi
17279
17280rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17282fi
17283ac_res=`eval echo '${'$as_ac_var'}'`
17284 { echo "$as_me:$LINENO: result: $ac_res" >&5
17285echo "${ECHO_T}$ac_res" >&6; }
17286if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017287 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017289_ACEOF
17290
17291fi
17292done
Reid Spencerdf3be822006-01-23 08:15:53 +000017293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017294
17295
17296
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017297
17298for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017299do
17300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17301{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17303if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305else
17306 cat >conftest.$ac_ext <<_ACEOF
17307/* confdefs.h. */
17308_ACEOF
17309cat confdefs.h >>conftest.$ac_ext
17310cat >>conftest.$ac_ext <<_ACEOF
17311/* end confdefs.h. */
17312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17314#define $ac_func innocuous_$ac_func
17315
17316/* System header to define __stub macros and hopefully few prototypes,
17317 which can conflict with char $ac_func (); below.
17318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319 <limits.h> exists even on freestanding compilers. */
17320
17321#ifdef __STDC__
17322# include <limits.h>
17323#else
17324# include <assert.h>
17325#endif
17326
17327#undef $ac_func
17328
17329/* Override any GCC internal prototype to avoid an error.
17330 Use char because int might match the return type of a GCC
17331 builtin and then its argument prototype would still apply. */
17332#ifdef __cplusplus
17333extern "C"
17334#endif
17335char $ac_func ();
17336/* The GNU C library defines this for functions which it implements
17337 to always fail with ENOSYS. Some functions are actually named
17338 something starting with __ and the normal name is an alias. */
17339#if defined __stub_$ac_func || defined __stub___$ac_func
17340choke me
17341#endif
17342
17343int
17344main ()
17345{
17346return $ac_func ();
17347 ;
17348 return 0;
17349}
17350_ACEOF
17351rm -f conftest.$ac_objext conftest$ac_exeext
17352if { (ac_try="$ac_link"
17353case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356esac
17357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_link") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest$ac_exeext'
17376 { (case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17379esac
17380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_try") 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 eval "$as_ac_var=yes"
17386else
17387 echo "$as_me: failed program was:" >&5
17388sed 's/^/| /' conftest.$ac_ext >&5
17389
17390 eval "$as_ac_var=no"
17391fi
17392
17393rm -f core conftest.err conftest.$ac_objext \
17394 conftest$ac_exeext conftest.$ac_ext
17395fi
17396ac_res=`eval echo '${'$as_ac_var'}'`
17397 { echo "$as_me:$LINENO: result: $ac_res" >&5
17398echo "${ECHO_T}$ac_res" >&6; }
17399if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017400 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017401#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017402_ACEOF
17403
17404fi
17405done
17406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017407
17408
17409
17410
Chris Lattner511f11d2005-11-14 07:25:50 +000017411for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017412do
17413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17414{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17416if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418else
17419 cat >conftest.$ac_ext <<_ACEOF
17420/* confdefs.h. */
17421_ACEOF
17422cat confdefs.h >>conftest.$ac_ext
17423cat >>conftest.$ac_ext <<_ACEOF
17424/* end confdefs.h. */
17425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17427#define $ac_func innocuous_$ac_func
17428
17429/* System header to define __stub macros and hopefully few prototypes,
17430 which can conflict with char $ac_func (); below.
17431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17432 <limits.h> exists even on freestanding compilers. */
17433
17434#ifdef __STDC__
17435# include <limits.h>
17436#else
17437# include <assert.h>
17438#endif
17439
17440#undef $ac_func
17441
17442/* Override any GCC internal prototype to avoid an error.
17443 Use char because int might match the return type of a GCC
17444 builtin and then its argument prototype would still apply. */
17445#ifdef __cplusplus
17446extern "C"
17447#endif
17448char $ac_func ();
17449/* The GNU C library defines this for functions which it implements
17450 to always fail with ENOSYS. Some functions are actually named
17451 something starting with __ and the normal name is an alias. */
17452#if defined __stub_$ac_func || defined __stub___$ac_func
17453choke me
17454#endif
17455
17456int
17457main ()
17458{
17459return $ac_func ();
17460 ;
17461 return 0;
17462}
17463_ACEOF
17464rm -f conftest.$ac_objext conftest$ac_exeext
17465if { (ac_try="$ac_link"
17466case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17469esac
17470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_link") 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
17478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17479 { (case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17482esac
17483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_try") 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try='test -s conftest$ac_exeext'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492esac
17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 eval "$as_ac_var=yes"
17499else
17500 echo "$as_me: failed program was:" >&5
17501sed 's/^/| /' conftest.$ac_ext >&5
17502
17503 eval "$as_ac_var=no"
17504fi
17505
17506rm -f core conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
17508fi
17509ac_res=`eval echo '${'$as_ac_var'}'`
17510 { echo "$as_me:$LINENO: result: $ac_res" >&5
17511echo "${ECHO_T}$ac_res" >&6; }
17512if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017513 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017515_ACEOF
17516
17517fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017518done
John Criswell7a73b802003-06-30 21:59:07 +000017519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017520
17521
17522
17523
Daniel Dunbar3e462932011-02-03 02:40:02 +000017524
17525for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017526do
17527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17528{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17530if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17532else
17533 cat >conftest.$ac_ext <<_ACEOF
17534/* confdefs.h. */
17535_ACEOF
17536cat confdefs.h >>conftest.$ac_ext
17537cat >>conftest.$ac_ext <<_ACEOF
17538/* end confdefs.h. */
17539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17541#define $ac_func innocuous_$ac_func
17542
17543/* System header to define __stub macros and hopefully few prototypes,
17544 which can conflict with char $ac_func (); below.
17545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546 <limits.h> exists even on freestanding compilers. */
17547
17548#ifdef __STDC__
17549# include <limits.h>
17550#else
17551# include <assert.h>
17552#endif
17553
17554#undef $ac_func
17555
17556/* Override any GCC internal prototype to avoid an error.
17557 Use char because int might match the return type of a GCC
17558 builtin and then its argument prototype would still apply. */
17559#ifdef __cplusplus
17560extern "C"
17561#endif
17562char $ac_func ();
17563/* The GNU C library defines this for functions which it implements
17564 to always fail with ENOSYS. Some functions are actually named
17565 something starting with __ and the normal name is an alias. */
17566#if defined __stub_$ac_func || defined __stub___$ac_func
17567choke me
17568#endif
17569
17570int
17571main ()
17572{
17573return $ac_func ();
17574 ;
17575 return 0;
17576}
17577_ACEOF
17578rm -f conftest.$ac_objext conftest$ac_exeext
17579if { (ac_try="$ac_link"
17580case "(($ac_try" in
17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582 *) ac_try_echo=$ac_try;;
17583esac
17584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585 (eval "$ac_link") 2>conftest.er1
17586 ac_status=$?
17587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593 { (case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17596esac
17597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_try") 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest$ac_exeext'
17603 { (case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17606esac
17607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_try") 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 eval "$as_ac_var=yes"
17613else
17614 echo "$as_me: failed program was:" >&5
17615sed 's/^/| /' conftest.$ac_ext >&5
17616
17617 eval "$as_ac_var=no"
17618fi
17619
17620rm -f core conftest.err conftest.$ac_objext \
17621 conftest$ac_exeext conftest.$ac_ext
17622fi
17623ac_res=`eval echo '${'$as_ac_var'}'`
17624 { echo "$as_me:$LINENO: result: $ac_res" >&5
17625echo "${ECHO_T}$ac_res" >&6; }
17626if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017627 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017629_ACEOF
17630
17631fi
17632done
17633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017634{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17635echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17636if test "${llvm_cv_c_printf_a+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017638else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017639 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017640ac_cpp='$CPP $CPPFLAGS'
17641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17643ac_compiler_gnu=$ac_cv_c_compiler_gnu
17644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017645 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017646 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017648 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017650 /* confdefs.h. */
17651_ACEOF
17652cat confdefs.h >>conftest.$ac_ext
17653cat >>conftest.$ac_ext <<_ACEOF
17654/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017655
John Criswella0137d32003-10-13 16:22:01 +000017656#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017657#include <stdlib.h>
17658
John Criswella0137d32003-10-13 16:22:01 +000017659int
17660main ()
17661{
17662
Reid Spencer2706f8c2004-09-19 23:53:36 +000017663volatile double A, B;
17664char Buffer[100];
17665A = 1;
17666A /= 10.0;
17667sprintf(Buffer, "%a", A);
17668B = atof(Buffer);
17669if (A != B)
17670 return (1);
17671if (A != 0x1.999999999999ap-4)
17672 return (1);
17673return (0);
John Criswella0137d32003-10-13 16:22:01 +000017674 ;
17675 return 0;
17676}
17677_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017678rm -f conftest$ac_exeext
17679if { (ac_try="$ac_link"
17680case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17683esac
17684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_link") 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17689 { (case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17692esac
17693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_try") 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017698 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017699else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017700 echo "$as_me: program exited with status $ac_status" >&5
17701echo "$as_me: failed program was:" >&5
17702sed 's/^/| /' conftest.$ac_ext >&5
17703
17704( exit $ac_status )
17705llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017707rm -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 +000017708fi
Reid Spencera773bd52006-08-04 18:18:08 +000017709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017710
Reid Spencer2706f8c2004-09-19 23:53:36 +000017711 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017712ac_cpp='$CPP $CPPFLAGS'
17713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715ac_compiler_gnu=$ac_cv_c_compiler_gnu
17716
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017718{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17719echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017720 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017722cat >>confdefs.h <<\_ACEOF
17723#define HAVE_PRINTF_A 1
17724_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017725
Reid Spencer2706f8c2004-09-19 23:53:36 +000017726 fi
John Criswella0137d32003-10-13 16:22:01 +000017727
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017729{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17730echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17731if test "${ac_cv_func_rand48+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017733else
Reid Spencera773bd52006-08-04 18:18:08 +000017734 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017735ac_cpp='$CXXCPP $CPPFLAGS'
17736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017740 cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017745/* end confdefs.h. */
17746#include <stdlib.h>
17747int
17748main ()
17749{
17750srand48(0);lrand48();drand48();
17751 ;
17752 return 0;
17753}
17754_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017755rm -f conftest.$ac_objext
17756if { (ac_try="$ac_compile"
17757case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760esac
17761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_compile") 2>conftest.er1
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
17779 { ac_try='test -s conftest.$ac_objext'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783esac
17784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017789 ac_cv_func_rand48=yes
17790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017791 echo "$as_me: failed program was:" >&5
17792sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017796
Reid Spencera773bd52006-08-04 18:18:08 +000017797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017798 ac_ext=c
17799ac_cpp='$CPP $CPPFLAGS'
17800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802ac_compiler_gnu=$ac_cv_c_compiler_gnu
17803
17804fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017805{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17806echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017807
17808if test "$ac_cv_func_rand48" = "yes" ; then
17809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017810cat >>confdefs.h <<\_ACEOF
17811#define HAVE_RAND48 1
17812_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017813
17814fi
John Criswell0021c312004-02-13 21:57:29 +000017815
17816
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017817{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17818echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17819if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
17821else
17822 cat >conftest.$ac_ext <<_ACEOF
17823/* confdefs.h. */
17824_ACEOF
17825cat confdefs.h >>conftest.$ac_ext
17826cat >>conftest.$ac_ext <<_ACEOF
17827/* end confdefs.h. */
17828$ac_includes_default
17829int
17830main ()
17831{
17832#ifndef strerror_s
17833 char *p = (char *) strerror_s;
17834 return !p;
17835#endif
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (ac_try="$ac_compile"
17843case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846esac
17847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_compile") 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest.$ac_objext'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17869esac
17870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_cv_have_decl_strerror_s=yes
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 ac_cv_have_decl_strerror_s=no
17881fi
17882
17883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17884fi
17885{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17886echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17887if test $ac_cv_have_decl_strerror_s = yes; then
17888
17889cat >>confdefs.h <<_ACEOF
17890#define HAVE_DECL_STRERROR_S 1
17891_ACEOF
17892
17893
17894else
17895 cat >>confdefs.h <<_ACEOF
17896#define HAVE_DECL_STRERROR_S 0
17897_ACEOF
17898
17899
17900fi
17901
17902
17903
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017904if test "$llvm_cv_os_type" = "MingW" ; then
17905 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17906echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17907if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909else
17910 ac_check_lib_save_LIBS=$LIBS
17911LIBS="-lgcc $LIBS"
17912cat >conftest.$ac_ext <<_ACEOF
17913/* confdefs.h. */
17914_ACEOF
17915cat confdefs.h >>conftest.$ac_ext
17916cat >>conftest.$ac_ext <<_ACEOF
17917/* end confdefs.h. */
17918
17919/* Override any GCC internal prototype to avoid an error.
17920 Use char because int might match the return type of a GCC
17921 builtin and then its argument prototype would still apply. */
17922#ifdef __cplusplus
17923extern "C"
17924#endif
17925char _alloca ();
17926int
17927main ()
17928{
17929return _alloca ();
17930 ;
17931 return 0;
17932}
17933_ACEOF
17934rm -f conftest.$ac_objext conftest$ac_exeext
17935if { (ac_try="$ac_link"
17936case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17939esac
17940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_link") 2>conftest.er1
17942 ac_status=$?
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17952esac
17953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; } &&
17958 { ac_try='test -s conftest$ac_exeext'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17962esac
17963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_try") 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_lib_gcc__alloca=yes
17969else
17970 echo "$as_me: failed program was:" >&5
17971sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 ac_cv_lib_gcc__alloca=no
17974fi
17975
17976rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17978LIBS=$ac_check_lib_save_LIBS
17979fi
17980{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17981echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17982if test $ac_cv_lib_gcc__alloca = yes; then
17983
17984cat >>confdefs.h <<\_ACEOF
17985#define HAVE__ALLOCA 1
17986_ACEOF
17987
17988fi
17989
17990 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17991echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17992if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994else
17995 ac_check_lib_save_LIBS=$LIBS
17996LIBS="-lgcc $LIBS"
17997cat >conftest.$ac_ext <<_ACEOF
17998/* confdefs.h. */
17999_ACEOF
18000cat confdefs.h >>conftest.$ac_ext
18001cat >>conftest.$ac_ext <<_ACEOF
18002/* end confdefs.h. */
18003
18004/* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18007#ifdef __cplusplus
18008extern "C"
18009#endif
18010char __alloca ();
18011int
18012main ()
18013{
18014return __alloca ();
18015 ;
18016 return 0;
18017}
18018_ACEOF
18019rm -f conftest.$ac_objext conftest$ac_exeext
18020if { (ac_try="$ac_link"
18021case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024esac
18025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_link") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18037esac
18038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest$ac_exeext'
18044 { (case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18047esac
18048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_try") 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_lib_gcc___alloca=yes
18054else
18055 echo "$as_me: failed program was:" >&5
18056sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 ac_cv_lib_gcc___alloca=no
18059fi
18060
18061rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18063LIBS=$ac_check_lib_save_LIBS
18064fi
18065{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18066echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18067if test $ac_cv_lib_gcc___alloca = yes; then
18068
18069cat >>confdefs.h <<\_ACEOF
18070#define HAVE___ALLOCA 1
18071_ACEOF
18072
18073fi
18074
18075 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18076echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18077if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079else
18080 ac_check_lib_save_LIBS=$LIBS
18081LIBS="-lgcc $LIBS"
18082cat >conftest.$ac_ext <<_ACEOF
18083/* confdefs.h. */
18084_ACEOF
18085cat confdefs.h >>conftest.$ac_ext
18086cat >>conftest.$ac_ext <<_ACEOF
18087/* end confdefs.h. */
18088
18089/* Override any GCC internal prototype to avoid an error.
18090 Use char because int might match the return type of a GCC
18091 builtin and then its argument prototype would still apply. */
18092#ifdef __cplusplus
18093extern "C"
18094#endif
18095char __chkstk ();
18096int
18097main ()
18098{
18099return __chkstk ();
18100 ;
18101 return 0;
18102}
18103_ACEOF
18104rm -f conftest.$ac_objext conftest$ac_exeext
18105if { (ac_try="$ac_link"
18106case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18109esac
18110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_link") 2>conftest.er1
18112 ac_status=$?
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest$ac_exeext'
18129 { (case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18132esac
18133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_try") 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_lib_gcc___chkstk=yes
18139else
18140 echo "$as_me: failed program was:" >&5
18141sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 ac_cv_lib_gcc___chkstk=no
18144fi
18145
18146rm -f core conftest.err conftest.$ac_objext \
18147 conftest$ac_exeext conftest.$ac_ext
18148LIBS=$ac_check_lib_save_LIBS
18149fi
18150{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18151echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18152if test $ac_cv_lib_gcc___chkstk = yes; then
18153
18154cat >>confdefs.h <<\_ACEOF
18155#define HAVE___CHKSTK 1
18156_ACEOF
18157
18158fi
18159
18160 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18161echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18162if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18164else
18165 ac_check_lib_save_LIBS=$LIBS
18166LIBS="-lgcc $LIBS"
18167cat >conftest.$ac_ext <<_ACEOF
18168/* confdefs.h. */
18169_ACEOF
18170cat confdefs.h >>conftest.$ac_ext
18171cat >>conftest.$ac_ext <<_ACEOF
18172/* end confdefs.h. */
18173
18174/* Override any GCC internal prototype to avoid an error.
18175 Use char because int might match the return type of a GCC
18176 builtin and then its argument prototype would still apply. */
18177#ifdef __cplusplus
18178extern "C"
18179#endif
18180char ___chkstk ();
18181int
18182main ()
18183{
18184return ___chkstk ();
18185 ;
18186 return 0;
18187}
18188_ACEOF
18189rm -f conftest.$ac_objext conftest$ac_exeext
18190if { (ac_try="$ac_link"
18191case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18194esac
18195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_link") 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18204 { (case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207esac
18208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_try") 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; } &&
18213 { ac_try='test -s conftest$ac_exeext'
18214 { (case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217esac
18218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_try") 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 ac_cv_lib_gcc____chkstk=yes
18224else
18225 echo "$as_me: failed program was:" >&5
18226sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 ac_cv_lib_gcc____chkstk=no
18229fi
18230
18231rm -f core conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18233LIBS=$ac_check_lib_save_LIBS
18234fi
18235{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18236echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18237if test $ac_cv_lib_gcc____chkstk = yes; then
18238
18239cat >>confdefs.h <<\_ACEOF
18240#define HAVE____CHKSTK 1
18241_ACEOF
18242
18243fi
18244
18245
18246 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18247echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18248if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250else
18251 ac_check_lib_save_LIBS=$LIBS
18252LIBS="-lgcc $LIBS"
18253cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
18259
18260/* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18263#ifdef __cplusplus
18264extern "C"
18265#endif
18266char __ashldi3 ();
18267int
18268main ()
18269{
18270return __ashldi3 ();
18271 ;
18272 return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext conftest$ac_exeext
18276if { (ac_try="$ac_link"
18277case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280esac
18281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18283 ac_status=$?
18284 grep -v '^ *+' conftest.er1 >conftest.err
18285 rm -f conftest.er1
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
18289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest$ac_exeext'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18303esac
18304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_lib_gcc___ashldi3=yes
18310else
18311 echo "$as_me: failed program was:" >&5
18312sed 's/^/| /' conftest.$ac_ext >&5
18313
18314 ac_cv_lib_gcc___ashldi3=no
18315fi
18316
18317rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18319LIBS=$ac_check_lib_save_LIBS
18320fi
18321{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18322echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18323if test $ac_cv_lib_gcc___ashldi3 = yes; then
18324
18325cat >>confdefs.h <<\_ACEOF
18326#define HAVE___ASHLDI3 1
18327_ACEOF
18328
18329fi
18330
18331 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18332echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18333if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
18336 ac_check_lib_save_LIBS=$LIBS
18337LIBS="-lgcc $LIBS"
18338cat >conftest.$ac_ext <<_ACEOF
18339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
18344
18345/* Override any GCC internal prototype to avoid an error.
18346 Use char because int might match the return type of a GCC
18347 builtin and then its argument prototype would still apply. */
18348#ifdef __cplusplus
18349extern "C"
18350#endif
18351char __ashrdi3 ();
18352int
18353main ()
18354{
18355return __ashrdi3 ();
18356 ;
18357 return 0;
18358}
18359_ACEOF
18360rm -f conftest.$ac_objext conftest$ac_exeext
18361if { (ac_try="$ac_link"
18362case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18365esac
18366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_link") 2>conftest.er1
18368 ac_status=$?
18369 grep -v '^ *+' conftest.er1 >conftest.err
18370 rm -f conftest.er1
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18388esac
18389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_try") 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
18394 ac_cv_lib_gcc___ashrdi3=yes
18395else
18396 echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
18399 ac_cv_lib_gcc___ashrdi3=no
18400fi
18401
18402rm -f core conftest.err conftest.$ac_objext \
18403 conftest$ac_exeext conftest.$ac_ext
18404LIBS=$ac_check_lib_save_LIBS
18405fi
18406{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18407echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18408if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18409
18410cat >>confdefs.h <<\_ACEOF
18411#define HAVE___ASHRDI3 1
18412_ACEOF
18413
18414fi
18415
18416 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18417echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18418if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18420else
18421 ac_check_lib_save_LIBS=$LIBS
18422LIBS="-lgcc $LIBS"
18423cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
18429
18430/* Override any GCC internal prototype to avoid an error.
18431 Use char because int might match the return type of a GCC
18432 builtin and then its argument prototype would still apply. */
18433#ifdef __cplusplus
18434extern "C"
18435#endif
18436char __divdi3 ();
18437int
18438main ()
18439{
18440return __divdi3 ();
18441 ;
18442 return 0;
18443}
18444_ACEOF
18445rm -f conftest.$ac_objext conftest$ac_exeext
18446if { (ac_try="$ac_link"
18447case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450esac
18451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>conftest.er1
18453 ac_status=$?
18454 grep -v '^ *+' conftest.er1 >conftest.err
18455 rm -f conftest.er1
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463esac
18464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest$ac_exeext'
18470 { (case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18473esac
18474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475 (eval "$ac_try") 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 ac_cv_lib_gcc___divdi3=yes
18480else
18481 echo "$as_me: failed program was:" >&5
18482sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 ac_cv_lib_gcc___divdi3=no
18485fi
18486
18487rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489LIBS=$ac_check_lib_save_LIBS
18490fi
18491{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18492echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18493if test $ac_cv_lib_gcc___divdi3 = yes; then
18494
18495cat >>confdefs.h <<\_ACEOF
18496#define HAVE___DIVDI3 1
18497_ACEOF
18498
18499fi
18500
18501 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18502echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18503if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505else
18506 ac_check_lib_save_LIBS=$LIBS
18507LIBS="-lgcc $LIBS"
18508cat >conftest.$ac_ext <<_ACEOF
18509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
18513/* end confdefs.h. */
18514
18515/* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18518#ifdef __cplusplus
18519extern "C"
18520#endif
18521char __fixdfdi ();
18522int
18523main ()
18524{
18525return __fixdfdi ();
18526 ;
18527 return 0;
18528}
18529_ACEOF
18530rm -f conftest.$ac_objext conftest$ac_exeext
18531if { (ac_try="$ac_link"
18532case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18535esac
18536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_link") 2>conftest.er1
18538 ac_status=$?
18539 grep -v '^ *+' conftest.er1 >conftest.err
18540 rm -f conftest.er1
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } &&
18544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18545 { (case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548esac
18549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_try") 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; } &&
18554 { ac_try='test -s conftest$ac_exeext'
18555 { (case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18558esac
18559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_try") 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_lib_gcc___fixdfdi=yes
18565else
18566 echo "$as_me: failed program was:" >&5
18567sed 's/^/| /' conftest.$ac_ext >&5
18568
18569 ac_cv_lib_gcc___fixdfdi=no
18570fi
18571
18572rm -f core conftest.err conftest.$ac_objext \
18573 conftest$ac_exeext conftest.$ac_ext
18574LIBS=$ac_check_lib_save_LIBS
18575fi
18576{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18577echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18578if test $ac_cv_lib_gcc___fixdfdi = yes; then
18579
18580cat >>confdefs.h <<\_ACEOF
18581#define HAVE___FIXDFDI 1
18582_ACEOF
18583
18584fi
18585
18586 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18587echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18588if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18590else
18591 ac_check_lib_save_LIBS=$LIBS
18592LIBS="-lgcc $LIBS"
18593cat >conftest.$ac_ext <<_ACEOF
18594/* confdefs.h. */
18595_ACEOF
18596cat confdefs.h >>conftest.$ac_ext
18597cat >>conftest.$ac_ext <<_ACEOF
18598/* end confdefs.h. */
18599
18600/* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18603#ifdef __cplusplus
18604extern "C"
18605#endif
18606char __fixsfdi ();
18607int
18608main ()
18609{
18610return __fixsfdi ();
18611 ;
18612 return 0;
18613}
18614_ACEOF
18615rm -f conftest.$ac_objext conftest$ac_exeext
18616if { (ac_try="$ac_link"
18617case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620esac
18621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_link") 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
18629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18630 { (case "(($ac_try" in
18631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632 *) ac_try_echo=$ac_try;;
18633esac
18634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_try") 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; } &&
18639 { ac_try='test -s conftest$ac_exeext'
18640 { (case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18643esac
18644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_try") 2>&5
18646 ac_status=$?
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; }; then
18649 ac_cv_lib_gcc___fixsfdi=yes
18650else
18651 echo "$as_me: failed program was:" >&5
18652sed 's/^/| /' conftest.$ac_ext >&5
18653
18654 ac_cv_lib_gcc___fixsfdi=no
18655fi
18656
18657rm -f core conftest.err conftest.$ac_objext \
18658 conftest$ac_exeext conftest.$ac_ext
18659LIBS=$ac_check_lib_save_LIBS
18660fi
18661{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18662echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18663if test $ac_cv_lib_gcc___fixsfdi = yes; then
18664
18665cat >>confdefs.h <<\_ACEOF
18666#define HAVE___FIXSFDI 1
18667_ACEOF
18668
18669fi
18670
18671 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18672echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18673if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18675else
18676 ac_check_lib_save_LIBS=$LIBS
18677LIBS="-lgcc $LIBS"
18678cat >conftest.$ac_ext <<_ACEOF
18679/* confdefs.h. */
18680_ACEOF
18681cat confdefs.h >>conftest.$ac_ext
18682cat >>conftest.$ac_ext <<_ACEOF
18683/* end confdefs.h. */
18684
18685/* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18688#ifdef __cplusplus
18689extern "C"
18690#endif
18691char __floatdidf ();
18692int
18693main ()
18694{
18695return __floatdidf ();
18696 ;
18697 return 0;
18698}
18699_ACEOF
18700rm -f conftest.$ac_objext conftest$ac_exeext
18701if { (ac_try="$ac_link"
18702case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18705esac
18706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_link") 2>conftest.er1
18708 ac_status=$?
18709 grep -v '^ *+' conftest.er1 >conftest.err
18710 rm -f conftest.er1
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } &&
18724 { ac_try='test -s conftest$ac_exeext'
18725 { (case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728esac
18729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_try") 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_cv_lib_gcc___floatdidf=yes
18735else
18736 echo "$as_me: failed program was:" >&5
18737sed 's/^/| /' conftest.$ac_ext >&5
18738
18739 ac_cv_lib_gcc___floatdidf=no
18740fi
18741
18742rm -f core conftest.err conftest.$ac_objext \
18743 conftest$ac_exeext conftest.$ac_ext
18744LIBS=$ac_check_lib_save_LIBS
18745fi
18746{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18747echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18748if test $ac_cv_lib_gcc___floatdidf = yes; then
18749
18750cat >>confdefs.h <<\_ACEOF
18751#define HAVE___FLOATDIDF 1
18752_ACEOF
18753
18754fi
18755
18756 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18757echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18758if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18760else
18761 ac_check_lib_save_LIBS=$LIBS
18762LIBS="-lgcc $LIBS"
18763cat >conftest.$ac_ext <<_ACEOF
18764/* confdefs.h. */
18765_ACEOF
18766cat confdefs.h >>conftest.$ac_ext
18767cat >>conftest.$ac_ext <<_ACEOF
18768/* end confdefs.h. */
18769
18770/* Override any GCC internal prototype to avoid an error.
18771 Use char because int might match the return type of a GCC
18772 builtin and then its argument prototype would still apply. */
18773#ifdef __cplusplus
18774extern "C"
18775#endif
18776char __lshrdi3 ();
18777int
18778main ()
18779{
18780return __lshrdi3 ();
18781 ;
18782 return 0;
18783}
18784_ACEOF
18785rm -f conftest.$ac_objext conftest$ac_exeext
18786if { (ac_try="$ac_link"
18787case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790esac
18791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_link") 2>conftest.er1
18793 ac_status=$?
18794 grep -v '^ *+' conftest.er1 >conftest.err
18795 rm -f conftest.er1
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
18799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18800 { (case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18803esac
18804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_try") 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try='test -s conftest$ac_exeext'
18810 { (case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18813esac
18814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_try") 2>&5
18816 ac_status=$?
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; }; then
18819 ac_cv_lib_gcc___lshrdi3=yes
18820else
18821 echo "$as_me: failed program was:" >&5
18822sed 's/^/| /' conftest.$ac_ext >&5
18823
18824 ac_cv_lib_gcc___lshrdi3=no
18825fi
18826
18827rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18829LIBS=$ac_check_lib_save_LIBS
18830fi
18831{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18832echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18833if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18834
18835cat >>confdefs.h <<\_ACEOF
18836#define HAVE___LSHRDI3 1
18837_ACEOF
18838
18839fi
18840
18841 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18842echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18843if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845else
18846 ac_check_lib_save_LIBS=$LIBS
18847LIBS="-lgcc $LIBS"
18848cat >conftest.$ac_ext <<_ACEOF
18849/* confdefs.h. */
18850_ACEOF
18851cat confdefs.h >>conftest.$ac_ext
18852cat >>conftest.$ac_ext <<_ACEOF
18853/* end confdefs.h. */
18854
18855/* Override any GCC internal prototype to avoid an error.
18856 Use char because int might match the return type of a GCC
18857 builtin and then its argument prototype would still apply. */
18858#ifdef __cplusplus
18859extern "C"
18860#endif
18861char __moddi3 ();
18862int
18863main ()
18864{
18865return __moddi3 ();
18866 ;
18867 return 0;
18868}
18869_ACEOF
18870rm -f conftest.$ac_objext conftest$ac_exeext
18871if { (ac_try="$ac_link"
18872case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875esac
18876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_link") 2>conftest.er1
18878 ac_status=$?
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18885 { (case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18888esac
18889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_try") 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest$ac_exeext'
18895 { (case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898esac
18899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_cv_lib_gcc___moddi3=yes
18905else
18906 echo "$as_me: failed program was:" >&5
18907sed 's/^/| /' conftest.$ac_ext >&5
18908
18909 ac_cv_lib_gcc___moddi3=no
18910fi
18911
18912rm -f core conftest.err conftest.$ac_objext \
18913 conftest$ac_exeext conftest.$ac_ext
18914LIBS=$ac_check_lib_save_LIBS
18915fi
18916{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18917echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18918if test $ac_cv_lib_gcc___moddi3 = yes; then
18919
18920cat >>confdefs.h <<\_ACEOF
18921#define HAVE___MODDI3 1
18922_ACEOF
18923
18924fi
18925
18926 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18927echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18928if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930else
18931 ac_check_lib_save_LIBS=$LIBS
18932LIBS="-lgcc $LIBS"
18933cat >conftest.$ac_ext <<_ACEOF
18934/* confdefs.h. */
18935_ACEOF
18936cat confdefs.h >>conftest.$ac_ext
18937cat >>conftest.$ac_ext <<_ACEOF
18938/* end confdefs.h. */
18939
18940/* Override any GCC internal prototype to avoid an error.
18941 Use char because int might match the return type of a GCC
18942 builtin and then its argument prototype would still apply. */
18943#ifdef __cplusplus
18944extern "C"
18945#endif
18946char __udivdi3 ();
18947int
18948main ()
18949{
18950return __udivdi3 ();
18951 ;
18952 return 0;
18953}
18954_ACEOF
18955rm -f conftest.$ac_objext conftest$ac_exeext
18956if { (ac_try="$ac_link"
18957case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18960esac
18961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_link") 2>conftest.er1
18963 ac_status=$?
18964 grep -v '^ *+' conftest.er1 >conftest.err
18965 rm -f conftest.er1
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18970 { (case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973esac
18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_try") 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest$ac_exeext'
18980 { (case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18983esac
18984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_try") 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_cv_lib_gcc___udivdi3=yes
18990else
18991 echo "$as_me: failed program was:" >&5
18992sed 's/^/| /' conftest.$ac_ext >&5
18993
18994 ac_cv_lib_gcc___udivdi3=no
18995fi
18996
18997rm -f core conftest.err conftest.$ac_objext \
18998 conftest$ac_exeext conftest.$ac_ext
18999LIBS=$ac_check_lib_save_LIBS
19000fi
19001{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19002echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19003if test $ac_cv_lib_gcc___udivdi3 = yes; then
19004
19005cat >>confdefs.h <<\_ACEOF
19006#define HAVE___UDIVDI3 1
19007_ACEOF
19008
19009fi
19010
19011 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19012echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19013if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19015else
19016 ac_check_lib_save_LIBS=$LIBS
19017LIBS="-lgcc $LIBS"
19018cat >conftest.$ac_ext <<_ACEOF
19019/* confdefs.h. */
19020_ACEOF
19021cat confdefs.h >>conftest.$ac_ext
19022cat >>conftest.$ac_ext <<_ACEOF
19023/* end confdefs.h. */
19024
19025/* Override any GCC internal prototype to avoid an error.
19026 Use char because int might match the return type of a GCC
19027 builtin and then its argument prototype would still apply. */
19028#ifdef __cplusplus
19029extern "C"
19030#endif
19031char __umoddi3 ();
19032int
19033main ()
19034{
19035return __umoddi3 ();
19036 ;
19037 return 0;
19038}
19039_ACEOF
19040rm -f conftest.$ac_objext conftest$ac_exeext
19041if { (ac_try="$ac_link"
19042case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19045esac
19046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_link") 2>conftest.er1
19048 ac_status=$?
19049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19055 { (case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058esac
19059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_try") 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; } &&
19064 { ac_try='test -s conftest$ac_exeext'
19065 { (case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19068esac
19069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_try") 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19074 ac_cv_lib_gcc___umoddi3=yes
19075else
19076 echo "$as_me: failed program was:" >&5
19077sed 's/^/| /' conftest.$ac_ext >&5
19078
19079 ac_cv_lib_gcc___umoddi3=no
19080fi
19081
19082rm -f core conftest.err conftest.$ac_objext \
19083 conftest$ac_exeext conftest.$ac_ext
19084LIBS=$ac_check_lib_save_LIBS
19085fi
19086{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19087echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19088if test $ac_cv_lib_gcc___umoddi3 = yes; then
19089
19090cat >>confdefs.h <<\_ACEOF
19091#define HAVE___UMODDI3 1
19092_ACEOF
19093
19094fi
19095
19096
19097 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19098echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19099if test "${ac_cv_lib_gcc___main+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19101else
19102 ac_check_lib_save_LIBS=$LIBS
19103LIBS="-lgcc $LIBS"
19104cat >conftest.$ac_ext <<_ACEOF
19105/* confdefs.h. */
19106_ACEOF
19107cat confdefs.h >>conftest.$ac_ext
19108cat >>conftest.$ac_ext <<_ACEOF
19109/* end confdefs.h. */
19110
19111/* Override any GCC internal prototype to avoid an error.
19112 Use char because int might match the return type of a GCC
19113 builtin and then its argument prototype would still apply. */
19114#ifdef __cplusplus
19115extern "C"
19116#endif
19117char __main ();
19118int
19119main ()
19120{
19121return __main ();
19122 ;
19123 return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext conftest$ac_exeext
19127if { (ac_try="$ac_link"
19128case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131esac
19132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_link") 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144esac
19145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest$ac_exeext'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154esac
19155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_lib_gcc___main=yes
19161else
19162 echo "$as_me: failed program was:" >&5
19163sed 's/^/| /' conftest.$ac_ext >&5
19164
19165 ac_cv_lib_gcc___main=no
19166fi
19167
19168rm -f core conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170LIBS=$ac_check_lib_save_LIBS
19171fi
19172{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19173echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19174if test $ac_cv_lib_gcc___main = yes; then
19175
19176cat >>confdefs.h <<\_ACEOF
19177#define HAVE___MAIN 1
19178_ACEOF
19179
19180fi
19181
19182 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19183echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19184if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186else
19187 ac_check_lib_save_LIBS=$LIBS
19188LIBS="-lgcc $LIBS"
19189cat >conftest.$ac_ext <<_ACEOF
19190/* confdefs.h. */
19191_ACEOF
19192cat confdefs.h >>conftest.$ac_ext
19193cat >>conftest.$ac_ext <<_ACEOF
19194/* end confdefs.h. */
19195
19196/* Override any GCC internal prototype to avoid an error.
19197 Use char because int might match the return type of a GCC
19198 builtin and then its argument prototype would still apply. */
19199#ifdef __cplusplus
19200extern "C"
19201#endif
19202char __cmpdi2 ();
19203int
19204main ()
19205{
19206return __cmpdi2 ();
19207 ;
19208 return 0;
19209}
19210_ACEOF
19211rm -f conftest.$ac_objext conftest$ac_exeext
19212if { (ac_try="$ac_link"
19213case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216esac
19217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_link") 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19226 { (case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19229esac
19230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_try") 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; } &&
19235 { ac_try='test -s conftest$ac_exeext'
19236 { (case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19239esac
19240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_lib_gcc___cmpdi2=yes
19246else
19247 echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 ac_cv_lib_gcc___cmpdi2=no
19251fi
19252
19253rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255LIBS=$ac_check_lib_save_LIBS
19256fi
19257{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19258echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19259if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19260
19261cat >>confdefs.h <<\_ACEOF
19262#define HAVE___CMPDI2 1
19263_ACEOF
19264
19265fi
19266
19267fi
19268
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019269if test "$llvm_cv_os_type" = "MingW" ; then
19270 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19271echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19272 cat >conftest.$ac_ext <<_ACEOF
19273#include <windows.h>
19274#include <imagehlp.h>
19275extern void foo(PENUMLOADED_MODULES_CALLBACK);
19276extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19277_ACEOF
19278rm -f conftest.$ac_objext
19279if { (ac_try="$ac_compile"
19280case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19283esac
19284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_compile") 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296esac
19297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306esac
19307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312
19313 { echo "$as_me:$LINENO: result: yes" >&5
19314echo "${ECHO_T}yes" >&6; }
19315 llvm_cv_win32_elmcb_pcstr="PCSTR"
19316
19317else
19318 echo "$as_me: failed program was:" >&5
19319sed 's/^/| /' conftest.$ac_ext >&5
19320
19321
19322 { echo "$as_me:$LINENO: result: no" >&5
19323echo "${ECHO_T}no" >&6; }
19324 llvm_cv_win32_elmcb_pcstr="PSTR"
19325
19326fi
19327
19328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329
19330cat >>confdefs.h <<_ACEOF
19331#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19332_ACEOF
19333
19334fi
19335
Torok Edwin871384f2010-01-26 08:50:50 +000019336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019337{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19338echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19339if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019341else
Reid Spencera773bd52006-08-04 18:18:08 +000019342 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019343ac_cpp='$CXXCPP $CPPFLAGS'
19344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019348 cat >conftest.$ac_ext <<_ACEOF
19349/* confdefs.h. */
19350_ACEOF
19351cat confdefs.h >>conftest.$ac_ext
19352cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019353/* end confdefs.h. */
19354#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019355int
19356main ()
19357{
19358float f; isnan(f);
19359 ;
19360 return 0;
19361}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019363rm -f conftest.$ac_objext
19364if { (ac_try="$ac_compile"
19365case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19368esac
19369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_compile") 2>conftest.er1
19371 ac_status=$?
19372 grep -v '^ *+' conftest.er1 >conftest.err
19373 rm -f conftest.er1
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19381esac
19382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391esac
19392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019397 ac_cv_func_isnan_in_math_h=yes
19398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019399 echo "$as_me: failed program was:" >&5
19400sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019404
Reid Spencera773bd52006-08-04 18:18:08 +000019405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019406 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019407ac_cpp='$CPP $CPPFLAGS'
19408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019413{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19414echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019415
19416
19417if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019419cat >>confdefs.h <<\_ACEOF
19420#define HAVE_ISNAN_IN_MATH_H 1
19421_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019422
Reid Spencerabec8f92004-10-27 23:03:44 +000019423fi
19424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019425{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19426echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19427if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019429else
Reid Spencera773bd52006-08-04 18:18:08 +000019430 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019431ac_cpp='$CXXCPP $CPPFLAGS'
19432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019436 cat >conftest.$ac_ext <<_ACEOF
19437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019441/* end confdefs.h. */
19442#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019443int
19444main ()
19445{
19446float f; isnan(f);
19447 ;
19448 return 0;
19449}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019450_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019451rm -f conftest.$ac_objext
19452if { (ac_try="$ac_compile"
19453case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19456esac
19457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_compile") 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19466 { (case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469esac
19470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_try") 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest.$ac_objext'
19476 { (case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19479esac
19480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_try") 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019485 ac_cv_func_isnan_in_cmath=yes
19486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019487 echo "$as_me: failed program was:" >&5
19488sed 's/^/| /' conftest.$ac_ext >&5
19489
19490 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019492
Reid Spencera773bd52006-08-04 18:18:08 +000019493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019494 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019495ac_cpp='$CPP $CPPFLAGS'
19496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19498ac_compiler_gnu=$ac_cv_c_compiler_gnu
19499
19500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019501{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19502echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019503
19504if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019506cat >>confdefs.h <<\_ACEOF
19507#define HAVE_ISNAN_IN_CMATH 1
19508_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019509
Reid Spencerabec8f92004-10-27 23:03:44 +000019510fi
19511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019512{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19513echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19514if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019516else
Reid Spencera773bd52006-08-04 18:18:08 +000019517 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019518ac_cpp='$CXXCPP $CPPFLAGS'
19519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019523 cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019528/* end confdefs.h. */
19529#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019530int
19531main ()
19532{
19533float f; std::isnan(f);
19534 ;
19535 return 0;
19536}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019537_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019538rm -f conftest.$ac_objext
19539if { (ac_try="$ac_compile"
19540case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543esac
19544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_compile") 2>conftest.er1
19546 ac_status=$?
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556esac
19557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566esac
19567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_try") 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019572 ac_cv_func_std_isnan_in_cmath=yes
19573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019574 echo "$as_me: failed program was:" >&5
19575sed 's/^/| /' conftest.$ac_ext >&5
19576
19577 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019578fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019579
Reid Spencera773bd52006-08-04 18:18:08 +000019580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019581 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019582ac_cpp='$CPP $CPPFLAGS'
19583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585ac_compiler_gnu=$ac_cv_c_compiler_gnu
19586
19587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019588{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19589echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019590
19591if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019593cat >>confdefs.h <<\_ACEOF
19594#define HAVE_STD_ISNAN_IN_CMATH 1
19595_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019596
Reid Spencerabec8f92004-10-27 23:03:44 +000019597fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019598
19599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019600{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19601echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19602if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019604else
Reid Spencera773bd52006-08-04 18:18:08 +000019605 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019606ac_cpp='$CXXCPP $CPPFLAGS'
19607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019611 cat >conftest.$ac_ext <<_ACEOF
19612/* confdefs.h. */
19613_ACEOF
19614cat confdefs.h >>conftest.$ac_ext
19615cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019616/* end confdefs.h. */
19617#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019618int
19619main ()
19620{
19621float f; isinf(f);
19622 ;
19623 return 0;
19624}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019625_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019626rm -f conftest.$ac_objext
19627if { (ac_try="$ac_compile"
19628case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631esac
19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_compile") 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644esac
19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest.$ac_objext'
19651 { (case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19654esac
19655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_try") 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019660 ac_cv_func_isinf_in_math_h=yes
19661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019662 echo "$as_me: failed program was:" >&5
19663sed 's/^/| /' conftest.$ac_ext >&5
19664
19665 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019667
Reid Spencera773bd52006-08-04 18:18:08 +000019668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019669 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019670ac_cpp='$CPP $CPPFLAGS'
19671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673ac_compiler_gnu=$ac_cv_c_compiler_gnu
19674
19675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19677echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019678
19679if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019681cat >>confdefs.h <<\_ACEOF
19682#define HAVE_ISINF_IN_MATH_H 1
19683_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019684
Reid Spencerabec8f92004-10-27 23:03:44 +000019685fi
19686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019687{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19688echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19689if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019691else
Reid Spencera773bd52006-08-04 18:18:08 +000019692 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019693ac_cpp='$CXXCPP $CPPFLAGS'
19694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019698 cat >conftest.$ac_ext <<_ACEOF
19699/* confdefs.h. */
19700_ACEOF
19701cat confdefs.h >>conftest.$ac_ext
19702cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019703/* end confdefs.h. */
19704#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019705int
19706main ()
19707{
19708float f; isinf(f);
19709 ;
19710 return 0;
19711}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019713rm -f conftest.$ac_objext
19714if { (ac_try="$ac_compile"
19715case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718esac
19719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_compile") 2>conftest.er1
19721 ac_status=$?
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } &&
19727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19728 { (case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19731esac
19732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_try") 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } &&
19737 { ac_try='test -s conftest.$ac_objext'
19738 { (case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19741esac
19742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_try") 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019747 ac_cv_func_isinf_in_cmath=yes
19748else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019749 echo "$as_me: failed program was:" >&5
19750sed 's/^/| /' conftest.$ac_ext >&5
19751
19752 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019754
Reid Spencera773bd52006-08-04 18:18:08 +000019755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019756 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019757ac_cpp='$CPP $CPPFLAGS'
19758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760ac_compiler_gnu=$ac_cv_c_compiler_gnu
19761
19762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019763{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19764echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019765
19766if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019768cat >>confdefs.h <<\_ACEOF
19769#define HAVE_ISINF_IN_CMATH 1
19770_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019771
Reid Spencerabec8f92004-10-27 23:03:44 +000019772fi
19773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019774{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19775echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19776if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019778else
Reid Spencera773bd52006-08-04 18:18:08 +000019779 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019780ac_cpp='$CXXCPP $CPPFLAGS'
19781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019785 cat >conftest.$ac_ext <<_ACEOF
19786/* confdefs.h. */
19787_ACEOF
19788cat confdefs.h >>conftest.$ac_ext
19789cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019790/* end confdefs.h. */
19791#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019792int
19793main ()
19794{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019795float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019796 ;
19797 return 0;
19798}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019799_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019800rm -f conftest.$ac_objext
19801if { (ac_try="$ac_compile"
19802case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805esac
19806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_compile") 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19815 { (case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818esac
19819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_try") 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest.$ac_objext'
19825 { (case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19828esac
19829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_try") 2>&5
19831 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019834 ac_cv_func_std_isinf_in_cmath=yes
19835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019836 echo "$as_me: failed program was:" >&5
19837sed 's/^/| /' conftest.$ac_ext >&5
19838
19839 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019841
Reid Spencera773bd52006-08-04 18:18:08 +000019842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019843 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019844ac_cpp='$CPP $CPPFLAGS'
19845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847ac_compiler_gnu=$ac_cv_c_compiler_gnu
19848
19849fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019850{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19851echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019852
19853if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019855cat >>confdefs.h <<\_ACEOF
19856#define HAVE_STD_ISINF_IN_CMATH 1
19857_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019858
Reid Spencerabec8f92004-10-27 23:03:44 +000019859fi
19860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019861{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19862echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19863if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019865else
Reid Spencera773bd52006-08-04 18:18:08 +000019866 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019867ac_cpp='$CXXCPP $CPPFLAGS'
19868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019872 cat >conftest.$ac_ext <<_ACEOF
19873/* confdefs.h. */
19874_ACEOF
19875cat confdefs.h >>conftest.$ac_ext
19876cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019877/* end confdefs.h. */
19878#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019879int
19880main ()
19881{
19882float f; finite(f);
19883 ;
19884 return 0;
19885}
Brian Gaeked59a6472004-07-21 03:33:58 +000019886_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019887rm -f conftest.$ac_objext
19888if { (ac_try="$ac_compile"
19889case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19892esac
19893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_compile") 2>conftest.er1
19895 ac_status=$?
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } &&
19901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19902 { (case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19905esac
19906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_try") 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest.$ac_objext'
19912 { (case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19915esac
19916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_try") 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019921 ac_cv_func_finite_in_ieeefp_h=yes
19922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019923 echo "$as_me: failed program was:" >&5
19924sed 's/^/| /' conftest.$ac_ext >&5
19925
19926 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019928
Reid Spencera773bd52006-08-04 18:18:08 +000019929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019930 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019931ac_cpp='$CPP $CPPFLAGS'
19932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934ac_compiler_gnu=$ac_cv_c_compiler_gnu
19935
19936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019937{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19938echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019939
Brian Gaeke6802b552004-10-28 05:06:45 +000019940if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019942cat >>confdefs.h <<\_ACEOF
19943#define HAVE_FINITE_IN_IEEEFP_H 1
19944_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019945
Reid Spencerabec8f92004-10-27 23:03:44 +000019946fi
19947
19948
19949
Reid Spencer30fe5262007-01-20 07:48:49 +000019950if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019951
19952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019953for ac_header in stdlib.h unistd.h
19954do
19955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19961fi
19962ac_res=`eval echo '${'$as_ac_Header'}'`
19963 { echo "$as_me:$LINENO: result: $ac_res" >&5
19964echo "${ECHO_T}$ac_res" >&6; }
19965else
19966 # Is the header compilable?
19967{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19969cat >conftest.$ac_ext <<_ACEOF
19970/* confdefs.h. */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h. */
19975$ac_includes_default
19976#include <$ac_header>
19977_ACEOF
19978rm -f conftest.$ac_objext
19979if { (ac_try="$ac_compile"
19980case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983esac
19984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
19992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19993 { (case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996esac
19997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_try") 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
20002 { ac_try='test -s conftest.$ac_objext'
20003 { (case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20006esac
20007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20008 (eval "$ac_try") 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_header_compiler=yes
20013else
20014 echo "$as_me: failed program was:" >&5
20015sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020017 ac_header_compiler=no
20018fi
20019
20020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20022echo "${ECHO_T}$ac_header_compiler" >&6; }
20023
20024# Is the header present?
20025{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20027cat >conftest.$ac_ext <<_ACEOF
20028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
20033#include <$ac_header>
20034_ACEOF
20035if { (ac_try="$ac_cpp conftest.$ac_ext"
20036case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20039esac
20040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } >/dev/null; then
20048 if test -s conftest.err; then
20049 ac_cpp_err=$ac_c_preproc_warn_flag
20050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20051 else
20052 ac_cpp_err=
20053 fi
20054else
20055 ac_cpp_err=yes
20056fi
20057if test -z "$ac_cpp_err"; then
20058 ac_header_preproc=yes
20059else
20060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 ac_header_preproc=no
20064fi
20065
20066rm -f conftest.err conftest.$ac_ext
20067{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20068echo "${ECHO_T}$ac_header_preproc" >&6; }
20069
20070# So? What about this header?
20071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20072 yes:no: )
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20077 ac_header_preproc=yes
20078 ;;
20079 no:yes:* )
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20092 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020093## ------------------------------------ ##
20094## Report this to http://llvm.org/bugs/ ##
20095## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020096_ASBOX
20097 ) | sed "s/^/$as_me: WARNING: /" >&2
20098 ;;
20099esac
20100{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104else
20105 eval "$as_ac_Header=\$ac_header_preproc"
20106fi
20107ac_res=`eval echo '${'$as_ac_Header'}'`
20108 { echo "$as_me:$LINENO: result: $ac_res" >&5
20109echo "${ECHO_T}$ac_res" >&6; }
20110
20111fi
20112if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020113 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020115_ACEOF
20116
20117fi
20118
20119done
20120
20121
20122for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020123do
20124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20129else
20130 cat >conftest.$ac_ext <<_ACEOF
20131/* confdefs.h. */
20132_ACEOF
20133cat confdefs.h >>conftest.$ac_ext
20134cat >>conftest.$ac_ext <<_ACEOF
20135/* end confdefs.h. */
20136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20138#define $ac_func innocuous_$ac_func
20139
20140/* System header to define __stub macros and hopefully few prototypes,
20141 which can conflict with char $ac_func (); below.
20142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20143 <limits.h> exists even on freestanding compilers. */
20144
20145#ifdef __STDC__
20146# include <limits.h>
20147#else
20148# include <assert.h>
20149#endif
20150
20151#undef $ac_func
20152
20153/* Override any GCC internal prototype to avoid an error.
20154 Use char because int might match the return type of a GCC
20155 builtin and then its argument prototype would still apply. */
20156#ifdef __cplusplus
20157extern "C"
20158#endif
20159char $ac_func ();
20160/* The GNU C library defines this for functions which it implements
20161 to always fail with ENOSYS. Some functions are actually named
20162 something starting with __ and the normal name is an alias. */
20163#if defined __stub_$ac_func || defined __stub___$ac_func
20164choke me
20165#endif
20166
20167int
20168main ()
20169{
20170return $ac_func ();
20171 ;
20172 return 0;
20173}
20174_ACEOF
20175rm -f conftest.$ac_objext conftest$ac_exeext
20176if { (ac_try="$ac_link"
20177case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20180esac
20181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_link") 2>conftest.er1
20183 ac_status=$?
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20190 { (case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20193esac
20194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_try") 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest$ac_exeext'
20200 { (case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203esac
20204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_try") 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 eval "$as_ac_var=yes"
20210else
20211 echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
20214 eval "$as_ac_var=no"
20215fi
20216
20217rm -f core conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
20219fi
20220ac_res=`eval echo '${'$as_ac_var'}'`
20221 { echo "$as_me:$LINENO: result: $ac_res" >&5
20222echo "${ECHO_T}$ac_res" >&6; }
20223if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020224 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020226_ACEOF
20227
20228fi
20229done
20230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020231{ echo "$as_me:$LINENO: checking for working mmap" >&5
20232echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20233if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020236 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020237 ac_cv_func_mmap_fixed_mapped=no
20238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020239 cat >conftest.$ac_ext <<_ACEOF
20240/* confdefs.h. */
20241_ACEOF
20242cat confdefs.h >>conftest.$ac_ext
20243cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020245$ac_includes_default
20246/* malloc might have been renamed as rpl_malloc. */
20247#undef malloc
20248
20249/* Thanks to Mike Haertel and Jim Avera for this test.
20250 Here is a matrix of mmap possibilities:
20251 mmap private not fixed
20252 mmap private fixed at somewhere currently unmapped
20253 mmap private fixed at somewhere already mapped
20254 mmap shared not fixed
20255 mmap shared fixed at somewhere currently unmapped
20256 mmap shared fixed at somewhere already mapped
20257 For private mappings, we should verify that changes cannot be read()
20258 back from the file, nor mmap's back from the file at a different
20259 address. (There have been systems where private was not correctly
20260 implemented like the infamous i386 svr4.0, and systems where the
20261 VM page cache was not coherent with the file system buffer cache
20262 like early versions of FreeBSD and possibly contemporary NetBSD.)
20263 For shared mappings, we should conversely verify that changes get
20264 propagated back to all the places they're supposed to be.
20265
20266 Grep wants private fixed already mapped.
20267 The main things grep needs to know about mmap are:
20268 * does it exist and is it safe to write into the mmap'd area
20269 * how to use it (BSD variants) */
20270
20271#include <fcntl.h>
20272#include <sys/mman.h>
20273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020275char *malloc ();
20276#endif
20277
20278/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020279#if !HAVE_GETPAGESIZE
20280/* Assume that all systems that can run configure have sys/param.h. */
20281# if !HAVE_SYS_PARAM_H
20282# define HAVE_SYS_PARAM_H 1
20283# endif
20284
John Criswell7a73b802003-06-30 21:59:07 +000020285# ifdef _SC_PAGESIZE
20286# define getpagesize() sysconf(_SC_PAGESIZE)
20287# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020288# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020289# include <sys/param.h>
20290# ifdef EXEC_PAGESIZE
20291# define getpagesize() EXEC_PAGESIZE
20292# else /* no EXEC_PAGESIZE */
20293# ifdef NBPG
20294# define getpagesize() NBPG * CLSIZE
20295# ifndef CLSIZE
20296# define CLSIZE 1
20297# endif /* no CLSIZE */
20298# else /* no NBPG */
20299# ifdef NBPC
20300# define getpagesize() NBPC
20301# else /* no NBPC */
20302# ifdef PAGESIZE
20303# define getpagesize() PAGESIZE
20304# endif /* PAGESIZE */
20305# endif /* no NBPC */
20306# endif /* no NBPG */
20307# endif /* no EXEC_PAGESIZE */
20308# else /* no HAVE_SYS_PARAM_H */
20309# define getpagesize() 8192 /* punt totally */
20310# endif /* no HAVE_SYS_PARAM_H */
20311# endif /* no _SC_PAGESIZE */
20312
20313#endif /* no HAVE_GETPAGESIZE */
20314
20315int
20316main ()
20317{
20318 char *data, *data2, *data3;
20319 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020321
20322 pagesize = getpagesize ();
20323
20324 /* First, make a file with some known garbage in it. */
20325 data = (char *) malloc (pagesize);
20326 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020327 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020328 for (i = 0; i < pagesize; ++i)
20329 *(data + i) = rand ();
20330 umask (0);
20331 fd = creat ("conftest.mmap", 0600);
20332 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020333 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020334 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020335 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020336 close (fd);
20337
20338 /* Next, try to mmap the file at a fixed address which already has
20339 something else allocated at it. If we can, also make sure that
20340 we see the same garbage. */
20341 fd = open ("conftest.mmap", O_RDWR);
20342 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020343 return 1;
20344 data2 = (char *) malloc (2 * pagesize);
20345 if (!data2)
20346 return 1;
20347 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020348 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020349 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020350 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020351 for (i = 0; i < pagesize; ++i)
20352 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020353 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020354
20355 /* Finally, make sure that changes to the mapped area do not
20356 percolate back to the file as seen by read(). (This is a bug on
20357 some variants of i386 svr4.0.) */
20358 for (i = 0; i < pagesize; ++i)
20359 *(data2 + i) = *(data2 + i) + 1;
20360 data3 = (char *) malloc (pagesize);
20361 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020363 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020364 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020365 for (i = 0; i < pagesize; ++i)
20366 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020368 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020369 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020370}
20371_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020372rm -f conftest$ac_exeext
20373if { (ac_try="$ac_link"
20374case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377esac
20378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_link") 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20383 { (case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20386esac
20387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020392 ac_cv_func_mmap_fixed_mapped=yes
20393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394 echo "$as_me: program exited with status $ac_status" >&5
20395echo "$as_me: failed program was:" >&5
20396sed 's/^/| /' conftest.$ac_ext >&5
20397
20398( exit $ac_status )
20399ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020401rm -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 +000020402fi
Reid Spencera773bd52006-08-04 18:18:08 +000020403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020404
John Criswell7a73b802003-06-30 21:59:07 +000020405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020406{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20407echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020408if test $ac_cv_func_mmap_fixed_mapped = yes; then
20409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410cat >>confdefs.h <<\_ACEOF
20411#define HAVE_MMAP 1
20412_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020413
20414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020415rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020417 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20418echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20419if test "${ac_cv_func_mmap_file+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020421else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020422 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020423ac_cpp='$CPP $CPPFLAGS'
20424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426ac_compiler_gnu=$ac_cv_c_compiler_gnu
20427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020428 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020429 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020431 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020433 /* confdefs.h. */
20434_ACEOF
20435cat confdefs.h >>conftest.$ac_ext
20436cat >>conftest.$ac_ext <<_ACEOF
20437/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020438
John Criswell7a73b802003-06-30 21:59:07 +000020439#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020440#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020441#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020442
20443int
20444main ()
20445{
John Criswell7a73b802003-06-30 21:59:07 +000020446
20447 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020448 fd = creat ("foo",0777);
20449 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20450 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020451 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020452 ;
20453 return 0;
20454}
John Criswell7a73b802003-06-30 21:59:07 +000020455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020456rm -f 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>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20467 { (case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20470esac
20471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_try") 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020476 ac_cv_func_mmap_file=yes
20477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020478 echo "$as_me: program exited with status $ac_status" >&5
20479echo "$as_me: failed program was:" >&5
20480sed 's/^/| /' conftest.$ac_ext >&5
20481
20482( exit $ac_status )
20483ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020485rm -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 +000020486fi
Reid Spencera773bd52006-08-04 18:18:08 +000020487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020488
John Criswell7a73b802003-06-30 21:59:07 +000020489 ac_ext=c
20490ac_cpp='$CPP $CPPFLAGS'
20491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493ac_compiler_gnu=$ac_cv_c_compiler_gnu
20494
20495
20496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020497{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20498echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020499if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020501cat >>confdefs.h <<\_ACEOF
20502#define HAVE_MMAP_FILE
20503_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020504
20505 MMAP_FILE=yes
20506
20507fi
20508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020509 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20510echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20511if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020513else
Reid Spencer582a23c2004-12-29 07:07:57 +000020514 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020515 ac_cv_need_dev_zero_for_mmap=yes
20516 else
20517 ac_cv_need_dev_zero_for_mmap=no
20518 fi
20519
20520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020521{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20522echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020523if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020525cat >>confdefs.h <<\_ACEOF
20526#define NEED_DEV_ZERO_FOR_MMAP 1
20527_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020528
20529fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020530
Reid Spencer30fe5262007-01-20 07:48:49 +000020531 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20532 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20534echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020535 fi
20536 if test "$ac_cv_func_mmap_file" = "no"
20537 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020538 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20539echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020540 fi
John Criswellb13092b2003-07-22 21:00:24 +000020541fi
John Criswell7a73b802003-06-30 21:59:07 +000020542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020543{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20544echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020545ac_ext=cpp
20546ac_cpp='$CXXCPP $CPPFLAGS'
20547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020551cat >conftest.$ac_ext <<_ACEOF
20552/* confdefs.h. */
20553_ACEOF
20554cat confdefs.h >>conftest.$ac_ext
20555cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020556/* end confdefs.h. */
20557int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020558 volatile unsigned long val = 1;
20559 __sync_synchronize();
20560 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020561 __sync_add_and_fetch(&val, 1);
20562 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020563 return 0;
20564 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020565
20566_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020567rm -f conftest.$ac_objext conftest$ac_exeext
20568if { (ac_try="$ac_link"
20569case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572esac
20573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_link") 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20582 { (case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20585esac
20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_try") 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest$ac_exeext'
20592 { (case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20595esac
20596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_try") 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020601 ac_ext=c
20602ac_cpp='$CPP $CPPFLAGS'
20603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20605ac_compiler_gnu=$ac_cv_c_compiler_gnu
20606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020607 { echo "$as_me:$LINENO: result: yes" >&5
20608echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020610cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020611#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020612_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020613
Owen Andersond4b272b2009-05-18 23:58:51 +000020614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020615 echo "$as_me: failed program was:" >&5
20616sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020618 { echo "$as_me:$LINENO: result: no" >&5
20619echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020621cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020622#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020623_ACEOF
20624
20625 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20626echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020628
Owen Andersond4b272b2009-05-18 23:58:51 +000020629rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020630 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020631
John Criswell7a73b802003-06-30 21:59:07 +000020632
Nick Lewycky4372e692009-09-29 06:18:23 +000020633if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020634 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20635echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20636if test "${llvm_cv_linux_mixed+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020638else
20639 ac_ext=c
20640ac_cpp='$CPP $CPPFLAGS'
20641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20643ac_compiler_gnu=$ac_cv_c_compiler_gnu
20644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020645 cat >conftest.$ac_ext <<_ACEOF
20646/* confdefs.h. */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020650/* end confdefs.h. */
20651#ifndef __x86_64__
20652 error: Not x86-64 even if uname says so!
20653 #endif
20654
20655int
20656main ()
20657{
20658
20659 ;
20660 return 0;
20661}
20662_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020663rm -f conftest.$ac_objext
20664if { (ac_try="$ac_compile"
20665case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20668esac
20669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_compile") 2>conftest.er1
20671 ac_status=$?
20672 grep -v '^ *+' conftest.er1 >conftest.err
20673 rm -f conftest.er1
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20678 { (case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681esac
20682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_try") 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; } &&
20687 { ac_try='test -s conftest.$ac_objext'
20688 { (case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20691esac
20692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_try") 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020697 llvm_cv_linux_mixed=no
20698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020699 echo "$as_me: failed program was:" >&5
20700sed 's/^/| /' conftest.$ac_ext >&5
20701
20702 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704
Nick Lewycky4372e692009-09-29 06:18:23 +000020705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20706 ac_ext=c
20707ac_cpp='$CPP $CPPFLAGS'
20708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710ac_compiler_gnu=$ac_cv_c_compiler_gnu
20711
20712
20713fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020714{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20715echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020716
20717 if test "$llvm_cv_linux_mixed" = "yes"; then
20718 llvm_cv_target_arch="x86"
20719 ARCH="x86"
20720 fi
20721fi
20722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020723
Reid Spencer9372f152007-07-30 20:13:24 +000020724for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020725do
20726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20727{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20729if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20731else
20732 cat >conftest.$ac_ext <<_ACEOF
20733/* confdefs.h. */
20734_ACEOF
20735cat confdefs.h >>conftest.$ac_ext
20736cat >>conftest.$ac_ext <<_ACEOF
20737/* end confdefs.h. */
20738/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20740#define $ac_func innocuous_$ac_func
20741
20742/* System header to define __stub macros and hopefully few prototypes,
20743 which can conflict with char $ac_func (); below.
20744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20745 <limits.h> exists even on freestanding compilers. */
20746
20747#ifdef __STDC__
20748# include <limits.h>
20749#else
20750# include <assert.h>
20751#endif
20752
20753#undef $ac_func
20754
20755/* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20758#ifdef __cplusplus
20759extern "C"
20760#endif
20761char $ac_func ();
20762/* The GNU C library defines this for functions which it implements
20763 to always fail with ENOSYS. Some functions are actually named
20764 something starting with __ and the normal name is an alias. */
20765#if defined __stub_$ac_func || defined __stub___$ac_func
20766choke me
20767#endif
20768
20769int
20770main ()
20771{
20772return $ac_func ();
20773 ;
20774 return 0;
20775}
20776_ACEOF
20777rm -f conftest.$ac_objext conftest$ac_exeext
20778if { (ac_try="$ac_link"
20779case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20782esac
20783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_link") 2>conftest.er1
20785 ac_status=$?
20786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } &&
20791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20792 { (case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20795esac
20796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_try") 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest$ac_exeext'
20802 { (case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805esac
20806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_try") 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 eval "$as_ac_var=yes"
20812else
20813 echo "$as_me: failed program was:" >&5
20814sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 eval "$as_ac_var=no"
20817fi
20818
20819rm -f core conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20821fi
20822ac_res=`eval echo '${'$as_ac_var'}'`
20823 { echo "$as_me:$LINENO: result: $ac_res" >&5
20824echo "${ECHO_T}$ac_res" >&6; }
20825if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020826 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020828_ACEOF
20829
20830fi
20831done
20832
20833
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020834SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020835
20836
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020837SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20838
20839
Jeff Cohen28783c32007-01-12 18:22:38 +000020840if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020841 prefix="/usr/local"
20842fi
Reid Spencere9de0912004-08-20 09:03:57 +000020843eval LLVM_PREFIX="${prefix}";
20844eval LLVM_BINDIR="${prefix}/bin";
20845eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020846eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020847eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020848eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020849eval LLVM_INCLUDEDIR="${prefix}/include";
20850eval LLVM_INFODIR="${prefix}/info";
20851eval LLVM_MANDIR="${prefix}/man";
20852LLVM_CONFIGTIME=`date`
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000020864if test "${ENABLE_TIMESTAMPS}" = "0"; then
20865 LLVM_CONFIGTIME="(timestamp not enabled)"
20866fi
20867
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020868
Reid Spencere9de0912004-08-20 09:03:57 +000020869cat >>confdefs.h <<_ACEOF
20870#define LLVM_PREFIX "$LLVM_PREFIX"
20871_ACEOF
20872
20873
20874cat >>confdefs.h <<_ACEOF
20875#define LLVM_BINDIR "$LLVM_BINDIR"
20876_ACEOF
20877
20878
20879cat >>confdefs.h <<_ACEOF
20880#define LLVM_LIBDIR "$LLVM_LIBDIR"
20881_ACEOF
20882
20883
20884cat >>confdefs.h <<_ACEOF
20885#define LLVM_DATADIR "$LLVM_DATADIR"
20886_ACEOF
20887
20888
20889cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020890#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020891_ACEOF
20892
20893
20894cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020895#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020896_ACEOF
20897
20898
20899cat >>confdefs.h <<_ACEOF
20900#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20901_ACEOF
20902
20903
20904cat >>confdefs.h <<_ACEOF
20905#define LLVM_INFODIR "$LLVM_INFODIR"
20906_ACEOF
20907
20908
20909cat >>confdefs.h <<_ACEOF
20910#define LLVM_MANDIR "$LLVM_MANDIR"
20911_ACEOF
20912
20913
20914cat >>confdefs.h <<_ACEOF
20915#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20916_ACEOF
20917
20918
Eric Christopher790e11c2007-12-01 00:34:39 +000020919cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000020920#define LLVM_HOSTTRIPLE "$host"
20921_ACEOF
20922
20923
20924cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020925#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020926_ACEOF
20927
20928
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020929if test "$BINDINGS_TO_BUILD" = auto ; then
20930 BINDINGS_TO_BUILD=""
20931 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20932 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20933 fi
20934fi
20935BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20936
20937
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020938ALL_BINDINGS=ocaml
20939
20940
Gordon Henriksenf0915682007-10-02 16:42:22 +000020941binding_prereqs_failed=0
20942for a_binding in $BINDINGS_TO_BUILD ; do
20943 case "$a_binding" in
20944 ocaml)
20945 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020946 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20947echo "$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 +000020948 binding_prereqs_failed=1
20949 fi
20950 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020951 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20952echo "$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 +000020953 binding_prereqs_failed=1
20954 fi
20955 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020956 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20957echo "$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 +000020958 fi
20959 if test "x$with_ocaml_libdir" != xauto ; then
20960 OCAML_LIBDIR=$with_ocaml_libdir
20961
20962 else
20963 ocaml_stdlib="`"$OCAMLC" -where`"
20964 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20965 then
20966 # ocaml stdlib is beneath our prefix; use stdlib
20967 OCAML_LIBDIR=$ocaml_stdlib
20968
20969 else
20970 # ocaml stdlib is outside our prefix; use libdir/ocaml
20971 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20972
20973 fi
20974 fi
20975 ;;
20976 esac
20977done
20978if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020979 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20980echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20981 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020982fi
20983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020984{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20985echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20986if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020988else
20989 ac_ext=cpp
20990ac_cpp='$CXXCPP $CPPFLAGS'
20991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20994
20995 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000020996 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020997 cat >conftest.$ac_ext <<_ACEOF
20998/* confdefs.h. */
20999_ACEOF
21000cat confdefs.h >>conftest.$ac_ext
21001cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021002/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021003template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021004int
21005main ()
21006{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021007X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021008 ;
21009 return 0;
21010}
21011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021012rm -f conftest.$ac_objext
21013if { (ac_try="$ac_compile"
21014case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21017esac
21018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_compile") 2>conftest.er1
21020 ac_status=$?
21021 grep -v '^ *+' conftest.er1 >conftest.err
21022 rm -f conftest.er1
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } &&
21026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21027 { (case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21030esac
21031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21032 (eval "$ac_try") 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21040esac
21041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042 (eval "$ac_try") 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021046 llvm_cv_cxx_visibility_inlines_hidden=yes
21047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021048 echo "$as_me: failed program was:" >&5
21049sed 's/^/| /' conftest.$ac_ext >&5
21050
21051 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021053
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 CXXFLAGS="$oldcxxflags"
21056 ac_ext=c
21057ac_cpp='$CPP $CPPFLAGS'
21058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21060ac_compiler_gnu=$ac_cv_c_compiler_gnu
21061
21062
21063fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021064{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21065echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021066if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21067 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21068
21069else
21070 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21071
21072fi
21073
Gordon Henriksenf0915682007-10-02 16:42:22 +000021074
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021075if test "$llvm_cv_link_use_r" = "yes" ; then
21076 RPATH="-Wl,-R"
21077else
21078 RPATH="-Wl,-rpath"
21079fi
21080
21081
21082if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21083 RDYNAMIC="-Wl,-export-dynamic"
21084else
21085 RDYNAMIC=""
21086fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021087
21088
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021089
Eric Christophera1cba682010-08-08 02:44:25 +000021090ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021091
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021092
21093
21094
21095
21096
Douglas Gregor1555a232009-06-16 20:12:29 +000021097ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21098
21099ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21100
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021101ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21102
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021103ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21104
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021105ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021106
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021107
Reid Spencera773bd52006-08-04 18:18:08 +000021108ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021109
Eric Christopher360fa9a2011-10-26 00:42:12 +000021110
Reid Spencerea949cf2006-08-16 00:45:38 +000021111ac_config_files="$ac_config_files llvm.spec"
21112
21113
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021114ac_config_files="$ac_config_files docs/doxygen.cfg"
21115
Eric Christopher63c09512012-02-02 00:16:55 +000021116
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021117if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021118 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021119fi
Eric Christopher63c09512012-02-02 00:16:55 +000021120if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021121 configh="include/clang/Config/config.h"
21122 doxy="docs/doxygen.cfg"
21123 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021124
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021125 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021126
21127fi
21128
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021129ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021130
Eric Christopher360fa9a2011-10-26 00:42:12 +000021131
Jordan Rose92080522012-10-01 18:40:32 +000021132test "x$program_prefix" = "xNONE" && program_prefix=""
21133
21134
21135
Reid Spencera773bd52006-08-04 18:18:08 +000021136ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021137
Reid Spencera773bd52006-08-04 18:18:08 +000021138ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021139
21140
Reid Spencera773bd52006-08-04 18:18:08 +000021141ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021142
21143
Reid Spencera773bd52006-08-04 18:18:08 +000021144ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021145
21146
Reid Spencera773bd52006-08-04 18:18:08 +000021147ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021148
21149
Reid Spencer8b2e1412006-11-17 03:32:33 +000021150ac_config_commands="$ac_config_commands runtime/Makefile"
21151
21152
Reid Spencera773bd52006-08-04 18:18:08 +000021153ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021154
21155
Reid Spencera773bd52006-08-04 18:18:08 +000021156ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021157
21158
Bill Wendlingf24eb392009-01-04 23:12:30 +000021159ac_config_commands="$ac_config_commands unittests/Makefile"
21160
21161
Reid Spencera773bd52006-08-04 18:18:08 +000021162ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021163
21164
Reid Spencera773bd52006-08-04 18:18:08 +000021165ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021166
21167
Reid Spencera773bd52006-08-04 18:18:08 +000021168ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021169
21170
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021171ac_config_commands="$ac_config_commands bindings/Makefile"
21172
21173
21174ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21175
21176
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021177
John Criswell7a73b802003-06-30 21:59:07 +000021178cat >confcache <<\_ACEOF
21179# This file is a shell script that caches the results of configure
21180# tests run on this system so they can be shared between configure
21181# scripts and configure runs, see configure's option --config-cache.
21182# It is not useful on other systems. If it contains results you don't
21183# want to keep, you may remove or edit it.
21184#
21185# config.status only pays attention to the cache file if you give it
21186# the --recheck option to rerun configure.
21187#
John Criswell0c38eaf2003-09-10 15:17:25 +000021188# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021189# loading this file, other *unset* `ac_cv_foo' will be assigned the
21190# following values.
21191
21192_ACEOF
21193
21194# The following way of writing the cache mishandles newlines in values,
21195# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021196# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021197# Ultrix sh set writes to stderr and can't be redirected directly,
21198# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021199(
21200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21201 eval ac_val=\$$ac_var
21202 case $ac_val in #(
21203 *${as_nl}*)
21204 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021205 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21206echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021207 esac
21208 case $ac_var in #(
21209 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021210 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021211 esac ;;
21212 esac
21213 done
21214
John Criswell7a73b802003-06-30 21:59:07 +000021215 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21217 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021218 # `set' does not quote correctly, so add quotes (double-quote
21219 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021220 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021221 "s/'/'\\\\''/g;
21222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021223 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021224 *)
21225 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021227 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021228 esac |
21229 sort
21230) |
John Criswell7a73b802003-06-30 21:59:07 +000021231 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021232 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021233 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021234 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21236 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21238 :end' >>confcache
21239if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21240 if test -w "$cache_file"; then
21241 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021242 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21243echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021244 cat confcache >$cache_file
21245 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21247echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021248 fi
21249fi
21250rm -f confcache
21251
21252test "x$prefix" = xNONE && prefix=$ac_default_prefix
21253# Let make expand exec_prefix.
21254test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21255
John Criswell7a73b802003-06-30 21:59:07 +000021256DEFS=-DHAVE_CONFIG_H
21257
John Criswell0c38eaf2003-09-10 15:17:25 +000021258ac_libobjs=
21259ac_ltlibobjs=
21260for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21261 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021262 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021263 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021264 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21265 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021266 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21267 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021268done
21269LIBOBJS=$ac_libobjs
21270
21271LTLIBOBJS=$ac_ltlibobjs
21272
21273
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021274if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021275 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21276Usually this means the macro was only invoked conditionally." >&5
21277echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21278Usually this means the macro was only invoked conditionally." >&2;}
21279 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021280fi
21281if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021282 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21283Usually this means the macro was only invoked conditionally." >&5
21284echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21285Usually this means the macro was only invoked conditionally." >&2;}
21286 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021287fi
John Criswell7a73b802003-06-30 21:59:07 +000021288
21289: ${CONFIG_STATUS=./config.status}
21290ac_clean_files_save=$ac_clean_files
21291ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021292{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21293echo "$as_me: creating $CONFIG_STATUS" >&6;}
21294cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021295#! $SHELL
21296# Generated by $as_me.
21297# Run this file to recreate the current configuration.
21298# Compiler output produced by configure, useful for debugging
21299# configure, is in config.log if it exists.
21300
21301debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021302ac_cs_recheck=false
21303ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021304SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021305_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021307cat >>$CONFIG_STATUS <<\_ACEOF
21308## --------------------- ##
21309## M4sh Initialization. ##
21310## --------------------- ##
21311
21312# Be Bourne compatible
21313if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021314 emulate sh
21315 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021316 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021317 # is contrary to our usage. Disable this feature.
21318 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021319 setopt NO_GLOB_SUBST
21320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021321 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021323BIN_SH=xpg4; export BIN_SH # for Tru64
21324DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021325
John Criswell7a73b802003-06-30 21:59:07 +000021326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021327# PATH needs CR
21328# Avoid depending upon Character Ranges.
21329as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21330as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21331as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21332as_cr_digits='0123456789'
21333as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021334
21335# The user is always right.
21336if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021337 echo "#! /bin/sh" >conf$$.sh
21338 echo "exit 0" >>conf$$.sh
21339 chmod +x conf$$.sh
21340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21341 PATH_SEPARATOR=';'
21342 else
21343 PATH_SEPARATOR=:
21344 fi
21345 rm -f conf$$.sh
21346fi
21347
21348# Support unset when possible.
21349if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21350 as_unset=unset
21351else
21352 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021353fi
John Criswell7a73b802003-06-30 21:59:07 +000021354
Reid Spencera773bd52006-08-04 18:18:08 +000021355
21356# IFS
21357# We need space, tab and new line, in precisely that order. Quoting is
21358# there to prevent editors from complaining about space-tab.
21359# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21360# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021361as_nl='
21362'
Reid Spencera773bd52006-08-04 18:18:08 +000021363IFS=" "" $as_nl"
21364
21365# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021366case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021367 *[\\/]* ) as_myself=$0 ;;
21368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021369for as_dir in $PATH
21370do
21371 IFS=$as_save_IFS
21372 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21374done
Reid Spencera773bd52006-08-04 18:18:08 +000021375IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021376
Reid Spencera773bd52006-08-04 18:18:08 +000021377 ;;
21378esac
21379# We did not find ourselves, most probably we were run as `sh COMMAND'
21380# in which case we are not to be found in the path.
21381if test "x$as_myself" = x; then
21382 as_myself=$0
21383fi
21384if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021385 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21386 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021387fi
21388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021389# Work around bugs in pre-3.0 UWIN ksh.
21390for as_var in ENV MAIL MAILPATH
21391do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021392done
21393PS1='$ '
21394PS2='> '
21395PS4='+ '
21396
21397# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021398for as_var in \
21399 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21400 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21401 LC_TELEPHONE LC_TIME
21402do
21403 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21404 eval $as_var=C; export $as_var
21405 else
21406 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021407 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408done
Torok Edwin871384f2010-01-26 08:50:50 +000021409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021410# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021411if expr a : '\(a\)' >/dev/null 2>&1 &&
21412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21413 as_expr=expr
21414else
21415 as_expr=false
21416fi
21417
21418if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21419 as_basename=basename
21420else
21421 as_basename=false
21422fi
21423
21424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021426as_me=`$as_basename -- "$0" ||
21427$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21428 X"$0" : 'X\(//\)$' \| \
21429 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021430echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021431 sed '/^.*\/\([^/][^/]*\)\/*$/{
21432 s//\1/
21433 q
21434 }
21435 /^X\/\(\/\/\)$/{
21436 s//\1/
21437 q
21438 }
21439 /^X\/\(\/\).*/{
21440 s//\1/
21441 q
21442 }
21443 s/.*/./; q'`
21444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021445# CDPATH.
21446$as_unset CDPATH
21447
21448
21449
21450 as_lineno_1=$LINENO
21451 as_lineno_2=$LINENO
21452 test "x$as_lineno_1" != "x$as_lineno_2" &&
21453 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21454
21455 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21456 # uniformly replaced by the line number. The first 'sed' inserts a
21457 # line-number line after each line using $LINENO; the second 'sed'
21458 # does the real work. The second script uses 'N' to pair each
21459 # line-number line with the line containing $LINENO, and appends
21460 # trailing '-' during substitution so that $LINENO is not a special
21461 # case at line end.
21462 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21463 # scripts with optimization help from Paolo Bonzini. Blame Lee
21464 # E. McMahon (1931-1989) for sed's syntax. :-)
21465 sed -n '
21466 p
21467 /[$]LINENO/=
21468 ' <$as_myself |
21469 sed '
21470 s/[$]LINENO.*/&-/
21471 t lineno
21472 b
21473 :lineno
21474 N
21475 :loop
21476 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21477 t loop
21478 s/-\n.*//
21479 ' >$as_me.lineno &&
21480 chmod +x "$as_me.lineno" ||
21481 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21482 { (exit 1); exit 1; }; }
21483
21484 # Don't try to exec as it changes $[0], causing all sort of problems
21485 # (the dirname of $[0] is not the place where we might find the
21486 # original and so on. Autoconf is especially sensitive to this).
21487 . "./$as_me.lineno"
21488 # Exit status is that of the last command.
21489 exit
21490}
21491
21492
21493if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21494 as_dirname=dirname
21495else
21496 as_dirname=false
21497fi
Reid Spencera773bd52006-08-04 18:18:08 +000021498
21499ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021500case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021501-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021502 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021504 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021505 esac;;
21506*)
21507 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021508esac
21509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021510if expr a : '\(a\)' >/dev/null 2>&1 &&
21511 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21512 as_expr=expr
21513else
21514 as_expr=false
21515fi
21516
John Criswell7a73b802003-06-30 21:59:07 +000021517rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021518if test -d conf$$.dir; then
21519 rm -f conf$$.dir/conf$$.file
21520else
21521 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021524echo >conf$$.file
21525if ln -s conf$$.file conf$$ 2>/dev/null; then
21526 as_ln_s='ln -s'
21527 # ... but there are two gotchas:
21528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21530 # In both cases, we have to default to `cp -p'.
21531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021532 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533elif ln conf$$.file conf$$ 2>/dev/null; then
21534 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021535else
21536 as_ln_s='cp -p'
21537fi
Reid Spencera773bd52006-08-04 18:18:08 +000021538rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21539rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021540
John Criswell0c38eaf2003-09-10 15:17:25 +000021541if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021543else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021544 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021545 as_mkdir_p=false
21546fi
21547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21549# systems may use methods other than mode bits to determine executability.
21550cat >conf$$.file <<_ASEOF
21551#! /bin/sh
21552exit 0
21553_ASEOF
21554chmod +x conf$$.file
21555if test -x conf$$.file >/dev/null 2>&1; then
21556 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021558 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021560rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021561
21562# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021564
21565# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021567
21568
John Criswell7a73b802003-06-30 21:59:07 +000021569exec 6>&1
21570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021571# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021572# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021573# values after options handling.
21574ac_log="
Benjamin Kramer537d9a72012-11-17 22:01:08 +000021575This file was extended by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021576generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021577
21578 CONFIG_FILES = $CONFIG_FILES
21579 CONFIG_HEADERS = $CONFIG_HEADERS
21580 CONFIG_LINKS = $CONFIG_LINKS
21581 CONFIG_COMMANDS = $CONFIG_COMMANDS
21582 $ $0 $@
21583
Reid Spencera773bd52006-08-04 18:18:08 +000021584on `(hostname || uname -n) 2>/dev/null | sed 1q`
21585"
21586
John Criswell7a73b802003-06-30 21:59:07 +000021587_ACEOF
21588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021589cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021590# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021591config_files="$ac_config_files"
21592config_headers="$ac_config_headers"
21593config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021594
Reid Spencera773bd52006-08-04 18:18:08 +000021595_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021598ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021599\`$as_me' instantiates files from templates according to the
21600current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021603
21604 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021605 -V, --version print version number, then exit
21606 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021607 -d, --debug don't remove temporary files
21608 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021609 --file=FILE[:TEMPLATE]
21610 instantiate the configuration file FILE
21611 --header=FILE[:TEMPLATE]
21612 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021613
21614Configuration files:
21615$config_files
21616
21617Configuration headers:
21618$config_headers
21619
John Criswellc764fbc2003-09-06 15:17:13 +000021620Configuration commands:
21621$config_commands
21622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021623Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021624
Reid Spencera773bd52006-08-04 18:18:08 +000021625_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021626cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021627ac_cs_version="\\
Benjamin Kramer537d9a72012-11-17 22:01:08 +000021628LLVM config.status 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021629configured by $0, generated by GNU Autoconf 2.60,
21630 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021632Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021633This config.status script is free software; the Free Software Foundation
21634gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021635
21636ac_pwd='$ac_pwd'
21637srcdir='$srcdir'
21638INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021639_ACEOF
21640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021641cat >>$CONFIG_STATUS <<\_ACEOF
21642# If no file are specified by the user, then we need to provide default
21643# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021644ac_need_defaults=:
21645while test $# != 0
21646do
21647 case $1 in
21648 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021649 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21650 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021651 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021653 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021654 ac_option=$1
21655 ac_optarg=$2
21656 ac_shift=shift
21657 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021658 esac
21659
John Criswell0c38eaf2003-09-10 15:17:25 +000021660 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021661 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21663 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021664 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021665 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021666 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021667 debug=: ;;
21668 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021669 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021670 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021671 ac_need_defaults=false;;
21672 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021673 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021674 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021675 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021676 --he | --h)
21677 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021678 { echo "$as_me: error: ambiguous option: $1
21679Try \`$0 --help' for more information." >&2
21680 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021681 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021682 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21684 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21685 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021686
21687 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021688 -*) { echo "$as_me: error: unrecognized option: $1
21689Try \`$0 --help' for more information." >&2
21690 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021692 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021693 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021694
21695 esac
21696 shift
21697done
21698
John Criswell0c38eaf2003-09-10 15:17:25 +000021699ac_configure_extra_args=
21700
21701if $ac_cs_silent; then
21702 exec 6>/dev/null
21703 ac_configure_extra_args="$ac_configure_extra_args --silent"
21704fi
21705
21706_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021707cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021708if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021709 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21710 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021711 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021712 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021713fi
21714
John Criswell7a73b802003-06-30 21:59:07 +000021715_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021716cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021717exec 5>>config.log
21718{
21719 echo
21720 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21721## Running $as_me. ##
21722_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021724} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021725
Reid Spencera773bd52006-08-04 18:18:08 +000021726_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021727cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021728#
Reid Spencera773bd52006-08-04 18:18:08 +000021729# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021730#
Reid Spencerc0682832005-02-24 19:05:19 +000021731llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021732
21733_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021735cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021736
21737# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021738for ac_config_target in $ac_config_targets
21739do
Reid Spencera773bd52006-08-04 18:18:08 +000021740 case $ac_config_target in
21741 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021742 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021743 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21744 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021745 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021746 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021747 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021748 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021749 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021750 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021751 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21752 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021753 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021754 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21755 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21756 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21757 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21758 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021759 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021760 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21761 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021762 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021763 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21764 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21765 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021766 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21767 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21770echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21771 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021772 esac
21773done
21774
Reid Spencera773bd52006-08-04 18:18:08 +000021775
John Criswell7a73b802003-06-30 21:59:07 +000021776# If the user did not use the arguments to specify the items to instantiate,
21777# then the envvar interface is used. Set only those that are not.
21778# We use the long form for the default assignment because of an extremely
21779# bizarre bug on SunOS 4.1.3.
21780if $ac_need_defaults; then
21781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021784fi
21785
John Criswell0c38eaf2003-09-10 15:17:25 +000021786# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021787# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021788# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021789# Hook for its removal unless debugging.
21790# Note that there is a small window in which the directory will not be cleaned:
21791# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021792$debug ||
21793{
Reid Spencera773bd52006-08-04 18:18:08 +000021794 tmp=
21795 trap 'exit_status=$?
21796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21797' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021798 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021799}
John Criswell7a73b802003-06-30 21:59:07 +000021800# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021801
John Criswell7a73b802003-06-30 21:59:07 +000021802{
Reid Spencera773bd52006-08-04 18:18:08 +000021803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021804 test -n "$tmp" && test -d "$tmp"
21805} ||
21806{
Reid Spencera773bd52006-08-04 18:18:08 +000021807 tmp=./conf$$-$RANDOM
21808 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809} ||
21810{
21811 echo "$me: cannot create a temporary directory in ." >&2
21812 { (exit 1); exit 1; }
21813}
John Criswell7a73b802003-06-30 21:59:07 +000021814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021815#
21816# Set up the sed scripts for CONFIG_FILES section.
21817#
21818
21819# No need to generate the scripts if there are no CONFIG_FILES.
21820# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021821if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021822
21823_ACEOF
21824
Reid Spencera773bd52006-08-04 18:18:08 +000021825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021826
Reid Spencera773bd52006-08-04 18:18:08 +000021827ac_delim='%!_!# '
21828for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829 cat >conf$$subs.sed <<_ACEOF
21830SHELL!$SHELL$ac_delim
21831PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21832PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21833PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21834PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21835PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21836PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21837exec_prefix!$exec_prefix$ac_delim
21838prefix!$prefix$ac_delim
21839program_transform_name!$program_transform_name$ac_delim
21840bindir!$bindir$ac_delim
21841sbindir!$sbindir$ac_delim
21842libexecdir!$libexecdir$ac_delim
21843datarootdir!$datarootdir$ac_delim
21844datadir!$datadir$ac_delim
21845sysconfdir!$sysconfdir$ac_delim
21846sharedstatedir!$sharedstatedir$ac_delim
21847localstatedir!$localstatedir$ac_delim
21848includedir!$includedir$ac_delim
21849oldincludedir!$oldincludedir$ac_delim
21850docdir!$docdir$ac_delim
21851infodir!$infodir$ac_delim
21852htmldir!$htmldir$ac_delim
21853dvidir!$dvidir$ac_delim
21854pdfdir!$pdfdir$ac_delim
21855psdir!$psdir$ac_delim
21856libdir!$libdir$ac_delim
21857localedir!$localedir$ac_delim
21858mandir!$mandir$ac_delim
21859DEFS!$DEFS$ac_delim
21860ECHO_C!$ECHO_C$ac_delim
21861ECHO_N!$ECHO_N$ac_delim
21862ECHO_T!$ECHO_T$ac_delim
21863LIBS!$LIBS$ac_delim
21864build_alias!$build_alias$ac_delim
21865host_alias!$host_alias$ac_delim
21866target_alias!$target_alias$ac_delim
21867LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021868CC!$CC$ac_delim
21869CFLAGS!$CFLAGS$ac_delim
21870LDFLAGS!$LDFLAGS$ac_delim
21871CPPFLAGS!$CPPFLAGS$ac_delim
21872ac_ct_CC!$ac_ct_CC$ac_delim
21873EXEEXT!$EXEEXT$ac_delim
21874OBJEXT!$OBJEXT$ac_delim
21875CXX!$CXX$ac_delim
21876CXXFLAGS!$CXXFLAGS$ac_delim
21877ac_ct_CXX!$ac_ct_CXX$ac_delim
21878CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021879subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021880ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21881LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021882build!$build$ac_delim
21883build_cpu!$build_cpu$ac_delim
21884build_vendor!$build_vendor$ac_delim
21885build_os!$build_os$ac_delim
21886host!$host$ac_delim
21887host_cpu!$host_cpu$ac_delim
21888host_vendor!$host_vendor$ac_delim
21889host_os!$host_os$ac_delim
21890target!$target$ac_delim
21891target_cpu!$target_cpu$ac_delim
21892target_vendor!$target_vendor$ac_delim
21893target_os!$target_os$ac_delim
21894OS!$OS$ac_delim
21895HOST_OS!$HOST_OS$ac_delim
21896TARGET_OS!$TARGET_OS$ac_delim
21897LINKALL!$LINKALL$ac_delim
21898NOLINKALL!$NOLINKALL$ac_delim
21899LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21900LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21901ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021902HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904GREP!$GREP$ac_delim
21905EGREP!$EGREP$ac_delim
21906LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21907BUILD_CC!$BUILD_CC$ac_delim
21908BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21909BUILD_CXX!$BUILD_CXX$ac_delim
21910CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021911ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000021912ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021913ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21914ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21915DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000021916ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021917ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21918EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21919DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21920DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000021921KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922JIT!$JIT$ac_delim
21923TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021924ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021925ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Eric Christopher164a3082012-08-28 01:17:46 +000021926LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021927_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021929 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021930 break
21931 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021932 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21933echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21934 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021935 else
21936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021937 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021938done
21939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021940ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21941if test -n "$ac_eof"; then
21942 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21943 ac_eof=`expr $ac_eof + 1`
21944fi
21945
21946cat >>$CONFIG_STATUS <<_ACEOF
21947cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21948/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021949_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021950sed '
21951s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21952s/^/s,@/; s/!/@,|#_!!_#|/
21953:n
21954t n
21955s/'"$ac_delim"'$/,g/; t
21956s/$/\\/; p
21957N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21958' >>$CONFIG_STATUS <conf$$subs.sed
21959rm -f conf$$subs.sed
21960cat >>$CONFIG_STATUS <<_ACEOF
21961CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021962_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963
21964
21965ac_delim='%!_!# '
21966for ac_last_try in false false false false false :; do
21967 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar7126ee02012-08-14 18:14:22 +000021968ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000021969ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000021970ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021971ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021972ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherf0b3b742012-11-19 19:31:02 +000021973ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021974TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21975LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21976LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021977LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021978LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021979OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021980EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021981EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021982CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021983BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021984INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021985NM!$NM$ac_delim
21986ifGNUmake!$ifGNUmake$ac_delim
21987LN_S!$LN_S$ac_delim
21988CMP!$CMP$ac_delim
21989CP!$CP$ac_delim
21990DATE!$DATE$ac_delim
21991FIND!$FIND$ac_delim
21992MKDIR!$MKDIR$ac_delim
21993MV!$MV$ac_delim
21994RANLIB!$RANLIB$ac_delim
21995AR!$AR$ac_delim
21996RM!$RM$ac_delim
21997SED!$SED$ac_delim
21998TAR!$TAR$ac_delim
21999BINPWD!$BINPWD$ac_delim
22000GRAPHVIZ!$GRAPHVIZ$ac_delim
22001DOT!$DOT$ac_delim
22002FDP!$FDP$ac_delim
22003NEATO!$NEATO$ac_delim
22004TWOPI!$TWOPI$ac_delim
22005CIRCO!$CIRCO$ac_delim
22006GV!$GV$ac_delim
22007DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022008XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22010INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22011INSTALL_DATA!$INSTALL_DATA$ac_delim
22012BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022013CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022014DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022015GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022016GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022017PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022018ZIP!$ZIP$ac_delim
22019OCAMLC!$OCAMLC$ac_delim
22020OCAMLOPT!$OCAMLOPT$ac_delim
22021OCAMLDEP!$OCAMLDEP$ac_delim
22022OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022023GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022024HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022025INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22026INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22027CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22028CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22029LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022030NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22031NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022032COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022033USE_UDIS86!$USE_UDIS86$ac_delim
22034USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022035USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022036XML2CONFIG!$XML2CONFIG$ac_delim
22037LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22038LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22040HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22041MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022042SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022043SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22045LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22046LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22047LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22048LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22049LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22050LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22051LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22052LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22053LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22054BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22055ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022056OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22057ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22058RPATH!$RPATH$ac_delim
22059RDYNAMIC!$RDYNAMIC$ac_delim
Jordan Rose92080522012-10-01 18:40:32 +000022060program_prefix!$program_prefix$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022061LIBOBJS!$LIBOBJS$ac_delim
22062LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022063_ACEOF
22064
Eric Christopherf0b3b742012-11-19 19:31:02 +000022065 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066 break
22067 elif $ac_last_try; then
22068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22069echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22070 { (exit 1); exit 1; }; }
22071 else
22072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22073 fi
22074done
22075
22076ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22077if test -n "$ac_eof"; then
22078 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22079 ac_eof=`expr $ac_eof + 1`
22080fi
22081
22082cat >>$CONFIG_STATUS <<_ACEOF
22083cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Jordan Rose85042e62012-09-26 00:01:00 +000022084/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grossera84b5672010-11-10 16:31:34 +000022085_ACEOF
22086sed '
22087s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22088s/^/s,@/; s/!/@,|#_!!_#|/
22089:n
22090t n
22091s/'"$ac_delim"'$/,g/; t
22092s/$/\\/; p
22093N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22094' >>$CONFIG_STATUS <conf$$subs.sed
22095rm -f conf$$subs.sed
22096cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose85042e62012-09-26 00:01:00 +000022097:end
22098s/|#_!!_#|//g
Tobias Grossera84b5672010-11-10 16:31:34 +000022099CEOF$ac_eof
22100_ACEOF
22101
22102
Reid Spencera773bd52006-08-04 18:18:08 +000022103# VPATH may cause trouble with some makes, so we remove $(srcdir),
22104# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22105# trailing colons and then remove the whole line if VPATH becomes empty
22106# (actually we leave an empty line to preserve line numbers).
22107if test "x$srcdir" = x.; then
22108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22109s/:*\$(srcdir):*/:/
22110s/:*\${srcdir}:*/:/
22111s/:*@srcdir@:*/:/
22112s/^\([^=]*=[ ]*\):*/\1/
22113s/:*$//
22114s/^[^=]*=[ ]*$//
22115}'
22116fi
22117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022118cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022119fi # test -n "$CONFIG_FILES"
22120
Reid Spencera773bd52006-08-04 18:18:08 +000022121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022122for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022123do
22124 case $ac_tag in
22125 :[FHLC]) ac_mode=$ac_tag; continue;;
22126 esac
22127 case $ac_mode$ac_tag in
22128 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022129 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22130echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22131 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022132 :[FH]-) ac_tag=-:-;;
22133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22134 esac
22135 ac_save_IFS=$IFS
22136 IFS=:
22137 set x $ac_tag
22138 IFS=$ac_save_IFS
22139 shift
22140 ac_file=$1
22141 shift
22142
22143 case $ac_mode in
22144 :L) ac_source=$1;;
22145 :[FH])
22146 ac_file_inputs=
22147 for ac_f
22148 do
22149 case $ac_f in
22150 -) ac_f="$tmp/stdin";;
22151 *) # Look for the file first in the build tree, then in the source tree
22152 # (if the path is not absolute). The absolute path cannot be DOS-style,
22153 # because $ac_f cannot contain `:'.
22154 test -f "$ac_f" ||
22155 case $ac_f in
22156 [\\/$]*) false;;
22157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22158 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22160echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22161 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022162 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022163 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022164 done
22165
22166 # Let's still pretend it is `configure' which instantiates (i.e., don't
22167 # use $as_me), people would be surprised to read:
22168 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022169 configure_input="Generated from "`IFS=:
22170 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022171 if test x"$ac_file" != x-; then
22172 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022173 { echo "$as_me:$LINENO: creating $ac_file" >&5
22174echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022175 fi
22176
22177 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022178 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022179 esac
22180 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022181 esac
22182
Reid Spencera773bd52006-08-04 18:18:08 +000022183 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022184$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022185 X"$ac_file" : 'X\(//\)[^/]' \| \
22186 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022188echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22190 s//\1/
22191 q
22192 }
22193 /^X\(\/\/\)[^/].*/{
22194 s//\1/
22195 q
22196 }
22197 /^X\(\/\/\)$/{
22198 s//\1/
22199 q
22200 }
22201 /^X\(\/\).*/{
22202 s//\1/
22203 q
22204 }
22205 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022206 { as_dir="$ac_dir"
22207 case $as_dir in #(
22208 -*) as_dir=./$as_dir;;
22209 esac
22210 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22211 as_dirs=
22212 while :; do
22213 case $as_dir in #(
22214 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22215 *) as_qdir=$as_dir;;
22216 esac
22217 as_dirs="'$as_qdir' $as_dirs"
22218 as_dir=`$as_dirname -- "$as_dir" ||
22219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220 X"$as_dir" : 'X\(//\)[^/]' \| \
22221 X"$as_dir" : 'X\(//\)$' \| \
22222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22223echo X"$as_dir" |
22224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22225 s//\1/
22226 q
22227 }
22228 /^X\(\/\/\)[^/].*/{
22229 s//\1/
22230 q
22231 }
22232 /^X\(\/\/\)$/{
22233 s//\1/
22234 q
22235 }
22236 /^X\(\/\).*/{
22237 s//\1/
22238 q
22239 }
22240 s/.*/./; q'`
22241 test -d "$as_dir" && break
22242 done
22243 test -z "$as_dirs" || eval "mkdir $as_dirs"
22244 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22245echo "$as_me: error: cannot create directory $as_dir" >&2;}
22246 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022247 ac_builddir=.
22248
Reid Spencera773bd52006-08-04 18:18:08 +000022249case "$ac_dir" in
22250.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22251*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022253 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022254 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022255 case $ac_top_builddir_sub in
22256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22258 esac ;;
22259esac
22260ac_abs_top_builddir=$ac_pwd
22261ac_abs_builddir=$ac_pwd$ac_dir_suffix
22262# for backward compatibility:
22263ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022264
22265case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022266 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022267 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022268 ac_top_srcdir=$ac_top_builddir_sub
22269 ac_abs_top_srcdir=$ac_pwd ;;
22270 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022271 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022272 ac_top_srcdir=$srcdir
22273 ac_abs_top_srcdir=$srcdir ;;
22274 *) # Relative name.
22275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22276 ac_top_srcdir=$ac_top_build_prefix$srcdir
22277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022278esac
Reid Spencera773bd52006-08-04 18:18:08 +000022279ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022280
John Criswell7a73b802003-06-30 21:59:07 +000022281
Reid Spencera773bd52006-08-04 18:18:08 +000022282 case $ac_mode in
22283 :F)
22284 #
22285 # CONFIG_FILE
22286 #
John Criswell7a73b802003-06-30 21:59:07 +000022287
22288 case $INSTALL in
22289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022290 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022291 esac
John Criswell7a73b802003-06-30 21:59:07 +000022292_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022294cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022295# If the template does not know about datarootdir, expand it.
22296# FIXME: This hack should be removed a few years after 2.60.
22297ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298
22299case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022300 p
22301 q
22302}
22303/@datadir@/p
22304/@docdir@/p
22305/@infodir@/p
22306/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022307/@mandir@/p
22308' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022309*datarootdir*) ac_datarootdir_seen=yes;;
22310*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022311 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22312echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022313_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022314cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022315 ac_datarootdir_hack='
22316 s&@datadir@&$datadir&g
22317 s&@docdir@&$docdir&g
22318 s&@infodir@&$infodir&g
22319 s&@localedir@&$localedir&g
22320 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022322esac
22323_ACEOF
22324
22325# Neutralize VPATH when `$srcdir' = `.'.
22326# Shell code in configure.ac might set extrasub.
22327# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022328cat >>$CONFIG_STATUS <<_ACEOF
22329 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022330$extrasub
22331_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022332cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022333:t
22334/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022335s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022336s&@top_builddir@&$ac_top_builddir_sub&;t t
22337s&@srcdir@&$ac_srcdir&;t t
22338s&@abs_srcdir@&$ac_abs_srcdir&;t t
22339s&@top_srcdir@&$ac_top_srcdir&;t t
22340s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22341s&@builddir@&$ac_builddir&;t t
22342s&@abs_builddir@&$ac_abs_builddir&;t t
22343s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22344s&@INSTALL@&$ac_INSTALL&;t t
22345$ac_datarootdir_hack
Jordan Rose85042e62012-09-26 00:01:00 +000022346" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022347
Reid Spencera773bd52006-08-04 18:18:08 +000022348test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22349 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022351 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022352which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022353echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022354which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022355
Reid Spencera773bd52006-08-04 18:18:08 +000022356 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022357 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022358 -) cat "$tmp/out"; rm -f "$tmp/out";;
22359 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22360 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022361 ;;
22362 :H)
22363 #
22364 # CONFIG_HEADER
22365 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022366_ACEOF
22367
22368# Transform confdefs.h into a sed script `conftest.defines', that
22369# substitutes the proper values into config.h.in to produce config.h.
22370rm -f conftest.defines conftest.tail
22371# First, append a space to every undef/define line, to ease matching.
22372echo 's/$/ /' >conftest.defines
22373# Then, protect against being on the right side of a sed subst, or in
22374# an unquoted here document, in config.status. If some macros were
22375# called several times there might be several #defines for the same
22376# symbol, which is useless. But do not sort them, since the last
22377# AC_DEFINE must be honored.
22378ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22379# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22380# NAME is the cpp macro being defined, VALUE is the value it is being given.
22381# PARAMS is the parameter list in the macro definition--in most cases, it's
22382# just an empty string.
22383ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22384ac_dB='\\)[ (].*,\\1define\\2'
22385ac_dC=' '
22386ac_dD=' ,'
22387
22388uniq confdefs.h |
22389 sed -n '
22390 t rset
22391 :rset
22392 s/^[ ]*#[ ]*define[ ][ ]*//
22393 t ok
22394 d
22395 :ok
22396 s/[\\&,]/\\&/g
22397 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22398 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22399 ' >>conftest.defines
22400
22401# Remove the space that was appended to ease matching.
22402# Then replace #undef with comments. This is necessary, for
22403# example, in the case of _POSIX_SOURCE, which is predefined and required
22404# on some systems where configure will not decide to define it.
22405# (The regexp can be short, since the line contains either #define or #undef.)
22406echo 's/ $//
22407s,^[ #]*u.*,/* & */,' >>conftest.defines
22408
22409# Break up conftest.defines:
22410ac_max_sed_lines=50
22411
22412# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22413# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22414# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22415# et cetera.
22416ac_in='$ac_file_inputs'
22417ac_out='"$tmp/out1"'
22418ac_nxt='"$tmp/out2"'
22419
22420while :
22421do
22422 # Write a here document:
22423 cat >>$CONFIG_STATUS <<_ACEOF
22424 # First, check the format of the line:
22425 cat >"\$tmp/defines.sed" <<\\CEOF
22426/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22427/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22428b
22429:def
22430_ACEOF
22431 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22432 echo 'CEOF
22433 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22434 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22435 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22436 grep . conftest.tail >/dev/null || break
22437 rm -f conftest.defines
22438 mv conftest.tail conftest.defines
22439done
22440rm -f conftest.defines conftest.tail
22441
22442echo "ac_result=$ac_in" >>$CONFIG_STATUS
22443cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022444 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022445 echo "/* $configure_input */" >"$tmp/config.h"
22446 cat "$ac_result" >>"$tmp/config.h"
22447 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22448 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22449echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022450 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022451 rm -f $ac_file
22452 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022453 fi
22454 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022455 echo "/* $configure_input */"
22456 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022457 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022458 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022459 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022461 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22462echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022463 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022464 esac
John Criswell7a73b802003-06-30 21:59:07 +000022465
Reid Spencera773bd52006-08-04 18:18:08 +000022466
22467 case $ac_file$ac_mode in
22468 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022470 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022471 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022472 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022473 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022474 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022475 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022476 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022477 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022478 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022479 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022480 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022481 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022482 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022483 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022484 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022485 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022486 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022487 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022488 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022489 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022490 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022491 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022492 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022493 ${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 +000022494
22495 esac
22496done # for ac_tag
22497
John Criswell7a73b802003-06-30 21:59:07 +000022498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022499{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022501chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022502ac_clean_files=$ac_clean_files_save
22503
22504
22505# configure is writing to config.log, and then calls config.status.
22506# config.status does its own redirection, appending to config.log.
22507# Unfortunately, on DOS this fails, as config.log is still kept open
22508# by configure, so config.status won't be able to write to it; its
22509# output is simply discarded. So we exec the FD to /dev/null,
22510# effectively closing config.log, so it can be properly (re)opened and
22511# appended to by config.status. When coming back to configure, we
22512# need to make the FD available again.
22513if test "$no_create" != yes; then
22514 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022515 ac_config_status_args=
22516 test "$silent" = yes &&
22517 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022518 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022520 exec 5>>config.log
22521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22522 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022523 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022524fi
22525
John Criswell12399a12003-09-30 15:55:44 +000022526#
22527# CONFIG_SUBDIRS section.
22528#
22529if test "$no_recursion" != yes; then
22530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022531 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022532 ac_sub_configure_args=
22533 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022534 eval "set x $ac_configure_args"
22535 shift
22536 for ac_arg
22537 do
John Criswell12399a12003-09-30 15:55:44 +000022538 if test -n "$ac_prev"; then
22539 ac_prev=
22540 continue
22541 fi
22542 case $ac_arg in
22543 -cache-file | --cache-file | --cache-fil | --cache-fi \
22544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22545 ac_prev=cache_file ;;
22546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22548 | --c=*)
22549 ;;
22550 --config-cache | -C)
22551 ;;
22552 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22553 ac_prev=srcdir ;;
22554 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22555 ;;
22556 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22557 ac_prev=prefix ;;
22558 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022560 *)
22561 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022562 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022563 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022564 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022565 esac
22566 done
22567
22568 # Always prepend --prefix to ensure using the same prefix
22569 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022570 ac_arg="--prefix=$prefix"
22571 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022572 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022573 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022574 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022575
22576 ac_popdir=`pwd`
22577 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22578
22579 # Do not complain, so a configure script can configure whichever
22580 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022581 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022582
Reid Spencera773bd52006-08-04 18:18:08 +000022583 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022584 echo "$as_me:$LINENO: $ac_msg" >&5
22585 echo "$ac_msg" >&6
22586 { as_dir="$ac_dir"
22587 case $as_dir in #(
22588 -*) as_dir=./$as_dir;;
22589 esac
22590 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22591 as_dirs=
22592 while :; do
22593 case $as_dir in #(
22594 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22595 *) as_qdir=$as_dir;;
22596 esac
22597 as_dirs="'$as_qdir' $as_dirs"
22598 as_dir=`$as_dirname -- "$as_dir" ||
22599$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600 X"$as_dir" : 'X\(//\)[^/]' \| \
22601 X"$as_dir" : 'X\(//\)$' \| \
22602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22603echo X"$as_dir" |
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22605 s//\1/
22606 q
22607 }
22608 /^X\(\/\/\)[^/].*/{
22609 s//\1/
22610 q
22611 }
22612 /^X\(\/\/\)$/{
22613 s//\1/
22614 q
22615 }
22616 /^X\(\/\).*/{
22617 s//\1/
22618 q
22619 }
22620 s/.*/./; q'`
22621 test -d "$as_dir" && break
22622 done
22623 test -z "$as_dirs" || eval "mkdir $as_dirs"
22624 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22625echo "$as_me: error: cannot create directory $as_dir" >&2;}
22626 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022627 ac_builddir=.
22628
Reid Spencera773bd52006-08-04 18:18:08 +000022629case "$ac_dir" in
22630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22631*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022632 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022633 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022634 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022635 case $ac_top_builddir_sub in
22636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22638 esac ;;
22639esac
22640ac_abs_top_builddir=$ac_pwd
22641ac_abs_builddir=$ac_pwd$ac_dir_suffix
22642# for backward compatibility:
22643ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022644
22645case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022646 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022647 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022648 ac_top_srcdir=$ac_top_builddir_sub
22649 ac_abs_top_srcdir=$ac_pwd ;;
22650 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022651 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022652 ac_top_srcdir=$srcdir
22653 ac_abs_top_srcdir=$srcdir ;;
22654 *) # Relative name.
22655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22656 ac_top_srcdir=$ac_top_build_prefix$srcdir
22657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022658esac
Reid Spencera773bd52006-08-04 18:18:08 +000022659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022660
22661
Reid Spencera773bd52006-08-04 18:18:08 +000022662 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022663
22664 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022665 if test -f "$ac_srcdir/configure.gnu"; then
22666 ac_sub_configure=$ac_srcdir/configure.gnu
22667 elif test -f "$ac_srcdir/configure"; then
22668 ac_sub_configure=$ac_srcdir/configure
22669 elif test -f "$ac_srcdir/configure.in"; then
22670 # This should be Cygnus configure.
22671 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022672 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022673 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22674echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022675 ac_sub_configure=
22676 fi
22677
22678 # The recursion is here.
22679 if test -n "$ac_sub_configure"; then
22680 # Make the cache file name correct relative to the subdirectory.
22681 case $cache_file in
22682 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022683 *) # Relative name.
22684 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022685 esac
22686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022687 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22688echo "$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 +000022689 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022690 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22691 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022692 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22693echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22694 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022695 fi
22696
Reid Spencera773bd52006-08-04 18:18:08 +000022697 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022698 done
22699fi
22700