blob: 7c5e2ee37dbf03228ec9bd93a64a8d9c9bc473a6 [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherb2bc6e42012-03-26 02:09:01 +0000685ENABLE_LIBCPP
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
695ENABLE_DOCS
696ENABLE_DOXYGEN
697ENABLE_THREADS
698ENABLE_PTHREADS
699ENABLE_PIC
700ENABLE_SHARED
701ENABLE_EMBED_STDCXX
702ENABLE_TIMESTAMPS
703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711BINUTILS_INCDIR
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
735XDOT_PY
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
740CAT
741DOXYGEN
742GROFF
743GZIPBIN
744POD2HTML
745POD2MAN
746PDFROFF
747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
755HAVE_LINK_VERSION_SCRIPT
756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000763COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769SHLIBEXT
770SHLIBPATH_VAR
771LLVM_PREFIX
772LLVM_BINDIR
773LLVM_LIBDIR
774LLVM_DATADIR
775LLVM_DOCSDIR
776LLVM_ETCDIR
777LLVM_INCLUDEDIR
778LLVM_INFODIR
779LLVM_MANDIR
780LLVM_CONFIGTIME
781BINDINGS_TO_BUILD
782ALL_BINDINGS
783OCAML_LIBDIR
784ENABLE_VISIBILITY_INLINES_HIDDEN
785RPATH
786RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000787LIBOBJS
788LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000789ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000790 ac_precious_vars='build_alias
791host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000792target_alias
793CC
794CFLAGS
795LDFLAGS
796CPPFLAGS
797CXX
798CXXFLAGS
799CCC
800CPP'
801ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000828# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000837includedir='${prefix}/include'
838oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000848
849ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000850ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000855 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000856 ac_prev=
857 continue
858 fi
859
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
John Criswell451f67f2003-10-16 01:45:35 +0000864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000891 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000892 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000894 datadir=$ac_optarg ;;
895
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
John Criswell451f67f2003-10-16 01:45:35 +0000903 -disable-* | --disable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000906 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000909 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000910 eval enable_$ac_feature=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000921
922 -enable-* | --enable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000929 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
John Criswell451f67f2003-10-16 01:45:35 +0000962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
John Criswell451f67f2003-10-16 01:45:35 +0000991 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000992 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
John Criswell451f67f2003-10-16 01:45:35 +00001070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001122 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001125 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001126 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001127
1128 -without-* | --without-*)
1129 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001134 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001135 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) { echo "$as_me: error: unrecognized option: $ac_option
1156Try \`$0 --help' for more information." >&2
1157 { (exit 1); exit 1; }; }
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001166 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 ;;
1176
1177 esac
1178done
1179
1180if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 { echo "$as_me: error: missing argument to $ac_option" >&2
1183 { (exit 1); exit 1; }; }
1184fi
1185
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001186# Be sure to have absolute directory names.
1187for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001191do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001192 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001193 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001196 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001197 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { echo "$as_me: error: Working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1233
1234
John Criswell451f67f2003-10-16 01:45:35 +00001235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001240$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001241 X"$0" : 'X\(//\)[^/]' \| \
1242 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001244echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\/\)[^/].*/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\).*/{
1258 s//\1/
1259 q
1260 }
1261 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001262 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001263 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001264 srcdir=..
1265 fi
1266else
1267 ac_srcdir_defaulted=no
1268fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001269if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001272 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001273fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001277 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001278 pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
John Criswell451f67f2003-10-16 01:45:35 +00001295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
John Criswell451f67f2003-10-16 01:45:35 +00001323Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001325 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001327 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001356_ACEOF
1357
1358 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001359
1360System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1370 esac
1371 cat <<\_ACEOF
1372
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001373Optional Features:
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-polly Use polly if available (default is YES)
Eric Christopherb2bc6e42012-03-26 02:09:01 +00001377 --enable-libcpp Use libc++ if available (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1381 YES)
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1384 is NO)
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1386 NO)
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1395 is YES)
1396 --enable-shared Build a shared library and link tools against it
1397 (default is NO)
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1401 (default is YES)
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001404 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405 xcore, msp430, ptx, cbe, and cpp (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001406 --enable-bindings Build specific language bindings:
1407 all,auto,none,{binding-name} (default=auto)
1408 --enable-libffi Check for the presence of libffi (default is NO)
1409 --enable-ltdl-install install libltdl
1410
John Criswell451f67f2003-10-16 01:45:35 +00001411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-llvmsrc Location of LLVM Source Code
1415 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001416 --with-optimize-option Select the compiler options to use for optimized
1417 builds
1418 --with-extra-options Specify additional options to compile LLVM with
1419 --with-extra-ld-options Specify additional options to link LLVM with
1420 --with-ocaml-libdir Specify install location for ocaml bindings (default
1421 is stdlib)
1422 --with-clang-resource-dir
1423 Relative directory from the Clang binary for
1424 resource files
1425 --with-c-include-dirs Colon separated list of directories clang will
1426 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001427 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001428 --with-binutils-include Specify path to binutils/include/ containing
1429 plugin-api.h file for gold plugin.
1430 --with-bug-report-url Specify the URL where bug reports should be
1431 submitted (default=http://llvm.org/bugs/)
1432 --with-tclinclude directory where tcl headers are
1433 --with-udis86=<path> Use udis86 external x86 disassembler library
1434 --with-oprofile=<prefix>
1435 Tell OProfile >= 0.9.4 how to symbolize JIT output
1436
1437Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1444 CXX C++ compiler command
1445 CXXFLAGS C++ compiler flags
1446 CPP C preprocessor
1447
1448Use these variables to override the choices made by `configure' or to help
1449it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001450
1451Report bugs to <bugs@yourdomain>.
1452_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001453ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001459 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001460 ac_builddir=.
1461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
John Criswell451f67f2003-10-16 01:45:35 +00001465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001477
1478case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001479 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001480 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001484 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001491esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001493
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001502 else
1503 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001506 done
1507fi
1508
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001509test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001510if $ac_init_version; then
1511 cat <<\_ACEOF
1512[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001513generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001514
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001515Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15162002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001520 exit
John Criswell451f67f2003-10-16 01:45:35 +00001521fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001522cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001523This file contains any messages produced by compilers while
1524running configure, to aid debugging if configure makes a mistake.
1525
1526It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001527generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001528
1529 $ $0 $@
1530
1531_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001532exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001533{
1534cat <<_ASUNAME
1535## --------- ##
1536## Platform. ##
1537## --------- ##
1538
1539hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1540uname -m = `(uname -m) 2>/dev/null || echo unknown`
1541uname -r = `(uname -r) 2>/dev/null || echo unknown`
1542uname -s = `(uname -s) 2>/dev/null || echo unknown`
1543uname -v = `(uname -v) 2>/dev/null || echo unknown`
1544
1545/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1546/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1547
1548/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1549/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1550/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001551/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001552/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1553/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1554/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1555
1556_ASUNAME
1557
1558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559for as_dir in $PATH
1560do
1561 IFS=$as_save_IFS
1562 test -z "$as_dir" && as_dir=.
1563 echo "PATH: $as_dir"
1564done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001565IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001566
1567} >&5
1568
1569cat >&5 <<_ACEOF
1570
1571
1572## ----------- ##
1573## Core tests. ##
1574## ----------- ##
1575
1576_ACEOF
1577
1578
1579# Keep a trace of the command line.
1580# Strip out --no-create and --no-recursion so they do not pile up.
1581# Strip out --silent because we don't want to record it for future runs.
1582# Also quote any args containing shell meta-characters.
1583# Make two passes to allow for proper duplicate-argument suppression.
1584ac_configure_args=
1585ac_configure_args0=
1586ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001587ac_must_keep_next=false
1588for ac_pass in 1 2
1589do
1590 for ac_arg
1591 do
1592 case $ac_arg in
1593 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1595 | -silent | --silent | --silen | --sile | --sil)
1596 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001597 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001598 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1599 esac
1600 case $ac_pass in
1601 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1602 2)
1603 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1604 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001605 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001606 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001607 case $ac_arg in
1608 *=* | --config-cache | -C | -disable-* | --disable-* \
1609 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1610 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1611 | -with-* | --with-* | -without-* | --without-* | --x)
1612 case "$ac_configure_args0 " in
1613 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1614 esac
1615 ;;
1616 -* ) ac_must_keep_next=true ;;
1617 esac
John Criswell451f67f2003-10-16 01:45:35 +00001618 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001619 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001620 ;;
1621 esac
1622 done
1623done
1624$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1625$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1626
1627# When interrupted or exit'd, cleanup temporary files, and complete
1628# config.log. We remove comments because anyway the quotes in there
1629# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001630# WARNING: Use '\'' to represent an apostrophe within the trap.
1631# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001632trap 'exit_status=$?
1633 # Save into config.log some information that might help in debugging.
1634 {
1635 echo
1636
1637 cat <<\_ASBOX
1638## ---------------- ##
1639## Cache variables. ##
1640## ---------------- ##
1641_ASBOX
1642 echo
1643 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001644(
1645 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1646 eval ac_val=\$$ac_var
1647 case $ac_val in #(
1648 *${as_nl}*)
1649 case $ac_var in #(
1650 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1651echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1652 esac
1653 case $ac_var in #(
1654 _ | IFS | as_nl) ;; #(
1655 *) $as_unset $ac_var ;;
1656 esac ;;
1657 esac
1658 done
John Criswell451f67f2003-10-16 01:45:35 +00001659 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001660 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1661 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001662 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001663 "s/'\''/'\''\\\\'\'''\''/g;
1664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1665 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001666 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001668 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001669 esac |
1670 sort
1671)
John Criswell451f67f2003-10-16 01:45:35 +00001672 echo
1673
1674 cat <<\_ASBOX
1675## ----------------- ##
1676## Output variables. ##
1677## ----------------- ##
1678_ASBOX
1679 echo
1680 for ac_var in $ac_subst_vars
1681 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001682 eval ac_val=\$$ac_var
1683 case $ac_val in
1684 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1685 esac
1686 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001687 done | sort
1688 echo
1689
1690 if test -n "$ac_subst_files"; then
1691 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001692## ------------------- ##
1693## File substitutions. ##
1694## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001695_ASBOX
1696 echo
1697 for ac_var in $ac_subst_files
1698 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001699 eval ac_val=\$$ac_var
1700 case $ac_val in
1701 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1702 esac
1703 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001704 done | sort
1705 echo
1706 fi
1707
1708 if test -s confdefs.h; then
1709 cat <<\_ASBOX
1710## ----------- ##
1711## confdefs.h. ##
1712## ----------- ##
1713_ASBOX
1714 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001715 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001716 echo
1717 fi
1718 test "$ac_signal" != 0 &&
1719 echo "$as_me: caught signal $ac_signal"
1720 echo "$as_me: exit $exit_status"
1721 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001722 rm -f core *.core core.conftest.* &&
1723 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001724 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001725' 0
John Criswell451f67f2003-10-16 01:45:35 +00001726for ac_signal in 1 2 13 15; do
1727 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1728done
1729ac_signal=0
1730
1731# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001732rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001733
1734# Predefined preprocessor variables.
1735
1736cat >>confdefs.h <<_ACEOF
1737#define PACKAGE_NAME "$PACKAGE_NAME"
1738_ACEOF
1739
1740
1741cat >>confdefs.h <<_ACEOF
1742#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1743_ACEOF
1744
1745
1746cat >>confdefs.h <<_ACEOF
1747#define PACKAGE_VERSION "$PACKAGE_VERSION"
1748_ACEOF
1749
1750
1751cat >>confdefs.h <<_ACEOF
1752#define PACKAGE_STRING "$PACKAGE_STRING"
1753_ACEOF
1754
1755
1756cat >>confdefs.h <<_ACEOF
1757#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1758_ACEOF
1759
1760
1761# Let the site file select an alternate cache file if it wants to.
1762# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001763if test -n "$CONFIG_SITE"; then
1764 set x "$CONFIG_SITE"
1765elif test "x$prefix" != xNONE; then
1766 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1767else
1768 set x "$ac_default_prefix/share/config.site" \
1769 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001770fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001771shift
1772for ac_site_file
1773do
John Criswell451f67f2003-10-16 01:45:35 +00001774 if test -r "$ac_site_file"; then
1775 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1776echo "$as_me: loading site script $ac_site_file" >&6;}
1777 sed 's/^/| /' "$ac_site_file" >&5
1778 . "$ac_site_file"
1779 fi
1780done
1781
1782if test -r "$cache_file"; then
1783 # Some versions of bash will fail to source /dev/null (special
1784 # files actually), so we avoid doing that.
1785 if test -f "$cache_file"; then
1786 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1787echo "$as_me: loading cache $cache_file" >&6;}
1788 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001789 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1790 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001791 esac
1792 fi
1793else
1794 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1795echo "$as_me: creating cache $cache_file" >&6;}
1796 >$cache_file
1797fi
1798
1799# Check that the precious variables saved in the cache have kept the same
1800# value.
1801ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001802for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001803 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1804 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001805 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1806 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001807 case $ac_old_set,$ac_new_set in
1808 set,)
1809 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1810echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1811 ac_cache_corrupted=: ;;
1812 ,set)
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1814echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1816 ,);;
1817 *)
1818 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001819 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001820echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001821 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001822echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001823 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001824echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001825 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001826 fi;;
1827 esac
1828 # Pass precious variables to config.status.
1829 if test "$ac_new_set" = set; then
1830 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001831 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001832 *) ac_arg=$ac_var=$ac_new_val ;;
1833 esac
1834 case " $ac_configure_args " in
1835 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1836 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1837 esac
1838 fi
1839done
1840if $ac_cache_corrupted; then
1841 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1842echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1843 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1844echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1845 { (exit 1); exit 1; }; }
1846fi
1847
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
John Criswell451f67f2003-10-16 01:45:35 +00001872ac_ext=c
1873ac_cpp='$CPP $CPPFLAGS'
1874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877
1878
1879
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001880LLVM_SRC_ROOT="../.."
1881LLVM_OBJ_ROOT="../.."
1882
1883LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1884LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001885
1886
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001887# Check whether --with-llvmsrc was given.
1888if test "${with_llvmsrc+set}" = set; then
1889 withval=$with_llvmsrc; llvm_src="$withval"
1890else
1891 llvm_src="$LLVM_ABS_SRC_ROOT"
1892fi
1893
1894 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001895
1896
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001897# Check whether --with-llvmobj was given.
1898if test "${with_llvmobj+set}" = set; then
1899 withval=$with_llvmobj; llvm_obj="$withval"
1900else
1901 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1902fi
Dan Gohman324f6082009-03-25 00:52:11 +00001903
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001904 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001905
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001906 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001907
1908
1909
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001910{ echo "$as_me:$LINENO: checking llvm-config" >&5
1911echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1912llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1913if ! test -f "$llvm_config_path" ; then
1914 llvm_config_path="no"
1915fi
1916{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1917echo "${ECHO_T}$llvm_config_path" >&6; }
1918
1919{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1920echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1921if test "$llvm_config_path" != no ; then
1922 llvm_package_version=`$llvm_config_path --version`
1923else
1924 llvm_package_version="unknown";
1925fi
1926{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1927echo "${ECHO_T}$llvm_package_version" >&6; }
1928LLVM_VERSION=$llvm_package_version
1929
1930
1931
1932
John Criswell451f67f2003-10-16 01:45:35 +00001933ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001934for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001935 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1938 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001939 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1942 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001943 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 break
1947 fi
1948done
1949if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1951echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001952 { (exit 1); exit 1; }; }
1953fi
John Criswell451f67f2003-10-16 01:45:35 +00001954
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001955# These three variables are undocumented and unsupported,
1956# and are intended to be withdrawn in a future Autoconf release.
1957# They can cause serious problems if a builder's source tree is in a directory
1958# whose full name contains unusual characters.
1959ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001962
1963
1964
1965
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001966ac_ext=c
1967ac_cpp='$CPP $CPPFLAGS'
1968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971if test -n "$ac_tool_prefix"; then
1972 for ac_prog in clang llvm-gcc gcc
1973 do
1974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1983else
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1994 fi
1995done
1996done
1997IFS=$as_save_IFS
1998
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003 { echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6; }
2005else
2006 { echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6; }
2008fi
2009
2010
2011 test -n "$CC" && break
2012 done
2013fi
2014if test -z "$CC"; then
2015 ac_ct_CC=$CC
2016 for ac_prog in clang llvm-gcc gcc
2017do
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019set dummy $ac_prog; ac_word=$2
2020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_ac_ct_CC="$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039done
2040done
2041IFS=$as_save_IFS
2042
2043fi
2044fi
2045ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046if test -n "$ac_ct_CC"; then
2047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048echo "${ECHO_T}$ac_ct_CC" >&6; }
2049else
2050 { echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6; }
2052fi
2053
2054
2055 test -n "$ac_ct_CC" && break
2056done
2057
2058 if test "x$ac_ct_CC" = x; then
2059 CC=""
2060 else
2061 case $cross_compiling:$ac_tool_warned in
2062yes:)
2063{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2064whose name does not start with the host triplet. If you think this
2065configuration is useful to you, please write to autoconf@gnu.org." >&5
2066echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2067whose name does not start with the host triplet. If you think this
2068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2069ac_tool_warned=yes ;;
2070esac
2071 CC=$ac_ct_CC
2072 fi
2073fi
2074
2075
2076test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077See \`config.log' for more details." >&5
2078echo "$as_me: error: no acceptable C compiler found in \$PATH
2079See \`config.log' for more details." >&2;}
2080 { (exit 1); exit 1; }; }
2081
2082# Provide some information about the compiler.
2083echo "$as_me:$LINENO: checking for C compiler version" >&5
2084ac_compiler=`set X $ac_compile; echo $2`
2085{ (ac_try="$ac_compiler --version >&5"
2086case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089esac
2090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2091 (eval "$ac_compiler --version >&5") 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095{ (ac_try="$ac_compiler -v >&5"
2096case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099esac
2100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler -v >&5") 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105{ (ac_try="$ac_compiler -V >&5"
2106case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109esac
2110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -V >&5") 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115
2116cat >conftest.$ac_ext <<_ACEOF
2117/* confdefs.h. */
2118_ACEOF
2119cat confdefs.h >>conftest.$ac_ext
2120cat >>conftest.$ac_ext <<_ACEOF
2121/* end confdefs.h. */
2122
2123int
2124main ()
2125{
2126
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131ac_clean_files_save=$ac_clean_files
2132ac_clean_files="$ac_clean_files a.out a.exe b.out"
2133# Try to create an executable without -o first, disregard a.out.
2134# It will help us diagnose broken compilers, and finding out an intuition
2135# of exeext.
2136{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2138ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139#
2140# List of possible output files, starting from the most likely.
2141# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2142# only as a last resort. b.out is created by i960 compilers.
2143ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2144#
2145# The IRIX 6 linker writes into existing files which may not be
2146# executable, retaining their permissions. Remove them first so a
2147# subsequent execution test works.
2148ac_rmfiles=
2149for ac_file in $ac_files
2150do
2151 case $ac_file in
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2153 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154 esac
2155done
2156rm -f $ac_rmfiles
2157
2158if { (ac_try="$ac_link_default"
2159case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2162esac
2163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164 (eval "$ac_link_default") 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2169# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2170# in a Makefile. We should not override ac_cv_exeext if it was cached,
2171# so that the user can short-circuit this test for compilers unknown to
2172# Autoconf.
2173for ac_file in $ac_files
2174do
2175 test -f "$ac_file" || continue
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2178 ;;
2179 [ab].out )
2180 # We found the default executable, but exeext='' is most
2181 # certainly right.
2182 break;;
2183 *.* )
2184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2185 then :; else
2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187 fi
2188 # We set ac_cv_exeext here because the later test for it is not
2189 # safe: cross compilers may not add the suffix if given an `-o'
2190 # argument, so we may need to know it at that point already.
2191 # Even if this section looks crufty: it has the advantage of
2192 # actually working.
2193 break;;
2194 * )
2195 break;;
2196 esac
2197done
2198test "$ac_cv_exeext" = no && ac_cv_exeext=
2199
2200else
2201 echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: C compiler cannot create executables
2207See \`config.log' for more details." >&2;}
2208 { (exit 77); exit 77; }; }
2209fi
2210
2211ac_exeext=$ac_cv_exeext
2212{ echo "$as_me:$LINENO: result: $ac_file" >&5
2213echo "${ECHO_T}$ac_file" >&6; }
2214
2215# Check that the compiler produces executables we can run. If not, either
2216# the compiler is broken, or we cross compile.
2217{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2219# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220# If not cross compiling, check that we can run a simple program.
2221if test "$cross_compiling" != yes; then
2222 if { ac_try='./$ac_file'
2223 { (case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226esac
2227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_try") 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 cross_compiling=no
2233 else
2234 if test "$cross_compiling" = maybe; then
2235 cross_compiling=yes
2236 else
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&5
2240echo "$as_me: error: cannot run C compiled programs.
2241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2244 fi
2245 fi
2246fi
2247{ echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6; }
2249
2250rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251ac_clean_files=$ac_clean_files_save
2252# Check that the compiler produces executables we can run. If not, either
2253# the compiler is broken, or we cross compile.
2254{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2256{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257echo "${ECHO_T}$cross_compiling" >&6; }
2258
2259{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2261if { (ac_try="$ac_link"
2262case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265esac
2266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_link") 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
2275for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2277 case $ac_file in
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 break;;
2281 * ) break;;
2282 esac
2283done
2284else
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2288See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2290fi
2291
2292rm -f conftest$ac_cv_exeext
2293{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2294echo "${ECHO_T}$ac_cv_exeext" >&6; }
2295
2296rm -f conftest.$ac_ext
2297EXEEXT=$ac_cv_exeext
2298ac_exeext=$EXEEXT
2299{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2301if test "${ac_cv_objext+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 cat >conftest.$ac_ext <<_ACEOF
2305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h. */
2310
2311int
2312main ()
2313{
2314
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319rm -f conftest.o conftest.obj
2320if { (ac_try="$ac_compile"
2321case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324esac
2325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_compile") 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
2330 for ac_file in conftest.o conftest.obj conftest.*; do
2331 test -f "$ac_file" || continue;
2332 case $ac_file in
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 break;;
2336 esac
2337done
2338else
2339 echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&5
2344echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2347fi
2348
2349rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350fi
2351{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352echo "${ECHO_T}$ac_cv_objext" >&6; }
2353OBJEXT=$ac_cv_objext
2354ac_objext=$OBJEXT
2355{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2357if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360 cat >conftest.$ac_ext <<_ACEOF
2361/* confdefs.h. */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h. */
2366
2367int
2368main ()
2369{
2370#ifndef __GNUC__
2371 choke me
2372#endif
2373
2374 ;
2375 return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (ac_try="$ac_compile"
2380case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383esac
2384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compile") 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396esac
2397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_try") 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406esac
2407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_compiler_gnu=yes
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_compiler_gnu=no
2418fi
2419
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
2424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
2429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2436 ac_cv_prog_cc_g=no
2437 CFLAGS="-g"
2438 cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444
2445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
2454if { (ac_try="$ac_compile"
2455case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458esac
2459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471esac
2472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_try") 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 ac_cv_prog_cc_g=yes
2488else
2489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 CFLAGS=""
2493 cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h. */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h. */
2499
2500int
2501main ()
2502{
2503
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508rm -f conftest.$ac_objext
2509if { (ac_try="$ac_compile"
2510case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513esac
2514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_compile") 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523 { (case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_try") 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536esac
2537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 :
2543else
2544 echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_c_werror_flag=$ac_save_c_werror_flag
2548 CFLAGS="-g"
2549 cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556int
2557main ()
2558{
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (ac_try="$ac_compile"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compile") 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579 { (case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_try") 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 ac_cv_prog_cc_g=yes
2599else
2600 echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603
2604fi
2605
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611
2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_c_werror_flag=$ac_save_c_werror_flag
2614fi
2615{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2617if test "$ac_test_CFLAGS" = set; then
2618 CFLAGS=$ac_save_CFLAGS
2619elif test $ac_cv_prog_cc_g = yes; then
2620 if test "$GCC" = yes; then
2621 CFLAGS="-g -O2"
2622 else
2623 CFLAGS="-g"
2624 fi
2625else
2626 if test "$GCC" = yes; then
2627 CFLAGS="-O2"
2628 else
2629 CFLAGS=
2630 fi
2631fi
2632{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2633echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_cc_c89+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 ac_cv_prog_cc_c89=no
2638ac_save_CC=$CC
2639cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
2645#include <stdarg.h>
2646#include <stdio.h>
2647#include <sys/types.h>
2648#include <sys/stat.h>
2649/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650struct buf { int x; };
2651FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652static char *e (p, i)
2653 char **p;
2654 int i;
2655{
2656 return p[i];
2657}
2658static char *f (char * (*g) (char **, int), char **p, ...)
2659{
2660 char *s;
2661 va_list v;
2662 va_start (v,p);
2663 s = g (p, va_arg (v,int));
2664 va_end (v);
2665 return s;
2666}
2667
2668/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2669 function prototypes and stuff, but not '\xHH' hex character constants.
2670 These don't provoke an error unfortunately, instead are silently treated
2671 as 'x'. The following induces an error, until -std is added to get
2672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2673 array size at least. It's necessary to write '\x00'==0 to get something
2674 that's true only with -std. */
2675int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2676
2677/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2678 inside strings and character constants. */
2679#define FOO(x) 'x'
2680int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2681
2682int test (int i, double x);
2683struct s1 {int (*f) (int a);};
2684struct s2 {int (*f) (double a);};
2685int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686int argc;
2687char **argv;
2688int
2689main ()
2690{
2691return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2698do
2699 CC="$ac_save_CC $ac_arg"
2700 rm -f conftest.$ac_objext
2701if { (ac_try="$ac_compile"
2702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715 { (case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_try") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_cv_prog_cc_c89=$ac_arg
2735else
2736 echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739
2740fi
2741
2742rm -f core conftest.err conftest.$ac_objext
2743 test "x$ac_cv_prog_cc_c89" != "xno" && break
2744done
2745rm -f conftest.$ac_ext
2746CC=$ac_save_CC
2747
2748fi
2749# AC_CACHE_VAL
2750case "x$ac_cv_prog_cc_c89" in
2751 x)
2752 { echo "$as_me:$LINENO: result: none needed" >&5
2753echo "${ECHO_T}none needed" >&6; } ;;
2754 xno)
2755 { echo "$as_me:$LINENO: result: unsupported" >&5
2756echo "${ECHO_T}unsupported" >&6; } ;;
2757 *)
2758 CC="$CC $ac_cv_prog_cc_c89"
2759 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2760echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2761esac
2762
2763
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770ac_ext=cpp
2771ac_cpp='$CXXCPP $CPPFLAGS'
2772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2775if test -z "$CXX"; then
2776 if test -n "$CCC"; then
2777 CXX=$CCC
2778 else
2779 if test -n "$ac_tool_prefix"; then
2780 for ac_prog in clang++ llvm-g++ g++
2781 do
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786if test "${ac_cv_prog_CXX+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788else
2789 if test -n "$CXX"; then
2790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809CXX=$ac_cv_prog_CXX
2810if test -n "$CXX"; then
2811 { echo "$as_me:$LINENO: result: $CXX" >&5
2812echo "${ECHO_T}$CXX" >&6; }
2813else
2814 { echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6; }
2816fi
2817
2818
2819 test -n "$CXX" && break
2820 done
2821fi
2822if test -z "$CXX"; then
2823 ac_ct_CXX=$CXX
2824 for ac_prog in clang++ llvm-g++ g++
2825do
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827set dummy $ac_prog; ac_word=$2
2828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833 if test -n "$ac_ct_CXX"; then
2834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_CXX="$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847done
2848done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2854if test -n "$ac_ct_CXX"; then
2855 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2856echo "${ECHO_T}$ac_ct_CXX" >&6; }
2857else
2858 { echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6; }
2860fi
2861
2862
2863 test -n "$ac_ct_CXX" && break
2864done
2865
2866 if test "x$ac_ct_CXX" = x; then
2867 CXX="g++"
2868 else
2869 case $cross_compiling:$ac_tool_warned in
2870yes:)
2871{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2872whose name does not start with the host triplet. If you think this
2873configuration is useful to you, please write to autoconf@gnu.org." >&5
2874echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2875whose name does not start with the host triplet. If you think this
2876configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2877ac_tool_warned=yes ;;
2878esac
2879 CXX=$ac_ct_CXX
2880 fi
2881fi
2882
2883 fi
2884fi
2885# Provide some information about the compiler.
2886echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2887ac_compiler=`set X $ac_compile; echo $2`
2888{ (ac_try="$ac_compiler --version >&5"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compiler --version >&5") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2898{ (ac_try="$ac_compiler -v >&5"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler -v >&5") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908{ (ac_try="$ac_compiler -V >&5"
2909case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -V >&5") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918
2919{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2920echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2921if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924 cat >conftest.$ac_ext <<_ACEOF
2925/* confdefs.h. */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h. */
2930
2931int
2932main ()
2933{
2934#ifndef __GNUC__
2935 choke me
2936#endif
2937
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (ac_try="$ac_compile"
2944case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2957 { (case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_try") 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_compiler_gnu=yes
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 ac_compiler_gnu=no
2982fi
2983
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986
2987fi
2988{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2989echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2990GXX=`test $ac_compiler_gnu = yes && echo yes`
2991ac_test_CXXFLAGS=${CXXFLAGS+set}
2992ac_save_CXXFLAGS=$CXXFLAGS
2993{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2994echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2995if test "${ac_cv_prog_cxx_g+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2999 ac_cxx_werror_flag=yes
3000 ac_cv_prog_cxx_g=no
3001 CXXFLAGS="-g"
3002 cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017rm -f conftest.$ac_objext
3018if { (ac_try="$ac_compile"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3052else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 CXXFLAGS=""
3057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
3063
3064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext
3073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 :
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3112 CXXFLAGS="-g"
3113 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119
3120int
3121main ()
3122{
3123
3124 ;
3125 return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext
3129if { (ac_try="$ac_compile"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_prog_cxx_g=yes
3163else
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3178fi
3179{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3180echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3181if test "$ac_test_CXXFLAGS" = set; then
3182 CXXFLAGS=$ac_save_CXXFLAGS
3183elif test $ac_cv_prog_cxx_g = yes; then
3184 if test "$GXX" = yes; then
3185 CXXFLAGS="-g -O2"
3186 else
3187 CXXFLAGS="-g"
3188 fi
3189else
3190 if test "$GXX" = yes; then
3191 CXXFLAGS="-O2"
3192 else
3193 CXXFLAGS=
3194 fi
3195fi
3196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201
3202ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3209# On Suns, sometimes $CPP names a directory.
3210if test -n "$CPP" && test -d "$CPP"; then
3211 CPP=
3212fi
3213if test -z "$CPP"; then
3214 if test "${ac_cv_prog_CPP+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217 # Double quotes because CPP needs to be expanded
3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219 do
3220 ac_preproc_ok=false
3221for ac_c_preproc_warn_flag in '' yes
3222do
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235#ifdef __STDC__
3236# include <limits.h>
3237#else
3238# include <assert.h>
3239#endif
3240 Syntax error
3241_ACEOF
3242if { (ac_try="$ac_cpp conftest.$ac_ext"
3243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null; then
3255 if test -s conftest.err; then
3256 ac_cpp_err=$ac_c_preproc_warn_flag
3257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258 else
3259 ac_cpp_err=
3260 fi
3261else
3262 ac_cpp_err=yes
3263fi
3264if test -z "$ac_cpp_err"; then
3265 :
3266else
3267 echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 # Broken: fails on valid input.
3271continue
3272fi
3273
3274rm -f conftest.err conftest.$ac_ext
3275
3276 # OK, works on sane cases. Now check whether nonexistent headers
3277 # can be detected and how.
3278 cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h. */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h. */
3284#include <ac_nonexistent.h>
3285_ACEOF
3286if { (ac_try="$ac_cpp conftest.$ac_ext"
3287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302 else
3303 ac_cpp_err=
3304 fi
3305else
3306 ac_cpp_err=yes
3307fi
3308if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input.
3310continue
3311else
3312 echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 # Passes both tests.
3316ac_preproc_ok=:
3317break
3318fi
3319
3320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326 break
3327fi
3328
3329 done
3330 ac_cv_prog_CPP=$CPP
3331
3332fi
3333 CPP=$ac_cv_prog_CPP
3334else
3335 ac_cv_prog_CPP=$CPP
3336fi
3337{ echo "$as_me:$LINENO: result: $CPP" >&5
3338echo "${ECHO_T}$CPP" >&6; }
3339ac_preproc_ok=false
3340for ac_c_preproc_warn_flag in '' yes
3341do
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354#ifdef __STDC__
3355# include <limits.h>
3356#else
3357# include <assert.h>
3358#endif
3359 Syntax error
3360_ACEOF
3361if { (ac_try="$ac_cpp conftest.$ac_ext"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null; then
3374 if test -s conftest.err; then
3375 ac_cpp_err=$ac_c_preproc_warn_flag
3376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377 else
3378 ac_cpp_err=
3379 fi
3380else
3381 ac_cpp_err=yes
3382fi
3383if test -z "$ac_cpp_err"; then
3384 :
3385else
3386 echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 # Broken: fails on valid input.
3390continue
3391fi
3392
3393rm -f conftest.err conftest.$ac_ext
3394
3395 # OK, works on sane cases. Now check whether nonexistent headers
3396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
3403#include <ac_nonexistent.h>
3404_ACEOF
3405if { (ac_try="$ac_cpp conftest.$ac_ext"
3406case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 else
3422 ac_cpp_err=
3423 fi
3424else
3425 ac_cpp_err=yes
3426fi
3427if test -z "$ac_cpp_err"; then
3428 # Broken: success on invalid input.
3429continue
3430else
3431 echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 # Passes both tests.
3435ac_preproc_ok=:
3436break
3437fi
3438
3439rm -f conftest.err conftest.$ac_ext
3440
3441done
3442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443rm -f conftest.err conftest.$ac_ext
3444if $ac_preproc_ok; then
3445 :
3446else
3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3452fi
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
3461
3462
3463# Check whether --enable-polly was given.
3464if test "${enable_polly+set}" = set; then
3465 enableval=$enable_polly;
3466else
3467 enableval=default
3468fi
3469
3470case "$enableval" in
3471 yes) ENABLE_POLLY=1
3472 ;;
3473 no) ENABLE_POLLY=0
3474 ;;
3475 default) ENABLE_POLLY=1
3476 ;;
3477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3478echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3479 { (exit 1); exit 1; }; } ;;
3480esac
3481
3482
3483if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3484 LLVM_HAS_POLLY=1
3485
3486 subdirs="$subdirs tools/polly"
3487
3488fi
3489
3490
3491# Make sure we can run config.sub.
3492$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3493 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3494echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3495 { (exit 1); exit 1; }; }
3496
3497{ echo "$as_me:$LINENO: checking build system type" >&5
3498echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3499if test "${ac_cv_build+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
3502 ac_build_alias=$build_alias
3503test "x$ac_build_alias" = x &&
3504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3505test "x$ac_build_alias" = x &&
3506 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3507echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3508 { (exit 1); exit 1; }; }
3509ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3510 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3511echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3512 { (exit 1); exit 1; }; }
3513
3514fi
3515{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3516echo "${ECHO_T}$ac_cv_build" >&6; }
3517case $ac_cv_build in
3518*-*-*) ;;
3519*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3520echo "$as_me: error: invalid value of canonical build" >&2;}
3521 { (exit 1); exit 1; }; };;
3522esac
3523build=$ac_cv_build
3524ac_save_IFS=$IFS; IFS='-'
3525set x $ac_cv_build
3526shift
3527build_cpu=$1
3528build_vendor=$2
3529shift; shift
3530# Remember, the first character of IFS is used to create $*,
3531# except with old shells:
3532build_os=$*
3533IFS=$ac_save_IFS
3534case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3535
3536
3537{ echo "$as_me:$LINENO: checking host system type" >&5
3538echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3539if test "${ac_cv_host+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 if test "x$host_alias" = x; then
3543 ac_cv_host=$ac_cv_build
3544else
3545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3546 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3547echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3548 { (exit 1); exit 1; }; }
3549fi
3550
3551fi
3552{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3553echo "${ECHO_T}$ac_cv_host" >&6; }
3554case $ac_cv_host in
3555*-*-*) ;;
3556*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3557echo "$as_me: error: invalid value of canonical host" >&2;}
3558 { (exit 1); exit 1; }; };;
3559esac
3560host=$ac_cv_host
3561ac_save_IFS=$IFS; IFS='-'
3562set x $ac_cv_host
3563shift
3564host_cpu=$1
3565host_vendor=$2
3566shift; shift
3567# Remember, the first character of IFS is used to create $*,
3568# except with old shells:
3569host_os=$*
3570IFS=$ac_save_IFS
3571case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3572
3573
3574{ echo "$as_me:$LINENO: checking target system type" >&5
3575echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3576if test "${ac_cv_target+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 if test "x$target_alias" = x; then
3580 ac_cv_target=$ac_cv_host
3581else
3582 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3583 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3584echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3585 { (exit 1); exit 1; }; }
3586fi
3587
3588fi
3589{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3590echo "${ECHO_T}$ac_cv_target" >&6; }
3591case $ac_cv_target in
3592*-*-*) ;;
3593*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3594echo "$as_me: error: invalid value of canonical target" >&2;}
3595 { (exit 1); exit 1; }; };;
3596esac
3597target=$ac_cv_target
3598ac_save_IFS=$IFS; IFS='-'
3599set x $ac_cv_target
3600shift
3601target_cpu=$1
3602target_vendor=$2
3603shift; shift
3604# Remember, the first character of IFS is used to create $*,
3605# except with old shells:
3606target_os=$*
3607IFS=$ac_save_IFS
3608case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3609
3610
3611# The aliases save the names the user supplied, while $host etc.
3612# will get canonicalized.
3613test -n "$target_alias" &&
3614 test "$program_prefix$program_suffix$program_transform_name" = \
3615 NONENONEs,x,x, &&
3616 program_prefix=${target_alias}-
3617
3618{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3619echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3620if test "${llvm_cv_os_type+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 case $host in
3624 *-*-aix*)
3625 llvm_cv_link_all_option="-Wl,--whole-archive"
3626 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3627 llvm_cv_os_type="AIX"
3628 llvm_cv_platform_type="Unix" ;;
3629 *-*-irix*)
3630 llvm_cv_link_all_option="-Wl,--whole-archive"
3631 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3632 llvm_cv_os_type="IRIX"
3633 llvm_cv_platform_type="Unix" ;;
3634 *-*-cygwin*)
3635 llvm_cv_link_all_option="-Wl,--whole-archive"
3636 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3637 llvm_cv_os_type="Cygwin"
3638 llvm_cv_platform_type="Unix" ;;
3639 *-*-darwin*)
3640 llvm_cv_link_all_option="-Wl,-all_load"
3641 llvm_cv_no_link_all_option="-Wl,-noall_load"
3642 llvm_cv_os_type="Darwin"
3643 llvm_cv_platform_type="Unix" ;;
3644 *-*-minix*)
3645 llvm_cv_link_all_option="-Wl,-all_load"
3646 llvm_cv_no_link_all_option="-Wl,-noall_load"
3647 llvm_cv_os_type="Minix"
3648 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003649 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003650 llvm_cv_link_all_option="-Wl,--whole-archive"
3651 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3652 llvm_cv_os_type="FreeBSD"
3653 llvm_cv_platform_type="Unix" ;;
3654 *-*-openbsd*)
3655 llvm_cv_link_all_option="-Wl,--whole-archive"
3656 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3657 llvm_cv_os_type="OpenBSD"
3658 llvm_cv_platform_type="Unix" ;;
3659 *-*-netbsd*)
3660 llvm_cv_link_all_option="-Wl,--whole-archive"
3661 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3662 llvm_cv_os_type="NetBSD"
3663 llvm_cv_platform_type="Unix" ;;
3664 *-*-dragonfly*)
3665 llvm_cv_link_all_option="-Wl,--whole-archive"
3666 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3667 llvm_cv_os_type="DragonFly"
3668 llvm_cv_platform_type="Unix" ;;
3669 *-*-hpux*)
3670 llvm_cv_link_all_option="-Wl,--whole-archive"
3671 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3672 llvm_cv_os_type="HP-UX"
3673 llvm_cv_platform_type="Unix" ;;
3674 *-*-interix*)
3675 llvm_cv_link_all_option="-Wl,--whole-archive"
3676 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677 llvm_cv_os_type="Interix"
3678 llvm_cv_platform_type="Unix" ;;
3679 *-*-linux*)
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="Linux"
3683 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003684 *-*-gnu*)
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="GNU"
3688 llvm_cv_platform_type="Unix" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003689 *-*-solaris*)
3690 llvm_cv_link_all_option="-Wl,-z,allextract"
3691 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3692 llvm_cv_os_type="SunOS"
3693 llvm_cv_platform_type="Unix" ;;
3694 *-*-auroraux*)
3695 llvm_cv_link_all_option="-Wl,-z,allextract"
3696 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3697 llvm_cv_os_type="AuroraUX"
3698 llvm_cv_platform_type="Unix" ;;
3699 *-*-win32*)
3700 llvm_cv_link_all_option="-Wl,--whole-archive"
3701 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3702 llvm_cv_os_type="Win32"
3703 llvm_cv_platform_type="Win32" ;;
3704 *-*-mingw*)
3705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="MingW"
3708 llvm_cv_platform_type="Win32" ;;
3709 *-*-haiku*)
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="Haiku"
3713 llvm_cv_platform_type="Unix" ;;
3714 *-unknown-eabi*)
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="Freestanding"
3718 llvm_cv_platform_type="Unix" ;;
3719 *-unknown-elf*)
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="Freestanding"
3723 llvm_cv_platform_type="Unix" ;;
3724 *)
3725 llvm_cv_link_all_option=""
3726 llvm_cv_no_link_all_option=""
3727 llvm_cv_os_type="Unknown"
3728 llvm_cv_platform_type="Unknown" ;;
3729esac
3730fi
3731{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3732echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3733
3734{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3735echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3736if test "${llvm_cv_target_os_type+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 case $target in
3740 *-*-aix*)
3741 llvm_cv_target_os_type="AIX" ;;
3742 *-*-irix*)
3743 llvm_cv_target_os_type="IRIX" ;;
3744 *-*-cygwin*)
3745 llvm_cv_target_os_type="Cygwin" ;;
3746 *-*-darwin*)
3747 llvm_cv_target_os_type="Darwin" ;;
3748 *-*-minix*)
3749 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003750 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003751 llvm_cv_target_os_type="FreeBSD" ;;
3752 *-*-openbsd*)
3753 llvm_cv_target_os_type="OpenBSD" ;;
3754 *-*-netbsd*)
3755 llvm_cv_target_os_type="NetBSD" ;;
3756 *-*-dragonfly*)
3757 llvm_cv_target_os_type="DragonFly" ;;
3758 *-*-hpux*)
3759 llvm_cv_target_os_type="HP-UX" ;;
3760 *-*-interix*)
3761 llvm_cv_target_os_type="Interix" ;;
3762 *-*-linux*)
3763 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003764 *-*-gnu*)
3765 llvm_cv_target_os_type="GNU" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003766 *-*-solaris*)
3767 llvm_cv_target_os_type="SunOS" ;;
3768 *-*-auroraux*)
3769 llvm_cv_target_os_type="AuroraUX" ;;
3770 *-*-win32*)
3771 llvm_cv_target_os_type="Win32" ;;
3772 *-*-mingw*)
3773 llvm_cv_target_os_type="MingW" ;;
3774 *-*-haiku*)
3775 llvm_cv_target_os_type="Haiku" ;;
3776 *-*-rtems*)
3777 llvm_cv_target_os_type="RTEMS" ;;
3778 *-*-nacl*)
3779 llvm_cv_target_os_type="NativeClient" ;;
3780 *-unknown-eabi*)
3781 llvm_cv_target_os_type="Freestanding" ;;
3782 *)
3783 llvm_cv_target_os_type="Unknown" ;;
3784esac
3785fi
3786{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3787echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3788
3789if test "$llvm_cv_os_type" = "Unknown" ; then
3790 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3791echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3792 { (exit 1); exit 1; }; }
3793fi
3794
3795OS=$llvm_cv_os_type
3796
3797HOST_OS=$llvm_cv_os_type
3798
3799TARGET_OS=$llvm_cv_target_os_type
3800
3801
3802LINKALL=$llvm_cv_link_all_option
3803
3804NOLINKALL=$llvm_cv_no_link_all_option
3805
3806
3807case $llvm_cv_platform_type in
3808 Unix)
3809
3810cat >>confdefs.h <<\_ACEOF
3811#define LLVM_ON_UNIX 1
3812_ACEOF
3813
3814 LLVM_ON_UNIX=1
3815
3816 LLVM_ON_WIN32=0
3817
3818 ;;
3819 Win32)
3820
3821cat >>confdefs.h <<\_ACEOF
3822#define LLVM_ON_WIN32 1
3823_ACEOF
3824
3825 LLVM_ON_UNIX=0
3826
3827 LLVM_ON_WIN32=1
3828
3829 ;;
3830esac
3831
3832{ echo "$as_me:$LINENO: checking target architecture" >&5
3833echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3834if test "${llvm_cv_target_arch+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837 case $target in
3838 i?86-*) llvm_cv_target_arch="x86" ;;
3839 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3840 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3841 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003842 arm*-*) llvm_cv_target_arch="ARM" ;;
3843 mips-*) llvm_cv_target_arch="Mips" ;;
3844 xcore-*) llvm_cv_target_arch="XCore" ;;
3845 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003846 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003847 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3848 ptx-*) llvm_cv_target_arch="PTX" ;;
3849 *) llvm_cv_target_arch="Unknown" ;;
3850esac
3851fi
3852{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3853echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3854
3855if test "$llvm_cv_target_arch" = "Unknown" ; then
3856 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3857echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3858fi
3859
3860# Determine the LLVM native architecture for the target
3861case "$llvm_cv_target_arch" in
3862 x86) LLVM_NATIVE_ARCH="X86" ;;
3863 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3864 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3865esac
3866
3867ARCH=$llvm_cv_target_arch
3868
3869
3870
3871
3872{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3873echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3874if test "${ac_cv_path_GREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877 # Extract the first word of "grep ggrep" to use in msg output
3878if test -z "$GREP"; then
3879set dummy grep ggrep; ac_prog_name=$2
3880if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883 ac_path_GREP_found=false
3884# Loop through the user's path and test for each of PROGNAME-LIST
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in grep ggrep; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3893 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3894 # Check for GNU ac_path_GREP and select it if it is found.
3895 # Check for GNU $ac_path_GREP
3896case `"$ac_path_GREP" --version 2>&1` in
3897*GNU*)
3898 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3899*)
3900 ac_count=0
3901 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3902 while :
3903 do
3904 cat "conftest.in" "conftest.in" >"conftest.tmp"
3905 mv "conftest.tmp" "conftest.in"
3906 cp "conftest.in" "conftest.nl"
3907 echo 'GREP' >> "conftest.nl"
3908 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910 ac_count=`expr $ac_count + 1`
3911 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3912 # Best one so far, save it but keep looking for a better one
3913 ac_cv_path_GREP="$ac_path_GREP"
3914 ac_path_GREP_max=$ac_count
3915 fi
3916 # 10*(2^10) chars as input seems more than enough
3917 test $ac_count -gt 10 && break
3918 done
3919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920esac
3921
3922
3923 $ac_path_GREP_found && break 3
3924 done
3925done
3926
3927done
3928IFS=$as_save_IFS
3929
3930
3931fi
3932
3933GREP="$ac_cv_path_GREP"
3934if test -z "$GREP"; then
3935 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937 { (exit 1); exit 1; }; }
3938fi
3939
3940else
3941 ac_cv_path_GREP=$GREP
3942fi
3943
3944
3945fi
3946{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3947echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3948 GREP="$ac_cv_path_GREP"
3949
3950
3951{ echo "$as_me:$LINENO: checking for egrep" >&5
3952echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3953if test "${ac_cv_path_EGREP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3957 then ac_cv_path_EGREP="$GREP -E"
3958 else
3959 # Extract the first word of "egrep" to use in msg output
3960if test -z "$EGREP"; then
3961set dummy egrep; ac_prog_name=$2
3962if test "${ac_cv_path_EGREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965 ac_path_EGREP_found=false
3966# Loop through the user's path and test for each of PROGNAME-LIST
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_prog in egrep; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3975 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3976 # Check for GNU ac_path_EGREP and select it if it is found.
3977 # Check for GNU $ac_path_EGREP
3978case `"$ac_path_EGREP" --version 2>&1` in
3979*GNU*)
3980 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3981*)
3982 ac_count=0
3983 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3984 while :
3985 do
3986 cat "conftest.in" "conftest.in" >"conftest.tmp"
3987 mv "conftest.tmp" "conftest.in"
3988 cp "conftest.in" "conftest.nl"
3989 echo 'EGREP' >> "conftest.nl"
3990 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992 ac_count=`expr $ac_count + 1`
3993 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3994 # Best one so far, save it but keep looking for a better one
3995 ac_cv_path_EGREP="$ac_path_EGREP"
3996 ac_path_EGREP_max=$ac_count
3997 fi
3998 # 10*(2^10) chars as input seems more than enough
3999 test $ac_count -gt 10 && break
4000 done
4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002esac
4003
4004
4005 $ac_path_EGREP_found && break 3
4006 done
4007done
4008
4009done
4010IFS=$as_save_IFS
4011
4012
4013fi
4014
4015EGREP="$ac_cv_path_EGREP"
4016if test -z "$EGREP"; then
4017 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019 { (exit 1); exit 1; }; }
4020fi
4021
4022else
4023 ac_cv_path_EGREP=$EGREP
4024fi
4025
4026
4027 fi
4028fi
4029{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4030echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4031 EGREP="$ac_cv_path_EGREP"
4032
4033
4034{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4035echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4036if test "${ac_cv_header_stdc+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039 cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h. */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h. */
4045#include <stdlib.h>
4046#include <stdarg.h>
4047#include <string.h>
4048#include <float.h>
4049
4050int
4051main ()
4052{
4053
4054 ;
4055 return 0;
4056}
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (ac_try="$ac_compile"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_cv_header_stdc=yes
4093else
4094 echo "$as_me: failed program was:" >&5
4095sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 ac_cv_header_stdc=no
4098fi
4099
4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101
4102if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110#include <string.h>
4111
4112_ACEOF
4113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4115 :
4116else
4117 ac_cv_header_stdc=no
4118fi
4119rm -f conftest*
4120
4121fi
4122
4123if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
4131#include <stdlib.h>
4132
4133_ACEOF
4134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4136 :
4137else
4138 ac_cv_header_stdc=no
4139fi
4140rm -f conftest*
4141
4142fi
4143
4144if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4147 :
4148else
4149 cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h. */
4155#include <ctype.h>
4156#include <stdlib.h>
4157#if ((' ' & 0x0FF) == 0x020)
4158# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160#else
4161# define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166#endif
4167
4168#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169int
4170main ()
4171{
4172 int i;
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4176 return 2;
4177 return 0;
4178}
4179_ACEOF
4180rm -f conftest$ac_exeext
4181if { (ac_try="$ac_link"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_link") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 :
4201else
4202 echo "$as_me: program exited with status $ac_status" >&5
4203echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
4205
4206( exit $ac_status )
4207ac_cv_header_stdc=no
4208fi
4209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4210fi
4211
4212
4213fi
4214fi
4215{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4217if test $ac_cv_header_stdc = yes; then
4218
4219cat >>confdefs.h <<\_ACEOF
4220#define STDC_HEADERS 1
4221_ACEOF
4222
4223fi
4224
4225# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236 inttypes.h stdint.h unistd.h
4237do
4238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244 cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h. */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h. */
4250$ac_includes_default
4251
4252#include <$ac_header>
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (ac_try="$ac_compile"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($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_try") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 eval "$as_ac_Header=yes"
4289else
4290 echo "$as_me: failed program was:" >&5
4291sed 's/^/| /' conftest.$ac_ext >&5
4292
4293 eval "$as_ac_Header=no"
4294fi
4295
4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297fi
4298ac_res=`eval echo '${'$as_ac_Header'}'`
4299 { echo "$as_me:$LINENO: result: $ac_res" >&5
4300echo "${ECHO_T}$ac_res" >&6; }
4301if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h <<_ACEOF
4303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304_ACEOF
4305
4306fi
4307
4308done
4309
4310
4311{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4312echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4313if test "${ac_cv_c_bigendian+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316 # See if sys/param.h defines the BYTE_ORDER macro.
4317cat >conftest.$ac_ext <<_ACEOF
4318/* confdefs.h. */
4319_ACEOF
4320cat confdefs.h >>conftest.$ac_ext
4321cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h. */
4323#include <sys/types.h>
4324#include <sys/param.h>
4325
4326int
4327main ()
4328{
4329#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4330 bogus endian macros
4331#endif
4332
4333 ;
4334 return 0;
4335}
4336_ACEOF
4337rm -f conftest.$ac_objext
4338if { (ac_try="$ac_compile"
4339case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342esac
4343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4352 { (case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355esac
4356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_try") 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
4366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 # It does; now see whether it defined to BIG_ENDIAN or not.
4372cat >conftest.$ac_ext <<_ACEOF
4373/* confdefs.h. */
4374_ACEOF
4375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
4377/* end confdefs.h. */
4378#include <sys/types.h>
4379#include <sys/param.h>
4380
4381int
4382main ()
4383{
4384#if BYTE_ORDER != BIG_ENDIAN
4385 not big endian
4386#endif
4387
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392rm -f conftest.$ac_objext
4393if { (ac_try="$ac_compile"
4394case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410esac
4411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420esac
4421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_try") 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_c_bigendian=yes
4427else
4428 echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431 ac_cv_c_bigendian=no
4432fi
4433
4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435else
4436 echo "$as_me: failed program was:" >&5
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439 # It does not; compile a test program.
4440if test "$cross_compiling" = yes; then
4441 # try to guess the endianness by grepping values into an object file
4442 ac_cv_c_bigendian=unknown
4443 cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
4449short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4450short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4451void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4452short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4453short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4454void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4455int
4456main ()
4457{
4458 _ascii (); _ebcdic ();
4459 ;
4460 return 0;
4461}
4462_ACEOF
4463rm -f conftest.$ac_objext
4464if { (ac_try="$ac_compile"
4465case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468esac
4469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_compile") 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4478 { (case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481esac
4482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_try") 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; } &&
4487 { ac_try='test -s conftest.$ac_objext'
4488 { (case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
4492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_try") 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4498 ac_cv_c_bigendian=yes
4499fi
4500if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4501 if test "$ac_cv_c_bigendian" = unknown; then
4502 ac_cv_c_bigendian=no
4503 else
4504 # finding both strings is unlikely to happen, but who knows?
4505 ac_cv_c_bigendian=unknown
4506 fi
4507fi
4508else
4509 echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512
4513fi
4514
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516else
4517 cat >conftest.$ac_ext <<_ACEOF
4518/* confdefs.h. */
4519_ACEOF
4520cat confdefs.h >>conftest.$ac_ext
4521cat >>conftest.$ac_ext <<_ACEOF
4522/* end confdefs.h. */
4523$ac_includes_default
4524int
4525main ()
4526{
4527
4528 /* Are we little or big endian? From Harbison&Steele. */
4529 union
4530 {
4531 long int l;
4532 char c[sizeof (long int)];
4533 } u;
4534 u.l = 1;
4535 return u.c[sizeof (long int) - 1] == 1;
4536
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541rm -f conftest$ac_exeext
4542if { (ac_try="$ac_link"
4543case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_link") 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552 { (case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_try") 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_cv_c_bigendian=no
4562else
4563 echo "$as_me: program exited with status $ac_status" >&5
4564echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567( exit $ac_status )
4568ac_cv_c_bigendian=yes
4569fi
4570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4571fi
4572
4573
4574fi
4575
4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577fi
4578{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4579echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4580case $ac_cv_c_bigendian in
4581 yes)
4582 ENDIAN=big
4583 ;;
4584 no)
4585 ENDIAN=little
4586 ;;
4587 *)
4588 { { echo "$as_me:$LINENO: error: unknown endianness
4589presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4590echo "$as_me: error: unknown endianness
4591presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4592 { (exit 1); exit 1; }; } ;;
4593esac
4594
4595
4596if test "$cross_compiling" = yes; then
4597 LLVM_CROSS_COMPILING=1
4598
4599
4600{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4601echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4602if test "${ac_cv_build_exeext+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4606 ac_cv_build_exeext=.exe
4607else
4608 ac_build_prefix=${build_alias}-
4609
4610 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4611set dummy ${ac_build_prefix}gcc; ac_word=$2
4612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617 if test -n "$BUILD_CC"; then
4618 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632done
4633IFS=$as_save_IFS
4634
4635fi
4636fi
4637BUILD_CC=$ac_cv_prog_BUILD_CC
4638if test -n "$BUILD_CC"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4640echo "${ECHO_T}$BUILD_CC" >&6; }
4641else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6; }
4644fi
4645
4646
4647 if test -z "$BUILD_CC"; then
4648 # Extract the first word of "gcc", so it can be a program name with args.
4649set dummy gcc; ac_word=$2
4650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 if test -n "$BUILD_CC"; then
4656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_BUILD_CC="gcc"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670done
4671IFS=$as_save_IFS
4672
4673fi
4674fi
4675BUILD_CC=$ac_cv_prog_BUILD_CC
4676if test -n "$BUILD_CC"; then
4677 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678echo "${ECHO_T}$BUILD_CC" >&6; }
4679else
4680 { echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6; }
4682fi
4683
4684
4685 if test -z "$BUILD_CC"; then
4686 # Extract the first word of "cc", so it can be a program name with args.
4687set dummy cc; ac_word=$2
4688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692else
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695else
4696 ac_prog_rejected=no
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4705 ac_prog_rejected=yes
4706 continue
4707 fi
4708 ac_cv_prog_BUILD_CC="cc"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713done
4714IFS=$as_save_IFS
4715
4716if test $ac_prog_rejected = yes; then
4717 # We found a bogon in the path, so make sure we never use it.
4718 set dummy $ac_cv_prog_BUILD_CC
4719 shift
4720 if test $# != 0; then
4721 # We chose a different compiler from the bogus one.
4722 # However, it has the same basename, so the bogon will be chosen
4723 # first if we set BUILD_CC to just the basename; use the full file name.
4724 shift
4725 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4726 fi
4727fi
4728fi
4729fi
4730BUILD_CC=$ac_cv_prog_BUILD_CC
4731if test -n "$BUILD_CC"; then
4732 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733echo "${ECHO_T}$BUILD_CC" >&6; }
4734else
4735 { echo "$as_me:$LINENO: result: no" >&5
4736echo "${ECHO_T}no" >&6; }
4737fi
4738
4739
4740 fi
4741 fi
4742 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4743echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4744 { (exit 1); exit 1; }; }
4745 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4746 rm -f conftest*
4747 echo 'int main () { return 0; }' > conftest.$ac_ext
4748 ac_cv_build_exeext=
4749 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4750 (eval $ac_build_link) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; then
4754 for file in conftest.*; do
4755 case $file in
4756 *.c | *.o | *.obj | *.dSYM) ;;
4757 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4758 esac
4759 done
4760 else
4761 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4762echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4763 { (exit 1); exit 1; }; }
4764 fi
4765 rm -f conftest*
4766 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4767fi
4768fi
4769
4770BUILD_EXEEXT=""
4771test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4772{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4773echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4774ac_build_exeext=$BUILD_EXEEXT
4775
4776 ac_build_prefix=${build_alias}-
4777 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4778set dummy ${ac_build_prefix}g++; ac_word=$2
4779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4781if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 if test -n "$BUILD_CXX"; then
4785 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799done
4800IFS=$as_save_IFS
4801
4802fi
4803fi
4804BUILD_CXX=$ac_cv_prog_BUILD_CXX
4805if test -n "$BUILD_CXX"; then
4806 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4807echo "${ECHO_T}$BUILD_CXX" >&6; }
4808else
4809 { echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6; }
4811fi
4812
4813
4814 if test -z "$BUILD_CXX"; then
4815 # Extract the first word of "g++", so it can be a program name with args.
4816set dummy g++; ac_word=$2
4817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822 if test -n "$BUILD_CXX"; then
4823 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_BUILD_CXX="g++"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843if test -n "$BUILD_CXX"; then
4844 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845echo "${ECHO_T}$BUILD_CXX" >&6; }
4846else
4847 { echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6; }
4849fi
4850
4851
4852 if test -z "$BUILD_CXX"; then
4853 # Extract the first word of "c++", so it can be a program name with args.
4854set dummy c++; ac_word=$2
4855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862else
4863 ac_prog_rejected=no
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4872 ac_prog_rejected=yes
4873 continue
4874 fi
4875 ac_cv_prog_BUILD_CXX="c++"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880done
4881IFS=$as_save_IFS
4882
4883if test $ac_prog_rejected = yes; then
4884 # We found a bogon in the path, so make sure we never use it.
4885 set dummy $ac_cv_prog_BUILD_CXX
4886 shift
4887 if test $# != 0; then
4888 # We chose a different compiler from the bogus one.
4889 # However, it has the same basename, so the bogon will be chosen
4890 # first if we set BUILD_CXX to just the basename; use the full file name.
4891 shift
4892 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4893 fi
4894fi
4895fi
4896fi
4897BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898if test -n "$BUILD_CXX"; then
4899 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900echo "${ECHO_T}$BUILD_CXX" >&6; }
4901else
4902 { echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; }
4904fi
4905
4906
4907 fi
4908 fi
4909else
4910 LLVM_CROSS_COMPILING=0
4911
4912fi
4913
4914if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4915 cvsbuild="yes"
4916 optimize="no"
4917 CVSBUILD=CVSBUILD=1
4918
4919else
4920 cvsbuild="no"
4921 optimize="yes"
4922fi
4923
4924
Eric Christopherb2bc6e42012-03-26 02:09:01 +00004925# Check whether --enable-libcpp was given.
4926if test "${enable_libcpp+set}" = set; then
4927 enableval=$enable_libcpp;
4928else
4929 enableval=default
4930fi
4931
4932case "$enableval" in
4933 yes) ENABLE_LIBCPP=1
4934 ;;
4935 no) ENABLE_LIBCPP=0
4936 ;;
4937 default) ENABLE_LIBCPP=0
4938;;
4939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4940echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4942esac
4943
Daniel Dunbarbf79f912011-10-18 23:10:58 +00004944# Check whether --enable-optimized was given.
4945if test "${enable_optimized+set}" = set; then
4946 enableval=$enable_optimized;
4947else
4948 enableval=$optimize
4949fi
4950
4951if test ${enableval} = "no" ; then
4952 ENABLE_OPTIMIZED=
4953
4954else
4955 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4956
4957fi
4958
4959# Check whether --enable-profiling was given.
4960if test "${enable_profiling+set}" = set; then
4961 enableval=$enable_profiling;
4962else
4963 enableval="no"
4964fi
4965
4966if test ${enableval} = "no" ; then
4967 ENABLE_PROFILING=
4968
4969else
4970 ENABLE_PROFILING=ENABLE_PROFILING=1
4971
4972fi
4973
4974# Check whether --enable-assertions was given.
4975if test "${enable_assertions+set}" = set; then
4976 enableval=$enable_assertions;
4977else
4978 enableval="yes"
4979fi
4980
4981if test ${enableval} = "yes" ; then
4982 DISABLE_ASSERTIONS=
4983
4984else
4985 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4986
4987fi
4988
4989# Check whether --enable-expensive-checks was given.
4990if test "${enable_expensive_checks+set}" = set; then
4991 enableval=$enable_expensive_checks;
4992else
4993 enableval="no"
4994fi
4995
4996if test ${enableval} = "yes" ; then
4997 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4998
4999 EXPENSIVE_CHECKS=yes
5000
5001else
5002 ENABLE_EXPENSIVE_CHECKS=
5003
5004 EXPENSIVE_CHECKS=no
5005
5006fi
5007
5008# Check whether --enable-debug-runtime was given.
5009if test "${enable_debug_runtime+set}" = set; then
5010 enableval=$enable_debug_runtime;
5011else
5012 enableval=no
5013fi
5014
5015if test ${enableval} = "no" ; then
5016 DEBUG_RUNTIME=
5017
5018else
5019 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5020
5021fi
5022
5023# Check whether --enable-debug-symbols was given.
5024if test "${enable_debug_symbols+set}" = set; then
5025 enableval=$enable_debug_symbols;
5026else
5027 enableval=no
5028fi
5029
5030if test ${enableval} = "no" ; then
5031 DEBUG_SYMBOLS=
5032
5033else
5034 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5035
5036fi
5037
5038# Check whether --enable-jit was given.
5039if test "${enable_jit+set}" = set; then
5040 enableval=$enable_jit;
5041else
5042 enableval=default
5043fi
5044
5045if test ${enableval} = "no"
5046then
5047 JIT=
5048
5049else
5050 case "$llvm_cv_target_arch" in
5051 x86) TARGET_HAS_JIT=1
5052 ;;
5053 Sparc) TARGET_HAS_JIT=0
5054 ;;
5055 PowerPC) TARGET_HAS_JIT=1
5056 ;;
5057 x86_64) TARGET_HAS_JIT=1
5058 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005059 ARM) TARGET_HAS_JIT=1
5060 ;;
5061 Mips) TARGET_HAS_JIT=1
5062 ;;
5063 XCore) TARGET_HAS_JIT=0
5064 ;;
5065 MSP430) TARGET_HAS_JIT=0
5066 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005067 Hexagon) TARGET_HAS_JIT=0
5068 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005069 MBlaze) TARGET_HAS_JIT=0
5070 ;;
5071 PTX) TARGET_HAS_JIT=0
5072 ;;
5073 *) TARGET_HAS_JIT=0
5074 ;;
5075 esac
5076fi
5077
5078# Check whether --enable-docs was given.
5079if test "${enable_docs+set}" = set; then
5080 enableval=$enable_docs;
5081else
5082 enableval=default
5083fi
5084
5085case "$enableval" in
5086 yes) ENABLE_DOCS=1
5087 ;;
5088 no) ENABLE_DOCS=0
5089 ;;
5090 default) ENABLE_DOCS=1
5091 ;;
5092 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5093echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5094 { (exit 1); exit 1; }; } ;;
5095esac
5096
5097# Check whether --enable-doxygen was given.
5098if test "${enable_doxygen+set}" = set; then
5099 enableval=$enable_doxygen;
5100else
5101 enableval=default
5102fi
5103
5104case "$enableval" in
5105 yes) ENABLE_DOXYGEN=1
5106 ;;
5107 no) ENABLE_DOXYGEN=0
5108 ;;
5109 default) ENABLE_DOXYGEN=0
5110 ;;
5111 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5112echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5113 { (exit 1); exit 1; }; } ;;
5114esac
5115
5116# Check whether --enable-threads was given.
5117if test "${enable_threads+set}" = set; then
5118 enableval=$enable_threads;
5119else
5120 enableval=default
5121fi
5122
5123case "$enableval" in
5124 yes) ENABLE_THREADS=1
5125 ;;
5126 no) ENABLE_THREADS=0
5127 ;;
5128 default) ENABLE_THREADS=1
5129 ;;
5130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5131echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
5133esac
5134
5135cat >>confdefs.h <<_ACEOF
5136#define ENABLE_THREADS $ENABLE_THREADS
5137_ACEOF
5138
5139
5140# Check whether --enable-pthreads was given.
5141if test "${enable_pthreads+set}" = set; then
5142 enableval=$enable_pthreads;
5143else
5144 enableval=default
5145fi
5146
5147case "$enableval" in
5148 yes) ENABLE_PTHREADS=1
5149 ;;
5150 no) ENABLE_PTHREADS=0
5151 ;;
5152 default) ENABLE_PTHREADS=1
5153 ;;
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5155echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5157esac
5158
5159# Check whether --enable-pic was given.
5160if test "${enable_pic+set}" = set; then
5161 enableval=$enable_pic;
5162else
5163 enableval=default
5164fi
5165
5166case "$enableval" in
5167 yes) ENABLE_PIC=1
5168 ;;
5169 no) ENABLE_PIC=0
5170 ;;
5171 default) ENABLE_PIC=1
5172 ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5174echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5176esac
5177
5178cat >>confdefs.h <<_ACEOF
5179#define ENABLE_PIC $ENABLE_PIC
5180_ACEOF
5181
5182
5183# Check whether --enable-shared was given.
5184if test "${enable_shared+set}" = set; then
5185 enableval=$enable_shared;
5186else
5187 enableval=default
5188fi
5189
5190case "$enableval" in
5191 yes) ENABLE_SHARED=1
5192 ;;
5193 no) ENABLE_SHARED=0
5194 ;;
5195 default) ENABLE_SHARED=0
5196 ;;
5197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5198echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5200esac
5201
5202# Check whether --enable-embed-stdcxx was given.
5203if test "${enable_embed_stdcxx+set}" = set; then
5204 enableval=$enable_embed_stdcxx;
5205else
5206 enableval=default
5207fi
5208
5209case "$enableval" in
5210 yes) ENABLE_EMBED_STDCXX=1
5211 ;;
5212 no) ENABLE_EMBED_STDCXX=0
5213 ;;
5214 default) ENABLE_EMBED_STDCXX=1
5215 ;;
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5217echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5219esac
5220
5221# Check whether --enable-timestamps was given.
5222if test "${enable_timestamps+set}" = set; then
5223 enableval=$enable_timestamps;
5224else
5225 enableval=default
5226fi
5227
5228case "$enableval" in
5229 yes) ENABLE_TIMESTAMPS=1
5230 ;;
5231 no) ENABLE_TIMESTAMPS=0
5232 ;;
5233 default) ENABLE_TIMESTAMPS=1
5234 ;;
5235 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5236echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5238esac
5239
5240cat >>confdefs.h <<_ACEOF
5241#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5242_ACEOF
5243
5244
5245TARGETS_TO_BUILD=""
5246# Check whether --enable-targets was given.
5247if test "${enable_targets+set}" = set; then
5248 enableval=$enable_targets;
5249else
5250 enableval=all
5251fi
5252
5253if test "$enableval" = host-only ; then
5254 enableval=host
5255fi
5256case "$enableval" in
Eric Christophera443e5b2012-03-23 05:50:46 +00005257 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005258 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5259 case "$a_target" in
5260 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5261 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5262 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5263 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005264 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5265 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5266 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5267 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5268 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005269 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005270 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5271 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5272 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5273 host) case "$llvm_cv_target_arch" in
5274 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5275 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5276 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5277 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005278 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5279 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5280 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5281 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5282 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5283 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005284 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005285 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5286 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5287echo "$as_me: error: Can not set target to build" >&2;}
5288 { (exit 1); exit 1; }; } ;;
5289 esac ;;
5290 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5291echo "$as_me: error: Unrecognized target $a_target" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5293 esac
5294 done
5295 ;;
5296esac
5297TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5298
5299
5300# Determine whether we are building LLVM support for the native architecture.
5301# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5302for a_target in $TARGETS_TO_BUILD; do
5303 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5304
5305cat >>confdefs.h <<_ACEOF
5306#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5307_ACEOF
5308
5309 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5310 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5311 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5312 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5313 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5314 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5315 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005316 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5317 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5318 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005319
5320cat >>confdefs.h <<_ACEOF
5321#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5322_ACEOF
5323
5324
5325cat >>confdefs.h <<_ACEOF
5326#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5327_ACEOF
5328
5329
5330cat >>confdefs.h <<_ACEOF
5331#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5332_ACEOF
5333
5334
5335cat >>confdefs.h <<_ACEOF
5336#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5337_ACEOF
5338
5339 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5340
5341cat >>confdefs.h <<_ACEOF
5342#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5343_ACEOF
5344
5345 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005346 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5347
5348cat >>confdefs.h <<_ACEOF
5349#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5350_ACEOF
5351
5352 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005353 fi
5354done
5355
5356# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5357# target feature def files.
5358LLVM_ENUM_TARGETS=""
5359LLVM_ENUM_ASM_PRINTERS=""
5360LLVM_ENUM_ASM_PARSERS=""
5361LLVM_ENUM_DISASSEMBLERS=""
5362for target_to_build in $TARGETS_TO_BUILD; do
5363 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5364 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5365 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5366 fi
5367 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5368 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5369 fi
5370 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5371 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5372 fi
5373done
5374
5375
5376
5377
5378
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005379
5380# Check whether --with-optimize-option was given.
5381if test "${with_optimize_option+set}" = set; then
5382 withval=$with_optimize_option;
5383else
5384 withval=default
5385fi
5386
5387{ echo "$as_me:$LINENO: checking optimization flags" >&5
5388echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5389case "$withval" in
5390 default)
5391 case "$llvm_cv_os_type" in
5392 FreeBSD) optimize_option=-O2 ;;
5393 MingW) optimize_option=-O2 ;;
5394 *) optimize_option=-O3 ;;
5395 esac ;;
5396 *) optimize_option="$withval" ;;
5397esac
5398OPTIMIZE_OPTION=$optimize_option
5399
5400{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5401echo "${ECHO_T}$optimize_option" >&6; }
5402
5403
5404# Check whether --with-extra-options was given.
5405if test "${with_extra_options+set}" = set; then
5406 withval=$with_extra_options;
5407else
5408 withval=default
5409fi
5410
5411case "$withval" in
5412 default) EXTRA_OPTIONS= ;;
5413 *) EXTRA_OPTIONS=$withval ;;
5414esac
5415EXTRA_OPTIONS=$EXTRA_OPTIONS
5416
5417
5418
5419# Check whether --with-extra-ld-options was given.
5420if test "${with_extra_ld_options+set}" = set; then
5421 withval=$with_extra_ld_options;
5422else
5423 withval=default
5424fi
5425
5426case "$withval" in
5427 default) EXTRA_LD_OPTIONS= ;;
5428 *) EXTRA_LD_OPTIONS=$withval ;;
5429esac
5430EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5431
5432
5433# Check whether --enable-bindings was given.
5434if test "${enable_bindings+set}" = set; then
5435 enableval=$enable_bindings;
5436else
5437 enableval=default
5438fi
5439
5440BINDINGS_TO_BUILD=""
5441case "$enableval" in
5442 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5443 all ) BINDINGS_TO_BUILD="ocaml" ;;
5444 none | no) BINDINGS_TO_BUILD="" ;;
5445 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5446 case "$a_binding" in
5447 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5448 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5449echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5450 { (exit 1); exit 1; }; } ;;
5451 esac
5452 done
5453 ;;
5454esac
5455
5456
5457# Check whether --with-ocaml-libdir was given.
5458if test "${with_ocaml_libdir+set}" = set; then
5459 withval=$with_ocaml_libdir;
5460else
5461 withval=auto
5462fi
5463
5464case "$withval" in
5465 auto) with_ocaml_libdir="$withval" ;;
5466 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5467 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5468echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5469 { (exit 1); exit 1; }; } ;;
5470esac
5471
5472
5473# Check whether --with-clang-resource-dir was given.
5474if test "${with_clang_resource_dir+set}" = set; then
5475 withval=$with_clang_resource_dir;
5476else
5477 withval=""
5478fi
5479
5480
5481cat >>confdefs.h <<_ACEOF
5482#define CLANG_RESOURCE_DIR "$withval"
5483_ACEOF
5484
5485
5486
5487# Check whether --with-c-include-dirs was given.
5488if test "${with_c_include_dirs+set}" = set; then
5489 withval=$with_c_include_dirs;
5490else
5491 withval=""
5492fi
5493
5494
5495cat >>confdefs.h <<_ACEOF
5496#define C_INCLUDE_DIRS "$withval"
5497_ACEOF
5498
5499
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005500# Clang normally uses the system c++ headers and libraries. With this option,
5501# clang will use the ones provided by a gcc installation instead. This option should
5502# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005503
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005504# Check whether --with-gcc-toolchain was given.
5505if test "${with_gcc_toolchain+set}" = set; then
5506 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005507else
5508 withval=""
5509fi
5510
5511
5512cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005513#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005514_ACEOF
5515
5516
5517
5518# Check whether --with-binutils-include was given.
5519if test "${with_binutils_include+set}" = set; then
5520 withval=$with_binutils_include;
5521else
5522 withval=default
5523fi
5524
5525case "$withval" in
5526 default) WITH_BINUTILS_INCDIR=default ;;
5527 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5528 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5529echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5530 { (exit 1); exit 1; }; } ;;
5531esac
5532if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5533 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5534
5535 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5536 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5537 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5538echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5539 { (exit 1); exit 1; }; };
5540 fi
5541fi
5542
5543
5544# Check whether --with-bug-report-url was given.
5545if test "${with_bug_report_url+set}" = set; then
5546 withval=$with_bug_report_url;
5547else
5548 withval="http://llvm.org/bugs/"
5549fi
5550
5551
5552cat >>confdefs.h <<_ACEOF
5553#define BUG_REPORT_URL "$withval"
5554_ACEOF
5555
5556
5557# Check whether --enable-libffi was given.
5558if test "${enable_libffi+set}" = set; then
5559 enableval=$enable_libffi; case "$enableval" in
5560 yes) llvm_cv_enable_libffi="yes" ;;
5561 no) llvm_cv_enable_libffi="no" ;;
5562 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5563echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5564 { (exit 1); exit 1; }; } ;;
5565 esac
5566else
5567 llvm_cv_enable_libffi=no
5568fi
5569
5570
5571
5572{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5573echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5574if test "${lt_cv_path_NM+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577 if test -n "$NM"; then
5578 # Let the user override the test.
5579 lt_cv_path_NM="$NM"
5580else
5581 lt_nm_to_check="${ac_tool_prefix}nm"
5582 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5583 lt_nm_to_check="$lt_nm_to_check nm"
5584 fi
5585 for lt_tmp_nm in $lt_nm_to_check; do
5586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5587 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5588 IFS="$lt_save_ifs"
5589 test -z "$ac_dir" && ac_dir=.
5590 tmp_nm="$ac_dir/$lt_tmp_nm"
5591 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5592 # Check to see if the nm accepts a BSD-compat flag.
5593 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5594 # nm: unknown option "B" ignored
5595 # Tru64's nm complains that /dev/null is an invalid object file
5596 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5597 */dev/null* | *'Invalid file or object type'*)
5598 lt_cv_path_NM="$tmp_nm -B"
5599 break
5600 ;;
5601 *)
5602 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5603 */dev/null*)
5604 lt_cv_path_NM="$tmp_nm -p"
5605 break
5606 ;;
5607 *)
5608 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5609 continue # so that we can try to find one that supports BSD flags
5610 ;;
5611 esac
5612 ;;
5613 esac
5614 fi
5615 done
5616 IFS="$lt_save_ifs"
5617 done
5618 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5619fi
5620fi
5621{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5622echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5623NM="$lt_cv_path_NM"
5624
5625
5626
5627{ echo "$as_me:$LINENO: checking for GNU make" >&5
5628echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5629if test "${llvm_cv_gnu_make_command+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632 llvm_cv_gnu_make_command=''
5633 for a in "$MAKE" make gmake gnumake ; do
5634 if test -z "$a" ; then continue ; fi ;
5635 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5636 then
5637 llvm_cv_gnu_make_command=$a ;
5638 break;
5639 fi
5640 done
5641fi
5642{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5643echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5644 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5645 ifGNUmake='' ;
5646 else
5647 ifGNUmake='#' ;
5648 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5649echo "${ECHO_T}\"Not found\"" >&6; };
5650 fi
5651
5652
5653{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5654echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5655LN_S=$as_ln_s
5656if test "$LN_S" = "ln -s"; then
5657 { echo "$as_me:$LINENO: result: yes" >&5
5658echo "${ECHO_T}yes" >&6; }
5659else
5660 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5661echo "${ECHO_T}no, using $LN_S" >&6; }
5662fi
5663
5664# Extract the first word of "cmp", so it can be a program name with args.
5665set dummy cmp; ac_word=$2
5666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5668if test "${ac_cv_path_CMP+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671 case $CMP in
5672 [\\/]* | ?:[\\/]*)
5673 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5674 ;;
5675 *)
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687done
5688done
5689IFS=$as_save_IFS
5690
5691 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5692 ;;
5693esac
5694fi
5695CMP=$ac_cv_path_CMP
5696if test -n "$CMP"; then
5697 { echo "$as_me:$LINENO: result: $CMP" >&5
5698echo "${ECHO_T}$CMP" >&6; }
5699else
5700 { echo "$as_me:$LINENO: result: no" >&5
5701echo "${ECHO_T}no" >&6; }
5702fi
5703
5704
5705# Extract the first word of "cp", so it can be a program name with args.
5706set dummy cp; ac_word=$2
5707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709if test "${ac_cv_path_CP+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711else
5712 case $CP in
5713 [\\/]* | ?:[\\/]*)
5714 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5715 ;;
5716 *)
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728done
5729done
5730IFS=$as_save_IFS
5731
5732 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5733 ;;
5734esac
5735fi
5736CP=$ac_cv_path_CP
5737if test -n "$CP"; then
5738 { echo "$as_me:$LINENO: result: $CP" >&5
5739echo "${ECHO_T}$CP" >&6; }
5740else
5741 { echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6; }
5743fi
5744
5745
5746# Extract the first word of "date", so it can be a program name with args.
5747set dummy date; ac_word=$2
5748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750if test "${ac_cv_path_DATE+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753 case $DATE in
5754 [\\/]* | ?:[\\/]*)
5755 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5756 ;;
5757 *)
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769done
5770done
5771IFS=$as_save_IFS
5772
5773 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5774 ;;
5775esac
5776fi
5777DATE=$ac_cv_path_DATE
5778if test -n "$DATE"; then
5779 { echo "$as_me:$LINENO: result: $DATE" >&5
5780echo "${ECHO_T}$DATE" >&6; }
5781else
5782 { echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6; }
5784fi
5785
5786
5787# Extract the first word of "find", so it can be a program name with args.
5788set dummy find; ac_word=$2
5789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791if test "${ac_cv_path_FIND+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794 case $FIND in
5795 [\\/]* | ?:[\\/]*)
5796 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5797 ;;
5798 *)
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810done
5811done
5812IFS=$as_save_IFS
5813
5814 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5815 ;;
5816esac
5817fi
5818FIND=$ac_cv_path_FIND
5819if test -n "$FIND"; then
5820 { echo "$as_me:$LINENO: result: $FIND" >&5
5821echo "${ECHO_T}$FIND" >&6; }
5822else
5823 { echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6; }
5825fi
5826
5827
5828# Extract the first word of "grep", so it can be a program name with args.
5829set dummy grep; ac_word=$2
5830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832if test "${ac_cv_path_GREP+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835 case $GREP in
5836 [\\/]* | ?:[\\/]*)
5837 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5838 ;;
5839 *)
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852done
5853IFS=$as_save_IFS
5854
5855 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5856 ;;
5857esac
5858fi
5859GREP=$ac_cv_path_GREP
5860if test -n "$GREP"; then
5861 { echo "$as_me:$LINENO: result: $GREP" >&5
5862echo "${ECHO_T}$GREP" >&6; }
5863else
5864 { echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6; }
5866fi
5867
5868
5869# Extract the first word of "mkdir", so it can be a program name with args.
5870set dummy mkdir; ac_word=$2
5871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873if test "${ac_cv_path_MKDIR+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876 case $MKDIR in
5877 [\\/]* | ?:[\\/]*)
5878 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5879 ;;
5880 *)
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893done
5894IFS=$as_save_IFS
5895
5896 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5897 ;;
5898esac
5899fi
5900MKDIR=$ac_cv_path_MKDIR
5901if test -n "$MKDIR"; then
5902 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5903echo "${ECHO_T}$MKDIR" >&6; }
5904else
5905 { echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6; }
5907fi
5908
5909
5910# Extract the first word of "mv", so it can be a program name with args.
5911set dummy mv; ac_word=$2
5912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914if test "${ac_cv_path_MV+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 case $MV in
5918 [\\/]* | ?:[\\/]*)
5919 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5920 ;;
5921 *)
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933done
5934done
5935IFS=$as_save_IFS
5936
5937 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5938 ;;
5939esac
5940fi
5941MV=$ac_cv_path_MV
5942if test -n "$MV"; then
5943 { echo "$as_me:$LINENO: result: $MV" >&5
5944echo "${ECHO_T}$MV" >&6; }
5945else
5946 { echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6; }
5948fi
5949
5950
5951if test -n "$ac_tool_prefix"; then
5952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5953set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5956if test "${ac_cv_prog_RANLIB+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 if test -n "$RANLIB"; then
5960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973done
5974done
5975IFS=$as_save_IFS
5976
5977fi
5978fi
5979RANLIB=$ac_cv_prog_RANLIB
5980if test -n "$RANLIB"; then
5981 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5982echo "${ECHO_T}$RANLIB" >&6; }
5983else
5984 { echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6; }
5986fi
5987
5988
5989fi
5990if test -z "$ac_cv_prog_RANLIB"; then
5991 ac_ct_RANLIB=$RANLIB
5992 # Extract the first word of "ranlib", so it can be a program name with args.
5993set dummy ranlib; ac_word=$2
5994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5996if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999 if test -n "$ac_ct_RANLIB"; then
6000 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6001else
6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_prog_ac_ct_RANLIB="ranlib"
6010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013done
6014done
6015IFS=$as_save_IFS
6016
6017fi
6018fi
6019ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6020if test -n "$ac_ct_RANLIB"; then
6021 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6022echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6023else
6024 { echo "$as_me:$LINENO: result: no" >&5
6025echo "${ECHO_T}no" >&6; }
6026fi
6027
6028 if test "x$ac_ct_RANLIB" = x; then
6029 RANLIB=":"
6030 else
6031 case $cross_compiling:$ac_tool_warned in
6032yes:)
6033{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6034whose name does not start with the host triplet. If you think this
6035configuration is useful to you, please write to autoconf@gnu.org." >&5
6036echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6037whose name does not start with the host triplet. If you think this
6038configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6039ac_tool_warned=yes ;;
6040esac
6041 RANLIB=$ac_ct_RANLIB
6042 fi
6043else
6044 RANLIB="$ac_cv_prog_RANLIB"
6045fi
6046
6047if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6049set dummy ${ac_tool_prefix}ar; ac_word=$2
6050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052if test "${ac_cv_prog_AR+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054else
6055 if test -n "$AR"; then
6056 ac_cv_prog_AR="$AR" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_AR="${ac_tool_prefix}ar"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069done
6070done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075AR=$ac_cv_prog_AR
6076if test -n "$AR"; then
6077 { echo "$as_me:$LINENO: result: $AR" >&5
6078echo "${ECHO_T}$AR" >&6; }
6079else
6080 { echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6; }
6082fi
6083
6084
6085fi
6086if test -z "$ac_cv_prog_AR"; then
6087 ac_ct_AR=$AR
6088 # Extract the first word of "ar", so it can be a program name with args.
6089set dummy ar; ac_word=$2
6090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095 if test -n "$ac_ct_AR"; then
6096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 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
6105 ac_cv_prog_ac_ct_AR="ar"
6106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109done
6110done
6111IFS=$as_save_IFS
6112
6113fi
6114fi
6115ac_ct_AR=$ac_cv_prog_ac_ct_AR
6116if test -n "$ac_ct_AR"; then
6117 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6118echo "${ECHO_T}$ac_ct_AR" >&6; }
6119else
6120 { echo "$as_me:$LINENO: result: no" >&5
6121echo "${ECHO_T}no" >&6; }
6122fi
6123
6124 if test "x$ac_ct_AR" = x; then
6125 AR="false"
6126 else
6127 case $cross_compiling:$ac_tool_warned in
6128yes:)
6129{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6130whose name does not start with the host triplet. If you think this
6131configuration is useful to you, please write to autoconf@gnu.org." >&5
6132echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6133whose name does not start with the host triplet. If you think this
6134configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6135ac_tool_warned=yes ;;
6136esac
6137 AR=$ac_ct_AR
6138 fi
6139else
6140 AR="$ac_cv_prog_AR"
6141fi
6142
6143# Extract the first word of "rm", so it can be a program name with args.
6144set dummy rm; ac_word=$2
6145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147if test "${ac_cv_path_RM+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150 case $RM in
6151 [\\/]* | ?:[\\/]*)
6152 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6153 ;;
6154 *)
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167done
6168IFS=$as_save_IFS
6169
6170 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6171 ;;
6172esac
6173fi
6174RM=$ac_cv_path_RM
6175if test -n "$RM"; then
6176 { echo "$as_me:$LINENO: result: $RM" >&5
6177echo "${ECHO_T}$RM" >&6; }
6178else
6179 { echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6; }
6181fi
6182
6183
6184# Extract the first word of "sed", so it can be a program name with args.
6185set dummy sed; ac_word=$2
6186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188if test "${ac_cv_path_SED+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191 case $SED in
6192 [\\/]* | ?:[\\/]*)
6193 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6194 ;;
6195 *)
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 break 2
6206 fi
6207done
6208done
6209IFS=$as_save_IFS
6210
6211 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6212 ;;
6213esac
6214fi
6215SED=$ac_cv_path_SED
6216if test -n "$SED"; then
6217 { echo "$as_me:$LINENO: result: $SED" >&5
6218echo "${ECHO_T}$SED" >&6; }
6219else
6220 { echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6; }
6222fi
6223
6224
6225# Extract the first word of "tar", so it can be a program name with args.
6226set dummy tar; ac_word=$2
6227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229if test "${ac_cv_path_TAR+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231else
6232 case $TAR in
6233 [\\/]* | ?:[\\/]*)
6234 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6235 ;;
6236 *)
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248done
6249done
6250IFS=$as_save_IFS
6251
6252 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6253 ;;
6254esac
6255fi
6256TAR=$ac_cv_path_TAR
6257if test -n "$TAR"; then
6258 { echo "$as_me:$LINENO: result: $TAR" >&5
6259echo "${ECHO_T}$TAR" >&6; }
6260else
6261 { echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6; }
6263fi
6264
6265
6266# Extract the first word of "pwd", so it can be a program name with args.
6267set dummy pwd; ac_word=$2
6268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270if test "${ac_cv_path_BINPWD+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273 case $BINPWD in
6274 [\\/]* | ?:[\\/]*)
6275 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6276 ;;
6277 *)
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289done
6290done
6291IFS=$as_save_IFS
6292
6293 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6294 ;;
6295esac
6296fi
6297BINPWD=$ac_cv_path_BINPWD
6298if test -n "$BINPWD"; then
6299 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6300echo "${ECHO_T}$BINPWD" >&6; }
6301else
6302 { echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6; }
6304fi
6305
6306
6307
6308# Extract the first word of "Graphviz", so it can be a program name with args.
6309set dummy Graphviz; ac_word=$2
6310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315 case $GRAPHVIZ in
6316 [\\/]* | ?:[\\/]*)
6317 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6318 ;;
6319 *)
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331done
6332done
6333IFS=$as_save_IFS
6334
6335 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6336 ;;
6337esac
6338fi
6339GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6340if test -n "$GRAPHVIZ"; then
6341 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6342echo "${ECHO_T}$GRAPHVIZ" >&6; }
6343else
6344 { echo "$as_me:$LINENO: result: no" >&5
6345echo "${ECHO_T}no" >&6; }
6346fi
6347
6348
6349if test "$GRAPHVIZ" != "echo Graphviz" ; then
6350
6351cat >>confdefs.h <<\_ACEOF
6352#define HAVE_GRAPHVIZ 1
6353_ACEOF
6354
6355 if test "$llvm_cv_os_type" = "MingW" ; then
6356 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6357 fi
6358
6359cat >>confdefs.h <<_ACEOF
6360#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6361_ACEOF
6362
6363fi
6364# Extract the first word of "dot", so it can be a program name with args.
6365set dummy dot; ac_word=$2
6366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6368if test "${ac_cv_path_DOT+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371 case $DOT in
6372 [\\/]* | ?:[\\/]*)
6373 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6374 ;;
6375 *)
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH
6378do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6386 fi
6387done
6388done
6389IFS=$as_save_IFS
6390
6391 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6392 ;;
6393esac
6394fi
6395DOT=$ac_cv_path_DOT
6396if test -n "$DOT"; then
6397 { echo "$as_me:$LINENO: result: $DOT" >&5
6398echo "${ECHO_T}$DOT" >&6; }
6399else
6400 { echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6; }
6402fi
6403
6404
6405if test "$DOT" != "echo dot" ; then
6406
6407cat >>confdefs.h <<\_ACEOF
6408#define HAVE_DOT 1
6409_ACEOF
6410
6411 if test "$llvm_cv_os_type" = "MingW" ; then
6412 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6413 fi
6414
6415cat >>confdefs.h <<_ACEOF
6416#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6417_ACEOF
6418
6419fi
6420# Extract the first word of "fdp", so it can be a program name with args.
6421set dummy fdp; ac_word=$2
6422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6424if test "${ac_cv_path_FDP+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427 case $FDP in
6428 [\\/]* | ?:[\\/]*)
6429 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6430 ;;
6431 *)
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433for as_dir in $PATH
6434do
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6439 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 break 2
6442 fi
6443done
6444done
6445IFS=$as_save_IFS
6446
6447 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6448 ;;
6449esac
6450fi
6451FDP=$ac_cv_path_FDP
6452if test -n "$FDP"; then
6453 { echo "$as_me:$LINENO: result: $FDP" >&5
6454echo "${ECHO_T}$FDP" >&6; }
6455else
6456 { echo "$as_me:$LINENO: result: no" >&5
6457echo "${ECHO_T}no" >&6; }
6458fi
6459
6460
6461if test "$FDP" != "echo fdp" ; then
6462
6463cat >>confdefs.h <<\_ACEOF
6464#define HAVE_FDP 1
6465_ACEOF
6466
6467 if test "$llvm_cv_os_type" = "MingW" ; then
6468 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6469 fi
6470
6471cat >>confdefs.h <<_ACEOF
6472#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6473_ACEOF
6474
6475fi
6476# Extract the first word of "neato", so it can be a program name with args.
6477set dummy neato; ac_word=$2
6478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480if test "${ac_cv_path_NEATO+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482else
6483 case $NEATO in
6484 [\\/]* | ?:[\\/]*)
6485 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6486 ;;
6487 *)
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499done
6500done
6501IFS=$as_save_IFS
6502
6503 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6504 ;;
6505esac
6506fi
6507NEATO=$ac_cv_path_NEATO
6508if test -n "$NEATO"; then
6509 { echo "$as_me:$LINENO: result: $NEATO" >&5
6510echo "${ECHO_T}$NEATO" >&6; }
6511else
6512 { echo "$as_me:$LINENO: result: no" >&5
6513echo "${ECHO_T}no" >&6; }
6514fi
6515
6516
6517if test "$NEATO" != "echo neato" ; then
6518
6519cat >>confdefs.h <<\_ACEOF
6520#define HAVE_NEATO 1
6521_ACEOF
6522
6523 if test "$llvm_cv_os_type" = "MingW" ; then
6524 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6525 fi
6526
6527cat >>confdefs.h <<_ACEOF
6528#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6529_ACEOF
6530
6531fi
6532# Extract the first word of "twopi", so it can be a program name with args.
6533set dummy twopi; ac_word=$2
6534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6536if test "${ac_cv_path_TWOPI+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539 case $TWOPI in
6540 [\\/]* | ?:[\\/]*)
6541 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6542 ;;
6543 *)
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555done
6556done
6557IFS=$as_save_IFS
6558
6559 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6560 ;;
6561esac
6562fi
6563TWOPI=$ac_cv_path_TWOPI
6564if test -n "$TWOPI"; then
6565 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6566echo "${ECHO_T}$TWOPI" >&6; }
6567else
6568 { echo "$as_me:$LINENO: result: no" >&5
6569echo "${ECHO_T}no" >&6; }
6570fi
6571
6572
6573if test "$TWOPI" != "echo twopi" ; then
6574
6575cat >>confdefs.h <<\_ACEOF
6576#define HAVE_TWOPI 1
6577_ACEOF
6578
6579 if test "$llvm_cv_os_type" = "MingW" ; then
6580 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6581 fi
6582
6583cat >>confdefs.h <<_ACEOF
6584#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6585_ACEOF
6586
6587fi
6588# Extract the first word of "circo", so it can be a program name with args.
6589set dummy circo; ac_word=$2
6590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6592if test "${ac_cv_path_CIRCO+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6594else
6595 case $CIRCO in
6596 [\\/]* | ?:[\\/]*)
6597 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6598 ;;
6599 *)
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612done
6613IFS=$as_save_IFS
6614
6615 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6616 ;;
6617esac
6618fi
6619CIRCO=$ac_cv_path_CIRCO
6620if test -n "$CIRCO"; then
6621 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6622echo "${ECHO_T}$CIRCO" >&6; }
6623else
6624 { echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6; }
6626fi
6627
6628
6629if test "$CIRCO" != "echo circo" ; then
6630
6631cat >>confdefs.h <<\_ACEOF
6632#define HAVE_CIRCO 1
6633_ACEOF
6634
6635 if test "$llvm_cv_os_type" = "MingW" ; then
6636 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6637 fi
6638
6639cat >>confdefs.h <<_ACEOF
6640#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6641_ACEOF
6642
6643fi
6644for ac_prog in gv gsview32
6645do
6646 # Extract the first word of "$ac_prog", so it can be a program name with args.
6647set dummy $ac_prog; ac_word=$2
6648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650if test "${ac_cv_path_GV+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652else
6653 case $GV in
6654 [\\/]* | ?:[\\/]*)
6655 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6656 ;;
6657 *)
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659for as_dir in $PATH
6660do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669done
6670done
6671IFS=$as_save_IFS
6672
6673 ;;
6674esac
6675fi
6676GV=$ac_cv_path_GV
6677if test -n "$GV"; then
6678 { echo "$as_me:$LINENO: result: $GV" >&5
6679echo "${ECHO_T}$GV" >&6; }
6680else
6681 { echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6; }
6683fi
6684
6685
6686 test -n "$GV" && break
6687done
6688test -n "$GV" || GV="echo gv"
6689
6690if test "$GV" != "echo gv" ; then
6691
6692cat >>confdefs.h <<\_ACEOF
6693#define HAVE_GV 1
6694_ACEOF
6695
6696 if test "$llvm_cv_os_type" = "MingW" ; then
6697 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6698 fi
6699
6700cat >>confdefs.h <<_ACEOF
6701#define LLVM_PATH_GV "$GV${EXEEXT}"
6702_ACEOF
6703
6704fi
6705# Extract the first word of "dotty", so it can be a program name with args.
6706set dummy dotty; ac_word=$2
6707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709if test "${ac_cv_path_DOTTY+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711else
6712 case $DOTTY in
6713 [\\/]* | ?:[\\/]*)
6714 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6715 ;;
6716 *)
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729done
6730IFS=$as_save_IFS
6731
6732 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6733 ;;
6734esac
6735fi
6736DOTTY=$ac_cv_path_DOTTY
6737if test -n "$DOTTY"; then
6738 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6739echo "${ECHO_T}$DOTTY" >&6; }
6740else
6741 { echo "$as_me:$LINENO: result: no" >&5
6742echo "${ECHO_T}no" >&6; }
6743fi
6744
6745
6746if test "$DOTTY" != "echo dotty" ; then
6747
6748cat >>confdefs.h <<\_ACEOF
6749#define HAVE_DOTTY 1
6750_ACEOF
6751
6752 if test "$llvm_cv_os_type" = "MingW" ; then
6753 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6754 fi
6755
6756cat >>confdefs.h <<_ACEOF
6757#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6758_ACEOF
6759
6760fi
6761# Extract the first word of "xdot.py", so it can be a program name with args.
6762set dummy xdot.py; ac_word=$2
6763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765if test "${ac_cv_path_XDOT_PY+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768 case $XDOT_PY in
6769 [\\/]* | ?:[\\/]*)
6770 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6771 ;;
6772 *)
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784done
6785done
6786IFS=$as_save_IFS
6787
6788 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6789 ;;
6790esac
6791fi
6792XDOT_PY=$ac_cv_path_XDOT_PY
6793if test -n "$XDOT_PY"; then
6794 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6795echo "${ECHO_T}$XDOT_PY" >&6; }
6796else
6797 { echo "$as_me:$LINENO: result: no" >&5
6798echo "${ECHO_T}no" >&6; }
6799fi
6800
6801
6802if test "$XDOT_PY" != "echo xdot.py" ; then
6803
6804cat >>confdefs.h <<\_ACEOF
6805#define HAVE_XDOT_PY 1
6806_ACEOF
6807
6808 if test "$llvm_cv_os_type" = "MingW" ; then
6809 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6810 fi
6811
6812cat >>confdefs.h <<_ACEOF
6813#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6814_ACEOF
6815
6816fi
6817
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006818# Find a good install program. We prefer a C program (faster),
6819# so one script is as good as another. But avoid the broken or
6820# incompatible versions:
6821# SysV /etc/install, /usr/sbin/install
6822# SunOS /usr/etc/install
6823# IRIX /sbin/install
6824# AIX /bin/install
6825# AmigaOS /C/install, which installs bootblocks on floppy discs
6826# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6827# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6828# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6829# OS/2's system install, which has a completely different semantic
6830# ./install, which can be erroneously created by make from ./install.sh.
6831{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6832echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6833if test -z "$INSTALL"; then
6834if test "${ac_cv_path_install+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 # Account for people who put trailing slashes in PATH elements.
6843case $as_dir/ in
6844 ./ | .// | /cC/* | \
6845 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6846 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6847 /usr/ucb/* ) ;;
6848 *)
6849 # OSF1 and SCO ODT 3.0 have their own names for install.
6850 # Don't use installbsd from OSF since it installs stuff as root
6851 # by default.
6852 for ac_prog in ginstall scoinst install; do
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6855 if test $ac_prog = install &&
6856 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6857 # AIX install. It has an incompatible calling convention.
6858 :
6859 elif test $ac_prog = install &&
6860 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6861 # program-specific install script used by HP pwplus--don't use.
6862 :
6863 else
6864 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6865 break 3
6866 fi
6867 fi
6868 done
6869 done
6870 ;;
6871esac
6872done
6873IFS=$as_save_IFS
6874
6875
6876fi
6877 if test "${ac_cv_path_install+set}" = set; then
6878 INSTALL=$ac_cv_path_install
6879 else
6880 # As a last resort, use the slow shell script. Don't cache a
6881 # value for INSTALL within a source directory, because that will
6882 # break other packages using the cache if that directory is
6883 # removed, or if the value is a relative name.
6884 INSTALL=$ac_install_sh
6885 fi
6886fi
6887{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6888echo "${ECHO_T}$INSTALL" >&6; }
6889
6890# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6891# It thinks the first close brace ends the variable substitution.
6892test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6893
6894test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6895
6896test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6897
6898case "$INSTALL" in
6899 [\\/$]* | ?:[\\/]* ) ;;
6900 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6901esac
6902
6903# Extract the first word of "bzip2", so it can be a program name with args.
6904set dummy bzip2; ac_word=$2
6905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6907if test "${ac_cv_path_BZIP2+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909else
6910 case $BZIP2 in
6911 [\\/]* | ?:[\\/]*)
6912 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6913 ;;
6914 *)
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916for as_dir in $PATH
6917do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926done
6927done
6928IFS=$as_save_IFS
6929
6930 ;;
6931esac
6932fi
6933BZIP2=$ac_cv_path_BZIP2
6934if test -n "$BZIP2"; then
6935 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6936echo "${ECHO_T}$BZIP2" >&6; }
6937else
6938 { echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6; }
6940fi
6941
6942
6943# Extract the first word of "cat", so it can be a program name with args.
6944set dummy cat; ac_word=$2
6945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947if test "${ac_cv_path_CAT+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949else
6950 case $CAT in
6951 [\\/]* | ?:[\\/]*)
6952 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6953 ;;
6954 *)
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6965 fi
6966done
6967done
6968IFS=$as_save_IFS
6969
6970 ;;
6971esac
6972fi
6973CAT=$ac_cv_path_CAT
6974if test -n "$CAT"; then
6975 { echo "$as_me:$LINENO: result: $CAT" >&5
6976echo "${ECHO_T}$CAT" >&6; }
6977else
6978 { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
6980fi
6981
6982
6983# Extract the first word of "doxygen", so it can be a program name with args.
6984set dummy doxygen; ac_word=$2
6985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987if test "${ac_cv_path_DOXYGEN+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 case $DOXYGEN in
6991 [\\/]* | ?:[\\/]*)
6992 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6993 ;;
6994 *)
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006done
7007done
7008IFS=$as_save_IFS
7009
7010 ;;
7011esac
7012fi
7013DOXYGEN=$ac_cv_path_DOXYGEN
7014if test -n "$DOXYGEN"; then
7015 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7016echo "${ECHO_T}$DOXYGEN" >&6; }
7017else
7018 { echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6; }
7020fi
7021
7022
7023# Extract the first word of "groff", so it can be a program name with args.
7024set dummy groff; ac_word=$2
7025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027if test "${ac_cv_path_GROFF+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029else
7030 case $GROFF in
7031 [\\/]* | ?:[\\/]*)
7032 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7033 ;;
7034 *)
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7042 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046done
7047done
7048IFS=$as_save_IFS
7049
7050 ;;
7051esac
7052fi
7053GROFF=$ac_cv_path_GROFF
7054if test -n "$GROFF"; then
7055 { echo "$as_me:$LINENO: result: $GROFF" >&5
7056echo "${ECHO_T}$GROFF" >&6; }
7057else
7058 { echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6; }
7060fi
7061
7062
7063# Extract the first word of "gzip", so it can be a program name with args.
7064set dummy gzip; ac_word=$2
7065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067if test "${ac_cv_path_GZIPBIN+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070 case $GZIPBIN in
7071 [\\/]* | ?:[\\/]*)
7072 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7073 ;;
7074 *)
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076for as_dir in $PATH
7077do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7082 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086done
7087done
7088IFS=$as_save_IFS
7089
7090 ;;
7091esac
7092fi
7093GZIPBIN=$ac_cv_path_GZIPBIN
7094if test -n "$GZIPBIN"; then
7095 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7096echo "${ECHO_T}$GZIPBIN" >&6; }
7097else
7098 { echo "$as_me:$LINENO: result: no" >&5
7099echo "${ECHO_T}no" >&6; }
7100fi
7101
7102
7103# Extract the first word of "pod2html", so it can be a program name with args.
7104set dummy pod2html; ac_word=$2
7105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107if test "${ac_cv_path_POD2HTML+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 case $POD2HTML in
7111 [\\/]* | ?:[\\/]*)
7112 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7113 ;;
7114 *)
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126done
7127done
7128IFS=$as_save_IFS
7129
7130 ;;
7131esac
7132fi
7133POD2HTML=$ac_cv_path_POD2HTML
7134if test -n "$POD2HTML"; then
7135 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7136echo "${ECHO_T}$POD2HTML" >&6; }
7137else
7138 { echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6; }
7140fi
7141
7142
7143# Extract the first word of "pod2man", so it can be a program name with args.
7144set dummy pod2man; ac_word=$2
7145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147if test "${ac_cv_path_POD2MAN+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149else
7150 case $POD2MAN in
7151 [\\/]* | ?:[\\/]*)
7152 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7153 ;;
7154 *)
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167done
7168IFS=$as_save_IFS
7169
7170 ;;
7171esac
7172fi
7173POD2MAN=$ac_cv_path_POD2MAN
7174if test -n "$POD2MAN"; then
7175 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7176echo "${ECHO_T}$POD2MAN" >&6; }
7177else
7178 { echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6; }
7180fi
7181
7182
7183# Extract the first word of "pdfroff", so it can be a program name with args.
7184set dummy pdfroff; ac_word=$2
7185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187if test "${ac_cv_path_PDFROFF+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190 case $PDFROFF in
7191 [\\/]* | ?:[\\/]*)
7192 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7193 ;;
7194 *)
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207done
7208IFS=$as_save_IFS
7209
7210 ;;
7211esac
7212fi
7213PDFROFF=$ac_cv_path_PDFROFF
7214if test -n "$PDFROFF"; then
7215 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7216echo "${ECHO_T}$PDFROFF" >&6; }
7217else
7218 { echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6; }
7220fi
7221
7222
7223# Extract the first word of "runtest", so it can be a program name with args.
7224set dummy runtest; ac_word=$2
7225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227if test "${ac_cv_path_RUNTEST+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230 case $RUNTEST in
7231 [\\/]* | ?:[\\/]*)
7232 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7233 ;;
7234 *)
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247done
7248IFS=$as_save_IFS
7249
7250 ;;
7251esac
7252fi
7253RUNTEST=$ac_cv_path_RUNTEST
7254if test -n "$RUNTEST"; then
7255 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7256echo "${ECHO_T}$RUNTEST" >&6; }
7257else
7258 { echo "$as_me:$LINENO: result: no" >&5
7259echo "${ECHO_T}no" >&6; }
7260fi
7261
7262
7263
7264no_itcl=true
7265{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7266echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7267
7268# Check whether --with-tclinclude was given.
7269if test "${with_tclinclude+set}" = set; then
7270 withval=$with_tclinclude; with_tclinclude=${withval}
7271else
7272 with_tclinclude=''
7273fi
7274
7275if test "${ac_cv_path_tclsh+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278
7279if test x"${with_tclinclude}" != x ; then
7280 if test -f ${with_tclinclude}/tclsh ; then
7281 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7282 elif test -f ${with_tclinclude}/src/tclsh ; then
7283 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7284 else
7285 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7286echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7287 { (exit 1); exit 1; }; }
7288 fi
7289fi
7290fi
7291
7292
7293if test x"${ac_cv_path_tclsh}" = x ; then
7294 { echo "$as_me:$LINENO: result: none" >&5
7295echo "${ECHO_T}none" >&6; }
7296 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7297do
7298 # Extract the first word of "$ac_prog", so it can be a program name with args.
7299set dummy $ac_prog; ac_word=$2
7300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302if test "${ac_cv_path_TCLSH+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 case $TCLSH in
7306 [\\/]* | ?:[\\/]*)
7307 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7308 ;;
7309 *)
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322done
7323IFS=$as_save_IFS
7324
7325 ;;
7326esac
7327fi
7328TCLSH=$ac_cv_path_TCLSH
7329if test -n "$TCLSH"; then
7330 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7331echo "${ECHO_T}$TCLSH" >&6; }
7332else
7333 { echo "$as_me:$LINENO: result: no" >&5
7334echo "${ECHO_T}no" >&6; }
7335fi
7336
7337
7338 test -n "$TCLSH" && break
7339done
7340
7341 if test x"${TCLSH}" = x ; then
7342 ac_cv_path_tclsh='';
7343 else
7344 ac_cv_path_tclsh="${TCLSH}";
7345 fi
7346else
7347 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7348echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7349 TCLSH="${ac_cv_path_tclsh}"
7350
7351fi
7352
7353# Extract the first word of "zip", so it can be a program name with args.
7354set dummy zip; ac_word=$2
7355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357if test "${ac_cv_path_ZIP+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359else
7360 case $ZIP in
7361 [\\/]* | ?:[\\/]*)
7362 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7363 ;;
7364 *)
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376done
7377done
7378IFS=$as_save_IFS
7379
7380 ;;
7381esac
7382fi
7383ZIP=$ac_cv_path_ZIP
7384if test -n "$ZIP"; then
7385 { echo "$as_me:$LINENO: result: $ZIP" >&5
7386echo "${ECHO_T}$ZIP" >&6; }
7387else
7388 { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
7390fi
7391
7392
7393for ac_prog in ocamlc
7394do
7395 # Extract the first word of "$ac_prog", so it can be a program name with args.
7396set dummy $ac_prog; ac_word=$2
7397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399if test "${ac_cv_path_OCAMLC+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7401else
7402 case $OCAMLC in
7403 [\\/]* | ?:[\\/]*)
7404 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7405 ;;
7406 *)
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7417 fi
7418done
7419done
7420IFS=$as_save_IFS
7421
7422 ;;
7423esac
7424fi
7425OCAMLC=$ac_cv_path_OCAMLC
7426if test -n "$OCAMLC"; then
7427 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7428echo "${ECHO_T}$OCAMLC" >&6; }
7429else
7430 { echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6; }
7432fi
7433
7434
7435 test -n "$OCAMLC" && break
7436done
7437
7438for ac_prog in ocamlopt
7439do
7440 # Extract the first word of "$ac_prog", so it can be a program name with args.
7441set dummy $ac_prog; ac_word=$2
7442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447 case $OCAMLOPT in
7448 [\\/]* | ?:[\\/]*)
7449 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7450 ;;
7451 *)
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463done
7464done
7465IFS=$as_save_IFS
7466
7467 ;;
7468esac
7469fi
7470OCAMLOPT=$ac_cv_path_OCAMLOPT
7471if test -n "$OCAMLOPT"; then
7472 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7473echo "${ECHO_T}$OCAMLOPT" >&6; }
7474else
7475 { echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6; }
7477fi
7478
7479
7480 test -n "$OCAMLOPT" && break
7481done
7482
7483for ac_prog in ocamldep
7484do
7485 # Extract the first word of "$ac_prog", so it can be a program name with args.
7486set dummy $ac_prog; ac_word=$2
7487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7489if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492 case $OCAMLDEP in
7493 [\\/]* | ?:[\\/]*)
7494 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7495 ;;
7496 *)
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508done
7509done
7510IFS=$as_save_IFS
7511
7512 ;;
7513esac
7514fi
7515OCAMLDEP=$ac_cv_path_OCAMLDEP
7516if test -n "$OCAMLDEP"; then
7517 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7518echo "${ECHO_T}$OCAMLDEP" >&6; }
7519else
7520 { echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6; }
7522fi
7523
7524
7525 test -n "$OCAMLDEP" && break
7526done
7527
7528for ac_prog in ocamldoc
7529do
7530 # Extract the first word of "$ac_prog", so it can be a program name with args.
7531set dummy $ac_prog; ac_word=$2
7532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537 case $OCAMLDOC in
7538 [\\/]* | ?:[\\/]*)
7539 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7540 ;;
7541 *)
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553done
7554done
7555IFS=$as_save_IFS
7556
7557 ;;
7558esac
7559fi
7560OCAMLDOC=$ac_cv_path_OCAMLDOC
7561if test -n "$OCAMLDOC"; then
7562 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7563echo "${ECHO_T}$OCAMLDOC" >&6; }
7564else
7565 { echo "$as_me:$LINENO: result: no" >&5
7566echo "${ECHO_T}no" >&6; }
7567fi
7568
7569
7570 test -n "$OCAMLDOC" && break
7571done
7572
7573for ac_prog in gas as
7574do
7575 # Extract the first word of "$ac_prog", so it can be a program name with args.
7576set dummy $ac_prog; ac_word=$2
7577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579if test "${ac_cv_path_GAS+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581else
7582 case $GAS in
7583 [\\/]* | ?:[\\/]*)
7584 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7585 ;;
7586 *)
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598done
7599done
7600IFS=$as_save_IFS
7601
7602 ;;
7603esac
7604fi
7605GAS=$ac_cv_path_GAS
7606if test -n "$GAS"; then
7607 { echo "$as_me:$LINENO: result: $GAS" >&5
7608echo "${ECHO_T}$GAS" >&6; }
7609else
7610 { echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6; }
7612fi
7613
7614
7615 test -n "$GAS" && break
7616done
7617
7618
7619{ echo "$as_me:$LINENO: checking for linker version" >&5
7620echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7621if test "${llvm_cv_link_version+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624
7625 version_string="$(ld -v 2>&1 | head -1)"
7626
7627 # Check for ld64.
7628 if (echo "$version_string" | grep -q "ld64"); then
7629 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7630 else
7631 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7632 fi
7633
7634fi
7635{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7636echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7637
7638cat >>confdefs.h <<_ACEOF
7639#define HOST_LINK_VERSION "$llvm_cv_link_version"
7640_ACEOF
7641
7642
7643
7644{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7645echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7646if test "${llvm_cv_link_use_r+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648else
7649 ac_ext=c
7650ac_cpp='$CPP $CPPFLAGS'
7651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655 oldcflags="$CFLAGS"
7656 CFLAGS="$CFLAGS -Wl,-R."
7657 cat >conftest.$ac_ext <<_ACEOF
7658/* confdefs.h. */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
7662/* end confdefs.h. */
7663
7664int
7665main ()
7666{
7667
7668 ;
7669 return 0;
7670}
7671_ACEOF
7672rm -f conftest.$ac_objext conftest$ac_exeext
7673if { (ac_try="$ac_link"
7674case "(($ac_try" in
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7677esac
7678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_link") 2>conftest.er1
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; } &&
7696 { ac_try='test -s conftest$ac_exeext'
7697 { (case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700esac
7701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_try") 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 llvm_cv_link_use_r=yes
7707else
7708 echo "$as_me: failed program was:" >&5
7709sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 llvm_cv_link_use_r=no
7712fi
7713
7714rm -f core conftest.err conftest.$ac_objext \
7715 conftest$ac_exeext conftest.$ac_ext
7716 CFLAGS="$oldcflags"
7717 ac_ext=c
7718ac_cpp='$CPP $CPPFLAGS'
7719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7721ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722
7723
7724fi
7725{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7726echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7727if test "$llvm_cv_link_use_r" = yes ; then
7728
7729cat >>confdefs.h <<\_ACEOF
7730#define HAVE_LINK_R 1
7731_ACEOF
7732
7733 fi
7734
7735
7736{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7737echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7738if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740else
7741 ac_ext=c
7742ac_cpp='$CPP $CPPFLAGS'
7743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746
7747 oldcflags="$CFLAGS"
7748 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7749 cat >conftest.$ac_ext <<_ACEOF
7750/* confdefs.h. */
7751_ACEOF
7752cat confdefs.h >>conftest.$ac_ext
7753cat >>conftest.$ac_ext <<_ACEOF
7754/* end confdefs.h. */
7755
7756int
7757main ()
7758{
7759
7760 ;
7761 return 0;
7762}
7763_ACEOF
7764rm -f conftest.$ac_objext conftest$ac_exeext
7765if { (ac_try="$ac_link"
7766case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769esac
7770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_link") 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7779 { (case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7782esac
7783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_try") 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; } &&
7788 { ac_try='test -s conftest$ac_exeext'
7789 { (case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7792esac
7793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794 (eval "$ac_try") 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 llvm_cv_link_use_export_dynamic=yes
7799else
7800 echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 llvm_cv_link_use_export_dynamic=no
7804fi
7805
7806rm -f core conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 CFLAGS="$oldcflags"
7809 ac_ext=c
7810ac_cpp='$CPP $CPPFLAGS'
7811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7813ac_compiler_gnu=$ac_cv_c_compiler_gnu
7814
7815
7816fi
7817{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7818echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7819if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7820
7821cat >>confdefs.h <<\_ACEOF
7822#define HAVE_LINK_EXPORT_DYNAMIC 1
7823_ACEOF
7824
7825 fi
7826
7827
7828{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7829echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7830if test "${llvm_cv_link_use_version_script+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833 ac_ext=c
7834ac_cpp='$CPP $CPPFLAGS'
7835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7837ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838
7839 oldcflags="$CFLAGS"
7840
7841 # The following code is from the autoconf manual,
7842 # "11.13: Limitations of Usual Tools".
7843 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7844 # Use mktemp if possible; otherwise fall back on mkdir,
7845 # with $RANDOM to make collisions less likely.
7846 : ${TMPDIR=/tmp}
7847 {
7848 tmp=`
7849 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7850 ` &&
7851 test -n "$tmp" && test -d "$tmp"
7852 } || {
7853 tmp=$TMPDIR/foo$$-$RANDOM
7854 (umask 077 && mkdir "$tmp")
7855 } || exit $?
7856
7857 echo "{" > "$tmp/export.map"
7858 echo " global: main;" >> "$tmp/export.map"
7859 echo " local: *;" >> "$tmp/export.map"
7860 echo "};" >> "$tmp/export.map"
7861
7862 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7863 cat >conftest.$ac_ext <<_ACEOF
7864/* confdefs.h. */
7865_ACEOF
7866cat confdefs.h >>conftest.$ac_ext
7867cat >>conftest.$ac_ext <<_ACEOF
7868/* end confdefs.h. */
7869
7870int
7871main ()
7872{
7873
7874 ;
7875 return 0;
7876}
7877_ACEOF
7878rm -f conftest.$ac_objext conftest$ac_exeext
7879if { (ac_try="$ac_link"
7880case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883esac
7884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_link") 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest$ac_exeext'
7903 { (case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906esac
7907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_try") 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 llvm_cv_link_use_version_script=yes
7913else
7914 echo "$as_me: failed program was:" >&5
7915sed 's/^/| /' conftest.$ac_ext >&5
7916
7917 llvm_cv_link_use_version_script=no
7918fi
7919
7920rm -f core conftest.err conftest.$ac_objext \
7921 conftest$ac_exeext conftest.$ac_ext
7922 rm "$tmp/export.map"
7923 rmdir "$tmp"
7924 CFLAGS="$oldcflags"
7925 ac_ext=c
7926ac_cpp='$CPP $CPPFLAGS'
7927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7929ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930
7931
7932fi
7933{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7934echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7935if test "$llvm_cv_link_use_version_script" = yes ; then
7936 HAVE_LINK_VERSION_SCRIPT=1
7937
7938 fi
7939
7940
7941
7942
7943{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7944echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7945if test "${ac_cv_c_const+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947else
7948 cat >conftest.$ac_ext <<_ACEOF
7949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */
7954
7955int
7956main ()
7957{
7958/* FIXME: Include the comments suggested by Paul. */
7959#ifndef __cplusplus
7960 /* Ultrix mips cc rejects this. */
7961 typedef int charset[2];
7962 const charset x;
7963 /* SunOS 4.1.1 cc rejects this. */
7964 char const *const *ccp;
7965 char **p;
7966 /* NEC SVR4.0.2 mips cc rejects this. */
7967 struct point {int x, y;};
7968 static struct point const zero = {0,0};
7969 /* AIX XL C 1.02.0.0 rejects this.
7970 It does not let you subtract one const X* pointer from another in
7971 an arm of an if-expression whose if-part is not a constant
7972 expression */
7973 const char *g = "string";
7974 ccp = &g + (g ? g-g : 0);
7975 /* HPUX 7.0 cc rejects these. */
7976 ++ccp;
7977 p = (char**) ccp;
7978 ccp = (char const *const *) p;
7979 { /* SCO 3.2v4 cc rejects this. */
7980 char *t;
7981 char const *s = 0 ? (char *) 0 : (char const *) 0;
7982
7983 *t++ = 0;
7984 if (s) return 0;
7985 }
7986 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7987 int x[] = {25, 17};
7988 const int *foo = &x[0];
7989 ++foo;
7990 }
7991 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7992 typedef const int *iptr;
7993 iptr p = 0;
7994 ++p;
7995 }
7996 { /* AIX XL C 1.02.0.0 rejects this saying
7997 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7998 struct s { int j; const int *ap[3]; };
7999 struct s *b; b->j = 5;
8000 }
8001 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8002 const int foo = 10;
8003 if (!foo) return 0;
8004 }
8005 return !x[0] && !zero.x;
8006#endif
8007
8008 ;
8009 return 0;
8010}
8011_ACEOF
8012rm -f conftest.$ac_objext
8013if { (ac_try="$ac_compile"
8014case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017esac
8018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8027 { (case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030esac
8031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_try") 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest.$ac_objext'
8037 { (case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040esac
8041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_cv_c_const=yes
8047else
8048 echo "$as_me: failed program was:" >&5
8049sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 ac_cv_c_const=no
8052fi
8053
8054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055fi
8056{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8057echo "${ECHO_T}$ac_cv_c_const" >&6; }
8058if test $ac_cv_c_const = no; then
8059
8060cat >>confdefs.h <<\_ACEOF
8061#define const
8062_ACEOF
8063
8064fi
8065
8066
8067
8068
8069
8070
8071ac_header_dirent=no
8072for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8073 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8074{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8075echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078else
8079 cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
8085#include <sys/types.h>
8086#include <$ac_hdr>
8087
8088int
8089main ()
8090{
8091if ((DIR *) 0)
8092return 0;
8093 ;
8094 return 0;
8095}
8096_ACEOF
8097rm -f conftest.$ac_objext
8098if { (ac_try="$ac_compile"
8099case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102esac
8103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_compile") 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest.$ac_objext'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125esac
8126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 eval "$as_ac_Header=yes"
8132else
8133 echo "$as_me: failed program was:" >&5
8134sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 eval "$as_ac_Header=no"
8137fi
8138
8139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140fi
8141ac_res=`eval echo '${'$as_ac_Header'}'`
8142 { echo "$as_me:$LINENO: result: $ac_res" >&5
8143echo "${ECHO_T}$ac_res" >&6; }
8144if test `eval echo '${'$as_ac_Header'}'` = yes; then
8145 cat >>confdefs.h <<_ACEOF
8146#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8147_ACEOF
8148
8149ac_header_dirent=$ac_hdr; break
8150fi
8151
8152done
8153# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8154if test $ac_header_dirent = dirent.h; then
8155 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8156echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8157if test "${ac_cv_search_opendir+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159else
8160 ac_func_search_save_LIBS=$LIBS
8161cat >conftest.$ac_ext <<_ACEOF
8162/* confdefs.h. */
8163_ACEOF
8164cat confdefs.h >>conftest.$ac_ext
8165cat >>conftest.$ac_ext <<_ACEOF
8166/* end confdefs.h. */
8167
8168/* Override any GCC internal prototype to avoid an error.
8169 Use char because int might match the return type of a GCC
8170 builtin and then its argument prototype would still apply. */
8171#ifdef __cplusplus
8172extern "C"
8173#endif
8174char opendir ();
8175int
8176main ()
8177{
8178return opendir ();
8179 ;
8180 return 0;
8181}
8182_ACEOF
8183for ac_lib in '' dir; do
8184 if test -z "$ac_lib"; then
8185 ac_res="none required"
8186 else
8187 ac_res=-l$ac_lib
8188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8189 fi
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191if { (ac_try="$ac_link"
8192case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195esac
8196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_link") 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205 { (case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8208esac
8209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_try") 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest$ac_exeext'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 ac_cv_search_opendir=$ac_res
8225else
8226 echo "$as_me: failed program was:" >&5
8227sed 's/^/| /' conftest.$ac_ext >&5
8228
8229
8230fi
8231
8232rm -f core conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext
8234 if test "${ac_cv_search_opendir+set}" = set; then
8235 break
8236fi
8237done
8238if test "${ac_cv_search_opendir+set}" = set; then
8239 :
8240else
8241 ac_cv_search_opendir=no
8242fi
8243rm conftest.$ac_ext
8244LIBS=$ac_func_search_save_LIBS
8245fi
8246{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8247echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8248ac_res=$ac_cv_search_opendir
8249if test "$ac_res" != no; then
8250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8251
8252fi
8253
8254else
8255 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8256echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8257if test "${ac_cv_search_opendir+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259else
8260 ac_func_search_save_LIBS=$LIBS
8261cat >conftest.$ac_ext <<_ACEOF
8262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h. */
8267
8268/* Override any GCC internal prototype to avoid an error.
8269 Use char because int might match the return type of a GCC
8270 builtin and then its argument prototype would still apply. */
8271#ifdef __cplusplus
8272extern "C"
8273#endif
8274char opendir ();
8275int
8276main ()
8277{
8278return opendir ();
8279 ;
8280 return 0;
8281}
8282_ACEOF
8283for ac_lib in '' x; do
8284 if test -z "$ac_lib"; then
8285 ac_res="none required"
8286 else
8287 ac_res=-l$ac_lib
8288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8289 fi
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291if { (ac_try="$ac_link"
8292case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295esac
8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_link") 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest$ac_exeext'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8318esac
8319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_cv_search_opendir=$ac_res
8325else
8326 echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
8329
8330fi
8331
8332rm -f core conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext
8334 if test "${ac_cv_search_opendir+set}" = set; then
8335 break
8336fi
8337done
8338if test "${ac_cv_search_opendir+set}" = set; then
8339 :
8340else
8341 ac_cv_search_opendir=no
8342fi
8343rm conftest.$ac_ext
8344LIBS=$ac_func_search_save_LIBS
8345fi
8346{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8347echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8348ac_res=$ac_cv_search_opendir
8349if test "$ac_res" != no; then
8350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8351
8352fi
8353
8354fi
8355
8356
8357for ac_header in dlfcn.h
8358do
8359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365fi
8366ac_res=`eval echo '${'$as_ac_Header'}'`
8367 { echo "$as_me:$LINENO: result: $ac_res" >&5
8368echo "${ECHO_T}$ac_res" >&6; }
8369else
8370 # Is the header compilable?
8371{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8373cat >conftest.$ac_ext <<_ACEOF
8374/* confdefs.h. */
8375_ACEOF
8376cat confdefs.h >>conftest.$ac_ext
8377cat >>conftest.$ac_ext <<_ACEOF
8378/* end confdefs.h. */
8379$ac_includes_default
8380#include <$ac_header>
8381_ACEOF
8382rm -f conftest.$ac_objext
8383if { (ac_try="$ac_compile"
8384case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8387esac
8388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_compile") 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400esac
8401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; } &&
8406 { ac_try='test -s conftest.$ac_objext'
8407 { (case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410esac
8411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_try") 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_header_compiler=yes
8417else
8418 echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 ac_header_compiler=no
8422fi
8423
8424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8426echo "${ECHO_T}$ac_header_compiler" >&6; }
8427
8428# Is the header present?
8429{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8430echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8431cat >conftest.$ac_ext <<_ACEOF
8432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
8437#include <$ac_header>
8438_ACEOF
8439if { (ac_try="$ac_cpp conftest.$ac_ext"
8440case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } >/dev/null; then
8452 if test -s conftest.err; then
8453 ac_cpp_err=$ac_c_preproc_warn_flag
8454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8455 else
8456 ac_cpp_err=
8457 fi
8458else
8459 ac_cpp_err=yes
8460fi
8461if test -z "$ac_cpp_err"; then
8462 ac_header_preproc=yes
8463else
8464 echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467 ac_header_preproc=no
8468fi
8469
8470rm -f conftest.err conftest.$ac_ext
8471{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8472echo "${ECHO_T}$ac_header_preproc" >&6; }
8473
8474# So? What about this header?
8475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8476 yes:no: )
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8481 ac_header_preproc=yes
8482 ;;
8483 no:yes:* )
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8496 ( cat <<\_ASBOX
8497## ------------------------------ ##
8498## Report this to bugs@yourdomain ##
8499## ------------------------------ ##
8500_ASBOX
8501 ) | sed "s/^/$as_me: WARNING: /" >&2
8502 ;;
8503esac
8504{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509 eval "$as_ac_Header=\$ac_header_preproc"
8510fi
8511ac_res=`eval echo '${'$as_ac_Header'}'`
8512 { echo "$as_me:$LINENO: result: $ac_res" >&5
8513echo "${ECHO_T}$ac_res" >&6; }
8514
8515fi
8516if test `eval echo '${'$as_ac_Header'}'` = yes; then
8517 cat >>confdefs.h <<_ACEOF
8518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8519_ACEOF
8520
8521fi
8522
8523done
8524
8525# Check whether --enable-ltdl-install was given.
8526if test "${enable_ltdl_install+set}" = set; then
8527 enableval=$enable_ltdl_install;
8528fi
8529
8530
8531
8532
8533if test x"${enable_ltdl_install-no}" != xno; then
8534 INSTALL_LTDL_TRUE=
8535 INSTALL_LTDL_FALSE='#'
8536else
8537 INSTALL_LTDL_TRUE='#'
8538 INSTALL_LTDL_FALSE=
8539fi
8540
8541
8542
8543if test x"${enable_ltdl_convenience-no}" != xno; then
8544 CONVENIENCE_LTDL_TRUE=
8545 CONVENIENCE_LTDL_FALSE='#'
8546else
8547 CONVENIENCE_LTDL_TRUE='#'
8548 CONVENIENCE_LTDL_FALSE=
8549fi
8550
8551
8552{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8553echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8554library_names_spec=
8555libname_spec='lib$name'
8556soname_spec=
8557shrext_cmds=".so"
8558postinstall_cmds=
8559postuninstall_cmds=
8560finish_cmds=
8561finish_eval=
8562shlibpath_var=
8563shlibpath_overrides_runpath=unknown
8564version_type=none
8565dynamic_linker="$host_os ld.so"
8566sys_lib_dlsearch_path_spec="/lib /usr/lib"
8567if test "$GCC" = yes; then
8568 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8569 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8570 # if the path contains ";" then we assume it to be the separator
8571 # otherwise default to the standard path separator (i.e. ":") - it is
8572 # assumed that no part of a normal pathname contains ";" but that should
8573 # okay in the real world where ";" in dirpaths is itself problematic.
8574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8575 else
8576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8577 fi
8578else
8579 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8580fi
8581need_lib_prefix=unknown
8582hardcode_into_libs=no
8583
8584# when you set need_version to no, make sure it does not cause -set_version
8585# flags to be left without arguments
8586need_version=unknown
8587
8588case $host_os in
8589aix3*)
8590 version_type=linux
8591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8592 shlibpath_var=LIBPATH
8593
8594 # AIX 3 has no versioning support, so we append a major version to the name.
8595 soname_spec='${libname}${release}${shared_ext}$major'
8596 ;;
8597
8598aix4* | aix5*)
8599 version_type=linux
8600 need_lib_prefix=no
8601 need_version=no
8602 hardcode_into_libs=yes
8603 if test "$host_cpu" = ia64; then
8604 # AIX 5 supports IA64
8605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8606 shlibpath_var=LD_LIBRARY_PATH
8607 else
8608 # With GCC up to 2.95.x, collect2 would create an import file
8609 # for dependence libraries. The import file would start with
8610 # the line `#! .'. This would cause the generated library to
8611 # depend on `.', always an invalid library. This was fixed in
8612 # development snapshots of GCC prior to 3.0.
8613 case $host_os in
8614 aix4 | aix4.[01] | aix4.[01].*)
8615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8616 echo ' yes '
8617 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8618 :
8619 else
8620 can_build_shared=no
8621 fi
8622 ;;
8623 esac
8624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8625 # soname into executable. Probably we can add versioning support to
8626 # collect2, so additional links can be useful in future.
8627 if test "$aix_use_runtimelinking" = yes; then
8628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8629 # instead of lib<name>.a to let people know that these are not
8630 # typical AIX shared libraries.
8631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8632 else
8633 # We preserve .a as extension for shared libraries through AIX4.2
8634 # and later when we are not doing run time linking.
8635 library_names_spec='${libname}${release}.a $libname.a'
8636 soname_spec='${libname}${release}${shared_ext}$major'
8637 fi
8638 shlibpath_var=LIBPATH
8639 fi
8640 ;;
8641
8642amigaos*)
8643 library_names_spec='$libname.ixlibrary $libname.a'
8644 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8645 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'
8646 ;;
8647
8648beos*)
8649 library_names_spec='${libname}${shared_ext}'
8650 dynamic_linker="$host_os ld.so"
8651 shlibpath_var=LIBRARY_PATH
8652 ;;
8653
8654bsdi[45]*)
8655 version_type=linux
8656 need_version=no
8657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8658 soname_spec='${libname}${release}${shared_ext}$major'
8659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8660 shlibpath_var=LD_LIBRARY_PATH
8661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8663 # the default ld.so.conf also contains /usr/contrib/lib and
8664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8665 # libtool to hard-code these into programs
8666 ;;
8667
8668cygwin* | mingw* | pw32*)
8669 version_type=windows
8670 shrext_cmds=".dll"
8671 need_version=no
8672 need_lib_prefix=no
8673
8674 case $GCC,$host_os in
8675 yes,cygwin* | yes,mingw* | yes,pw32*)
8676 library_names_spec='$libname.dll.a'
8677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8678 postinstall_cmds='base_file=`basename \${file}`~
8679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8680 dldir=$destdir/`dirname \$dlpath`~
8681 test -d \$dldir || mkdir -p \$dldir~
8682 $install_prog $dir/$dlname \$dldir/$dlname~
8683 chmod a+x \$dldir/$dlname'
8684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8685 dlpath=$dir/\$dldll~
8686 $rm \$dlpath'
8687 shlibpath_overrides_runpath=yes
8688
8689 case $host_os in
8690 cygwin*)
8691 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8693 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8694 ;;
8695 mingw*)
8696 # MinGW DLLs use traditional 'lib' prefix
8697 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8698 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8699 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8700 # It is most probably a Windows format PATH printed by
8701 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8702 # path with ; separators, and with drive letters. We can handle the
8703 # drive letters (cygwin fileutils understands them), so leave them,
8704 # especially as we might pass files found there to a mingw objdump,
8705 # which wouldn't understand a cygwinified path. Ahh.
8706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8707 else
8708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8709 fi
8710 ;;
8711 pw32*)
8712 # pw32 DLLs use 'pw' prefix rather than 'lib'
8713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8714 ;;
8715 esac
8716 ;;
8717
8718 *)
8719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8720 ;;
8721 esac
8722 dynamic_linker='Win32 ld.exe'
8723 # FIXME: first we should search . and the directory the executable is in
8724 shlibpath_var=PATH
8725 ;;
8726
8727darwin* | rhapsody*)
8728 dynamic_linker="$host_os dyld"
8729 version_type=darwin
8730 need_lib_prefix=no
8731 need_version=no
8732 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8733 soname_spec='${libname}${release}${major}$shared_ext'
8734 shlibpath_overrides_runpath=yes
8735 shlibpath_var=DYLD_LIBRARY_PATH
8736 shrext_cmds='.dylib'
8737 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8738 if test "$GCC" = yes; then
8739 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"`
8740 else
8741 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8742 fi
8743 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8744 ;;
8745
8746dgux*)
8747 version_type=linux
8748 need_lib_prefix=no
8749 need_version=no
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8751 soname_spec='${libname}${release}${shared_ext}$major'
8752 shlibpath_var=LD_LIBRARY_PATH
8753 ;;
8754
Rafael Espindola48381e52012-01-31 17:18:47 +00008755freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008756 dynamic_linker=no
8757 ;;
8758
8759kfreebsd*-gnu)
8760 version_type=linux
8761 need_lib_prefix=no
8762 need_version=no
8763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8764 soname_spec='${libname}${release}${shared_ext}$major'
8765 shlibpath_var=LD_LIBRARY_PATH
8766 shlibpath_overrides_runpath=no
8767 hardcode_into_libs=yes
8768 dynamic_linker='GNU ld.so'
8769 ;;
8770
8771freebsd* | dragonfly*)
8772 # DragonFly does not have aout. When/if they implement a new
8773 # versioning mechanism, adjust this.
8774 if test -x /usr/bin/objformat; then
8775 objformat=`/usr/bin/objformat`
8776 else
8777 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008778 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008779 *) objformat=elf ;;
8780 esac
8781 fi
8782 version_type=freebsd-$objformat
8783 case $version_type in
8784 freebsd-elf*)
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8786 need_version=no
8787 need_lib_prefix=no
8788 ;;
8789 freebsd-*)
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8791 need_version=yes
8792 ;;
8793 esac
8794 shlibpath_var=LD_LIBRARY_PATH
8795 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008796 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008797 shlibpath_overrides_runpath=yes
8798 ;;
8799 freebsd3.[01]* | freebsdelf3.[01]*)
8800 shlibpath_overrides_runpath=yes
8801 hardcode_into_libs=yes
8802 ;;
8803 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8804 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8805 shlibpath_overrides_runpath=no
8806 hardcode_into_libs=yes
8807 ;;
8808 freebsd*) # from 4.6 on
8809 shlibpath_overrides_runpath=yes
8810 hardcode_into_libs=yes
8811 ;;
8812 esac
8813 ;;
8814
8815gnu*)
8816 version_type=linux
8817 need_lib_prefix=no
8818 need_version=no
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8820 soname_spec='${libname}${release}${shared_ext}$major'
8821 shlibpath_var=LD_LIBRARY_PATH
8822 hardcode_into_libs=yes
8823 ;;
8824
8825hpux9* | hpux10* | hpux11*)
8826 # Give a soname corresponding to the major version so that dld.sl refuses to
8827 # link against other versions.
8828 version_type=sunos
8829 need_lib_prefix=no
8830 need_version=no
8831 case $host_cpu in
8832 ia64*)
8833 shrext_cmds='.so'
8834 hardcode_into_libs=yes
8835 dynamic_linker="$host_os dld.so"
8836 shlibpath_var=LD_LIBRARY_PATH
8837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 if test "X$HPUX_IA64_MODE" = X32; then
8841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8842 else
8843 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8844 fi
8845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8846 ;;
8847 hppa*64*)
8848 shrext_cmds='.sl'
8849 hardcode_into_libs=yes
8850 dynamic_linker="$host_os dld.sl"
8851 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854 soname_spec='${libname}${release}${shared_ext}$major'
8855 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8857 ;;
8858 *)
8859 shrext_cmds='.sl'
8860 dynamic_linker="$host_os dld.sl"
8861 shlibpath_var=SHLIB_PATH
8862 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 ;;
8866 esac
8867 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8868 postinstall_cmds='chmod 555 $lib'
8869 ;;
8870
8871interix3*)
8872 version_type=linux
8873 need_lib_prefix=no
8874 need_version=no
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=no
8880 hardcode_into_libs=yes
8881 ;;
8882
8883irix5* | irix6* | nonstopux*)
8884 case $host_os in
8885 nonstopux*) version_type=nonstopux ;;
8886 *)
8887 if test "$lt_cv_prog_gnu_ld" = yes; then
8888 version_type=linux
8889 else
8890 version_type=irix
8891 fi ;;
8892 esac
8893 need_lib_prefix=no
8894 need_version=no
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8897 case $host_os in
8898 irix5* | nonstopux*)
8899 libsuff= shlibsuff=
8900 ;;
8901 *)
8902 case $LD in # libtool.m4 will add one of these switches to LD
8903 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8904 libsuff= shlibsuff= libmagic=32-bit;;
8905 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8906 libsuff=32 shlibsuff=N32 libmagic=N32;;
8907 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8908 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8909 *) libsuff= shlibsuff= libmagic=never-match;;
8910 esac
8911 ;;
8912 esac
8913 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8914 shlibpath_overrides_runpath=no
8915 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8916 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8917 hardcode_into_libs=yes
8918 ;;
8919
8920# No shared lib support for Linux oldld, aout, or coff.
8921linux*oldld* | linux*aout* | linux*coff*)
8922 dynamic_linker=no
8923 ;;
8924
8925# This must be Linux ELF.
8926linux*)
8927 version_type=linux
8928 need_lib_prefix=no
8929 need_version=no
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=no
8935 # This implies no fast_install, which is unacceptable.
8936 # Some rework will be needed to allow for fast_install
8937 # before this can be enabled.
8938 hardcode_into_libs=yes
8939
8940 # Append ld.so.conf contents to the search path
8941 if test -f /etc/ld.so.conf; then
8942 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' ' '`
8943 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8944 fi
8945
8946 # We used to test for /lib/ld.so.1 and disable shared libraries on
8947 # powerpc, because MkLinux only supported shared libraries with the
8948 # GNU dynamic linker. Since this was broken with cross compilers,
8949 # most powerpc-linux boxes support dynamic linking these days and
8950 # people can always --disable-shared, the test was removed, and we
8951 # assume the GNU/Linux dynamic linker is in use.
8952 dynamic_linker='GNU/Linux ld.so'
8953 ;;
8954
8955knetbsd*-gnu)
8956 version_type=linux
8957 need_lib_prefix=no
8958 need_version=no
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8961 shlibpath_var=LD_LIBRARY_PATH
8962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8964 dynamic_linker='GNU ld.so'
8965 ;;
8966
8967netbsd*)
8968 version_type=sunos
8969 need_lib_prefix=no
8970 need_version=no
8971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8974 dynamic_linker='NetBSD (a.out) ld.so'
8975 else
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 dynamic_linker='NetBSD ld.elf_so'
8979 fi
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes
8982 hardcode_into_libs=yes
8983 ;;
8984
8985newsos6)
8986 version_type=linux
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=yes
8990 ;;
8991
8992nto-qnx*)
8993 version_type=linux
8994 need_lib_prefix=no
8995 need_version=no
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 shlibpath_overrides_runpath=yes
9000 ;;
9001
9002openbsd*)
9003 version_type=sunos
9004 sys_lib_dlsearch_path_spec="/usr/lib"
9005 need_lib_prefix=no
9006 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9007 case $host_os in
9008 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9009 *) need_version=no ;;
9010 esac
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9015 case $host_os in
9016 openbsd2.[89] | openbsd2.[89].*)
9017 shlibpath_overrides_runpath=no
9018 ;;
9019 *)
9020 shlibpath_overrides_runpath=yes
9021 ;;
9022 esac
9023 else
9024 shlibpath_overrides_runpath=yes
9025 fi
9026 ;;
9027
9028os2*)
9029 libname_spec='$name'
9030 shrext_cmds=".dll"
9031 need_lib_prefix=no
9032 library_names_spec='$libname${shared_ext} $libname.a'
9033 dynamic_linker='OS/2 ld.exe'
9034 shlibpath_var=LIBPATH
9035 ;;
9036
9037osf3* | osf4* | osf5*)
9038 version_type=osf
9039 need_lib_prefix=no
9040 need_version=no
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9045 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9046 ;;
9047
9048solaris*)
9049 version_type=linux
9050 need_lib_prefix=no
9051 need_version=no
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 shlibpath_overrides_runpath=yes
9056 hardcode_into_libs=yes
9057 # ldd complains unless libraries are executable
9058 postinstall_cmds='chmod +x $lib'
9059 ;;
9060
9061sunos4*)
9062 version_type=sunos
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9067 if test "$with_gnu_ld" = yes; then
9068 need_lib_prefix=no
9069 fi
9070 need_version=yes
9071 ;;
9072
9073sysv4 | sysv4.3*)
9074 version_type=linux
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 case $host_vendor in
9079 sni)
9080 shlibpath_overrides_runpath=no
9081 need_lib_prefix=no
9082 export_dynamic_flag_spec='${wl}-Blargedynsym'
9083 runpath_var=LD_RUN_PATH
9084 ;;
9085 siemens)
9086 need_lib_prefix=no
9087 ;;
9088 motorola)
9089 need_lib_prefix=no
9090 need_version=no
9091 shlibpath_overrides_runpath=no
9092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9093 ;;
9094 esac
9095 ;;
9096
9097sysv4*MP*)
9098 if test -d /usr/nec ;then
9099 version_type=linux
9100 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9101 soname_spec='$libname${shared_ext}.$major'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 fi
9104 ;;
9105
9106sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9107 version_type=freebsd-elf
9108 need_lib_prefix=no
9109 need_version=no
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 hardcode_into_libs=yes
9114 if test "$with_gnu_ld" = yes; then
9115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9116 shlibpath_overrides_runpath=no
9117 else
9118 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9119 shlibpath_overrides_runpath=yes
9120 case $host_os in
9121 sco3.2v5*)
9122 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9123 ;;
9124 esac
9125 fi
9126 sys_lib_dlsearch_path_spec='/usr/lib'
9127 ;;
9128
9129uts4*)
9130 version_type=linux
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 ;;
9135
9136*)
9137 dynamic_linker=no
9138 ;;
9139esac
9140{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9141echo "${ECHO_T}$dynamic_linker" >&6; }
9142test "$dynamic_linker" = no && can_build_shared=no
9143
9144variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9145if test "$GCC" = yes; then
9146 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9147fi
9148
9149
9150{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9151echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9152if test "${libltdl_cv_shlibext+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155
9156module=yes
9157eval libltdl_cv_shlibext=$shrext_cmds
9158
9159fi
9160{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9161echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9162if test -n "$libltdl_cv_shlibext"; then
9163
9164cat >>confdefs.h <<_ACEOF
9165#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9166_ACEOF
9167
9168fi
9169
9170
9171{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9172echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9173if test "${libltdl_cv_shlibpath_var+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175else
9176 libltdl_cv_shlibpath_var="$shlibpath_var"
9177fi
9178{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9179echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9180if test -n "$libltdl_cv_shlibpath_var"; then
9181
9182cat >>confdefs.h <<_ACEOF
9183#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9184_ACEOF
9185
9186fi
9187
9188
9189{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9190echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9191if test "${libltdl_cv_sys_search_path+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193else
9194 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9195fi
9196{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9197echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9198if test -n "$libltdl_cv_sys_search_path"; then
9199 sys_search_path=
9200 for dir in $libltdl_cv_sys_search_path; do
9201 if test -z "$sys_search_path"; then
9202 sys_search_path="$dir"
9203 else
9204 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9205 fi
9206 done
9207
9208cat >>confdefs.h <<_ACEOF
9209#define LTDL_SYSSEARCHPATH "$sys_search_path"
9210_ACEOF
9211
9212fi
9213
9214{ echo "$as_me:$LINENO: checking for objdir" >&5
9215echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9216if test "${libltdl_cv_objdir+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218else
9219 libltdl_cv_objdir="$objdir"
9220 if test -n "$objdir"; then
9221 :
9222 else
9223 rm -f .libs 2>/dev/null
9224 mkdir .libs 2>/dev/null
9225 if test -d .libs; then
9226 libltdl_cv_objdir=.libs
9227 else
9228 # MS-DOS does not allow filenames that begin with a dot.
9229 libltdl_cv_objdir=_libs
9230 fi
9231 rmdir .libs 2>/dev/null
9232 fi
9233
9234fi
9235{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9236echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9237
9238cat >>confdefs.h <<_ACEOF
9239#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9240_ACEOF
9241
9242
9243
9244
9245
9246
9247# Check for command to grab the raw symbol name followed by C symbol from nm.
9248{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9249echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9250if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252else
9253
9254# These are sane defaults that work on at least a few old systems.
9255# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9256
9257# Character class describing NM global symbol codes.
9258symcode='[BCDEGRST]'
9259
9260# Regexp to match symbols that can be accessed directly from C.
9261sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9262
9263# Transform an extracted symbol line into a proper C declaration
9264lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9265
9266# Transform an extracted symbol line into symbol name and symbol address
9267lt_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'"
9268
9269# Define system-specific variables.
9270case $host_os in
9271aix*)
9272 symcode='[BCDT]'
9273 ;;
9274cygwin* | mingw* | pw32*)
9275 symcode='[ABCDGISTW]'
9276 ;;
9277hpux*) # Its linker distinguishes data from code symbols
9278 if test "$host_cpu" = ia64; then
9279 symcode='[ABCDEGRST]'
9280 fi
9281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9282 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'"
9283 ;;
9284linux*)
9285 if test "$host_cpu" = ia64; then
9286 symcode='[ABCDGIRSTW]'
9287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9288 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'"
9289 fi
9290 ;;
9291irix* | nonstopux*)
9292 symcode='[BCDEGRST]'
9293 ;;
9294osf*)
9295 symcode='[BCDEGQRST]'
9296 ;;
9297solaris*)
9298 symcode='[BDRT]'
9299 ;;
9300sco3.2v5*)
9301 symcode='[DT]'
9302 ;;
9303sysv4.2uw2*)
9304 symcode='[DT]'
9305 ;;
9306sysv5* | sco5v6* | unixware* | OpenUNIX*)
9307 symcode='[ABDT]'
9308 ;;
9309sysv4)
9310 symcode='[DFNSTU]'
9311 ;;
9312esac
9313
9314# Handle CRLF in mingw tool chain
9315opt_cr=
9316case $build_os in
9317mingw*)
9318 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9319 ;;
9320esac
9321
9322# If we're using GNU nm, then use its standard symbol codes.
9323case `$NM -V 2>&1` in
9324*GNU* | *'with BFD'*)
9325 symcode='[ABCDGIRSTW]' ;;
9326esac
9327
9328# Try without a prefix undercore, then with it.
9329for ac_symprfx in "" "_"; do
9330
9331 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9332 symxfrm="\\1 $ac_symprfx\\2 \\2"
9333
9334 # Write the raw and C identifiers.
9335 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9336
9337 # Check to see that the pipe works correctly.
9338 pipe_works=no
9339
9340 rm -f conftest*
9341 cat > conftest.$ac_ext <<EOF
9342#ifdef __cplusplus
9343extern "C" {
9344#endif
9345char nm_test_var;
9346void nm_test_func(){}
9347#ifdef __cplusplus
9348}
9349#endif
9350int main(){nm_test_var='a';nm_test_func();return(0);}
9351EOF
9352
9353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9354 (eval $ac_compile) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; then
9358 # Now try to grab the symbols.
9359 nlist=conftest.nm
9360 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9361 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && test -s "$nlist"; then
9365 # Try sorting and uniquifying the output.
9366 if sort "$nlist" | uniq > "$nlist"T; then
9367 mv -f "$nlist"T "$nlist"
9368 else
9369 rm -f "$nlist"T
9370 fi
9371
9372 # Make sure that we snagged all the symbols we need.
9373 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9374 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9375 cat <<EOF > conftest.$ac_ext
9376#ifdef __cplusplus
9377extern "C" {
9378#endif
9379
9380EOF
9381 # Now generate the symbol file.
9382 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9383
9384 cat <<EOF >> conftest.$ac_ext
9385#if defined (__STDC__) && __STDC__
9386# define lt_ptr_t void *
9387#else
9388# define lt_ptr_t char *
9389# define const
9390#endif
9391
9392/* The mapping between symbol names and symbols. */
9393const struct {
9394 const char *name;
9395 lt_ptr_t address;
9396}
9397lt_preloaded_symbols[] =
9398{
9399EOF
9400 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9401 cat <<\EOF >> conftest.$ac_ext
9402 {0, (lt_ptr_t) 0}
9403};
9404
9405#ifdef __cplusplus
9406}
9407#endif
9408EOF
9409 # Now try linking the two files.
9410 mv conftest.$ac_objext conftstm.$ac_objext
9411 lt_save_LIBS="$LIBS"
9412 lt_save_CFLAGS="$CFLAGS"
9413 LIBS="conftstm.$ac_objext"
9414 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416 (eval $ac_link) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9420 pipe_works=yes
9421 fi
9422 LIBS="$lt_save_LIBS"
9423 CFLAGS="$lt_save_CFLAGS"
9424 else
9425 echo "cannot find nm_test_func in $nlist" >&5
9426 fi
9427 else
9428 echo "cannot find nm_test_var in $nlist" >&5
9429 fi
9430 else
9431 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9432 fi
9433 else
9434 echo "$progname: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9436 fi
9437 rm -f conftest* conftst*
9438
9439 # Do not use the global_symbol_pipe unless it works.
9440 if test "$pipe_works" = yes; then
9441 break
9442 else
9443 lt_cv_sys_global_symbol_pipe=
9444 fi
9445done
9446
9447fi
9448
9449if test -z "$lt_cv_sys_global_symbol_pipe"; then
9450 lt_cv_sys_global_symbol_to_cdecl=
9451fi
9452if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9453 { echo "$as_me:$LINENO: result: failed" >&5
9454echo "${ECHO_T}failed" >&6; }
9455else
9456 { echo "$as_me:$LINENO: result: ok" >&5
9457echo "${ECHO_T}ok" >&6; }
9458fi
9459
9460
9461{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9462echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9463if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9465else
9466 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9467 libltdl_cv_preloaded_symbols=yes
9468 else
9469 libltdl_cv_preloaded_symbols=no
9470 fi
9471
9472fi
9473{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9474echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9475if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9476
9477cat >>confdefs.h <<\_ACEOF
9478#define HAVE_PRELOADED_SYMBOLS 1
9479_ACEOF
9480
9481fi
9482
9483LIBADD_DL=
9484
9485ac_ext=c
9486ac_cpp='$CPP $CPPFLAGS'
9487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9489ac_compiler_gnu=$ac_cv_c_compiler_gnu
9490
9491
9492{ echo "$as_me:$LINENO: checking for shl_load" >&5
9493echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9494if test "${ac_cv_func_shl_load+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496else
9497 cat >conftest.$ac_ext <<_ACEOF
9498/* confdefs.h. */
9499_ACEOF
9500cat confdefs.h >>conftest.$ac_ext
9501cat >>conftest.$ac_ext <<_ACEOF
9502/* end confdefs.h. */
9503/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9505#define shl_load innocuous_shl_load
9506
9507/* System header to define __stub macros and hopefully few prototypes,
9508 which can conflict with char shl_load (); below.
9509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9510 <limits.h> exists even on freestanding compilers. */
9511
9512#ifdef __STDC__
9513# include <limits.h>
9514#else
9515# include <assert.h>
9516#endif
9517
9518#undef shl_load
9519
9520/* Override any GCC internal prototype to avoid an error.
9521 Use char because int might match the return type of a GCC
9522 builtin and then its argument prototype would still apply. */
9523#ifdef __cplusplus
9524extern "C"
9525#endif
9526char shl_load ();
9527/* The GNU C library defines this for functions which it implements
9528 to always fail with ENOSYS. Some functions are actually named
9529 something starting with __ and the normal name is an alias. */
9530#if defined __stub_shl_load || defined __stub___shl_load
9531choke me
9532#endif
9533
9534int
9535main ()
9536{
9537return shl_load ();
9538 ;
9539 return 0;
9540}
9541_ACEOF
9542rm -f conftest.$ac_objext conftest$ac_exeext
9543if { (ac_try="$ac_link"
9544case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9547esac
9548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_link") 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557 { (case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9560esac
9561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_try") 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; } &&
9566 { ac_try='test -s conftest$ac_exeext'
9567 { (case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570esac
9571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_try") 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_cv_func_shl_load=yes
9577else
9578 echo "$as_me: failed program was:" >&5
9579sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_cv_func_shl_load=no
9582fi
9583
9584rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586fi
9587{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9588echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9589if test $ac_cv_func_shl_load = yes; then
9590
9591cat >>confdefs.h <<\_ACEOF
9592#define HAVE_SHL_LOAD 1
9593_ACEOF
9594
9595else
9596 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9597echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9598if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600else
9601 ac_check_lib_save_LIBS=$LIBS
9602LIBS="-ldld $LIBS"
9603cat >conftest.$ac_ext <<_ACEOF
9604/* confdefs.h. */
9605_ACEOF
9606cat confdefs.h >>conftest.$ac_ext
9607cat >>conftest.$ac_ext <<_ACEOF
9608/* end confdefs.h. */
9609
9610/* Override any GCC internal prototype to avoid an error.
9611 Use char because int might match the return type of a GCC
9612 builtin and then its argument prototype would still apply. */
9613#ifdef __cplusplus
9614extern "C"
9615#endif
9616char shl_load ();
9617int
9618main ()
9619{
9620return shl_load ();
9621 ;
9622 return 0;
9623}
9624_ACEOF
9625rm -f conftest.$ac_objext conftest$ac_exeext
9626if { (ac_try="$ac_link"
9627case "(($ac_try" in
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9630esac
9631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632 (eval "$ac_link") 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9640 { (case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643esac
9644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_try") 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; } &&
9649 { ac_try='test -s conftest$ac_exeext'
9650 { (case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653esac
9654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_try") 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_lib_dld_shl_load=yes
9660else
9661 echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ac_cv_lib_dld_shl_load=no
9665fi
9666
9667rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669LIBS=$ac_check_lib_save_LIBS
9670fi
9671{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9672echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9673if test $ac_cv_lib_dld_shl_load = yes; then
9674
9675cat >>confdefs.h <<\_ACEOF
9676#define HAVE_SHL_LOAD 1
9677_ACEOF
9678
9679 LIBADD_DL="$LIBADD_DL -ldld"
9680else
9681 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9682echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9683if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685else
9686 ac_check_lib_save_LIBS=$LIBS
9687LIBS="-ldl $LIBS"
9688cat >conftest.$ac_ext <<_ACEOF
9689/* confdefs.h. */
9690_ACEOF
9691cat confdefs.h >>conftest.$ac_ext
9692cat >>conftest.$ac_ext <<_ACEOF
9693/* end confdefs.h. */
9694
9695/* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9698#ifdef __cplusplus
9699extern "C"
9700#endif
9701char dlopen ();
9702int
9703main ()
9704{
9705return dlopen ();
9706 ;
9707 return 0;
9708}
9709_ACEOF
9710rm -f conftest.$ac_objext conftest$ac_exeext
9711if { (ac_try="$ac_link"
9712case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715esac
9716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9725 { (case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728esac
9729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_try") 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_try") 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 ac_cv_lib_dl_dlopen=yes
9745else
9746 echo "$as_me: failed program was:" >&5
9747sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 ac_cv_lib_dl_dlopen=no
9750fi
9751
9752rm -f core conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9754LIBS=$ac_check_lib_save_LIBS
9755fi
9756{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9757echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9758if test $ac_cv_lib_dl_dlopen = yes; then
9759
9760cat >>confdefs.h <<\_ACEOF
9761#define HAVE_LIBDL 1
9762_ACEOF
9763
9764 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9765else
9766 cat >conftest.$ac_ext <<_ACEOF
9767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
9772#if HAVE_DLFCN_H
9773# include <dlfcn.h>
9774#endif
9775
9776int
9777main ()
9778{
9779dlopen(0, 0);
9780 ;
9781 return 0;
9782}
9783_ACEOF
9784rm -f conftest.$ac_objext conftest$ac_exeext
9785if { (ac_try="$ac_link"
9786case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_link") 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9799 { (case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802esac
9803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_try") 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try='test -s conftest$ac_exeext'
9809 { (case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812esac
9813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_try") 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818
9819cat >>confdefs.h <<\_ACEOF
9820#define HAVE_LIBDL 1
9821_ACEOF
9822 libltdl_cv_func_dlopen="yes"
9823else
9824 echo "$as_me: failed program was:" >&5
9825sed 's/^/| /' conftest.$ac_ext >&5
9826
9827 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9828echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9829if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831else
9832 ac_check_lib_save_LIBS=$LIBS
9833LIBS="-lsvld $LIBS"
9834cat >conftest.$ac_ext <<_ACEOF
9835/* confdefs.h. */
9836_ACEOF
9837cat confdefs.h >>conftest.$ac_ext
9838cat >>conftest.$ac_ext <<_ACEOF
9839/* end confdefs.h. */
9840
9841/* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
9844#ifdef __cplusplus
9845extern "C"
9846#endif
9847char dlopen ();
9848int
9849main ()
9850{
9851return dlopen ();
9852 ;
9853 return 0;
9854}
9855_ACEOF
9856rm -f conftest.$ac_objext conftest$ac_exeext
9857if { (ac_try="$ac_link"
9858case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861esac
9862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863 (eval "$ac_link") 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_try") 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest$ac_exeext'
9881 { (case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884esac
9885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_try") 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 ac_cv_lib_svld_dlopen=yes
9891else
9892 echo "$as_me: failed program was:" >&5
9893sed 's/^/| /' conftest.$ac_ext >&5
9894
9895 ac_cv_lib_svld_dlopen=no
9896fi
9897
9898rm -f core conftest.err conftest.$ac_objext \
9899 conftest$ac_exeext conftest.$ac_ext
9900LIBS=$ac_check_lib_save_LIBS
9901fi
9902{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9903echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9904if test $ac_cv_lib_svld_dlopen = yes; then
9905
9906cat >>confdefs.h <<\_ACEOF
9907#define HAVE_LIBDL 1
9908_ACEOF
9909
9910 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9911else
9912 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9913echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9914if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916else
9917 ac_check_lib_save_LIBS=$LIBS
9918LIBS="-ldld $LIBS"
9919cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h. */
9925
9926/* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9929#ifdef __cplusplus
9930extern "C"
9931#endif
9932char dld_link ();
9933int
9934main ()
9935{
9936return dld_link ();
9937 ;
9938 return 0;
9939}
9940_ACEOF
9941rm -f conftest.$ac_objext conftest$ac_exeext
9942if { (ac_try="$ac_link"
9943case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946esac
9947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959esac
9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_cv_lib_dld_dld_link=yes
9976else
9977 echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 ac_cv_lib_dld_dld_link=no
9981fi
9982
9983rm -f core conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985LIBS=$ac_check_lib_save_LIBS
9986fi
9987{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9988echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9989if test $ac_cv_lib_dld_dld_link = yes; then
9990
9991cat >>confdefs.h <<\_ACEOF
9992#define HAVE_DLD 1
9993_ACEOF
9994
9995 LIBADD_DL="$LIBADD_DL -ldld"
9996else
9997 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9998echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9999if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10001else
10002 cat >conftest.$ac_ext <<_ACEOF
10003/* confdefs.h. */
10004_ACEOF
10005cat confdefs.h >>conftest.$ac_ext
10006cat >>conftest.$ac_ext <<_ACEOF
10007/* end confdefs.h. */
10008/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10010#define _dyld_func_lookup innocuous__dyld_func_lookup
10011
10012/* System header to define __stub macros and hopefully few prototypes,
10013 which can conflict with char _dyld_func_lookup (); below.
10014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10015 <limits.h> exists even on freestanding compilers. */
10016
10017#ifdef __STDC__
10018# include <limits.h>
10019#else
10020# include <assert.h>
10021#endif
10022
10023#undef _dyld_func_lookup
10024
10025/* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10028#ifdef __cplusplus
10029extern "C"
10030#endif
10031char _dyld_func_lookup ();
10032/* The GNU C library defines this for functions which it implements
10033 to always fail with ENOSYS. Some functions are actually named
10034 something starting with __ and the normal name is an alias. */
10035#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10036choke me
10037#endif
10038
10039int
10040main ()
10041{
10042return _dyld_func_lookup ();
10043 ;
10044 return 0;
10045}
10046_ACEOF
10047rm -f conftest.$ac_objext conftest$ac_exeext
10048if { (ac_try="$ac_link"
10049case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052esac
10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065esac
10066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075esac
10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_func__dyld_func_lookup=yes
10082else
10083 echo "$as_me: failed program was:" >&5
10084sed 's/^/| /' conftest.$ac_ext >&5
10085
10086 ac_cv_func__dyld_func_lookup=no
10087fi
10088
10089rm -f core conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091fi
10092{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10093echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10094if test $ac_cv_func__dyld_func_lookup = yes; then
10095
10096cat >>confdefs.h <<\_ACEOF
10097#define HAVE_DYLD 1
10098_ACEOF
10099
10100fi
10101
10102
10103fi
10104
10105
10106fi
10107
10108
10109fi
10110
10111rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113
10114fi
10115
10116
10117fi
10118
10119
10120fi
10121
10122
10123if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10124then
10125 lt_save_LIBS="$LIBS"
10126 LIBS="$LIBS $LIBADD_DL"
10127
10128for ac_func in dlerror
10129do
10130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10131{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10133if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136 cat >conftest.$ac_ext <<_ACEOF
10137/* confdefs.h. */
10138_ACEOF
10139cat confdefs.h >>conftest.$ac_ext
10140cat >>conftest.$ac_ext <<_ACEOF
10141/* end confdefs.h. */
10142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10144#define $ac_func innocuous_$ac_func
10145
10146/* System header to define __stub macros and hopefully few prototypes,
10147 which can conflict with char $ac_func (); below.
10148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10149 <limits.h> exists even on freestanding compilers. */
10150
10151#ifdef __STDC__
10152# include <limits.h>
10153#else
10154# include <assert.h>
10155#endif
10156
10157#undef $ac_func
10158
10159/* Override any GCC internal prototype to avoid an error.
10160 Use char because int might match the return type of a GCC
10161 builtin and then its argument prototype would still apply. */
10162#ifdef __cplusplus
10163extern "C"
10164#endif
10165char $ac_func ();
10166/* The GNU C library defines this for functions which it implements
10167 to always fail with ENOSYS. Some functions are actually named
10168 something starting with __ and the normal name is an alias. */
10169#if defined __stub_$ac_func || defined __stub___$ac_func
10170choke me
10171#endif
10172
10173int
10174main ()
10175{
10176return $ac_func ();
10177 ;
10178 return 0;
10179}
10180_ACEOF
10181rm -f conftest.$ac_objext conftest$ac_exeext
10182if { (ac_try="$ac_link"
10183case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186esac
10187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10196 { (case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10199esac
10200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_try") 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; } &&
10205 { ac_try='test -s conftest$ac_exeext'
10206 { (case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_try") 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 eval "$as_ac_var=yes"
10216else
10217 echo "$as_me: failed program was:" >&5
10218sed 's/^/| /' conftest.$ac_ext >&5
10219
10220 eval "$as_ac_var=no"
10221fi
10222
10223rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225fi
10226ac_res=`eval echo '${'$as_ac_var'}'`
10227 { echo "$as_me:$LINENO: result: $ac_res" >&5
10228echo "${ECHO_T}$ac_res" >&6; }
10229if test `eval echo '${'$as_ac_var'}'` = yes; then
10230 cat >>confdefs.h <<_ACEOF
10231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10232_ACEOF
10233
10234fi
10235done
10236
10237 LIBS="$lt_save_LIBS"
10238fi
10239ac_ext=c
10240ac_cpp='$CPP $CPPFLAGS'
10241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243ac_compiler_gnu=$ac_cv_c_compiler_gnu
10244
10245
10246
10247{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10248echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10249if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252 ac_cv_sys_symbol_underscore=no
10253 cat > conftest.$ac_ext <<EOF
10254void nm_test_func(){}
10255int main(){nm_test_func;return 0;}
10256EOF
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; then
10262 # Now try to grab the symbols.
10263 ac_nlist=conftest.nm
10264 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10265 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && test -s "$ac_nlist"; then
10269 # See whether the symbols have a leading underscore.
10270 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10271 ac_cv_sys_symbol_underscore=yes
10272 else
10273 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10274 :
10275 else
10276 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10277 fi
10278 fi
10279 else
10280 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10281 fi
10282 else
10283 echo "configure: failed program was:" >&5
10284 cat conftest.c >&5
10285 fi
10286 rm -rf conftest*
10287
10288fi
10289{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10290echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10291
10292
10293if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10294 if test x"$libltdl_cv_func_dlopen" = xyes ||
10295 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10296 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10297echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10298if test "${libltdl_cv_need_uscore+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300else
10301 libltdl_cv_need_uscore=unknown
10302 save_LIBS="$LIBS"
10303 LIBS="$LIBS $LIBADD_DL"
10304 if test "$cross_compiling" = yes; then :
10305 libltdl_cv_need_uscore=cross
10306else
10307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10308 lt_status=$lt_dlunknown
10309 cat > conftest.$ac_ext <<EOF
Eric Christopherc4b22712012-03-26 21:56:56 +000010310#line 10303 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010311#include "confdefs.h"
10312
10313#if HAVE_DLFCN_H
10314#include <dlfcn.h>
10315#endif
10316
10317#include <stdio.h>
10318
10319#ifdef RTLD_GLOBAL
10320# define LT_DLGLOBAL RTLD_GLOBAL
10321#else
10322# ifdef DL_GLOBAL
10323# define LT_DLGLOBAL DL_GLOBAL
10324# else
10325# define LT_DLGLOBAL 0
10326# endif
10327#endif
10328
10329/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10330 find out it does not work in some platform. */
10331#ifndef LT_DLLAZY_OR_NOW
10332# ifdef RTLD_LAZY
10333# define LT_DLLAZY_OR_NOW RTLD_LAZY
10334# else
10335# ifdef DL_LAZY
10336# define LT_DLLAZY_OR_NOW DL_LAZY
10337# else
10338# ifdef RTLD_NOW
10339# define LT_DLLAZY_OR_NOW RTLD_NOW
10340# else
10341# ifdef DL_NOW
10342# define LT_DLLAZY_OR_NOW DL_NOW
10343# else
10344# define LT_DLLAZY_OR_NOW 0
10345# endif
10346# endif
10347# endif
10348# endif
10349#endif
10350
10351#ifdef __cplusplus
10352extern "C" void exit (int);
10353#endif
10354
10355void fnord() { int i=42;}
10356int main ()
10357{
10358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359 int status = $lt_dlunknown;
10360
10361 if (self)
10362 {
10363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365 /* dlclose (self); */
10366 }
10367 else
10368 puts (dlerror ());
10369
10370 exit (status);
10371}
10372EOF
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378 (./conftest; exit; ) >&5 2>/dev/null
10379 lt_status=$?
10380 case x$lt_status in
10381 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10382 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10383 x$lt_dlunknown|x*) ;;
10384 esac
10385 else :
10386 # compilation failed
10387
10388 fi
10389fi
10390rm -fr conftest*
10391
10392 LIBS="$save_LIBS"
10393
10394fi
10395{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10396echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10397 fi
10398fi
10399
10400if test x"$libltdl_cv_need_uscore" = xyes; then
10401
10402cat >>confdefs.h <<\_ACEOF
10403#define NEED_USCORE 1
10404_ACEOF
10405
10406fi
10407
10408
10409{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10410echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10411if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414 # PORTME does your system automatically load deplibs for dlopen?
10415 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10416 # For now, we just catch OSes we know something about -- in the
10417 # future, we'll try test this programmatically.
10418 libltdl_cv_sys_dlopen_deplibs=unknown
10419 case "$host_os" in
10420 aix3*|aix4.1.*|aix4.2.*)
10421 # Unknown whether this is true for these versions of AIX, but
10422 # we want this `case' here to explicitly catch those versions.
10423 libltdl_cv_sys_dlopen_deplibs=unknown
10424 ;;
10425 aix[45]*)
10426 libltdl_cv_sys_dlopen_deplibs=yes
10427 ;;
10428 darwin*)
10429 # Assuming the user has installed a libdl from somewhere, this is true
10430 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10431 libltdl_cv_sys_dlopen_deplibs=yes
10432 ;;
10433 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10434 # GNU and its variants, using gnu ld.so (Glibc)
10435 libltdl_cv_sys_dlopen_deplibs=yes
10436 ;;
10437 hpux10*|hpux11*)
10438 libltdl_cv_sys_dlopen_deplibs=yes
10439 ;;
10440 interix*)
10441 libltdl_cv_sys_dlopen_deplibs=yes
10442 ;;
10443 irix[12345]*|irix6.[01]*)
10444 # Catch all versions of IRIX before 6.2, and indicate that we don't
10445 # know how it worked for any of those versions.
10446 libltdl_cv_sys_dlopen_deplibs=unknown
10447 ;;
10448 irix*)
10449 # The case above catches anything before 6.2, and it's known that
10450 # at 6.2 and later dlopen does load deplibs.
10451 libltdl_cv_sys_dlopen_deplibs=yes
10452 ;;
10453 netbsd*)
10454 libltdl_cv_sys_dlopen_deplibs=yes
10455 ;;
10456 openbsd*)
10457 libltdl_cv_sys_dlopen_deplibs=yes
10458 ;;
10459 osf[1234]*)
10460 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10461 # it did *not* use an RPATH in a shared library to find objects the
10462 # library depends on, so we explicitly say `no'.
10463 libltdl_cv_sys_dlopen_deplibs=no
10464 ;;
10465 osf5.0|osf5.0a|osf5.1)
10466 # dlopen *does* load deplibs and with the right loader patch applied
10467 # it even uses RPATH in a shared library to search for shared objects
10468 # that the library depends on, but there's no easy way to know if that
10469 # patch is installed. Since this is the case, all we can really
10470 # say is unknown -- it depends on the patch being installed. If
10471 # it is, this changes to `yes'. Without it, it would be `no'.
10472 libltdl_cv_sys_dlopen_deplibs=unknown
10473 ;;
10474 osf*)
10475 # the two cases above should catch all versions of osf <= 5.1. Read
10476 # the comments above for what we know about them.
10477 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10478 # is used to find them so we can finally say `yes'.
10479 libltdl_cv_sys_dlopen_deplibs=yes
10480 ;;
10481 solaris*)
10482 libltdl_cv_sys_dlopen_deplibs=yes
10483 ;;
10484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10485 libltdl_cv_sys_dlopen_deplibs=yes
10486 ;;
10487 esac
10488
10489fi
10490{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10491echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10492if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10493
10494cat >>confdefs.h <<\_ACEOF
10495#define LTDL_DLOPEN_DEPLIBS 1
10496_ACEOF
10497
10498fi
10499
10500
10501for ac_header in argz.h
10502do
10503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509fi
10510ac_res=`eval echo '${'$as_ac_Header'}'`
10511 { echo "$as_me:$LINENO: result: $ac_res" >&5
10512echo "${ECHO_T}$ac_res" >&6; }
10513else
10514 # Is the header compilable?
10515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10517cat >conftest.$ac_ext <<_ACEOF
10518/* confdefs.h. */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
10522/* end confdefs.h. */
10523$ac_includes_default
10524#include <$ac_header>
10525_ACEOF
10526rm -f conftest.$ac_objext
10527if { (ac_try="$ac_compile"
10528case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531esac
10532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_compile") 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10541 { (case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544esac
10545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_try") 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try='test -s conftest.$ac_objext'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554esac
10555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_header_compiler=yes
10561else
10562 echo "$as_me: failed program was:" >&5
10563sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 ac_header_compiler=no
10566fi
10567
10568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10570echo "${ECHO_T}$ac_header_compiler" >&6; }
10571
10572# Is the header present?
10573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10575cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h. */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h. */
10581#include <$ac_header>
10582_ACEOF
10583if { (ac_try="$ac_cpp conftest.$ac_ext"
10584case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587esac
10588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } >/dev/null; then
10596 if test -s conftest.err; then
10597 ac_cpp_err=$ac_c_preproc_warn_flag
10598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10599 else
10600 ac_cpp_err=
10601 fi
10602else
10603 ac_cpp_err=yes
10604fi
10605if test -z "$ac_cpp_err"; then
10606 ac_header_preproc=yes
10607else
10608 echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
10611 ac_header_preproc=no
10612fi
10613
10614rm -f conftest.err conftest.$ac_ext
10615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10616echo "${ECHO_T}$ac_header_preproc" >&6; }
10617
10618# So? What about this header?
10619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10620 yes:no: )
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10625 ac_header_preproc=yes
10626 ;;
10627 no:yes:* )
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10640 ( cat <<\_ASBOX
10641## ------------------------------ ##
10642## Report this to bugs@yourdomain ##
10643## ------------------------------ ##
10644_ASBOX
10645 ) | sed "s/^/$as_me: WARNING: /" >&2
10646 ;;
10647esac
10648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652else
10653 eval "$as_ac_Header=\$ac_header_preproc"
10654fi
10655ac_res=`eval echo '${'$as_ac_Header'}'`
10656 { echo "$as_me:$LINENO: result: $ac_res" >&5
10657echo "${ECHO_T}$ac_res" >&6; }
10658
10659fi
10660if test `eval echo '${'$as_ac_Header'}'` = yes; then
10661 cat >>confdefs.h <<_ACEOF
10662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10663_ACEOF
10664
10665fi
10666
10667done
10668
10669
10670{ echo "$as_me:$LINENO: checking for error_t" >&5
10671echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10672if test "${ac_cv_type_error_t+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675 cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
10681#if HAVE_ARGZ_H
10682# include <argz.h>
10683#endif
10684
10685typedef error_t ac__type_new_;
10686int
10687main ()
10688{
10689if ((ac__type_new_ *) 0)
10690 return 0;
10691if (sizeof (ac__type_new_))
10692 return 0;
10693 ;
10694 return 0;
10695}
10696_ACEOF
10697rm -f conftest.$ac_objext
10698if { (ac_try="$ac_compile"
10699case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702esac
10703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_compile") 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } &&
10711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10712 { (case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715esac
10716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_try") 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; } &&
10721 { ac_try='test -s conftest.$ac_objext'
10722 { (case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725esac
10726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_try") 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 ac_cv_type_error_t=yes
10732else
10733 echo "$as_me: failed program was:" >&5
10734sed 's/^/| /' conftest.$ac_ext >&5
10735
10736 ac_cv_type_error_t=no
10737fi
10738
10739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740fi
10741{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10742echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10743if test $ac_cv_type_error_t = yes; then
10744
10745cat >>confdefs.h <<_ACEOF
10746#define HAVE_ERROR_T 1
10747_ACEOF
10748
10749
10750else
10751
10752cat >>confdefs.h <<\_ACEOF
10753#define error_t int
10754_ACEOF
10755
10756fi
10757
10758
10759
10760
10761
10762
10763
10764for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10765do
10766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10767{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10769if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771else
10772 cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */
10778/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10780#define $ac_func innocuous_$ac_func
10781
10782/* System header to define __stub macros and hopefully few prototypes,
10783 which can conflict with char $ac_func (); below.
10784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10785 <limits.h> exists even on freestanding compilers. */
10786
10787#ifdef __STDC__
10788# include <limits.h>
10789#else
10790# include <assert.h>
10791#endif
10792
10793#undef $ac_func
10794
10795/* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10798#ifdef __cplusplus
10799extern "C"
10800#endif
10801char $ac_func ();
10802/* The GNU C library defines this for functions which it implements
10803 to always fail with ENOSYS. Some functions are actually named
10804 something starting with __ and the normal name is an alias. */
10805#if defined __stub_$ac_func || defined __stub___$ac_func
10806choke me
10807#endif
10808
10809int
10810main ()
10811{
10812return $ac_func ();
10813 ;
10814 return 0;
10815}
10816_ACEOF
10817rm -f conftest.$ac_objext conftest$ac_exeext
10818if { (ac_try="$ac_link"
10819case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822esac
10823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_link") 2>conftest.er1
10825 ac_status=$?
10826 grep -v '^ *+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10832 { (case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10835esac
10836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_try") 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest$ac_exeext'
10842 { (case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845esac
10846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_try") 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 eval "$as_ac_var=yes"
10852else
10853 echo "$as_me: failed program was:" >&5
10854sed 's/^/| /' conftest.$ac_ext >&5
10855
10856 eval "$as_ac_var=no"
10857fi
10858
10859rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861fi
10862ac_res=`eval echo '${'$as_ac_var'}'`
10863 { echo "$as_me:$LINENO: result: $ac_res" >&5
10864echo "${ECHO_T}$ac_res" >&6; }
10865if test `eval echo '${'$as_ac_var'}'` = yes; then
10866 cat >>confdefs.h <<_ACEOF
10867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10868_ACEOF
10869
10870fi
10871done
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10901 stdio.h unistd.h
10902do
10903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909fi
10910ac_res=`eval echo '${'$as_ac_Header'}'`
10911 { echo "$as_me:$LINENO: result: $ac_res" >&5
10912echo "${ECHO_T}$ac_res" >&6; }
10913else
10914 # Is the header compilable?
10915{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10917cat >conftest.$ac_ext <<_ACEOF
10918/* confdefs.h. */
10919_ACEOF
10920cat confdefs.h >>conftest.$ac_ext
10921cat >>conftest.$ac_ext <<_ACEOF
10922/* end confdefs.h. */
10923$ac_includes_default
10924#include <$ac_header>
10925_ACEOF
10926rm -f conftest.$ac_objext
10927if { (ac_try="$ac_compile"
10928case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931esac
10932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_compile") 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944esac
10945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 ac_header_compiler=yes
10961else
10962 echo "$as_me: failed program was:" >&5
10963sed 's/^/| /' conftest.$ac_ext >&5
10964
10965 ac_header_compiler=no
10966fi
10967
10968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10970echo "${ECHO_T}$ac_header_compiler" >&6; }
10971
10972# Is the header present?
10973{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10975cat >conftest.$ac_ext <<_ACEOF
10976/* confdefs.h. */
10977_ACEOF
10978cat confdefs.h >>conftest.$ac_ext
10979cat >>conftest.$ac_ext <<_ACEOF
10980/* end confdefs.h. */
10981#include <$ac_header>
10982_ACEOF
10983if { (ac_try="$ac_cpp conftest.$ac_ext"
10984case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987esac
10988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10990 ac_status=$?
10991 grep -v '^ *+' conftest.er1 >conftest.err
10992 rm -f conftest.er1
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } >/dev/null; then
10996 if test -s conftest.err; then
10997 ac_cpp_err=$ac_c_preproc_warn_flag
10998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10999 else
11000 ac_cpp_err=
11001 fi
11002else
11003 ac_cpp_err=yes
11004fi
11005if test -z "$ac_cpp_err"; then
11006 ac_header_preproc=yes
11007else
11008 echo "$as_me: failed program was:" >&5
11009sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 ac_header_preproc=no
11012fi
11013
11014rm -f conftest.err conftest.$ac_ext
11015{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11016echo "${ECHO_T}$ac_header_preproc" >&6; }
11017
11018# So? What about this header?
11019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11020 yes:no: )
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11025 ac_header_preproc=yes
11026 ;;
11027 no:yes:* )
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11035echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11040 ( cat <<\_ASBOX
11041## ------------------------------ ##
11042## Report this to bugs@yourdomain ##
11043## ------------------------------ ##
11044_ASBOX
11045 ) | sed "s/^/$as_me: WARNING: /" >&2
11046 ;;
11047esac
11048{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052else
11053 eval "$as_ac_Header=\$ac_header_preproc"
11054fi
11055ac_res=`eval echo '${'$as_ac_Header'}'`
11056 { echo "$as_me:$LINENO: result: $ac_res" >&5
11057echo "${ECHO_T}$ac_res" >&6; }
11058
11059fi
11060if test `eval echo '${'$as_ac_Header'}'` = yes; then
11061 cat >>confdefs.h <<_ACEOF
11062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11063_ACEOF
11064
11065fi
11066
11067done
11068
11069
11070
11071
11072
11073for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11074do
11075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081fi
11082ac_res=`eval echo '${'$as_ac_Header'}'`
11083 { echo "$as_me:$LINENO: result: $ac_res" >&5
11084echo "${ECHO_T}$ac_res" >&6; }
11085else
11086 # Is the header compilable?
11087{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11089cat >conftest.$ac_ext <<_ACEOF
11090/* confdefs.h. */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h. */
11095$ac_includes_default
11096#include <$ac_header>
11097_ACEOF
11098rm -f conftest.$ac_objext
11099if { (ac_try="$ac_compile"
11100case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103esac
11104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_compile") 2>conftest.er1
11106 ac_status=$?
11107 grep -v '^ *+' conftest.er1 >conftest.err
11108 rm -f conftest.er1
11109 cat conftest.err >&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } &&
11112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11113 { (case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116esac
11117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_try") 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; } &&
11122 { ac_try='test -s conftest.$ac_objext'
11123 { (case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126esac
11127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_try") 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; }; then
11132 ac_header_compiler=yes
11133else
11134 echo "$as_me: failed program was:" >&5
11135sed 's/^/| /' conftest.$ac_ext >&5
11136
11137 ac_header_compiler=no
11138fi
11139
11140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11141{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11142echo "${ECHO_T}$ac_header_compiler" >&6; }
11143
11144# Is the header present?
11145{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11146echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11147cat >conftest.$ac_ext <<_ACEOF
11148/* confdefs.h. */
11149_ACEOF
11150cat confdefs.h >>conftest.$ac_ext
11151cat >>conftest.$ac_ext <<_ACEOF
11152/* end confdefs.h. */
11153#include <$ac_header>
11154_ACEOF
11155if { (ac_try="$ac_cpp conftest.$ac_ext"
11156case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159esac
11160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } >/dev/null; then
11168 if test -s conftest.err; then
11169 ac_cpp_err=$ac_c_preproc_warn_flag
11170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11171 else
11172 ac_cpp_err=
11173 fi
11174else
11175 ac_cpp_err=yes
11176fi
11177if test -z "$ac_cpp_err"; then
11178 ac_header_preproc=yes
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 ac_header_preproc=no
11184fi
11185
11186rm -f conftest.err conftest.$ac_ext
11187{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11188echo "${ECHO_T}$ac_header_preproc" >&6; }
11189
11190# So? What about this header?
11191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11192 yes:no: )
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11197 ac_header_preproc=yes
11198 ;;
11199 no:yes:* )
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11207echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11212 ( cat <<\_ASBOX
11213## ------------------------------ ##
11214## Report this to bugs@yourdomain ##
11215## ------------------------------ ##
11216_ASBOX
11217 ) | sed "s/^/$as_me: WARNING: /" >&2
11218 ;;
11219esac
11220{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224else
11225 eval "$as_ac_Header=\$ac_header_preproc"
11226fi
11227ac_res=`eval echo '${'$as_ac_Header'}'`
11228 { echo "$as_me:$LINENO: result: $ac_res" >&5
11229echo "${ECHO_T}$ac_res" >&6; }
11230
11231fi
11232if test `eval echo '${'$as_ac_Header'}'` = yes; then
11233 cat >>confdefs.h <<_ACEOF
11234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11235_ACEOF
11236
11237fi
11238
11239done
11240
11241
11242
11243for ac_header in string.h strings.h
11244do
11245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11251fi
11252ac_res=`eval echo '${'$as_ac_Header'}'`
11253 { echo "$as_me:$LINENO: result: $ac_res" >&5
11254echo "${ECHO_T}$ac_res" >&6; }
11255else
11256 # Is the header compilable?
11257{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11259cat >conftest.$ac_ext <<_ACEOF
11260/* confdefs.h. */
11261_ACEOF
11262cat confdefs.h >>conftest.$ac_ext
11263cat >>conftest.$ac_ext <<_ACEOF
11264/* end confdefs.h. */
11265$ac_includes_default
11266#include <$ac_header>
11267_ACEOF
11268rm -f conftest.$ac_objext
11269if { (ac_try="$ac_compile"
11270case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273esac
11274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_compile") 2>conftest.er1
11276 ac_status=$?
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286esac
11287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_header_compiler=yes
11303else
11304 echo "$as_me: failed program was:" >&5
11305sed 's/^/| /' conftest.$ac_ext >&5
11306
11307 ac_header_compiler=no
11308fi
11309
11310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11311{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11312echo "${ECHO_T}$ac_header_compiler" >&6; }
11313
11314# Is the header present?
11315{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11316echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11317cat >conftest.$ac_ext <<_ACEOF
11318/* confdefs.h. */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h. */
11323#include <$ac_header>
11324_ACEOF
11325if { (ac_try="$ac_cpp conftest.$ac_ext"
11326case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } >/dev/null; then
11338 if test -s conftest.err; then
11339 ac_cpp_err=$ac_c_preproc_warn_flag
11340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11341 else
11342 ac_cpp_err=
11343 fi
11344else
11345 ac_cpp_err=yes
11346fi
11347if test -z "$ac_cpp_err"; then
11348 ac_header_preproc=yes
11349else
11350 echo "$as_me: failed program was:" >&5
11351sed 's/^/| /' conftest.$ac_ext >&5
11352
11353 ac_header_preproc=no
11354fi
11355
11356rm -f conftest.err conftest.$ac_ext
11357{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11358echo "${ECHO_T}$ac_header_preproc" >&6; }
11359
11360# So? What about this header?
11361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11362 yes:no: )
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11364echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11366echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11367 ac_header_preproc=yes
11368 ;;
11369 no:yes:* )
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11371echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11373echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11375echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11377echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11379echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11381echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11382 ( cat <<\_ASBOX
11383## ------------------------------ ##
11384## Report this to bugs@yourdomain ##
11385## ------------------------------ ##
11386_ASBOX
11387 ) | sed "s/^/$as_me: WARNING: /" >&2
11388 ;;
11389esac
11390{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394else
11395 eval "$as_ac_Header=\$ac_header_preproc"
11396fi
11397ac_res=`eval echo '${'$as_ac_Header'}'`
11398 { echo "$as_me:$LINENO: result: $ac_res" >&5
11399echo "${ECHO_T}$ac_res" >&6; }
11400
11401fi
11402if test `eval echo '${'$as_ac_Header'}'` = yes; then
11403 cat >>confdefs.h <<_ACEOF
11404#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11405_ACEOF
11406 break
11407fi
11408
11409done
11410
11411
11412
11413
11414for ac_func in strchr index
11415do
11416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11417{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11419if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421else
11422 cat >conftest.$ac_ext <<_ACEOF
11423/* confdefs.h. */
11424_ACEOF
11425cat confdefs.h >>conftest.$ac_ext
11426cat >>conftest.$ac_ext <<_ACEOF
11427/* end confdefs.h. */
11428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11430#define $ac_func innocuous_$ac_func
11431
11432/* System header to define __stub macros and hopefully few prototypes,
11433 which can conflict with char $ac_func (); below.
11434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11435 <limits.h> exists even on freestanding compilers. */
11436
11437#ifdef __STDC__
11438# include <limits.h>
11439#else
11440# include <assert.h>
11441#endif
11442
11443#undef $ac_func
11444
11445/* Override any GCC internal prototype to avoid an error.
11446 Use char because int might match the return type of a GCC
11447 builtin and then its argument prototype would still apply. */
11448#ifdef __cplusplus
11449extern "C"
11450#endif
11451char $ac_func ();
11452/* The GNU C library defines this for functions which it implements
11453 to always fail with ENOSYS. Some functions are actually named
11454 something starting with __ and the normal name is an alias. */
11455#if defined __stub_$ac_func || defined __stub___$ac_func
11456choke me
11457#endif
11458
11459int
11460main ()
11461{
11462return $ac_func ();
11463 ;
11464 return 0;
11465}
11466_ACEOF
11467rm -f conftest.$ac_objext conftest$ac_exeext
11468if { (ac_try="$ac_link"
11469case "(($ac_try" in
11470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471 *) ac_try_echo=$ac_try;;
11472esac
11473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474 (eval "$ac_link") 2>conftest.er1
11475 ac_status=$?
11476 grep -v '^ *+' conftest.er1 >conftest.err
11477 rm -f conftest.er1
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11482 { (case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485esac
11486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_try") 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest$ac_exeext'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495esac
11496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 eval "$as_ac_var=yes"
11502else
11503 echo "$as_me: failed program was:" >&5
11504sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 eval "$as_ac_var=no"
11507fi
11508
11509rm -f core conftest.err conftest.$ac_objext \
11510 conftest$ac_exeext conftest.$ac_ext
11511fi
11512ac_res=`eval echo '${'$as_ac_var'}'`
11513 { echo "$as_me:$LINENO: result: $ac_res" >&5
11514echo "${ECHO_T}$ac_res" >&6; }
11515if test `eval echo '${'$as_ac_var'}'` = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11518_ACEOF
11519 break
11520fi
11521done
11522
11523
11524
11525for ac_func in strrchr rindex
11526do
11527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11528{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11530if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532else
11533 cat >conftest.$ac_ext <<_ACEOF
11534/* confdefs.h. */
11535_ACEOF
11536cat confdefs.h >>conftest.$ac_ext
11537cat >>conftest.$ac_ext <<_ACEOF
11538/* end confdefs.h. */
11539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11541#define $ac_func innocuous_$ac_func
11542
11543/* System header to define __stub macros and hopefully few prototypes,
11544 which can conflict with char $ac_func (); below.
11545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11546 <limits.h> exists even on freestanding compilers. */
11547
11548#ifdef __STDC__
11549# include <limits.h>
11550#else
11551# include <assert.h>
11552#endif
11553
11554#undef $ac_func
11555
11556/* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11559#ifdef __cplusplus
11560extern "C"
11561#endif
11562char $ac_func ();
11563/* The GNU C library defines this for functions which it implements
11564 to always fail with ENOSYS. Some functions are actually named
11565 something starting with __ and the normal name is an alias. */
11566#if defined __stub_$ac_func || defined __stub___$ac_func
11567choke me
11568#endif
11569
11570int
11571main ()
11572{
11573return $ac_func ();
11574 ;
11575 return 0;
11576}
11577_ACEOF
11578rm -f conftest.$ac_objext conftest$ac_exeext
11579if { (ac_try="$ac_link"
11580case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583esac
11584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_link") 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596esac
11597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest$ac_exeext'
11603 { (case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606esac
11607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_try") 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 eval "$as_ac_var=yes"
11613else
11614 echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
11617 eval "$as_ac_var=no"
11618fi
11619
11620rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622fi
11623ac_res=`eval echo '${'$as_ac_var'}'`
11624 { echo "$as_me:$LINENO: result: $ac_res" >&5
11625echo "${ECHO_T}$ac_res" >&6; }
11626if test `eval echo '${'$as_ac_var'}'` = yes; then
11627 cat >>confdefs.h <<_ACEOF
11628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11629_ACEOF
11630 break
11631fi
11632done
11633
11634
11635
11636for ac_func in memcpy bcopy
11637do
11638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11639{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11641if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643else
11644 cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
11650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11652#define $ac_func innocuous_$ac_func
11653
11654/* System header to define __stub macros and hopefully few prototypes,
11655 which can conflict with char $ac_func (); below.
11656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11657 <limits.h> exists even on freestanding compilers. */
11658
11659#ifdef __STDC__
11660# include <limits.h>
11661#else
11662# include <assert.h>
11663#endif
11664
11665#undef $ac_func
11666
11667/* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11670#ifdef __cplusplus
11671extern "C"
11672#endif
11673char $ac_func ();
11674/* The GNU C library defines this for functions which it implements
11675 to always fail with ENOSYS. Some functions are actually named
11676 something starting with __ and the normal name is an alias. */
11677#if defined __stub_$ac_func || defined __stub___$ac_func
11678choke me
11679#endif
11680
11681int
11682main ()
11683{
11684return $ac_func ();
11685 ;
11686 return 0;
11687}
11688_ACEOF
11689rm -f conftest.$ac_objext conftest$ac_exeext
11690if { (ac_try="$ac_link"
11691case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694esac
11695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_link") 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11704 { (case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707esac
11708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_try") 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try='test -s conftest$ac_exeext'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 eval "$as_ac_var=yes"
11724else
11725 echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
11728 eval "$as_ac_var=no"
11729fi
11730
11731rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733fi
11734ac_res=`eval echo '${'$as_ac_var'}'`
11735 { echo "$as_me:$LINENO: result: $ac_res" >&5
11736echo "${ECHO_T}$ac_res" >&6; }
11737if test `eval echo '${'$as_ac_var'}'` = yes; then
11738 cat >>confdefs.h <<_ACEOF
11739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11740_ACEOF
11741 break
11742fi
11743done
11744
11745
11746
11747for ac_func in memmove strcmp
11748do
11749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754else
11755 cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h. */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h. */
11761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11763#define $ac_func innocuous_$ac_func
11764
11765/* System header to define __stub macros and hopefully few prototypes,
11766 which can conflict with char $ac_func (); below.
11767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768 <limits.h> exists even on freestanding compilers. */
11769
11770#ifdef __STDC__
11771# include <limits.h>
11772#else
11773# include <assert.h>
11774#endif
11775
11776#undef $ac_func
11777
11778/* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11781#ifdef __cplusplus
11782extern "C"
11783#endif
11784char $ac_func ();
11785/* The GNU C library defines this for functions which it implements
11786 to always fail with ENOSYS. Some functions are actually named
11787 something starting with __ and the normal name is an alias. */
11788#if defined __stub_$ac_func || defined __stub___$ac_func
11789choke me
11790#endif
11791
11792int
11793main ()
11794{
11795return $ac_func ();
11796 ;
11797 return 0;
11798}
11799_ACEOF
11800rm -f conftest.$ac_objext conftest$ac_exeext
11801if { (ac_try="$ac_link"
11802case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11805esac
11806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_link") 2>conftest.er1
11808 ac_status=$?
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818esac
11819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; } &&
11824 { ac_try='test -s conftest$ac_exeext'
11825 { (case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828esac
11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_try") 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 eval "$as_ac_var=yes"
11835else
11836 echo "$as_me: failed program was:" >&5
11837sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 eval "$as_ac_var=no"
11840fi
11841
11842rm -f core conftest.err conftest.$ac_objext \
11843 conftest$ac_exeext conftest.$ac_ext
11844fi
11845ac_res=`eval echo '${'$as_ac_var'}'`
11846 { echo "$as_me:$LINENO: result: $ac_res" >&5
11847echo "${ECHO_T}$ac_res" >&6; }
11848if test `eval echo '${'$as_ac_var'}'` = yes; then
11849 cat >>confdefs.h <<_ACEOF
11850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11851_ACEOF
11852
11853fi
11854done
11855
11856
11857
11858
11859for ac_func in closedir opendir readdir
11860do
11861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11864if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867 cat >conftest.$ac_ext <<_ACEOF
11868/* confdefs.h. */
11869_ACEOF
11870cat confdefs.h >>conftest.$ac_ext
11871cat >>conftest.$ac_ext <<_ACEOF
11872/* end confdefs.h. */
11873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11875#define $ac_func innocuous_$ac_func
11876
11877/* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char $ac_func (); below.
11879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11880 <limits.h> exists even on freestanding compilers. */
11881
11882#ifdef __STDC__
11883# include <limits.h>
11884#else
11885# include <assert.h>
11886#endif
11887
11888#undef $ac_func
11889
11890/* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893#ifdef __cplusplus
11894extern "C"
11895#endif
11896char $ac_func ();
11897/* The GNU C library defines this for functions which it implements
11898 to always fail with ENOSYS. Some functions are actually named
11899 something starting with __ and the normal name is an alias. */
11900#if defined __stub_$ac_func || defined __stub___$ac_func
11901choke me
11902#endif
11903
11904int
11905main ()
11906{
11907return $ac_func ();
11908 ;
11909 return 0;
11910}
11911_ACEOF
11912rm -f conftest.$ac_objext conftest$ac_exeext
11913if { (ac_try="$ac_link"
11914case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_link") 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest$ac_exeext'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 eval "$as_ac_var=yes"
11947else
11948 echo "$as_me: failed program was:" >&5
11949sed 's/^/| /' conftest.$ac_ext >&5
11950
11951 eval "$as_ac_var=no"
11952fi
11953
11954rm -f core conftest.err conftest.$ac_objext \
11955 conftest$ac_exeext conftest.$ac_ext
11956fi
11957ac_res=`eval echo '${'$as_ac_var'}'`
11958 { echo "$as_me:$LINENO: result: $ac_res" >&5
11959echo "${ECHO_T}$ac_res" >&6; }
11960if test `eval echo '${'$as_ac_var'}'` = yes; then
11961 cat >>confdefs.h <<_ACEOF
11962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11963_ACEOF
11964
11965fi
11966done
11967
11968
11969
11970{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11971echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11972
11973ICC=no
11974IXX=no
11975case $CC in
11976 icc*|icpc*)
11977 ICC=yes
11978 IXX=yes
11979 ;;
11980 *)
11981 ;;
11982esac
11983
11984if test "$GCC" != "yes" && test "$ICC" != "yes"
11985then
11986 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11987echo "$as_me: error: gcc|icc required but not found" >&2;}
11988 { (exit 1); exit 1; }; }
11989fi
11990
11991if test "$GXX" != "yes" && test "$IXX" != "yes"
11992then
11993 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11994echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11995 { (exit 1); exit 1; }; }
11996fi
11997
11998if test "$GCC" = "yes"
11999then
12000 cat >conftest.$ac_ext <<_ACEOF
12001#if !defined(__GNUC__) || __GNUC__ < 3
12002#error Unsupported GCC version
12003#endif
12004
12005_ACEOF
12006rm -f conftest.$ac_objext
12007if { (ac_try="$ac_compile"
12008case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024esac
12025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034esac
12035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_try") 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 :
12041else
12042 echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
12045 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12046echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12047 { (exit 1); exit 1; }; }
12048fi
12049
12050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051fi
12052
12053if test -z "$llvm_cv_gnu_make_command"
12054then
12055 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12056echo "$as_me: error: GNU Make required but not found" >&2;}
12057 { (exit 1); exit 1; }; }
12058fi
12059
12060{ echo "$as_me:$LINENO: result: ok" >&5
12061echo "${ECHO_T}ok" >&6; }
12062
12063{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12064echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012065NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012066
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012067NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012068
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012069COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12070
12071{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12072echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012073
12074
12075
12076{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12077echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12078if test "${ac_cv_lib_m_sin+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080else
12081 ac_check_lib_save_LIBS=$LIBS
12082LIBS="-lm $LIBS"
12083cat >conftest.$ac_ext <<_ACEOF
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089
12090/* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12093#ifdef __cplusplus
12094extern "C"
12095#endif
12096char sin ();
12097int
12098main ()
12099{
12100return sin ();
12101 ;
12102 return 0;
12103}
12104_ACEOF
12105rm -f conftest.$ac_objext conftest$ac_exeext
12106if { (ac_try="$ac_link"
12107case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110esac
12111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_link") 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123esac
12124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 ac_cv_lib_m_sin=yes
12140else
12141 echo "$as_me: failed program was:" >&5
12142sed 's/^/| /' conftest.$ac_ext >&5
12143
12144 ac_cv_lib_m_sin=no
12145fi
12146
12147rm -f core conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149LIBS=$ac_check_lib_save_LIBS
12150fi
12151{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12152echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12153if test $ac_cv_lib_m_sin = yes; then
12154 cat >>confdefs.h <<_ACEOF
12155#define HAVE_LIBM 1
12156_ACEOF
12157
12158 LIBS="-lm $LIBS"
12159
12160fi
12161
12162if test "$llvm_cv_os_type" = "MingW" ; then
12163
12164{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12165echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12166if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168else
12169 ac_check_lib_save_LIBS=$LIBS
12170LIBS="-limagehlp $LIBS"
12171cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177
12178
12179int
12180main ()
12181{
12182return main ();
12183 ;
12184 return 0;
12185}
12186_ACEOF
12187rm -f conftest.$ac_objext conftest$ac_exeext
12188if { (ac_try="$ac_link"
12189case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12192esac
12193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_link") 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12202 { (case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205esac
12206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_try") 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest$ac_exeext'
12212 { (case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12215esac
12216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_try") 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_lib_imagehlp_main=yes
12222else
12223 echo "$as_me: failed program was:" >&5
12224sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_cv_lib_imagehlp_main=no
12227fi
12228
12229rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231LIBS=$ac_check_lib_save_LIBS
12232fi
12233{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12234echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12235if test $ac_cv_lib_imagehlp_main = yes; then
12236 cat >>confdefs.h <<_ACEOF
12237#define HAVE_LIBIMAGEHLP 1
12238_ACEOF
12239
12240 LIBS="-limagehlp $LIBS"
12241
12242fi
12243
12244
12245{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12246echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12247if test "${ac_cv_lib_psapi_main+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12249else
12250 ac_check_lib_save_LIBS=$LIBS
12251LIBS="-lpsapi $LIBS"
12252cat >conftest.$ac_ext <<_ACEOF
12253/* confdefs.h. */
12254_ACEOF
12255cat confdefs.h >>conftest.$ac_ext
12256cat >>conftest.$ac_ext <<_ACEOF
12257/* end confdefs.h. */
12258
12259
12260int
12261main ()
12262{
12263return main ();
12264 ;
12265 return 0;
12266}
12267_ACEOF
12268rm -f conftest.$ac_objext conftest$ac_exeext
12269if { (ac_try="$ac_link"
12270case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273esac
12274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_link") 2>conftest.er1
12276 ac_status=$?
12277 grep -v '^ *+' conftest.er1 >conftest.err
12278 rm -f conftest.er1
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } &&
12282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12283 { (case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12286esac
12287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_try") 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try='test -s conftest$ac_exeext'
12293 { (case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296esac
12297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_try") 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 ac_cv_lib_psapi_main=yes
12303else
12304 echo "$as_me: failed program was:" >&5
12305sed 's/^/| /' conftest.$ac_ext >&5
12306
12307 ac_cv_lib_psapi_main=no
12308fi
12309
12310rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12312LIBS=$ac_check_lib_save_LIBS
12313fi
12314{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12315echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12316if test $ac_cv_lib_psapi_main = yes; then
12317 cat >>confdefs.h <<_ACEOF
12318#define HAVE_LIBPSAPI 1
12319_ACEOF
12320
12321 LIBS="-lpsapi $LIBS"
12322
12323fi
12324
12325fi
12326
12327{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12328echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12329if test "${ac_cv_search_dlopen+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331else
12332 ac_func_search_save_LIBS=$LIBS
12333cat >conftest.$ac_ext <<_ACEOF
12334/* confdefs.h. */
12335_ACEOF
12336cat confdefs.h >>conftest.$ac_ext
12337cat >>conftest.$ac_ext <<_ACEOF
12338/* end confdefs.h. */
12339
12340/* Override any GCC internal prototype to avoid an error.
12341 Use char because int might match the return type of a GCC
12342 builtin and then its argument prototype would still apply. */
12343#ifdef __cplusplus
12344extern "C"
12345#endif
12346char dlopen ();
12347int
12348main ()
12349{
12350return dlopen ();
12351 ;
12352 return 0;
12353}
12354_ACEOF
12355for ac_lib in '' dl; do
12356 if test -z "$ac_lib"; then
12357 ac_res="none required"
12358 else
12359 ac_res=-l$ac_lib
12360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12361 fi
12362 rm -f conftest.$ac_objext conftest$ac_exeext
12363if { (ac_try="$ac_link"
12364case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367esac
12368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_link") 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380esac
12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try='test -s conftest$ac_exeext'
12387 { (case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390esac
12391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_try") 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_cv_search_dlopen=$ac_res
12397else
12398 echo "$as_me: failed program was:" >&5
12399sed 's/^/| /' conftest.$ac_ext >&5
12400
12401
12402fi
12403
12404rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext
12406 if test "${ac_cv_search_dlopen+set}" = set; then
12407 break
12408fi
12409done
12410if test "${ac_cv_search_dlopen+set}" = set; then
12411 :
12412else
12413 ac_cv_search_dlopen=no
12414fi
12415rm conftest.$ac_ext
12416LIBS=$ac_func_search_save_LIBS
12417fi
12418{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12419echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12420ac_res=$ac_cv_search_dlopen
12421if test "$ac_res" != no; then
12422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12423
12424cat >>confdefs.h <<\_ACEOF
12425#define HAVE_DLOPEN 1
12426_ACEOF
12427
12428else
12429 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12430echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12431fi
12432
12433
12434if test "$llvm_cv_enable_libffi" = "yes" ; then
12435 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12436echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12437if test "${ac_cv_search_ffi_call+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439else
12440 ac_func_search_save_LIBS=$LIBS
12441cat >conftest.$ac_ext <<_ACEOF
12442/* confdefs.h. */
12443_ACEOF
12444cat confdefs.h >>conftest.$ac_ext
12445cat >>conftest.$ac_ext <<_ACEOF
12446/* end confdefs.h. */
12447
12448/* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12451#ifdef __cplusplus
12452extern "C"
12453#endif
12454char ffi_call ();
12455int
12456main ()
12457{
12458return ffi_call ();
12459 ;
12460 return 0;
12461}
12462_ACEOF
12463for ac_lib in '' ffi; do
12464 if test -z "$ac_lib"; then
12465 ac_res="none required"
12466 else
12467 ac_res=-l$ac_lib
12468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12469 fi
12470 rm -f conftest.$ac_objext conftest$ac_exeext
12471if { (ac_try="$ac_link"
12472case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475esac
12476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_link") 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12485 { (case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12488esac
12489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_try") 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; } &&
12494 { ac_try='test -s conftest$ac_exeext'
12495 { (case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12498esac
12499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_try") 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_cv_search_ffi_call=$ac_res
12505else
12506 echo "$as_me: failed program was:" >&5
12507sed 's/^/| /' conftest.$ac_ext >&5
12508
12509
12510fi
12511
12512rm -f core conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext
12514 if test "${ac_cv_search_ffi_call+set}" = set; then
12515 break
12516fi
12517done
12518if test "${ac_cv_search_ffi_call+set}" = set; then
12519 :
12520else
12521 ac_cv_search_ffi_call=no
12522fi
12523rm conftest.$ac_ext
12524LIBS=$ac_func_search_save_LIBS
12525fi
12526{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12527echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12528ac_res=$ac_cv_search_ffi_call
12529if test "$ac_res" != no; then
12530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12531
12532cat >>confdefs.h <<\_ACEOF
12533#define HAVE_FFI_CALL 1
12534_ACEOF
12535
12536else
12537 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12538echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12539 { (exit 1); exit 1; }; }
12540fi
12541
12542fi
12543
12544{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12545echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12546if test "${ac_cv_search_mallinfo+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548else
12549 ac_func_search_save_LIBS=$LIBS
12550cat >conftest.$ac_ext <<_ACEOF
12551/* confdefs.h. */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h. */
12556
12557/* Override any GCC internal prototype to avoid an error.
12558 Use char because int might match the return type of a GCC
12559 builtin and then its argument prototype would still apply. */
12560#ifdef __cplusplus
12561extern "C"
12562#endif
12563char mallinfo ();
12564int
12565main ()
12566{
12567return mallinfo ();
12568 ;
12569 return 0;
12570}
12571_ACEOF
12572for ac_lib in '' malloc; do
12573 if test -z "$ac_lib"; then
12574 ac_res="none required"
12575 else
12576 ac_res=-l$ac_lib
12577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12578 fi
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580if { (ac_try="$ac_link"
12581case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584esac
12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_link") 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12594 { (case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597esac
12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_try") 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest$ac_exeext'
12604 { (case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12607esac
12608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_try") 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 ac_cv_search_mallinfo=$ac_res
12614else
12615 echo "$as_me: failed program was:" >&5
12616sed 's/^/| /' conftest.$ac_ext >&5
12617
12618
12619fi
12620
12621rm -f core conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext
12623 if test "${ac_cv_search_mallinfo+set}" = set; then
12624 break
12625fi
12626done
12627if test "${ac_cv_search_mallinfo+set}" = set; then
12628 :
12629else
12630 ac_cv_search_mallinfo=no
12631fi
12632rm conftest.$ac_ext
12633LIBS=$ac_func_search_save_LIBS
12634fi
12635{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12636echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12637ac_res=$ac_cv_search_mallinfo
12638if test "$ac_res" != no; then
12639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12640
12641cat >>confdefs.h <<\_ACEOF
12642#define HAVE_MALLINFO 1
12643_ACEOF
12644
12645fi
12646
12647
12648if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12649
12650{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12651echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12652if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654else
12655 ac_check_lib_save_LIBS=$LIBS
12656LIBS="-lpthread $LIBS"
12657cat >conftest.$ac_ext <<_ACEOF
12658/* confdefs.h. */
12659_ACEOF
12660cat confdefs.h >>conftest.$ac_ext
12661cat >>conftest.$ac_ext <<_ACEOF
12662/* end confdefs.h. */
12663
12664/* Override any GCC internal prototype to avoid an error.
12665 Use char because int might match the return type of a GCC
12666 builtin and then its argument prototype would still apply. */
12667#ifdef __cplusplus
12668extern "C"
12669#endif
12670char pthread_mutex_init ();
12671int
12672main ()
12673{
12674return pthread_mutex_init ();
12675 ;
12676 return 0;
12677}
12678_ACEOF
12679rm -f conftest.$ac_objext conftest$ac_exeext
12680if { (ac_try="$ac_link"
12681case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_link") 2>conftest.er1
12687 ac_status=$?
12688 grep -v '^ *+' conftest.er1 >conftest.err
12689 rm -f conftest.er1
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12694 { (case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697esac
12698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_try") 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest$ac_exeext'
12704 { (case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707esac
12708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_try") 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_lib_pthread_pthread_mutex_init=yes
12714else
12715 echo "$as_me: failed program was:" >&5
12716sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 ac_cv_lib_pthread_pthread_mutex_init=no
12719fi
12720
12721rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723LIBS=$ac_check_lib_save_LIBS
12724fi
12725{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12726echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12727if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12728 cat >>confdefs.h <<_ACEOF
12729#define HAVE_LIBPTHREAD 1
12730_ACEOF
12731
12732 LIBS="-lpthread $LIBS"
12733
12734fi
12735
12736 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12737echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12738if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740else
12741 ac_func_search_save_LIBS=$LIBS
12742cat >conftest.$ac_ext <<_ACEOF
12743/* confdefs.h. */
12744_ACEOF
12745cat confdefs.h >>conftest.$ac_ext
12746cat >>conftest.$ac_ext <<_ACEOF
12747/* end confdefs.h. */
12748
12749/* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12752#ifdef __cplusplus
12753extern "C"
12754#endif
12755char pthread_mutex_lock ();
12756int
12757main ()
12758{
12759return pthread_mutex_lock ();
12760 ;
12761 return 0;
12762}
12763_ACEOF
12764for ac_lib in '' pthread; do
12765 if test -z "$ac_lib"; then
12766 ac_res="none required"
12767 else
12768 ac_res=-l$ac_lib
12769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12770 fi
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772if { (ac_try="$ac_link"
12773case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776esac
12777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12779 ac_status=$?
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789esac
12790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest$ac_exeext'
12796 { (case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12799esac
12800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_try") 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 ac_cv_search_pthread_mutex_lock=$ac_res
12806else
12807 echo "$as_me: failed program was:" >&5
12808sed 's/^/| /' conftest.$ac_ext >&5
12809
12810
12811fi
12812
12813rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext
12815 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12816 break
12817fi
12818done
12819if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12820 :
12821else
12822 ac_cv_search_pthread_mutex_lock=no
12823fi
12824rm conftest.$ac_ext
12825LIBS=$ac_func_search_save_LIBS
12826fi
12827{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12828echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12829ac_res=$ac_cv_search_pthread_mutex_lock
12830if test "$ac_res" != no; then
12831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12832
12833cat >>confdefs.h <<\_ACEOF
12834#define HAVE_PTHREAD_MUTEX_LOCK 1
12835_ACEOF
12836
12837fi
12838
12839 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12840echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12841if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12843else
12844 ac_func_search_save_LIBS=$LIBS
12845cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h. */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h. */
12851
12852/* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12855#ifdef __cplusplus
12856extern "C"
12857#endif
12858char pthread_rwlock_init ();
12859int
12860main ()
12861{
12862return pthread_rwlock_init ();
12863 ;
12864 return 0;
12865}
12866_ACEOF
12867for ac_lib in '' pthread; do
12868 if test -z "$ac_lib"; then
12869 ac_res="none required"
12870 else
12871 ac_res=-l$ac_lib
12872 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12873 fi
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875if { (ac_try="$ac_link"
12876case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12879esac
12880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_link") 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12889 { (case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12892esac
12893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_try") 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; } &&
12898 { ac_try='test -s conftest$ac_exeext'
12899 { (case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902esac
12903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_try") 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
12908 ac_cv_search_pthread_rwlock_init=$ac_res
12909else
12910 echo "$as_me: failed program was:" >&5
12911sed 's/^/| /' conftest.$ac_ext >&5
12912
12913
12914fi
12915
12916rm -f core conftest.err conftest.$ac_objext \
12917 conftest$ac_exeext
12918 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12919 break
12920fi
12921done
12922if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12923 :
12924else
12925 ac_cv_search_pthread_rwlock_init=no
12926fi
12927rm conftest.$ac_ext
12928LIBS=$ac_func_search_save_LIBS
12929fi
12930{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12931echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12932ac_res=$ac_cv_search_pthread_rwlock_init
12933if test "$ac_res" != no; then
12934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12935
12936cat >>confdefs.h <<\_ACEOF
12937#define HAVE_PTHREAD_RWLOCK_INIT 1
12938_ACEOF
12939
12940fi
12941
12942 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12943echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12944if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12946else
12947 ac_func_search_save_LIBS=$LIBS
12948cat >conftest.$ac_ext <<_ACEOF
12949/* confdefs.h. */
12950_ACEOF
12951cat confdefs.h >>conftest.$ac_ext
12952cat >>conftest.$ac_ext <<_ACEOF
12953/* end confdefs.h. */
12954
12955/* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
12958#ifdef __cplusplus
12959extern "C"
12960#endif
12961char pthread_getspecific ();
12962int
12963main ()
12964{
12965return pthread_getspecific ();
12966 ;
12967 return 0;
12968}
12969_ACEOF
12970for ac_lib in '' pthread; do
12971 if test -z "$ac_lib"; then
12972 ac_res="none required"
12973 else
12974 ac_res=-l$ac_lib
12975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12976 fi
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978if { (ac_try="$ac_link"
12979case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12982esac
12983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_link") 2>conftest.er1
12985 ac_status=$?
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12992 { (case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995esac
12996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_try") 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest$ac_exeext'
13002 { (case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005esac
13006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_try") 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 ac_cv_search_pthread_getspecific=$ac_res
13012else
13013 echo "$as_me: failed program was:" >&5
13014sed 's/^/| /' conftest.$ac_ext >&5
13015
13016
13017fi
13018
13019rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext
13021 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13022 break
13023fi
13024done
13025if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13026 :
13027else
13028 ac_cv_search_pthread_getspecific=no
13029fi
13030rm conftest.$ac_ext
13031LIBS=$ac_func_search_save_LIBS
13032fi
13033{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13034echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13035ac_res=$ac_cv_search_pthread_getspecific
13036if test "$ac_res" != no; then
13037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13038
13039cat >>confdefs.h <<\_ACEOF
13040#define HAVE_PTHREAD_GETSPECIFIC 1
13041_ACEOF
13042
13043fi
13044
13045fi
13046
13047
13048# Check whether --with-udis86 was given.
13049if test "${with_udis86+set}" = set; then
13050 withval=$with_udis86;
13051 USE_UDIS86=1
13052
13053 case "$withval" in
13054 /usr/lib|yes) ;;
13055 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13056 esac
13057
13058{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13059echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13060if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062else
13063 ac_check_lib_save_LIBS=$LIBS
13064LIBS="-ludis86 $LIBS"
13065cat >conftest.$ac_ext <<_ACEOF
13066/* confdefs.h. */
13067_ACEOF
13068cat confdefs.h >>conftest.$ac_ext
13069cat >>conftest.$ac_ext <<_ACEOF
13070/* end confdefs.h. */
13071
13072/* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
13075#ifdef __cplusplus
13076extern "C"
13077#endif
13078char ud_init ();
13079int
13080main ()
13081{
13082return ud_init ();
13083 ;
13084 return 0;
13085}
13086_ACEOF
13087rm -f conftest.$ac_objext conftest$ac_exeext
13088if { (ac_try="$ac_link"
13089case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092esac
13093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_link") 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13102 { (case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13105esac
13106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_try") 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest$ac_exeext'
13112 { (case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115esac
13116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_try") 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_cv_lib_udis86_ud_init=yes
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_cv_lib_udis86_ud_init=no
13127fi
13128
13129rm -f core conftest.err conftest.$ac_objext \
13130 conftest$ac_exeext conftest.$ac_ext
13131LIBS=$ac_check_lib_save_LIBS
13132fi
13133{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13134echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13135if test $ac_cv_lib_udis86_ud_init = yes; then
13136 cat >>confdefs.h <<_ACEOF
13137#define HAVE_LIBUDIS86 1
13138_ACEOF
13139
13140 LIBS="-ludis86 $LIBS"
13141
13142else
13143
13144 echo "Error! You need to have libudis86 around."
13145 exit -1
13146
13147fi
13148
13149
13150else
13151 USE_UDIS86=0
13152
13153fi
13154
13155
13156cat >>confdefs.h <<_ACEOF
13157#define USE_UDIS86 $USE_UDIS86
13158_ACEOF
13159
13160
13161
13162# Check whether --with-oprofile was given.
13163if test "${with_oprofile+set}" = set; then
13164 withval=$with_oprofile;
13165 USE_OPROFILE=1
13166
13167 case "$withval" in
13168 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13169 no) llvm_cv_oppath=
13170 USE_OPROFILE=0
13171 ;;
13172 *) llvm_cv_oppath="${withval}/lib/oprofile"
13173 CPPFLAGS="-I${withval}/include";;
13174 esac
13175 if test -n "$llvm_cv_oppath" ; then
13176 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13177 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13178echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13179if test "${ac_cv_search_bfd_init+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181else
13182 ac_func_search_save_LIBS=$LIBS
13183cat >conftest.$ac_ext <<_ACEOF
13184/* confdefs.h. */
13185_ACEOF
13186cat confdefs.h >>conftest.$ac_ext
13187cat >>conftest.$ac_ext <<_ACEOF
13188/* end confdefs.h. */
13189
13190/* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13193#ifdef __cplusplus
13194extern "C"
13195#endif
13196char bfd_init ();
13197int
13198main ()
13199{
13200return bfd_init ();
13201 ;
13202 return 0;
13203}
13204_ACEOF
13205for ac_lib in '' bfd; do
13206 if test -z "$ac_lib"; then
13207 ac_res="none required"
13208 else
13209 ac_res=-l$ac_lib
13210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13211 fi
13212 rm -f conftest.$ac_objext conftest$ac_exeext
13213if { (ac_try="$ac_link"
13214case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217esac
13218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_link") 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13227 { (case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230esac
13231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_try") 2>&5
13233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; } &&
13236 { ac_try='test -s conftest$ac_exeext'
13237 { (case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13240esac
13241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_try") 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; }; then
13246 ac_cv_search_bfd_init=$ac_res
13247else
13248 echo "$as_me: failed program was:" >&5
13249sed 's/^/| /' conftest.$ac_ext >&5
13250
13251
13252fi
13253
13254rm -f core conftest.err conftest.$ac_objext \
13255 conftest$ac_exeext
13256 if test "${ac_cv_search_bfd_init+set}" = set; then
13257 break
13258fi
13259done
13260if test "${ac_cv_search_bfd_init+set}" = set; then
13261 :
13262else
13263 ac_cv_search_bfd_init=no
13264fi
13265rm conftest.$ac_ext
13266LIBS=$ac_func_search_save_LIBS
13267fi
13268{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13269echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13270ac_res=$ac_cv_search_bfd_init
13271if test "$ac_res" != no; then
13272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13273
13274fi
13275
13276 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13277echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13278if test "${ac_cv_search_op_open_agent+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 ac_func_search_save_LIBS=$LIBS
13282cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288
13289/* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13292#ifdef __cplusplus
13293extern "C"
13294#endif
13295char op_open_agent ();
13296int
13297main ()
13298{
13299return op_open_agent ();
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304for ac_lib in '' opagent; do
13305 if test -z "$ac_lib"; then
13306 ac_res="none required"
13307 else
13308 ac_res=-l$ac_lib
13309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13310 fi
13311 rm -f conftest.$ac_objext conftest$ac_exeext
13312if { (ac_try="$ac_link"
13313case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13316esac
13317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_link") 2>conftest.er1
13319 ac_status=$?
13320 grep -v '^ *+' conftest.er1 >conftest.err
13321 rm -f conftest.er1
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
13325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13326 { (case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329esac
13330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_try") 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; } &&
13335 { ac_try='test -s conftest$ac_exeext'
13336 { (case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13339esac
13340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_try") 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 ac_cv_search_op_open_agent=$ac_res
13346else
13347 echo "$as_me: failed program was:" >&5
13348sed 's/^/| /' conftest.$ac_ext >&5
13349
13350
13351fi
13352
13353rm -f core conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext
13355 if test "${ac_cv_search_op_open_agent+set}" = set; then
13356 break
13357fi
13358done
13359if test "${ac_cv_search_op_open_agent+set}" = set; then
13360 :
13361else
13362 ac_cv_search_op_open_agent=no
13363fi
13364rm conftest.$ac_ext
13365LIBS=$ac_func_search_save_LIBS
13366fi
13367{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13368echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13369ac_res=$ac_cv_search_op_open_agent
13370if test "$ac_res" != no; then
13371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13372
13373else
13374
13375 echo "Error! You need to have libopagent around."
13376 exit -1
13377
13378fi
13379
13380 if test "${ac_cv_header_opagent_h+set}" = set; then
13381 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13382echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13383if test "${ac_cv_header_opagent_h+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385fi
13386{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13387echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13388else
13389 # Is the header compilable?
13390{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13391echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13392cat >conftest.$ac_ext <<_ACEOF
13393/* confdefs.h. */
13394_ACEOF
13395cat confdefs.h >>conftest.$ac_ext
13396cat >>conftest.$ac_ext <<_ACEOF
13397/* end confdefs.h. */
13398$ac_includes_default
13399#include <opagent.h>
13400_ACEOF
13401rm -f conftest.$ac_objext
13402if { (ac_try="$ac_compile"
13403case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406esac
13407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_compile") 2>conftest.er1
13409 ac_status=$?
13410 grep -v '^ *+' conftest.er1 >conftest.err
13411 rm -f conftest.er1
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
13415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13416 { (case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_try") 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; } &&
13425 { ac_try='test -s conftest.$ac_objext'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429esac
13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_header_compiler=yes
13436else
13437 echo "$as_me: failed program was:" >&5
13438sed 's/^/| /' conftest.$ac_ext >&5
13439
13440 ac_header_compiler=no
13441fi
13442
13443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13444{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13445echo "${ECHO_T}$ac_header_compiler" >&6; }
13446
13447# Is the header present?
13448{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13449echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13450cat >conftest.$ac_ext <<_ACEOF
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */
13456#include <opagent.h>
13457_ACEOF
13458if { (ac_try="$ac_cpp conftest.$ac_ext"
13459case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } >/dev/null; then
13471 if test -s conftest.err; then
13472 ac_cpp_err=$ac_c_preproc_warn_flag
13473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13474 else
13475 ac_cpp_err=
13476 fi
13477else
13478 ac_cpp_err=yes
13479fi
13480if test -z "$ac_cpp_err"; then
13481 ac_header_preproc=yes
13482else
13483 echo "$as_me: failed program was:" >&5
13484sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 ac_header_preproc=no
13487fi
13488
13489rm -f conftest.err conftest.$ac_ext
13490{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13491echo "${ECHO_T}$ac_header_preproc" >&6; }
13492
13493# So? What about this header?
13494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13495 yes:no: )
13496 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13497echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13499echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13500 ac_header_preproc=yes
13501 ;;
13502 no:yes:* )
13503 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13504echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13506echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13508echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13510echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13512echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13514echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13515 ( cat <<\_ASBOX
13516## ------------------------------ ##
13517## Report this to bugs@yourdomain ##
13518## ------------------------------ ##
13519_ASBOX
13520 ) | sed "s/^/$as_me: WARNING: /" >&2
13521 ;;
13522esac
13523{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13524echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13525if test "${ac_cv_header_opagent_h+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527else
13528 ac_cv_header_opagent_h=$ac_header_preproc
13529fi
13530{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13531echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13532
13533fi
13534if test $ac_cv_header_opagent_h = yes; then
13535 :
13536else
13537
13538 echo "Error! You need to have opagent.h around."
13539 exit -1
13540
13541fi
13542
13543
13544 fi
13545
13546else
13547
13548 USE_OPROFILE=0
13549
13550
13551fi
13552
13553
13554cat >>confdefs.h <<_ACEOF
13555#define USE_OPROFILE $USE_OPROFILE
13556_ACEOF
13557
13558
13559
13560
13561
13562
13563
13564
13565ac_header_dirent=no
13566for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13567 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13568{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13569echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572else
13573 cat >conftest.$ac_ext <<_ACEOF
13574/* confdefs.h. */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
13578/* end confdefs.h. */
13579#include <sys/types.h>
13580#include <$ac_hdr>
13581
13582int
13583main ()
13584{
13585if ((DIR *) 0)
13586return 0;
13587 ;
13588 return 0;
13589}
13590_ACEOF
13591rm -f conftest.$ac_objext
13592if { (ac_try="$ac_compile"
13593case "(($ac_try" in
13594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595 *) ac_try_echo=$ac_try;;
13596esac
13597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598 (eval "$ac_compile") 2>conftest.er1
13599 ac_status=$?
13600 grep -v '^ *+' conftest.er1 >conftest.err
13601 rm -f conftest.er1
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609esac
13610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; } &&
13615 { ac_try='test -s conftest.$ac_objext'
13616 { (case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619esac
13620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_try") 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 eval "$as_ac_Header=yes"
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 eval "$as_ac_Header=no"
13631fi
13632
13633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634fi
13635ac_res=`eval echo '${'$as_ac_Header'}'`
13636 { echo "$as_me:$LINENO: result: $ac_res" >&5
13637echo "${ECHO_T}$ac_res" >&6; }
13638if test `eval echo '${'$as_ac_Header'}'` = yes; then
13639 cat >>confdefs.h <<_ACEOF
13640#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13641_ACEOF
13642
13643ac_header_dirent=$ac_hdr; break
13644fi
13645
13646done
13647# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13648if test $ac_header_dirent = dirent.h; then
13649 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13650echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13651if test "${ac_cv_search_opendir+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653else
13654 ac_func_search_save_LIBS=$LIBS
13655cat >conftest.$ac_ext <<_ACEOF
13656/* confdefs.h. */
13657_ACEOF
13658cat confdefs.h >>conftest.$ac_ext
13659cat >>conftest.$ac_ext <<_ACEOF
13660/* end confdefs.h. */
13661
13662/* Override any GCC internal prototype to avoid an error.
13663 Use char because int might match the return type of a GCC
13664 builtin and then its argument prototype would still apply. */
13665#ifdef __cplusplus
13666extern "C"
13667#endif
13668char opendir ();
13669int
13670main ()
13671{
13672return opendir ();
13673 ;
13674 return 0;
13675}
13676_ACEOF
13677for ac_lib in '' dir; do
13678 if test -z "$ac_lib"; then
13679 ac_res="none required"
13680 else
13681 ac_res=-l$ac_lib
13682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13683 fi
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685if { (ac_try="$ac_link"
13686case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13689esac
13690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702esac
13703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_search_opendir=$ac_res
13719else
13720 echo "$as_me: failed program was:" >&5
13721sed 's/^/| /' conftest.$ac_ext >&5
13722
13723
13724fi
13725
13726rm -f core conftest.err conftest.$ac_objext \
13727 conftest$ac_exeext
13728 if test "${ac_cv_search_opendir+set}" = set; then
13729 break
13730fi
13731done
13732if test "${ac_cv_search_opendir+set}" = set; then
13733 :
13734else
13735 ac_cv_search_opendir=no
13736fi
13737rm conftest.$ac_ext
13738LIBS=$ac_func_search_save_LIBS
13739fi
13740{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13741echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13742ac_res=$ac_cv_search_opendir
13743if test "$ac_res" != no; then
13744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13745
13746fi
13747
13748else
13749 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13750echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13751if test "${ac_cv_search_opendir+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753else
13754 ac_func_search_save_LIBS=$LIBS
13755cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761
13762/* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13765#ifdef __cplusplus
13766extern "C"
13767#endif
13768char opendir ();
13769int
13770main ()
13771{
13772return opendir ();
13773 ;
13774 return 0;
13775}
13776_ACEOF
13777for ac_lib in '' x; do
13778 if test -z "$ac_lib"; then
13779 ac_res="none required"
13780 else
13781 ac_res=-l$ac_lib
13782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13783 fi
13784 rm -f conftest.$ac_objext conftest$ac_exeext
13785if { (ac_try="$ac_link"
13786case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13789esac
13790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_link") 2>conftest.er1
13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802esac
13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest$ac_exeext'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812esac
13813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_search_opendir=$ac_res
13819else
13820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823
13824fi
13825
13826rm -f core conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext
13828 if test "${ac_cv_search_opendir+set}" = set; then
13829 break
13830fi
13831done
13832if test "${ac_cv_search_opendir+set}" = set; then
13833 :
13834else
13835 ac_cv_search_opendir=no
13836fi
13837rm conftest.$ac_ext
13838LIBS=$ac_func_search_save_LIBS
13839fi
13840{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13841echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13842ac_res=$ac_cv_search_opendir
13843if test "$ac_res" != no; then
13844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13845
13846fi
13847
13848fi
13849
13850{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13851echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13852if test "${ac_cv_header_mmap_anon+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854else
13855 ac_ext=c
13856ac_cpp='$CPP $CPPFLAGS'
13857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859ac_compiler_gnu=$ac_cv_c_compiler_gnu
13860
13861 cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867#include <sys/mman.h>
13868#include <unistd.h>
13869#include <fcntl.h>
13870int
13871main ()
13872{
13873mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (ac_try="$ac_compile"
13880case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883esac
13884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_compile") 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896esac
13897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest.$ac_objext'
13903 { (case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906esac
13907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_try") 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 ac_cv_header_mmap_anon=yes
13913else
13914 echo "$as_me: failed program was:" >&5
13915sed 's/^/| /' conftest.$ac_ext >&5
13916
13917 ac_cv_header_mmap_anon=no
13918fi
13919
13920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13921 ac_ext=c
13922ac_cpp='$CPP $CPPFLAGS'
13923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13925ac_compiler_gnu=$ac_cv_c_compiler_gnu
13926
13927
13928fi
13929{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13930echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13931if test "$ac_cv_header_mmap_anon" = yes; then
13932
13933cat >>confdefs.h <<\_ACEOF
13934#define HAVE_MMAP_ANONYMOUS 1
13935_ACEOF
13936
13937fi
13938
13939{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13940echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13941if test "${ac_cv_header_stat_broken+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943else
13944 cat >conftest.$ac_ext <<_ACEOF
13945/* confdefs.h. */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
13949/* end confdefs.h. */
13950#include <sys/types.h>
13951#include <sys/stat.h>
13952
13953#if defined S_ISBLK && defined S_IFDIR
13954# if S_ISBLK (S_IFDIR)
13955You lose.
13956# endif
13957#endif
13958
13959#if defined S_ISBLK && defined S_IFCHR
13960# if S_ISBLK (S_IFCHR)
13961You lose.
13962# endif
13963#endif
13964
13965#if defined S_ISLNK && defined S_IFREG
13966# if S_ISLNK (S_IFREG)
13967You lose.
13968# endif
13969#endif
13970
13971#if defined S_ISSOCK && defined S_IFREG
13972# if S_ISSOCK (S_IFREG)
13973You lose.
13974# endif
13975#endif
13976
13977_ACEOF
13978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13979 $EGREP "You lose" >/dev/null 2>&1; then
13980 ac_cv_header_stat_broken=yes
13981else
13982 ac_cv_header_stat_broken=no
13983fi
13984rm -f conftest*
13985
13986fi
13987{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13988echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13989if test $ac_cv_header_stat_broken = yes; then
13990
13991cat >>confdefs.h <<\_ACEOF
13992#define STAT_MACROS_BROKEN 1
13993_ACEOF
13994
13995fi
13996
13997{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13998echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13999if test "${ac_cv_header_sys_wait_h+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14001else
14002 cat >conftest.$ac_ext <<_ACEOF
14003/* confdefs.h. */
14004_ACEOF
14005cat confdefs.h >>conftest.$ac_ext
14006cat >>conftest.$ac_ext <<_ACEOF
14007/* end confdefs.h. */
14008#include <sys/types.h>
14009#include <sys/wait.h>
14010#ifndef WEXITSTATUS
14011# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14012#endif
14013#ifndef WIFEXITED
14014# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14015#endif
14016
14017int
14018main ()
14019{
14020 int s;
14021 wait (&s);
14022 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14023 ;
14024 return 0;
14025}
14026_ACEOF
14027rm -f conftest.$ac_objext
14028if { (ac_try="$ac_compile"
14029case "(($ac_try" in
14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14032esac
14033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_compile") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14042 { (case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045esac
14046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_try") 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } &&
14051 { ac_try='test -s conftest.$ac_objext'
14052 { (case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055esac
14056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_try") 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_header_sys_wait_h=yes
14062else
14063 echo "$as_me: failed program was:" >&5
14064sed 's/^/| /' conftest.$ac_ext >&5
14065
14066 ac_cv_header_sys_wait_h=no
14067fi
14068
14069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070fi
14071{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14072echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14073if test $ac_cv_header_sys_wait_h = yes; then
14074
14075cat >>confdefs.h <<\_ACEOF
14076#define HAVE_SYS_WAIT_H 1
14077_ACEOF
14078
14079fi
14080
14081{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14082echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14083if test "${ac_cv_header_time+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085else
14086 cat >conftest.$ac_ext <<_ACEOF
14087/* confdefs.h. */
14088_ACEOF
14089cat confdefs.h >>conftest.$ac_ext
14090cat >>conftest.$ac_ext <<_ACEOF
14091/* end confdefs.h. */
14092#include <sys/types.h>
14093#include <sys/time.h>
14094#include <time.h>
14095
14096int
14097main ()
14098{
14099if ((struct tm *) 0)
14100return 0;
14101 ;
14102 return 0;
14103}
14104_ACEOF
14105rm -f conftest.$ac_objext
14106if { (ac_try="$ac_compile"
14107case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_compile") 2>conftest.er1
14113 ac_status=$?
14114 grep -v '^ *+' conftest.er1 >conftest.err
14115 rm -f conftest.er1
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } &&
14119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14120 { (case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14123esac
14124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14125 (eval "$ac_try") 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; } &&
14129 { ac_try='test -s conftest.$ac_objext'
14130 { (case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133esac
14134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_try") 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_cv_header_time=yes
14140else
14141 echo "$as_me: failed program was:" >&5
14142sed 's/^/| /' conftest.$ac_ext >&5
14143
14144 ac_cv_header_time=no
14145fi
14146
14147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14148fi
14149{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14150echo "${ECHO_T}$ac_cv_header_time" >&6; }
14151if test $ac_cv_header_time = yes; then
14152
14153cat >>confdefs.h <<\_ACEOF
14154#define TIME_WITH_SYS_TIME 1
14155_ACEOF
14156
14157fi
14158
14159
14160
14161
14162
14163
14164
14165
14166for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14167do
14168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14174fi
14175ac_res=`eval echo '${'$as_ac_Header'}'`
14176 { echo "$as_me:$LINENO: result: $ac_res" >&5
14177echo "${ECHO_T}$ac_res" >&6; }
14178else
14179 # Is the header compilable?
14180{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14182cat >conftest.$ac_ext <<_ACEOF
14183/* confdefs.h. */
14184_ACEOF
14185cat confdefs.h >>conftest.$ac_ext
14186cat >>conftest.$ac_ext <<_ACEOF
14187/* end confdefs.h. */
14188$ac_includes_default
14189#include <$ac_header>
14190_ACEOF
14191rm -f conftest.$ac_objext
14192if { (ac_try="$ac_compile"
14193case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196esac
14197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_compile") 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; } &&
14215 { ac_try='test -s conftest.$ac_objext'
14216 { (case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14219esac
14220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_try") 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 ac_header_compiler=yes
14226else
14227 echo "$as_me: failed program was:" >&5
14228sed 's/^/| /' conftest.$ac_ext >&5
14229
14230 ac_header_compiler=no
14231fi
14232
14233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14235echo "${ECHO_T}$ac_header_compiler" >&6; }
14236
14237# Is the header present?
14238{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14240cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246#include <$ac_header>
14247_ACEOF
14248if { (ac_try="$ac_cpp conftest.$ac_ext"
14249case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
14255 ac_status=$?
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } >/dev/null; then
14261 if test -s conftest.err; then
14262 ac_cpp_err=$ac_c_preproc_warn_flag
14263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14264 else
14265 ac_cpp_err=
14266 fi
14267else
14268 ac_cpp_err=yes
14269fi
14270if test -z "$ac_cpp_err"; then
14271 ac_header_preproc=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276 ac_header_preproc=no
14277fi
14278
14279rm -f conftest.err conftest.$ac_ext
14280{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14281echo "${ECHO_T}$ac_header_preproc" >&6; }
14282
14283# So? What about this header?
14284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14285 yes:no: )
14286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14287echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14289echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14290 ac_header_preproc=yes
14291 ;;
14292 no:yes:* )
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14298echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14300echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14304echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14305 ( cat <<\_ASBOX
14306## ------------------------------ ##
14307## Report this to bugs@yourdomain ##
14308## ------------------------------ ##
14309_ASBOX
14310 ) | sed "s/^/$as_me: WARNING: /" >&2
14311 ;;
14312esac
14313{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14317else
14318 eval "$as_ac_Header=\$ac_header_preproc"
14319fi
14320ac_res=`eval echo '${'$as_ac_Header'}'`
14321 { echo "$as_me:$LINENO: result: $ac_res" >&5
14322echo "${ECHO_T}$ac_res" >&6; }
14323
14324fi
14325if test `eval echo '${'$as_ac_Header'}'` = yes; then
14326 cat >>confdefs.h <<_ACEOF
14327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14328_ACEOF
14329
14330fi
14331
14332done
14333
14334
14335
14336
14337
14338
14339
14340for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14341do
14342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348fi
14349ac_res=`eval echo '${'$as_ac_Header'}'`
14350 { echo "$as_me:$LINENO: result: $ac_res" >&5
14351echo "${ECHO_T}$ac_res" >&6; }
14352else
14353 # Is the header compilable?
14354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14356cat >conftest.$ac_ext <<_ACEOF
14357/* confdefs.h. */
14358_ACEOF
14359cat confdefs.h >>conftest.$ac_ext
14360cat >>conftest.$ac_ext <<_ACEOF
14361/* end confdefs.h. */
14362$ac_includes_default
14363#include <$ac_header>
14364_ACEOF
14365rm -f conftest.$ac_objext
14366if { (ac_try="$ac_compile"
14367case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370esac
14371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_compile") 2>conftest.er1
14373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383esac
14384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest.$ac_objext'
14390 { (case "(($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_try") 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 ac_header_compiler=yes
14400else
14401 echo "$as_me: failed program was:" >&5
14402sed 's/^/| /' conftest.$ac_ext >&5
14403
14404 ac_header_compiler=no
14405fi
14406
14407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14409echo "${ECHO_T}$ac_header_compiler" >&6; }
14410
14411# Is the header present?
14412{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14414cat >conftest.$ac_ext <<_ACEOF
14415/* confdefs.h. */
14416_ACEOF
14417cat confdefs.h >>conftest.$ac_ext
14418cat >>conftest.$ac_ext <<_ACEOF
14419/* end confdefs.h. */
14420#include <$ac_header>
14421_ACEOF
14422if { (ac_try="$ac_cpp conftest.$ac_ext"
14423case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426esac
14427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } >/dev/null; then
14435 if test -s conftest.err; then
14436 ac_cpp_err=$ac_c_preproc_warn_flag
14437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14438 else
14439 ac_cpp_err=
14440 fi
14441else
14442 ac_cpp_err=yes
14443fi
14444if test -z "$ac_cpp_err"; then
14445 ac_header_preproc=yes
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
14450 ac_header_preproc=no
14451fi
14452
14453rm -f conftest.err conftest.$ac_ext
14454{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14455echo "${ECHO_T}$ac_header_preproc" >&6; }
14456
14457# So? What about this header?
14458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14459 yes:no: )
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14464 ac_header_preproc=yes
14465 ;;
14466 no:yes:* )
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14470echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14474echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14479 ( cat <<\_ASBOX
14480## ------------------------------ ##
14481## Report this to bugs@yourdomain ##
14482## ------------------------------ ##
14483_ASBOX
14484 ) | sed "s/^/$as_me: WARNING: /" >&2
14485 ;;
14486esac
14487{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491else
14492 eval "$as_ac_Header=\$ac_header_preproc"
14493fi
14494ac_res=`eval echo '${'$as_ac_Header'}'`
14495 { echo "$as_me:$LINENO: result: $ac_res" >&5
14496echo "${ECHO_T}$ac_res" >&6; }
14497
14498fi
14499if test `eval echo '${'$as_ac_Header'}'` = yes; then
14500 cat >>confdefs.h <<_ACEOF
14501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14502_ACEOF
14503
14504fi
14505
14506done
14507
14508
14509
14510for ac_header in utime.h windows.h
14511do
14512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518fi
14519ac_res=`eval echo '${'$as_ac_Header'}'`
14520 { echo "$as_me:$LINENO: result: $ac_res" >&5
14521echo "${ECHO_T}$ac_res" >&6; }
14522else
14523 # Is the header compilable?
14524{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14526cat >conftest.$ac_ext <<_ACEOF
14527/* confdefs.h. */
14528_ACEOF
14529cat confdefs.h >>conftest.$ac_ext
14530cat >>conftest.$ac_ext <<_ACEOF
14531/* end confdefs.h. */
14532$ac_includes_default
14533#include <$ac_header>
14534_ACEOF
14535rm -f conftest.$ac_objext
14536if { (ac_try="$ac_compile"
14537case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14540esac
14541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_compile") 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14550 { (case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553esac
14554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_try") 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; } &&
14559 { ac_try='test -s conftest.$ac_objext'
14560 { (case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14563esac
14564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_try") 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_header_compiler=yes
14570else
14571 echo "$as_me: failed program was:" >&5
14572sed 's/^/| /' conftest.$ac_ext >&5
14573
14574 ac_header_compiler=no
14575fi
14576
14577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14579echo "${ECHO_T}$ac_header_compiler" >&6; }
14580
14581# Is the header present?
14582{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14584cat >conftest.$ac_ext <<_ACEOF
14585/* confdefs.h. */
14586_ACEOF
14587cat confdefs.h >>conftest.$ac_ext
14588cat >>conftest.$ac_ext <<_ACEOF
14589/* end confdefs.h. */
14590#include <$ac_header>
14591_ACEOF
14592if { (ac_try="$ac_cpp conftest.$ac_ext"
14593case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596esac
14597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } >/dev/null; then
14605 if test -s conftest.err; then
14606 ac_cpp_err=$ac_c_preproc_warn_flag
14607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14608 else
14609 ac_cpp_err=
14610 fi
14611else
14612 ac_cpp_err=yes
14613fi
14614if test -z "$ac_cpp_err"; then
14615 ac_header_preproc=yes
14616else
14617 echo "$as_me: failed program was:" >&5
14618sed 's/^/| /' conftest.$ac_ext >&5
14619
14620 ac_header_preproc=no
14621fi
14622
14623rm -f conftest.err conftest.$ac_ext
14624{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14625echo "${ECHO_T}$ac_header_preproc" >&6; }
14626
14627# So? What about this header?
14628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14629 yes:no: )
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14634 ac_header_preproc=yes
14635 ;;
14636 no:yes:* )
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14640echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14644echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14649 ( cat <<\_ASBOX
14650## ------------------------------ ##
14651## Report this to bugs@yourdomain ##
14652## ------------------------------ ##
14653_ASBOX
14654 ) | sed "s/^/$as_me: WARNING: /" >&2
14655 ;;
14656esac
14657{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14661else
14662 eval "$as_ac_Header=\$ac_header_preproc"
14663fi
14664ac_res=`eval echo '${'$as_ac_Header'}'`
14665 { echo "$as_me:$LINENO: result: $ac_res" >&5
14666echo "${ECHO_T}$ac_res" >&6; }
14667
14668fi
14669if test `eval echo '${'$as_ac_Header'}'` = yes; then
14670 cat >>confdefs.h <<_ACEOF
14671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14672_ACEOF
14673
14674fi
14675
14676done
14677
14678
14679
14680
14681
14682
14683for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14684do
14685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691fi
14692ac_res=`eval echo '${'$as_ac_Header'}'`
14693 { echo "$as_me:$LINENO: result: $ac_res" >&5
14694echo "${ECHO_T}$ac_res" >&6; }
14695else
14696 # Is the header compilable?
14697{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14699cat >conftest.$ac_ext <<_ACEOF
14700/* confdefs.h. */
14701_ACEOF
14702cat confdefs.h >>conftest.$ac_ext
14703cat >>conftest.$ac_ext <<_ACEOF
14704/* end confdefs.h. */
14705$ac_includes_default
14706#include <$ac_header>
14707_ACEOF
14708rm -f conftest.$ac_objext
14709if { (ac_try="$ac_compile"
14710case "(($ac_try" in
14711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712 *) ac_try_echo=$ac_try;;
14713esac
14714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715 (eval "$ac_compile") 2>conftest.er1
14716 ac_status=$?
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
14722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14723 { (case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14726esac
14727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_try") 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest.$ac_objext'
14733 { (case "(($ac_try" in
14734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735 *) ac_try_echo=$ac_try;;
14736esac
14737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738 (eval "$ac_try") 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_header_compiler=yes
14743else
14744 echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ac_header_compiler=no
14748fi
14749
14750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14752echo "${ECHO_T}$ac_header_compiler" >&6; }
14753
14754# Is the header present?
14755{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14757cat >conftest.$ac_ext <<_ACEOF
14758/* confdefs.h. */
14759_ACEOF
14760cat confdefs.h >>conftest.$ac_ext
14761cat >>conftest.$ac_ext <<_ACEOF
14762/* end confdefs.h. */
14763#include <$ac_header>
14764_ACEOF
14765if { (ac_try="$ac_cpp conftest.$ac_ext"
14766case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769esac
14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null; then
14778 if test -s conftest.err; then
14779 ac_cpp_err=$ac_c_preproc_warn_flag
14780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14781 else
14782 ac_cpp_err=
14783 fi
14784else
14785 ac_cpp_err=yes
14786fi
14787if test -z "$ac_cpp_err"; then
14788 ac_header_preproc=yes
14789else
14790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_header_preproc=no
14794fi
14795
14796rm -f conftest.err conftest.$ac_ext
14797{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14798echo "${ECHO_T}$ac_header_preproc" >&6; }
14799
14800# So? What about this header?
14801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14802 yes:no: )
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14807 ac_header_preproc=yes
14808 ;;
14809 no:yes:* )
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14822 ( cat <<\_ASBOX
14823## ------------------------------ ##
14824## Report this to bugs@yourdomain ##
14825## ------------------------------ ##
14826_ASBOX
14827 ) | sed "s/^/$as_me: WARNING: /" >&2
14828 ;;
14829esac
14830{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834else
14835 eval "$as_ac_Header=\$ac_header_preproc"
14836fi
14837ac_res=`eval echo '${'$as_ac_Header'}'`
14838 { echo "$as_me:$LINENO: result: $ac_res" >&5
14839echo "${ECHO_T}$ac_res" >&6; }
14840
14841fi
14842if test `eval echo '${'$as_ac_Header'}'` = yes; then
14843 cat >>confdefs.h <<_ACEOF
14844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845_ACEOF
14846
14847fi
14848
14849done
14850
14851
14852
14853
14854
14855for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14856do
14857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863fi
14864ac_res=`eval echo '${'$as_ac_Header'}'`
14865 { echo "$as_me:$LINENO: result: $ac_res" >&5
14866echo "${ECHO_T}$ac_res" >&6; }
14867else
14868 # Is the header compilable?
14869{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14871cat >conftest.$ac_ext <<_ACEOF
14872/* confdefs.h. */
14873_ACEOF
14874cat confdefs.h >>conftest.$ac_ext
14875cat >>conftest.$ac_ext <<_ACEOF
14876/* end confdefs.h. */
14877$ac_includes_default
14878#include <$ac_header>
14879_ACEOF
14880rm -f conftest.$ac_objext
14881if { (ac_try="$ac_compile"
14882case "(($ac_try" in
14883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14885esac
14886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14887 (eval "$ac_compile") 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898esac
14899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; } &&
14904 { ac_try='test -s conftest.$ac_objext'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908esac
14909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_try") 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_header_compiler=yes
14915else
14916 echo "$as_me: failed program was:" >&5
14917sed 's/^/| /' conftest.$ac_ext >&5
14918
14919 ac_header_compiler=no
14920fi
14921
14922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14924echo "${ECHO_T}$ac_header_compiler" >&6; }
14925
14926# Is the header present?
14927{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14928echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14929cat >conftest.$ac_ext <<_ACEOF
14930/* confdefs.h. */
14931_ACEOF
14932cat confdefs.h >>conftest.$ac_ext
14933cat >>conftest.$ac_ext <<_ACEOF
14934/* end confdefs.h. */
14935#include <$ac_header>
14936_ACEOF
14937if { (ac_try="$ac_cpp conftest.$ac_ext"
14938case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14941esac
14942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14944 ac_status=$?
14945 grep -v '^ *+' conftest.er1 >conftest.err
14946 rm -f conftest.er1
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } >/dev/null; then
14950 if test -s conftest.err; then
14951 ac_cpp_err=$ac_c_preproc_warn_flag
14952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14953 else
14954 ac_cpp_err=
14955 fi
14956else
14957 ac_cpp_err=yes
14958fi
14959if test -z "$ac_cpp_err"; then
14960 ac_header_preproc=yes
14961else
14962 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
14965 ac_header_preproc=no
14966fi
14967
14968rm -f conftest.err conftest.$ac_ext
14969{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14970echo "${ECHO_T}$ac_header_preproc" >&6; }
14971
14972# So? What about this header?
14973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14974 yes:no: )
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14979 ac_header_preproc=yes
14980 ;;
14981 no:yes:* )
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14985echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14989echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14994 ( cat <<\_ASBOX
14995## ------------------------------ ##
14996## Report this to bugs@yourdomain ##
14997## ------------------------------ ##
14998_ASBOX
14999 ) | sed "s/^/$as_me: WARNING: /" >&2
15000 ;;
15001esac
15002{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15006else
15007 eval "$as_ac_Header=\$ac_header_preproc"
15008fi
15009ac_res=`eval echo '${'$as_ac_Header'}'`
15010 { echo "$as_me:$LINENO: result: $ac_res" >&5
15011echo "${ECHO_T}$ac_res" >&6; }
15012
15013fi
15014if test `eval echo '${'$as_ac_Header'}'` = yes; then
15015 cat >>confdefs.h <<_ACEOF
15016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15017_ACEOF
15018
15019fi
15020
15021done
15022
15023
15024for ac_header in valgrind/valgrind.h
15025do
15026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032fi
15033ac_res=`eval echo '${'$as_ac_Header'}'`
15034 { echo "$as_me:$LINENO: result: $ac_res" >&5
15035echo "${ECHO_T}$ac_res" >&6; }
15036else
15037 # Is the header compilable?
15038{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15039echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15040cat >conftest.$ac_ext <<_ACEOF
15041/* confdefs.h. */
15042_ACEOF
15043cat confdefs.h >>conftest.$ac_ext
15044cat >>conftest.$ac_ext <<_ACEOF
15045/* end confdefs.h. */
15046$ac_includes_default
15047#include <$ac_header>
15048_ACEOF
15049rm -f conftest.$ac_objext
15050if { (ac_try="$ac_compile"
15051case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15054esac
15055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_compile") 2>conftest.er1
15057 ac_status=$?
15058 grep -v '^ *+' conftest.er1 >conftest.err
15059 rm -f conftest.er1
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15064 { (case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15067esac
15068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_try") 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } &&
15073 { ac_try='test -s conftest.$ac_objext'
15074 { (case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15077esac
15078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_try") 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_header_compiler=yes
15084else
15085 echo "$as_me: failed program was:" >&5
15086sed 's/^/| /' conftest.$ac_ext >&5
15087
15088 ac_header_compiler=no
15089fi
15090
15091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15093echo "${ECHO_T}$ac_header_compiler" >&6; }
15094
15095# Is the header present?
15096{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15098cat >conftest.$ac_ext <<_ACEOF
15099/* confdefs.h. */
15100_ACEOF
15101cat confdefs.h >>conftest.$ac_ext
15102cat >>conftest.$ac_ext <<_ACEOF
15103/* end confdefs.h. */
15104#include <$ac_header>
15105_ACEOF
15106if { (ac_try="$ac_cpp conftest.$ac_ext"
15107case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110esac
15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } >/dev/null; then
15119 if test -s conftest.err; then
15120 ac_cpp_err=$ac_c_preproc_warn_flag
15121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15122 else
15123 ac_cpp_err=
15124 fi
15125else
15126 ac_cpp_err=yes
15127fi
15128if test -z "$ac_cpp_err"; then
15129 ac_header_preproc=yes
15130else
15131 echo "$as_me: failed program was:" >&5
15132sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 ac_header_preproc=no
15135fi
15136
15137rm -f conftest.err conftest.$ac_ext
15138{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15139echo "${ECHO_T}$ac_header_preproc" >&6; }
15140
15141# So? What about this header?
15142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15143 yes:no: )
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15148 ac_header_preproc=yes
15149 ;;
15150 no:yes:* )
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15163 ( cat <<\_ASBOX
15164## ------------------------------ ##
15165## Report this to bugs@yourdomain ##
15166## ------------------------------ ##
15167_ASBOX
15168 ) | sed "s/^/$as_me: WARNING: /" >&2
15169 ;;
15170esac
15171{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15175else
15176 eval "$as_ac_Header=\$ac_header_preproc"
15177fi
15178ac_res=`eval echo '${'$as_ac_Header'}'`
15179 { echo "$as_me:$LINENO: result: $ac_res" >&5
15180echo "${ECHO_T}$ac_res" >&6; }
15181
15182fi
15183if test `eval echo '${'$as_ac_Header'}'` = yes; then
15184 cat >>confdefs.h <<_ACEOF
15185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15186_ACEOF
15187
15188fi
15189
15190done
15191
15192
15193for ac_header in fenv.h
15194do
15195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201fi
15202ac_res=`eval echo '${'$as_ac_Header'}'`
15203 { echo "$as_me:$LINENO: result: $ac_res" >&5
15204echo "${ECHO_T}$ac_res" >&6; }
15205else
15206 # Is the header compilable?
15207{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15208echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15209cat >conftest.$ac_ext <<_ACEOF
15210/* confdefs.h. */
15211_ACEOF
15212cat confdefs.h >>conftest.$ac_ext
15213cat >>conftest.$ac_ext <<_ACEOF
15214/* end confdefs.h. */
15215$ac_includes_default
15216#include <$ac_header>
15217_ACEOF
15218rm -f conftest.$ac_objext
15219if { (ac_try="$ac_compile"
15220case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223esac
15224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_compile") 2>conftest.er1
15226 ac_status=$?
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15233 { (case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236esac
15237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_try") 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; } &&
15242 { ac_try='test -s conftest.$ac_objext'
15243 { (case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15246esac
15247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_try") 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_header_compiler=yes
15253else
15254 echo "$as_me: failed program was:" >&5
15255sed 's/^/| /' conftest.$ac_ext >&5
15256
15257 ac_header_compiler=no
15258fi
15259
15260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15262echo "${ECHO_T}$ac_header_compiler" >&6; }
15263
15264# Is the header present?
15265{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15267cat >conftest.$ac_ext <<_ACEOF
15268/* confdefs.h. */
15269_ACEOF
15270cat confdefs.h >>conftest.$ac_ext
15271cat >>conftest.$ac_ext <<_ACEOF
15272/* end confdefs.h. */
15273#include <$ac_header>
15274_ACEOF
15275if { (ac_try="$ac_cpp conftest.$ac_ext"
15276case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15279esac
15280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } >/dev/null; then
15288 if test -s conftest.err; then
15289 ac_cpp_err=$ac_c_preproc_warn_flag
15290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15291 else
15292 ac_cpp_err=
15293 fi
15294else
15295 ac_cpp_err=yes
15296fi
15297if test -z "$ac_cpp_err"; then
15298 ac_header_preproc=yes
15299else
15300 echo "$as_me: failed program was:" >&5
15301sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 ac_header_preproc=no
15304fi
15305
15306rm -f conftest.err conftest.$ac_ext
15307{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15308echo "${ECHO_T}$ac_header_preproc" >&6; }
15309
15310# So? What about this header?
15311case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15312 yes:no: )
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15314echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15316echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15317 ac_header_preproc=yes
15318 ;;
15319 no:yes:* )
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15321echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15323echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15325echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15327echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15329echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15331echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15332 ( cat <<\_ASBOX
15333## ------------------------------ ##
15334## Report this to bugs@yourdomain ##
15335## ------------------------------ ##
15336_ASBOX
15337 ) | sed "s/^/$as_me: WARNING: /" >&2
15338 ;;
15339esac
15340{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15344else
15345 eval "$as_ac_Header=\$ac_header_preproc"
15346fi
15347ac_res=`eval echo '${'$as_ac_Header'}'`
15348 { echo "$as_me:$LINENO: result: $ac_res" >&5
15349echo "${ECHO_T}$ac_res" >&6; }
15350
15351fi
15352if test `eval echo '${'$as_ac_Header'}'` = yes; then
15353 cat >>confdefs.h <<_ACEOF
15354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15355_ACEOF
15356
15357fi
15358
15359done
15360
15361if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15362
15363for ac_header in pthread.h
15364do
15365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371fi
15372ac_res=`eval echo '${'$as_ac_Header'}'`
15373 { echo "$as_me:$LINENO: result: $ac_res" >&5
15374echo "${ECHO_T}$ac_res" >&6; }
15375else
15376 # Is the header compilable?
15377{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15379cat >conftest.$ac_ext <<_ACEOF
15380/* confdefs.h. */
15381_ACEOF
15382cat confdefs.h >>conftest.$ac_ext
15383cat >>conftest.$ac_ext <<_ACEOF
15384/* end confdefs.h. */
15385$ac_includes_default
15386#include <$ac_header>
15387_ACEOF
15388rm -f conftest.$ac_objext
15389if { (ac_try="$ac_compile"
15390case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15393esac
15394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_compile") 2>conftest.er1
15396 ac_status=$?
15397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15403 { (case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406esac
15407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_try") 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; } &&
15412 { ac_try='test -s conftest.$ac_objext'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416esac
15417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_try") 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_header_compiler=yes
15423else
15424 echo "$as_me: failed program was:" >&5
15425sed 's/^/| /' conftest.$ac_ext >&5
15426
15427 ac_header_compiler=no
15428fi
15429
15430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15431{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15432echo "${ECHO_T}$ac_header_compiler" >&6; }
15433
15434# Is the header present?
15435{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15437cat >conftest.$ac_ext <<_ACEOF
15438/* confdefs.h. */
15439_ACEOF
15440cat confdefs.h >>conftest.$ac_ext
15441cat >>conftest.$ac_ext <<_ACEOF
15442/* end confdefs.h. */
15443#include <$ac_header>
15444_ACEOF
15445if { (ac_try="$ac_cpp conftest.$ac_ext"
15446case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15449esac
15450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15452 ac_status=$?
15453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } >/dev/null; then
15458 if test -s conftest.err; then
15459 ac_cpp_err=$ac_c_preproc_warn_flag
15460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15461 else
15462 ac_cpp_err=
15463 fi
15464else
15465 ac_cpp_err=yes
15466fi
15467if test -z "$ac_cpp_err"; then
15468 ac_header_preproc=yes
15469else
15470 echo "$as_me: failed program was:" >&5
15471sed 's/^/| /' conftest.$ac_ext >&5
15472
15473 ac_header_preproc=no
15474fi
15475
15476rm -f conftest.err conftest.$ac_ext
15477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15478echo "${ECHO_T}$ac_header_preproc" >&6; }
15479
15480# So? What about this header?
15481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15482 yes:no: )
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15487 ac_header_preproc=yes
15488 ;;
15489 no:yes:* )
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15502 ( cat <<\_ASBOX
15503## ------------------------------ ##
15504## Report this to bugs@yourdomain ##
15505## ------------------------------ ##
15506_ASBOX
15507 ) | sed "s/^/$as_me: WARNING: /" >&2
15508 ;;
15509esac
15510{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514else
15515 eval "$as_ac_Header=\$ac_header_preproc"
15516fi
15517ac_res=`eval echo '${'$as_ac_Header'}'`
15518 { echo "$as_me:$LINENO: result: $ac_res" >&5
15519echo "${ECHO_T}$ac_res" >&6; }
15520
15521fi
15522if test `eval echo '${'$as_ac_Header'}'` = yes; then
15523 cat >>confdefs.h <<_ACEOF
15524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15525_ACEOF
15526 HAVE_PTHREAD=1
15527
15528else
15529 HAVE_PTHREAD=0
15530
15531fi
15532
15533done
15534
15535else
15536 HAVE_PTHREAD=0
15537
15538fi
15539
15540if test "$llvm_cv_enable_libffi" = "yes" ; then
15541
15542
15543for ac_header in ffi.h ffi/ffi.h
15544do
15545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551fi
15552ac_res=`eval echo '${'$as_ac_Header'}'`
15553 { echo "$as_me:$LINENO: result: $ac_res" >&5
15554echo "${ECHO_T}$ac_res" >&6; }
15555else
15556 # Is the header compilable?
15557{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15559cat >conftest.$ac_ext <<_ACEOF
15560/* confdefs.h. */
15561_ACEOF
15562cat confdefs.h >>conftest.$ac_ext
15563cat >>conftest.$ac_ext <<_ACEOF
15564/* end confdefs.h. */
15565$ac_includes_default
15566#include <$ac_header>
15567_ACEOF
15568rm -f conftest.$ac_objext
15569if { (ac_try="$ac_compile"
15570case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_compile") 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
15582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15583 { (case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15586esac
15587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_try") 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596esac
15597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_header_compiler=yes
15603else
15604 echo "$as_me: failed program was:" >&5
15605sed 's/^/| /' conftest.$ac_ext >&5
15606
15607 ac_header_compiler=no
15608fi
15609
15610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15612echo "${ECHO_T}$ac_header_compiler" >&6; }
15613
15614# Is the header present?
15615{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15617cat >conftest.$ac_ext <<_ACEOF
15618/* confdefs.h. */
15619_ACEOF
15620cat confdefs.h >>conftest.$ac_ext
15621cat >>conftest.$ac_ext <<_ACEOF
15622/* end confdefs.h. */
15623#include <$ac_header>
15624_ACEOF
15625if { (ac_try="$ac_cpp conftest.$ac_ext"
15626case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629esac
15630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15632 ac_status=$?
15633 grep -v '^ *+' conftest.er1 >conftest.err
15634 rm -f conftest.er1
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } >/dev/null; then
15638 if test -s conftest.err; then
15639 ac_cpp_err=$ac_c_preproc_warn_flag
15640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15641 else
15642 ac_cpp_err=
15643 fi
15644else
15645 ac_cpp_err=yes
15646fi
15647if test -z "$ac_cpp_err"; then
15648 ac_header_preproc=yes
15649else
15650 echo "$as_me: failed program was:" >&5
15651sed 's/^/| /' conftest.$ac_ext >&5
15652
15653 ac_header_preproc=no
15654fi
15655
15656rm -f conftest.err conftest.$ac_ext
15657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15658echo "${ECHO_T}$ac_header_preproc" >&6; }
15659
15660# So? What about this header?
15661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15662 yes:no: )
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15667 ac_header_preproc=yes
15668 ;;
15669 no:yes:* )
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15682 ( cat <<\_ASBOX
15683## ------------------------------ ##
15684## Report this to bugs@yourdomain ##
15685## ------------------------------ ##
15686_ASBOX
15687 ) | sed "s/^/$as_me: WARNING: /" >&2
15688 ;;
15689esac
15690{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694else
15695 eval "$as_ac_Header=\$ac_header_preproc"
15696fi
15697ac_res=`eval echo '${'$as_ac_Header'}'`
15698 { echo "$as_me:$LINENO: result: $ac_res" >&5
15699echo "${ECHO_T}$ac_res" >&6; }
15700
15701fi
15702if test `eval echo '${'$as_ac_Header'}'` = yes; then
15703 cat >>confdefs.h <<_ACEOF
15704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15705_ACEOF
15706
15707fi
15708
15709done
15710
15711fi
15712
15713
15714for ac_header in CrashReporterClient.h
15715do
15716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15722fi
15723ac_res=`eval echo '${'$as_ac_Header'}'`
15724 { echo "$as_me:$LINENO: result: $ac_res" >&5
15725echo "${ECHO_T}$ac_res" >&6; }
15726else
15727 # Is the header compilable?
15728{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15730cat >conftest.$ac_ext <<_ACEOF
15731/* confdefs.h. */
15732_ACEOF
15733cat confdefs.h >>conftest.$ac_ext
15734cat >>conftest.$ac_ext <<_ACEOF
15735/* end confdefs.h. */
15736$ac_includes_default
15737#include <$ac_header>
15738_ACEOF
15739rm -f conftest.$ac_objext
15740if { (ac_try="$ac_compile"
15741case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744esac
15745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_compile") 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15754 { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757esac
15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_try") 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest.$ac_objext'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767esac
15768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_try") 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_header_compiler=yes
15774else
15775 echo "$as_me: failed program was:" >&5
15776sed 's/^/| /' conftest.$ac_ext >&5
15777
15778 ac_header_compiler=no
15779fi
15780
15781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15783echo "${ECHO_T}$ac_header_compiler" >&6; }
15784
15785# Is the header present?
15786{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15788cat >conftest.$ac_ext <<_ACEOF
15789/* confdefs.h. */
15790_ACEOF
15791cat confdefs.h >>conftest.$ac_ext
15792cat >>conftest.$ac_ext <<_ACEOF
15793/* end confdefs.h. */
15794#include <$ac_header>
15795_ACEOF
15796if { (ac_try="$ac_cpp conftest.$ac_ext"
15797case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15800esac
15801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } >/dev/null; then
15809 if test -s conftest.err; then
15810 ac_cpp_err=$ac_c_preproc_warn_flag
15811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15812 else
15813 ac_cpp_err=
15814 fi
15815else
15816 ac_cpp_err=yes
15817fi
15818if test -z "$ac_cpp_err"; then
15819 ac_header_preproc=yes
15820else
15821 echo "$as_me: failed program was:" >&5
15822sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 ac_header_preproc=no
15825fi
15826
15827rm -f conftest.err conftest.$ac_ext
15828{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15829echo "${ECHO_T}$ac_header_preproc" >&6; }
15830
15831# So? What about this header?
15832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15833 yes:no: )
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15838 ac_header_preproc=yes
15839 ;;
15840 no:yes:* )
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15848echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15853 ( cat <<\_ASBOX
15854## ------------------------------ ##
15855## Report this to bugs@yourdomain ##
15856## ------------------------------ ##
15857_ASBOX
15858 ) | sed "s/^/$as_me: WARNING: /" >&2
15859 ;;
15860esac
15861{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15865else
15866 eval "$as_ac_Header=\$ac_header_preproc"
15867fi
15868ac_res=`eval echo '${'$as_ac_Header'}'`
15869 { echo "$as_me:$LINENO: result: $ac_res" >&5
15870echo "${ECHO_T}$ac_res" >&6; }
15871
15872fi
15873if test `eval echo '${'$as_ac_Header'}'` = yes; then
15874 cat >>confdefs.h <<_ACEOF
15875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15876_ACEOF
15877
15878fi
15879
15880done
15881
15882
15883{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15884echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15885cat >conftest.$ac_ext <<_ACEOF
15886/* confdefs.h. */
15887_ACEOF
15888cat confdefs.h >>conftest.$ac_ext
15889cat >>conftest.$ac_ext <<_ACEOF
15890/* end confdefs.h. */
15891extern const char *__crashreporter_info__;
15892 int main() {
15893 __crashreporter_info__ = "test";
15894 return 0;
15895 }
15896
15897_ACEOF
15898rm -f conftest.$ac_objext conftest$ac_exeext
15899if { (ac_try="$ac_link"
15900case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903esac
15904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_link") 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15913 { (case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15916esac
15917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918 (eval "$ac_try") 2>&5
15919 ac_status=$?
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } &&
15922 { ac_try='test -s conftest$ac_exeext'
15923 { (case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15926esac
15927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928 (eval "$ac_try") 2>&5
15929 ac_status=$?
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15932 { echo "$as_me:$LINENO: result: yes" >&5
15933echo "${ECHO_T}yes" >&6; }
15934
15935cat >>confdefs.h <<\_ACEOF
15936#define HAVE_CRASHREPORTER_INFO 1
15937_ACEOF
15938
15939else
15940 echo "$as_me: failed program was:" >&5
15941sed 's/^/| /' conftest.$ac_ext >&5
15942
15943 { echo "$as_me:$LINENO: result: no" >&5
15944echo "${ECHO_T}no" >&6; }
15945
15946cat >>confdefs.h <<\_ACEOF
15947#define HAVE_CRASHREPORTER_INFO 0
15948_ACEOF
15949
15950fi
15951
15952rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
15954
15955
15956
15957
15958 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15959echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15960if test "${ac_cv_huge_val_sanity+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15962else
15963
15964 ac_ext=cpp
15965ac_cpp='$CXXCPP $CPPFLAGS'
15966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15969
15970 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopherb2bc6e42012-03-26 02:09:01 +000015971 CXXFLAGS+=" -pedantic"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000015972 if test "$cross_compiling" = yes; then
15973 ac_cv_huge_val_sanity=yes
15974else
15975 cat >conftest.$ac_ext <<_ACEOF
15976/* confdefs.h. */
15977_ACEOF
15978cat confdefs.h >>conftest.$ac_ext
15979cat >>conftest.$ac_ext <<_ACEOF
15980/* end confdefs.h. */
15981#include <math.h>
15982int
15983main ()
15984{
15985double x = HUGE_VAL; return x != x;
15986 ;
15987 return 0;
15988}
15989_ACEOF
15990rm -f conftest$ac_exeext
15991if { (ac_try="$ac_link"
15992case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995esac
15996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_link") 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16001 { (case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16004esac
16005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_try") 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16010 ac_cv_huge_val_sanity=yes
16011else
16012 echo "$as_me: program exited with status $ac_status" >&5
16013echo "$as_me: failed program was:" >&5
16014sed 's/^/| /' conftest.$ac_ext >&5
16015
16016( exit $ac_status )
16017ac_cv_huge_val_sanity=no
16018fi
16019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16020fi
16021
16022
16023 CXXFLAGS=$ac_save_CXXFLAGS
16024 ac_ext=c
16025ac_cpp='$CPP $CPPFLAGS'
16026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16028ac_compiler_gnu=$ac_cv_c_compiler_gnu
16029
16030
16031fi
16032{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16033echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16034 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16035
16036
16037{ echo "$as_me:$LINENO: checking for pid_t" >&5
16038echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16039if test "${ac_cv_type_pid_t+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041else
16042 cat >conftest.$ac_ext <<_ACEOF
16043/* confdefs.h. */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
16048$ac_includes_default
16049typedef pid_t ac__type_new_;
16050int
16051main ()
16052{
16053if ((ac__type_new_ *) 0)
16054 return 0;
16055if (sizeof (ac__type_new_))
16056 return 0;
16057 ;
16058 return 0;
16059}
16060_ACEOF
16061rm -f conftest.$ac_objext
16062if { (ac_try="$ac_compile"
16063case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16066esac
16067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_compile") 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16076 { (case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16079esac
16080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_try") 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; } &&
16085 { ac_try='test -s conftest.$ac_objext'
16086 { (case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16089esac
16090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_try") 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_cv_type_pid_t=yes
16096else
16097 echo "$as_me: failed program was:" >&5
16098sed 's/^/| /' conftest.$ac_ext >&5
16099
16100 ac_cv_type_pid_t=no
16101fi
16102
16103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104fi
16105{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16106echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16107if test $ac_cv_type_pid_t = yes; then
16108 :
16109else
16110
16111cat >>confdefs.h <<_ACEOF
16112#define pid_t int
16113_ACEOF
16114
16115fi
16116
16117{ echo "$as_me:$LINENO: checking for size_t" >&5
16118echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16119if test "${ac_cv_type_size_t+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16121else
16122 cat >conftest.$ac_ext <<_ACEOF
16123/* confdefs.h. */
16124_ACEOF
16125cat confdefs.h >>conftest.$ac_ext
16126cat >>conftest.$ac_ext <<_ACEOF
16127/* end confdefs.h. */
16128$ac_includes_default
16129typedef size_t ac__type_new_;
16130int
16131main ()
16132{
16133if ((ac__type_new_ *) 0)
16134 return 0;
16135if (sizeof (ac__type_new_))
16136 return 0;
16137 ;
16138 return 0;
16139}
16140_ACEOF
16141rm -f conftest.$ac_objext
16142if { (ac_try="$ac_compile"
16143case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146esac
16147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_compile") 2>conftest.er1
16149 ac_status=$?
16150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16156 { (case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159esac
16160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_try") 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; } &&
16165 { ac_try='test -s conftest.$ac_objext'
16166 { (case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16169esac
16170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_try") 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_cv_type_size_t=yes
16176else
16177 echo "$as_me: failed program was:" >&5
16178sed 's/^/| /' conftest.$ac_ext >&5
16179
16180 ac_cv_type_size_t=no
16181fi
16182
16183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184fi
16185{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16186echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16187if test $ac_cv_type_size_t = yes; then
16188 :
16189else
16190
16191cat >>confdefs.h <<_ACEOF
16192#define size_t unsigned int
16193_ACEOF
16194
16195fi
16196
16197
16198cat >>confdefs.h <<_ACEOF
16199#define RETSIGTYPE void
16200_ACEOF
16201
16202{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16203echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16204if test "${ac_cv_struct_tm+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206else
16207 cat >conftest.$ac_ext <<_ACEOF
16208/* confdefs.h. */
16209_ACEOF
16210cat confdefs.h >>conftest.$ac_ext
16211cat >>conftest.$ac_ext <<_ACEOF
16212/* end confdefs.h. */
16213#include <sys/types.h>
16214#include <time.h>
16215
16216int
16217main ()
16218{
16219struct tm *tp; tp->tm_sec;
16220 ;
16221 return 0;
16222}
16223_ACEOF
16224rm -f conftest.$ac_objext
16225if { (ac_try="$ac_compile"
16226case "(($ac_try" in
16227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228 *) ac_try_echo=$ac_try;;
16229esac
16230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231 (eval "$ac_compile") 2>conftest.er1
16232 ac_status=$?
16233 grep -v '^ *+' conftest.er1 >conftest.err
16234 rm -f conftest.er1
16235 cat conftest.err >&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
16238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16239 { (case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16242esac
16243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_try") 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest.$ac_objext'
16249 { (case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16252esac
16253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_try") 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_struct_tm=time.h
16259else
16260 echo "$as_me: failed program was:" >&5
16261sed 's/^/| /' conftest.$ac_ext >&5
16262
16263 ac_cv_struct_tm=sys/time.h
16264fi
16265
16266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267fi
16268{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16269echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16270if test $ac_cv_struct_tm = sys/time.h; then
16271
16272cat >>confdefs.h <<\_ACEOF
16273#define TM_IN_SYS_TIME 1
16274_ACEOF
16275
16276fi
16277
16278{ echo "$as_me:$LINENO: checking for int64_t" >&5
16279echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16280if test "${ac_cv_type_int64_t+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16282else
16283 cat >conftest.$ac_ext <<_ACEOF
16284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
16289$ac_includes_default
16290typedef int64_t ac__type_new_;
16291int
16292main ()
16293{
16294if ((ac__type_new_ *) 0)
16295 return 0;
16296if (sizeof (ac__type_new_))
16297 return 0;
16298 ;
16299 return 0;
16300}
16301_ACEOF
16302rm -f conftest.$ac_objext
16303if { (ac_try="$ac_compile"
16304case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307esac
16308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_compile") 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16317 { (case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16320esac
16321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_try") 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; } &&
16326 { ac_try='test -s conftest.$ac_objext'
16327 { (case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16330esac
16331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_try") 2>&5
16333 ac_status=$?
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16336 ac_cv_type_int64_t=yes
16337else
16338 echo "$as_me: failed program was:" >&5
16339sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 ac_cv_type_int64_t=no
16342fi
16343
16344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345fi
16346{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16347echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16348if test $ac_cv_type_int64_t = yes; then
16349
16350cat >>confdefs.h <<_ACEOF
16351#define HAVE_INT64_T 1
16352_ACEOF
16353
16354
16355else
16356 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16357echo "$as_me: error: Type int64_t required but not found" >&2;}
16358 { (exit 1); exit 1; }; }
16359fi
16360
16361{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16362echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16363if test "${ac_cv_type_uint64_t+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16365else
16366 cat >conftest.$ac_ext <<_ACEOF
16367/* confdefs.h. */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h. */
16372$ac_includes_default
16373typedef uint64_t ac__type_new_;
16374int
16375main ()
16376{
16377if ((ac__type_new_ *) 0)
16378 return 0;
16379if (sizeof (ac__type_new_))
16380 return 0;
16381 ;
16382 return 0;
16383}
16384_ACEOF
16385rm -f conftest.$ac_objext
16386if { (ac_try="$ac_compile"
16387case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16390esac
16391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_compile") 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403esac
16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest.$ac_objext'
16410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413esac
16414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_cv_type_uint64_t=yes
16420else
16421 echo "$as_me: failed program was:" >&5
16422sed 's/^/| /' conftest.$ac_ext >&5
16423
16424 ac_cv_type_uint64_t=no
16425fi
16426
16427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16428fi
16429{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16430echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16431if test $ac_cv_type_uint64_t = yes; then
16432
16433cat >>confdefs.h <<_ACEOF
16434#define HAVE_UINT64_T 1
16435_ACEOF
16436
16437
16438else
16439 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16440echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16441if test "${ac_cv_type_u_int64_t+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443else
16444 cat >conftest.$ac_ext <<_ACEOF
16445/* confdefs.h. */
16446_ACEOF
16447cat confdefs.h >>conftest.$ac_ext
16448cat >>conftest.$ac_ext <<_ACEOF
16449/* end confdefs.h. */
16450$ac_includes_default
16451typedef u_int64_t ac__type_new_;
16452int
16453main ()
16454{
16455if ((ac__type_new_ *) 0)
16456 return 0;
16457if (sizeof (ac__type_new_))
16458 return 0;
16459 ;
16460 return 0;
16461}
16462_ACEOF
16463rm -f conftest.$ac_objext
16464if { (ac_try="$ac_compile"
16465case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468esac
16469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_compile") 2>conftest.er1
16471 ac_status=$?
16472 grep -v '^ *+' conftest.er1 >conftest.err
16473 rm -f conftest.er1
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } &&
16477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16481esac
16482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16491esac
16492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_try") 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_cv_type_u_int64_t=yes
16498else
16499 echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502 ac_cv_type_u_int64_t=no
16503fi
16504
16505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506fi
16507{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16508echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16509if test $ac_cv_type_u_int64_t = yes; then
16510
16511cat >>confdefs.h <<_ACEOF
16512#define HAVE_U_INT64_T 1
16513_ACEOF
16514
16515
16516else
16517 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16518echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16519 { (exit 1); exit 1; }; }
16520fi
16521
16522fi
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16534do
16535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16536{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16538if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540else
16541 cat >conftest.$ac_ext <<_ACEOF
16542/* confdefs.h. */
16543_ACEOF
16544cat confdefs.h >>conftest.$ac_ext
16545cat >>conftest.$ac_ext <<_ACEOF
16546/* end confdefs.h. */
16547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16549#define $ac_func innocuous_$ac_func
16550
16551/* System header to define __stub macros and hopefully few prototypes,
16552 which can conflict with char $ac_func (); below.
16553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16554 <limits.h> exists even on freestanding compilers. */
16555
16556#ifdef __STDC__
16557# include <limits.h>
16558#else
16559# include <assert.h>
16560#endif
16561
16562#undef $ac_func
16563
16564/* Override any GCC internal prototype to avoid an error.
16565 Use char because int might match the return type of a GCC
16566 builtin and then its argument prototype would still apply. */
16567#ifdef __cplusplus
16568extern "C"
16569#endif
16570char $ac_func ();
16571/* The GNU C library defines this for functions which it implements
16572 to always fail with ENOSYS. Some functions are actually named
16573 something starting with __ and the normal name is an alias. */
16574#if defined __stub_$ac_func || defined __stub___$ac_func
16575choke me
16576#endif
16577
16578int
16579main ()
16580{
16581return $ac_func ();
16582 ;
16583 return 0;
16584}
16585_ACEOF
16586rm -f conftest.$ac_objext conftest$ac_exeext
16587if { (ac_try="$ac_link"
16588case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16591esac
16592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_link") 2>conftest.er1
16594 ac_status=$?
16595 grep -v '^ *+' conftest.er1 >conftest.err
16596 rm -f conftest.er1
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604esac
16605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest$ac_exeext'
16611 { (case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614esac
16615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_try") 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 eval "$as_ac_var=yes"
16621else
16622 echo "$as_me: failed program was:" >&5
16623sed 's/^/| /' conftest.$ac_ext >&5
16624
16625 eval "$as_ac_var=no"
16626fi
16627
16628rm -f core conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16630fi
16631ac_res=`eval echo '${'$as_ac_var'}'`
16632 { echo "$as_me:$LINENO: result: $ac_res" >&5
16633echo "${ECHO_T}$ac_res" >&6; }
16634if test `eval echo '${'$as_ac_var'}'` = yes; then
16635 cat >>confdefs.h <<_ACEOF
16636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16637_ACEOF
16638
16639fi
16640done
16641
16642
16643
16644
16645
16646for ac_func in powf fmodf strtof round
16647do
16648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16649{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16651if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653else
16654 cat >conftest.$ac_ext <<_ACEOF
16655/* confdefs.h. */
16656_ACEOF
16657cat confdefs.h >>conftest.$ac_ext
16658cat >>conftest.$ac_ext <<_ACEOF
16659/* end confdefs.h. */
16660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16662#define $ac_func innocuous_$ac_func
16663
16664/* System header to define __stub macros and hopefully few prototypes,
16665 which can conflict with char $ac_func (); below.
16666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16667 <limits.h> exists even on freestanding compilers. */
16668
16669#ifdef __STDC__
16670# include <limits.h>
16671#else
16672# include <assert.h>
16673#endif
16674
16675#undef $ac_func
16676
16677/* Override any GCC internal prototype to avoid an error.
16678 Use char because int might match the return type of a GCC
16679 builtin and then its argument prototype would still apply. */
16680#ifdef __cplusplus
16681extern "C"
16682#endif
16683char $ac_func ();
16684/* The GNU C library defines this for functions which it implements
16685 to always fail with ENOSYS. Some functions are actually named
16686 something starting with __ and the normal name is an alias. */
16687#if defined __stub_$ac_func || defined __stub___$ac_func
16688choke me
16689#endif
16690
16691int
16692main ()
16693{
16694return $ac_func ();
16695 ;
16696 return 0;
16697}
16698_ACEOF
16699rm -f conftest.$ac_objext conftest$ac_exeext
16700if { (ac_try="$ac_link"
16701case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16704esac
16705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_link") 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717esac
16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest$ac_exeext'
16724 { (case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727esac
16728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_try") 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 eval "$as_ac_var=yes"
16734else
16735 echo "$as_me: failed program was:" >&5
16736sed 's/^/| /' conftest.$ac_ext >&5
16737
16738 eval "$as_ac_var=no"
16739fi
16740
16741rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16743fi
16744ac_res=`eval echo '${'$as_ac_var'}'`
16745 { echo "$as_me:$LINENO: result: $ac_res" >&5
16746echo "${ECHO_T}$ac_res" >&6; }
16747if test `eval echo '${'$as_ac_var'}'` = yes; then
16748 cat >>confdefs.h <<_ACEOF
16749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16750_ACEOF
16751
16752fi
16753done
16754
16755
16756
16757
16758
16759
16760for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16761do
16762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16763{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16765if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767else
16768 cat >conftest.$ac_ext <<_ACEOF
16769/* confdefs.h. */
16770_ACEOF
16771cat confdefs.h >>conftest.$ac_ext
16772cat >>conftest.$ac_ext <<_ACEOF
16773/* end confdefs.h. */
16774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16776#define $ac_func innocuous_$ac_func
16777
16778/* System header to define __stub macros and hopefully few prototypes,
16779 which can conflict with char $ac_func (); below.
16780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16781 <limits.h> exists even on freestanding compilers. */
16782
16783#ifdef __STDC__
16784# include <limits.h>
16785#else
16786# include <assert.h>
16787#endif
16788
16789#undef $ac_func
16790
16791/* Override any GCC internal prototype to avoid an error.
16792 Use char because int might match the return type of a GCC
16793 builtin and then its argument prototype would still apply. */
16794#ifdef __cplusplus
16795extern "C"
16796#endif
16797char $ac_func ();
16798/* The GNU C library defines this for functions which it implements
16799 to always fail with ENOSYS. Some functions are actually named
16800 something starting with __ and the normal name is an alias. */
16801#if defined __stub_$ac_func || defined __stub___$ac_func
16802choke me
16803#endif
16804
16805int
16806main ()
16807{
16808return $ac_func ();
16809 ;
16810 return 0;
16811}
16812_ACEOF
16813rm -f conftest.$ac_objext conftest$ac_exeext
16814if { (ac_try="$ac_link"
16815case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_link") 2>conftest.er1
16821 ac_status=$?
16822 grep -v '^ *+' conftest.er1 >conftest.err
16823 rm -f conftest.er1
16824 cat conftest.err >&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } &&
16827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831esac
16832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest$ac_exeext'
16838 { (case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16841esac
16842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_try") 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 eval "$as_ac_var=yes"
16848else
16849 echo "$as_me: failed program was:" >&5
16850sed 's/^/| /' conftest.$ac_ext >&5
16851
16852 eval "$as_ac_var=no"
16853fi
16854
16855rm -f core conftest.err conftest.$ac_objext \
16856 conftest$ac_exeext conftest.$ac_ext
16857fi
16858ac_res=`eval echo '${'$as_ac_var'}'`
16859 { echo "$as_me:$LINENO: result: $ac_res" >&5
16860echo "${ECHO_T}$ac_res" >&6; }
16861if test `eval echo '${'$as_ac_var'}'` = yes; then
16862 cat >>confdefs.h <<_ACEOF
16863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16864_ACEOF
16865
16866fi
16867done
16868
16869
16870
16871
16872for ac_func in isatty mkdtemp mkstemp
16873do
16874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16875{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16879else
16880 cat >conftest.$ac_ext <<_ACEOF
16881/* confdefs.h. */
16882_ACEOF
16883cat confdefs.h >>conftest.$ac_ext
16884cat >>conftest.$ac_ext <<_ACEOF
16885/* end confdefs.h. */
16886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16888#define $ac_func innocuous_$ac_func
16889
16890/* System header to define __stub macros and hopefully few prototypes,
16891 which can conflict with char $ac_func (); below.
16892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16893 <limits.h> exists even on freestanding compilers. */
16894
16895#ifdef __STDC__
16896# include <limits.h>
16897#else
16898# include <assert.h>
16899#endif
16900
16901#undef $ac_func
16902
16903/* Override any GCC internal prototype to avoid an error.
16904 Use char because int might match the return type of a GCC
16905 builtin and then its argument prototype would still apply. */
16906#ifdef __cplusplus
16907extern "C"
16908#endif
16909char $ac_func ();
16910/* The GNU C library defines this for functions which it implements
16911 to always fail with ENOSYS. Some functions are actually named
16912 something starting with __ and the normal name is an alias. */
16913#if defined __stub_$ac_func || defined __stub___$ac_func
16914choke me
16915#endif
16916
16917int
16918main ()
16919{
16920return $ac_func ();
16921 ;
16922 return 0;
16923}
16924_ACEOF
16925rm -f conftest.$ac_objext conftest$ac_exeext
16926if { (ac_try="$ac_link"
16927case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16930esac
16931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_link") 2>conftest.er1
16933 ac_status=$?
16934 grep -v '^ *+' conftest.er1 >conftest.err
16935 rm -f conftest.er1
16936 cat conftest.err >&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
16939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16940 { (case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16943esac
16944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_try") 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest$ac_exeext'
16950 { (case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953esac
16954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_try") 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 eval "$as_ac_var=yes"
16960else
16961 echo "$as_me: failed program was:" >&5
16962sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 eval "$as_ac_var=no"
16965fi
16966
16967rm -f core conftest.err conftest.$ac_objext \
16968 conftest$ac_exeext conftest.$ac_ext
16969fi
16970ac_res=`eval echo '${'$as_ac_var'}'`
16971 { echo "$as_me:$LINENO: result: $ac_res" >&5
16972echo "${ECHO_T}$ac_res" >&6; }
16973if test `eval echo '${'$as_ac_var'}'` = yes; then
16974 cat >>confdefs.h <<_ACEOF
16975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16976_ACEOF
16977
16978fi
16979done
16980
16981
16982
16983
16984
16985
16986
16987for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16988do
16989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16990{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16992if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994else
16995 cat >conftest.$ac_ext <<_ACEOF
16996/* confdefs.h. */
16997_ACEOF
16998cat confdefs.h >>conftest.$ac_ext
16999cat >>conftest.$ac_ext <<_ACEOF
17000/* end confdefs.h. */
17001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17003#define $ac_func innocuous_$ac_func
17004
17005/* System header to define __stub macros and hopefully few prototypes,
17006 which can conflict with char $ac_func (); below.
17007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17008 <limits.h> exists even on freestanding compilers. */
17009
17010#ifdef __STDC__
17011# include <limits.h>
17012#else
17013# include <assert.h>
17014#endif
17015
17016#undef $ac_func
17017
17018/* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17021#ifdef __cplusplus
17022extern "C"
17023#endif
17024char $ac_func ();
17025/* The GNU C library defines this for functions which it implements
17026 to always fail with ENOSYS. Some functions are actually named
17027 something starting with __ and the normal name is an alias. */
17028#if defined __stub_$ac_func || defined __stub___$ac_func
17029choke me
17030#endif
17031
17032int
17033main ()
17034{
17035return $ac_func ();
17036 ;
17037 return 0;
17038}
17039_ACEOF
17040rm -f conftest.$ac_objext conftest$ac_exeext
17041if { (ac_try="$ac_link"
17042case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045esac
17046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_link") 2>conftest.er1
17048 ac_status=$?
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058esac
17059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest$ac_exeext'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068esac
17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 eval "$as_ac_var=yes"
17075else
17076 echo "$as_me: failed program was:" >&5
17077sed 's/^/| /' conftest.$ac_ext >&5
17078
17079 eval "$as_ac_var=no"
17080fi
17081
17082rm -f core conftest.err conftest.$ac_objext \
17083 conftest$ac_exeext conftest.$ac_ext
17084fi
17085ac_res=`eval echo '${'$as_ac_var'}'`
17086 { echo "$as_me:$LINENO: result: $ac_res" >&5
17087echo "${ECHO_T}$ac_res" >&6; }
17088if test `eval echo '${'$as_ac_var'}'` = yes; then
17089 cat >>confdefs.h <<_ACEOF
17090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17091_ACEOF
17092
17093fi
17094done
17095
17096
17097
17098
17099for ac_func in strerror strerror_r setenv
17100do
17101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17102{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17104if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106else
17107 cat >conftest.$ac_ext <<_ACEOF
17108/* confdefs.h. */
17109_ACEOF
17110cat confdefs.h >>conftest.$ac_ext
17111cat >>conftest.$ac_ext <<_ACEOF
17112/* end confdefs.h. */
17113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17115#define $ac_func innocuous_$ac_func
17116
17117/* System header to define __stub macros and hopefully few prototypes,
17118 which can conflict with char $ac_func (); below.
17119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17120 <limits.h> exists even on freestanding compilers. */
17121
17122#ifdef __STDC__
17123# include <limits.h>
17124#else
17125# include <assert.h>
17126#endif
17127
17128#undef $ac_func
17129
17130/* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17133#ifdef __cplusplus
17134extern "C"
17135#endif
17136char $ac_func ();
17137/* The GNU C library defines this for functions which it implements
17138 to always fail with ENOSYS. Some functions are actually named
17139 something starting with __ and the normal name is an alias. */
17140#if defined __stub_$ac_func || defined __stub___$ac_func
17141choke me
17142#endif
17143
17144int
17145main ()
17146{
17147return $ac_func ();
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext conftest$ac_exeext
17153if { (ac_try="$ac_link"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170esac
17171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest$ac_exeext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180esac
17181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 eval "$as_ac_var=yes"
17187else
17188 echo "$as_me: failed program was:" >&5
17189sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 eval "$as_ac_var=no"
17192fi
17193
17194rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17196fi
17197ac_res=`eval echo '${'$as_ac_var'}'`
17198 { echo "$as_me:$LINENO: result: $ac_res" >&5
17199echo "${ECHO_T}$ac_res" >&6; }
17200if test `eval echo '${'$as_ac_var'}'` = yes; then
17201 cat >>confdefs.h <<_ACEOF
17202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17203_ACEOF
17204
17205fi
17206done
17207
17208
17209
17210
17211
17212for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17213do
17214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219else
17220 cat >conftest.$ac_ext <<_ACEOF
17221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
17226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228#define $ac_func innocuous_$ac_func
17229
17230/* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char $ac_func (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17234
17235#ifdef __STDC__
17236# include <limits.h>
17237#else
17238# include <assert.h>
17239#endif
17240
17241#undef $ac_func
17242
17243/* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17246#ifdef __cplusplus
17247extern "C"
17248#endif
17249char $ac_func ();
17250/* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253#if defined __stub_$ac_func || defined __stub___$ac_func
17254choke me
17255#endif
17256
17257int
17258main ()
17259{
17260return $ac_func ();
17261 ;
17262 return 0;
17263}
17264_ACEOF
17265rm -f conftest.$ac_objext conftest$ac_exeext
17266if { (ac_try="$ac_link"
17267case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270esac
17271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_link") 2>conftest.er1
17273 ac_status=$?
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17283esac
17284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; } &&
17289 { ac_try='test -s conftest$ac_exeext'
17290 { (case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293esac
17294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_try") 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 eval "$as_ac_var=yes"
17300else
17301 echo "$as_me: failed program was:" >&5
17302sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 eval "$as_ac_var=no"
17305fi
17306
17307rm -f core conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
17309fi
17310ac_res=`eval echo '${'$as_ac_var'}'`
17311 { echo "$as_me:$LINENO: result: $ac_res" >&5
17312echo "${ECHO_T}$ac_res" >&6; }
17313if test `eval echo '${'$as_ac_var'}'` = yes; then
17314 cat >>confdefs.h <<_ACEOF
17315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17316_ACEOF
17317
17318fi
17319done
17320
17321
17322
17323
17324
17325
17326for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17327do
17328as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17329{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17330echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17331if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17333else
17334 cat >conftest.$ac_ext <<_ACEOF
17335/* confdefs.h. */
17336_ACEOF
17337cat confdefs.h >>conftest.$ac_ext
17338cat >>conftest.$ac_ext <<_ACEOF
17339/* end confdefs.h. */
17340/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17342#define $ac_func innocuous_$ac_func
17343
17344/* System header to define __stub macros and hopefully few prototypes,
17345 which can conflict with char $ac_func (); below.
17346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17347 <limits.h> exists even on freestanding compilers. */
17348
17349#ifdef __STDC__
17350# include <limits.h>
17351#else
17352# include <assert.h>
17353#endif
17354
17355#undef $ac_func
17356
17357/* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17360#ifdef __cplusplus
17361extern "C"
17362#endif
17363char $ac_func ();
17364/* The GNU C library defines this for functions which it implements
17365 to always fail with ENOSYS. Some functions are actually named
17366 something starting with __ and the normal name is an alias. */
17367#if defined __stub_$ac_func || defined __stub___$ac_func
17368choke me
17369#endif
17370
17371int
17372main ()
17373{
17374return $ac_func ();
17375 ;
17376 return 0;
17377}
17378_ACEOF
17379rm -f conftest.$ac_objext conftest$ac_exeext
17380if { (ac_try="$ac_link"
17381case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384esac
17385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_link") 2>conftest.er1
17387 ac_status=$?
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397esac
17398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest$ac_exeext'
17404 { (case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_try") 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 eval "$as_ac_var=yes"
17414else
17415 echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 eval "$as_ac_var=no"
17419fi
17420
17421rm -f core conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
17423fi
17424ac_res=`eval echo '${'$as_ac_var'}'`
17425 { echo "$as_me:$LINENO: result: $ac_res" >&5
17426echo "${ECHO_T}$ac_res" >&6; }
17427if test `eval echo '${'$as_ac_var'}'` = yes; then
17428 cat >>confdefs.h <<_ACEOF
17429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17430_ACEOF
17431
17432fi
17433done
17434
17435{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17436echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17437if test "${llvm_cv_c_printf_a+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17439else
17440 ac_ext=c
17441ac_cpp='$CPP $CPPFLAGS'
17442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17444ac_compiler_gnu=$ac_cv_c_compiler_gnu
17445
17446 if test "$cross_compiling" = yes; then
17447 llvmac_cv_c_printf_a=no
17448else
17449 cat >conftest.$ac_ext <<_ACEOF
17450
17451 /* confdefs.h. */
17452_ACEOF
17453cat confdefs.h >>conftest.$ac_ext
17454cat >>conftest.$ac_ext <<_ACEOF
17455/* end confdefs.h. */
17456
17457#include <stdio.h>
17458#include <stdlib.h>
17459
17460int
17461main ()
17462{
17463
17464volatile double A, B;
17465char Buffer[100];
17466A = 1;
17467A /= 10.0;
17468sprintf(Buffer, "%a", A);
17469B = atof(Buffer);
17470if (A != B)
17471 return (1);
17472if (A != 0x1.999999999999ap-4)
17473 return (1);
17474return (0);
17475 ;
17476 return 0;
17477}
17478_ACEOF
17479rm -f conftest$ac_exeext
17480if { (ac_try="$ac_link"
17481case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484esac
17485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_link") 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493esac
17494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 llvm_cv_c_printf_a=yes
17500else
17501 echo "$as_me: program exited with status $ac_status" >&5
17502echo "$as_me: failed program was:" >&5
17503sed 's/^/| /' conftest.$ac_ext >&5
17504
17505( exit $ac_status )
17506llvmac_cv_c_printf_a=no
17507fi
17508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17509fi
17510
17511
17512 ac_ext=c
17513ac_cpp='$CPP $CPPFLAGS'
17514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516ac_compiler_gnu=$ac_cv_c_compiler_gnu
17517
17518fi
17519{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17520echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17521 if test "$llvm_cv_c_printf_a" = "yes"; then
17522
17523cat >>confdefs.h <<\_ACEOF
17524#define HAVE_PRINTF_A 1
17525_ACEOF
17526
17527 fi
17528
17529
17530{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17531echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17532if test "${ac_cv_func_rand48+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534else
17535 ac_ext=cpp
17536ac_cpp='$CXXCPP $CPPFLAGS'
17537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17540
17541 cat >conftest.$ac_ext <<_ACEOF
17542/* confdefs.h. */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h. */
17547#include <stdlib.h>
17548int
17549main ()
17550{
17551srand48(0);lrand48();drand48();
17552 ;
17553 return 0;
17554}
17555_ACEOF
17556rm -f conftest.$ac_objext
17557if { (ac_try="$ac_compile"
17558case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561esac
17562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_compile") 2>conftest.er1
17564 ac_status=$?
17565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
17570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17571 { (case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17574esac
17575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_try") 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
17581 { (case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_try") 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; }; then
17590 ac_cv_func_rand48=yes
17591else
17592 echo "$as_me: failed program was:" >&5
17593sed 's/^/| /' conftest.$ac_ext >&5
17594
17595 ac_cv_func_rand48=no
17596fi
17597
17598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17599 ac_ext=c
17600ac_cpp='$CPP $CPPFLAGS'
17601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17603ac_compiler_gnu=$ac_cv_c_compiler_gnu
17604
17605fi
17606{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17607echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17608
17609if test "$ac_cv_func_rand48" = "yes" ; then
17610
17611cat >>confdefs.h <<\_ACEOF
17612#define HAVE_RAND48 1
17613_ACEOF
17614
17615fi
17616
17617
17618{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17619echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17620if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17622else
17623 cat >conftest.$ac_ext <<_ACEOF
17624/* confdefs.h. */
17625_ACEOF
17626cat confdefs.h >>conftest.$ac_ext
17627cat >>conftest.$ac_ext <<_ACEOF
17628/* end confdefs.h. */
17629$ac_includes_default
17630int
17631main ()
17632{
17633#ifndef strerror_s
17634 char *p = (char *) strerror_s;
17635 return !p;
17636#endif
17637
17638 ;
17639 return 0;
17640}
17641_ACEOF
17642rm -f conftest.$ac_objext
17643if { (ac_try="$ac_compile"
17644case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17647esac
17648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_compile") 2>conftest.er1
17650 ac_status=$?
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660esac
17661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
17667 { (case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17670esac
17671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_try") 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_cv_have_decl_strerror_s=yes
17677else
17678 echo "$as_me: failed program was:" >&5
17679sed 's/^/| /' conftest.$ac_ext >&5
17680
17681 ac_cv_have_decl_strerror_s=no
17682fi
17683
17684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17685fi
17686{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17687echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17688if test $ac_cv_have_decl_strerror_s = yes; then
17689
17690cat >>confdefs.h <<_ACEOF
17691#define HAVE_DECL_STRERROR_S 1
17692_ACEOF
17693
17694
17695else
17696 cat >>confdefs.h <<_ACEOF
17697#define HAVE_DECL_STRERROR_S 0
17698_ACEOF
17699
17700
17701fi
17702
17703
17704
17705if test "$llvm_cv_os_type" = "MingW" ; then
17706 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17707echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17708if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17710else
17711 ac_check_lib_save_LIBS=$LIBS
17712LIBS="-lgcc $LIBS"
17713cat >conftest.$ac_ext <<_ACEOF
17714/* confdefs.h. */
17715_ACEOF
17716cat confdefs.h >>conftest.$ac_ext
17717cat >>conftest.$ac_ext <<_ACEOF
17718/* end confdefs.h. */
17719
17720/* Override any GCC internal prototype to avoid an error.
17721 Use char because int might match the return type of a GCC
17722 builtin and then its argument prototype would still apply. */
17723#ifdef __cplusplus
17724extern "C"
17725#endif
17726char _alloca ();
17727int
17728main ()
17729{
17730return _alloca ();
17731 ;
17732 return 0;
17733}
17734_ACEOF
17735rm -f conftest.$ac_objext conftest$ac_exeext
17736if { (ac_try="$ac_link"
17737case "(($ac_try" in
17738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739 *) ac_try_echo=$ac_try;;
17740esac
17741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742 (eval "$ac_link") 2>conftest.er1
17743 ac_status=$?
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
17749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17750 { (case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17753esac
17754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_try") 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; } &&
17759 { ac_try='test -s conftest$ac_exeext'
17760 { (case "(($ac_try" in
17761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762 *) ac_try_echo=$ac_try;;
17763esac
17764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765 (eval "$ac_try") 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769 ac_cv_lib_gcc__alloca=yes
17770else
17771 echo "$as_me: failed program was:" >&5
17772sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 ac_cv_lib_gcc__alloca=no
17775fi
17776
17777rm -f core conftest.err conftest.$ac_objext \
17778 conftest$ac_exeext conftest.$ac_ext
17779LIBS=$ac_check_lib_save_LIBS
17780fi
17781{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17782echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17783if test $ac_cv_lib_gcc__alloca = yes; then
17784
17785cat >>confdefs.h <<\_ACEOF
17786#define HAVE__ALLOCA 1
17787_ACEOF
17788
17789fi
17790
17791 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17792echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17793if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
17796 ac_check_lib_save_LIBS=$LIBS
17797LIBS="-lgcc $LIBS"
17798cat >conftest.$ac_ext <<_ACEOF
17799/* confdefs.h. */
17800_ACEOF
17801cat confdefs.h >>conftest.$ac_ext
17802cat >>conftest.$ac_ext <<_ACEOF
17803/* end confdefs.h. */
17804
17805/* Override any GCC internal prototype to avoid an error.
17806 Use char because int might match the return type of a GCC
17807 builtin and then its argument prototype would still apply. */
17808#ifdef __cplusplus
17809extern "C"
17810#endif
17811char __alloca ();
17812int
17813main ()
17814{
17815return __alloca ();
17816 ;
17817 return 0;
17818}
17819_ACEOF
17820rm -f conftest.$ac_objext conftest$ac_exeext
17821if { (ac_try="$ac_link"
17822case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825esac
17826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_link") 2>conftest.er1
17828 ac_status=$?
17829 grep -v '^ *+' conftest.er1 >conftest.err
17830 rm -f conftest.er1
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest$ac_exeext'
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848esac
17849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_try") 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 ac_cv_lib_gcc___alloca=yes
17855else
17856 echo "$as_me: failed program was:" >&5
17857sed 's/^/| /' conftest.$ac_ext >&5
17858
17859 ac_cv_lib_gcc___alloca=no
17860fi
17861
17862rm -f core conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17864LIBS=$ac_check_lib_save_LIBS
17865fi
17866{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17867echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17868if test $ac_cv_lib_gcc___alloca = yes; then
17869
17870cat >>confdefs.h <<\_ACEOF
17871#define HAVE___ALLOCA 1
17872_ACEOF
17873
17874fi
17875
17876 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17877echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17878if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17880else
17881 ac_check_lib_save_LIBS=$LIBS
17882LIBS="-lgcc $LIBS"
17883cat >conftest.$ac_ext <<_ACEOF
17884/* confdefs.h. */
17885_ACEOF
17886cat confdefs.h >>conftest.$ac_ext
17887cat >>conftest.$ac_ext <<_ACEOF
17888/* end confdefs.h. */
17889
17890/* Override any GCC internal prototype to avoid an error.
17891 Use char because int might match the return type of a GCC
17892 builtin and then its argument prototype would still apply. */
17893#ifdef __cplusplus
17894extern "C"
17895#endif
17896char __chkstk ();
17897int
17898main ()
17899{
17900return __chkstk ();
17901 ;
17902 return 0;
17903}
17904_ACEOF
17905rm -f conftest.$ac_objext conftest$ac_exeext
17906if { (ac_try="$ac_link"
17907case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910esac
17911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_link") 2>conftest.er1
17913 ac_status=$?
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17920 { (case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17923esac
17924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_try") 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; } &&
17929 { ac_try='test -s conftest$ac_exeext'
17930 { (case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933esac
17934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_try") 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_cv_lib_gcc___chkstk=yes
17940else
17941 echo "$as_me: failed program was:" >&5
17942sed 's/^/| /' conftest.$ac_ext >&5
17943
17944 ac_cv_lib_gcc___chkstk=no
17945fi
17946
17947rm -f core conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17949LIBS=$ac_check_lib_save_LIBS
17950fi
17951{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17952echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17953if test $ac_cv_lib_gcc___chkstk = yes; then
17954
17955cat >>confdefs.h <<\_ACEOF
17956#define HAVE___CHKSTK 1
17957_ACEOF
17958
17959fi
17960
17961 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17962echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17963if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965else
17966 ac_check_lib_save_LIBS=$LIBS
17967LIBS="-lgcc $LIBS"
17968cat >conftest.$ac_ext <<_ACEOF
17969/* confdefs.h. */
17970_ACEOF
17971cat confdefs.h >>conftest.$ac_ext
17972cat >>conftest.$ac_ext <<_ACEOF
17973/* end confdefs.h. */
17974
17975/* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17978#ifdef __cplusplus
17979extern "C"
17980#endif
17981char ___chkstk ();
17982int
17983main ()
17984{
17985return ___chkstk ();
17986 ;
17987 return 0;
17988}
17989_ACEOF
17990rm -f conftest.$ac_objext conftest$ac_exeext
17991if { (ac_try="$ac_link"
17992case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995esac
17996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_link") 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
18004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18005 { (case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18008esac
18009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_try") 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; } &&
18014 { ac_try='test -s conftest$ac_exeext'
18015 { (case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18018esac
18019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020 (eval "$ac_try") 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18024 ac_cv_lib_gcc____chkstk=yes
18025else
18026 echo "$as_me: failed program was:" >&5
18027sed 's/^/| /' conftest.$ac_ext >&5
18028
18029 ac_cv_lib_gcc____chkstk=no
18030fi
18031
18032rm -f core conftest.err conftest.$ac_objext \
18033 conftest$ac_exeext conftest.$ac_ext
18034LIBS=$ac_check_lib_save_LIBS
18035fi
18036{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18037echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18038if test $ac_cv_lib_gcc____chkstk = yes; then
18039
18040cat >>confdefs.h <<\_ACEOF
18041#define HAVE____CHKSTK 1
18042_ACEOF
18043
18044fi
18045
18046
18047 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18048echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18049if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18051else
18052 ac_check_lib_save_LIBS=$LIBS
18053LIBS="-lgcc $LIBS"
18054cat >conftest.$ac_ext <<_ACEOF
18055/* confdefs.h. */
18056_ACEOF
18057cat confdefs.h >>conftest.$ac_ext
18058cat >>conftest.$ac_ext <<_ACEOF
18059/* end confdefs.h. */
18060
18061/* Override any GCC internal prototype to avoid an error.
18062 Use char because int might match the return type of a GCC
18063 builtin and then its argument prototype would still apply. */
18064#ifdef __cplusplus
18065extern "C"
18066#endif
18067char __ashldi3 ();
18068int
18069main ()
18070{
18071return __ashldi3 ();
18072 ;
18073 return 0;
18074}
18075_ACEOF
18076rm -f conftest.$ac_objext conftest$ac_exeext
18077if { (ac_try="$ac_link"
18078case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18081esac
18082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_link") 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18091 { (case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094esac
18095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_try") 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; } &&
18100 { ac_try='test -s conftest$ac_exeext'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 ac_cv_lib_gcc___ashldi3=yes
18111else
18112 echo "$as_me: failed program was:" >&5
18113sed 's/^/| /' conftest.$ac_ext >&5
18114
18115 ac_cv_lib_gcc___ashldi3=no
18116fi
18117
18118rm -f core conftest.err conftest.$ac_objext \
18119 conftest$ac_exeext conftest.$ac_ext
18120LIBS=$ac_check_lib_save_LIBS
18121fi
18122{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18123echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18124if test $ac_cv_lib_gcc___ashldi3 = yes; then
18125
18126cat >>confdefs.h <<\_ACEOF
18127#define HAVE___ASHLDI3 1
18128_ACEOF
18129
18130fi
18131
18132 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18133echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18134if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136else
18137 ac_check_lib_save_LIBS=$LIBS
18138LIBS="-lgcc $LIBS"
18139cat >conftest.$ac_ext <<_ACEOF
18140/* confdefs.h. */
18141_ACEOF
18142cat confdefs.h >>conftest.$ac_ext
18143cat >>conftest.$ac_ext <<_ACEOF
18144/* end confdefs.h. */
18145
18146/* Override any GCC internal prototype to avoid an error.
18147 Use char because int might match the return type of a GCC
18148 builtin and then its argument prototype would still apply. */
18149#ifdef __cplusplus
18150extern "C"
18151#endif
18152char __ashrdi3 ();
18153int
18154main ()
18155{
18156return __ashrdi3 ();
18157 ;
18158 return 0;
18159}
18160_ACEOF
18161rm -f conftest.$ac_objext conftest$ac_exeext
18162if { (ac_try="$ac_link"
18163case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18166esac
18167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 (eval "$ac_link") 2>conftest.er1
18169 ac_status=$?
18170 grep -v '^ *+' conftest.er1 >conftest.err
18171 rm -f conftest.er1
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179esac
18180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } &&
18185 { ac_try='test -s conftest$ac_exeext'
18186 { (case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189esac
18190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_try") 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 ac_cv_lib_gcc___ashrdi3=yes
18196else
18197 echo "$as_me: failed program was:" >&5
18198sed 's/^/| /' conftest.$ac_ext >&5
18199
18200 ac_cv_lib_gcc___ashrdi3=no
18201fi
18202
18203rm -f core conftest.err conftest.$ac_objext \
18204 conftest$ac_exeext conftest.$ac_ext
18205LIBS=$ac_check_lib_save_LIBS
18206fi
18207{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18208echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18209if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18210
18211cat >>confdefs.h <<\_ACEOF
18212#define HAVE___ASHRDI3 1
18213_ACEOF
18214
18215fi
18216
18217 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18218echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18219if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18221else
18222 ac_check_lib_save_LIBS=$LIBS
18223LIBS="-lgcc $LIBS"
18224cat >conftest.$ac_ext <<_ACEOF
18225/* confdefs.h. */
18226_ACEOF
18227cat confdefs.h >>conftest.$ac_ext
18228cat >>conftest.$ac_ext <<_ACEOF
18229/* end confdefs.h. */
18230
18231/* Override any GCC internal prototype to avoid an error.
18232 Use char because int might match the return type of a GCC
18233 builtin and then its argument prototype would still apply. */
18234#ifdef __cplusplus
18235extern "C"
18236#endif
18237char __divdi3 ();
18238int
18239main ()
18240{
18241return __divdi3 ();
18242 ;
18243 return 0;
18244}
18245_ACEOF
18246rm -f conftest.$ac_objext conftest$ac_exeext
18247if { (ac_try="$ac_link"
18248case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18251esac
18252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_link") 2>conftest.er1
18254 ac_status=$?
18255 grep -v '^ *+' conftest.er1 >conftest.err
18256 rm -f conftest.er1
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18261 { (case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264esac
18265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_try") 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; } &&
18270 { ac_try='test -s conftest$ac_exeext'
18271 { (case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18274esac
18275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_try") 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 ac_cv_lib_gcc___divdi3=yes
18281else
18282 echo "$as_me: failed program was:" >&5
18283sed 's/^/| /' conftest.$ac_ext >&5
18284
18285 ac_cv_lib_gcc___divdi3=no
18286fi
18287
18288rm -f core conftest.err conftest.$ac_objext \
18289 conftest$ac_exeext conftest.$ac_ext
18290LIBS=$ac_check_lib_save_LIBS
18291fi
18292{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18293echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18294if test $ac_cv_lib_gcc___divdi3 = yes; then
18295
18296cat >>confdefs.h <<\_ACEOF
18297#define HAVE___DIVDI3 1
18298_ACEOF
18299
18300fi
18301
18302 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18303echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18304if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306else
18307 ac_check_lib_save_LIBS=$LIBS
18308LIBS="-lgcc $LIBS"
18309cat >conftest.$ac_ext <<_ACEOF
18310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
18315
18316/* Override any GCC internal prototype to avoid an error.
18317 Use char because int might match the return type of a GCC
18318 builtin and then its argument prototype would still apply. */
18319#ifdef __cplusplus
18320extern "C"
18321#endif
18322char __fixdfdi ();
18323int
18324main ()
18325{
18326return __fixdfdi ();
18327 ;
18328 return 0;
18329}
18330_ACEOF
18331rm -f conftest.$ac_objext conftest$ac_exeext
18332if { (ac_try="$ac_link"
18333case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18336esac
18337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338 (eval "$ac_link") 2>conftest.er1
18339 ac_status=$?
18340 grep -v '^ *+' conftest.er1 >conftest.err
18341 rm -f conftest.er1
18342 cat conftest.err >&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } &&
18345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18349esac
18350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } &&
18355 { ac_try='test -s conftest$ac_exeext'
18356 { (case "(($ac_try" in
18357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18359esac
18360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_try") 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; }; then
18365 ac_cv_lib_gcc___fixdfdi=yes
18366else
18367 echo "$as_me: failed program was:" >&5
18368sed 's/^/| /' conftest.$ac_ext >&5
18369
18370 ac_cv_lib_gcc___fixdfdi=no
18371fi
18372
18373rm -f core conftest.err conftest.$ac_objext \
18374 conftest$ac_exeext conftest.$ac_ext
18375LIBS=$ac_check_lib_save_LIBS
18376fi
18377{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18378echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18379if test $ac_cv_lib_gcc___fixdfdi = yes; then
18380
18381cat >>confdefs.h <<\_ACEOF
18382#define HAVE___FIXDFDI 1
18383_ACEOF
18384
18385fi
18386
18387 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18388echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18389if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391else
18392 ac_check_lib_save_LIBS=$LIBS
18393LIBS="-lgcc $LIBS"
18394cat >conftest.$ac_ext <<_ACEOF
18395/* confdefs.h. */
18396_ACEOF
18397cat confdefs.h >>conftest.$ac_ext
18398cat >>conftest.$ac_ext <<_ACEOF
18399/* end confdefs.h. */
18400
18401/* Override any GCC internal prototype to avoid an error.
18402 Use char because int might match the return type of a GCC
18403 builtin and then its argument prototype would still apply. */
18404#ifdef __cplusplus
18405extern "C"
18406#endif
18407char __fixsfdi ();
18408int
18409main ()
18410{
18411return __fixsfdi ();
18412 ;
18413 return 0;
18414}
18415_ACEOF
18416rm -f conftest.$ac_objext conftest$ac_exeext
18417if { (ac_try="$ac_link"
18418case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18421esac
18422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_link") 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18431 { (case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18434esac
18435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_try") 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; } &&
18440 { ac_try='test -s conftest$ac_exeext'
18441 { (case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18444esac
18445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_try") 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_cv_lib_gcc___fixsfdi=yes
18451else
18452 echo "$as_me: failed program was:" >&5
18453sed 's/^/| /' conftest.$ac_ext >&5
18454
18455 ac_cv_lib_gcc___fixsfdi=no
18456fi
18457
18458rm -f core conftest.err conftest.$ac_objext \
18459 conftest$ac_exeext conftest.$ac_ext
18460LIBS=$ac_check_lib_save_LIBS
18461fi
18462{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18463echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18464if test $ac_cv_lib_gcc___fixsfdi = yes; then
18465
18466cat >>confdefs.h <<\_ACEOF
18467#define HAVE___FIXSFDI 1
18468_ACEOF
18469
18470fi
18471
18472 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18473echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18474if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18476else
18477 ac_check_lib_save_LIBS=$LIBS
18478LIBS="-lgcc $LIBS"
18479cat >conftest.$ac_ext <<_ACEOF
18480/* confdefs.h. */
18481_ACEOF
18482cat confdefs.h >>conftest.$ac_ext
18483cat >>conftest.$ac_ext <<_ACEOF
18484/* end confdefs.h. */
18485
18486/* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18489#ifdef __cplusplus
18490extern "C"
18491#endif
18492char __floatdidf ();
18493int
18494main ()
18495{
18496return __floatdidf ();
18497 ;
18498 return 0;
18499}
18500_ACEOF
18501rm -f conftest.$ac_objext conftest$ac_exeext
18502if { (ac_try="$ac_link"
18503case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506esac
18507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_link") 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } &&
18515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18516 { (case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18519esac
18520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_try") 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; } &&
18525 { ac_try='test -s conftest$ac_exeext'
18526 { (case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529esac
18530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_try") 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18535 ac_cv_lib_gcc___floatdidf=yes
18536else
18537 echo "$as_me: failed program was:" >&5
18538sed 's/^/| /' conftest.$ac_ext >&5
18539
18540 ac_cv_lib_gcc___floatdidf=no
18541fi
18542
18543rm -f core conftest.err conftest.$ac_objext \
18544 conftest$ac_exeext conftest.$ac_ext
18545LIBS=$ac_check_lib_save_LIBS
18546fi
18547{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18548echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18549if test $ac_cv_lib_gcc___floatdidf = yes; then
18550
18551cat >>confdefs.h <<\_ACEOF
18552#define HAVE___FLOATDIDF 1
18553_ACEOF
18554
18555fi
18556
18557 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18558echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18559if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561else
18562 ac_check_lib_save_LIBS=$LIBS
18563LIBS="-lgcc $LIBS"
18564cat >conftest.$ac_ext <<_ACEOF
18565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
18570
18571/* Override any GCC internal prototype to avoid an error.
18572 Use char because int might match the return type of a GCC
18573 builtin and then its argument prototype would still apply. */
18574#ifdef __cplusplus
18575extern "C"
18576#endif
18577char __lshrdi3 ();
18578int
18579main ()
18580{
18581return __lshrdi3 ();
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest.$ac_objext conftest$ac_exeext
18587if { (ac_try="$ac_link"
18588case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591esac
18592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_link") 2>conftest.er1
18594 ac_status=$?
18595 grep -v '^ *+' conftest.er1 >conftest.err
18596 rm -f conftest.er1
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } &&
18600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18601 { (case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604esac
18605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_try") 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try='test -s conftest$ac_exeext'
18611 { (case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614esac
18615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_try") 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18620 ac_cv_lib_gcc___lshrdi3=yes
18621else
18622 echo "$as_me: failed program was:" >&5
18623sed 's/^/| /' conftest.$ac_ext >&5
18624
18625 ac_cv_lib_gcc___lshrdi3=no
18626fi
18627
18628rm -f core conftest.err conftest.$ac_objext \
18629 conftest$ac_exeext conftest.$ac_ext
18630LIBS=$ac_check_lib_save_LIBS
18631fi
18632{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18633echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18634if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18635
18636cat >>confdefs.h <<\_ACEOF
18637#define HAVE___LSHRDI3 1
18638_ACEOF
18639
18640fi
18641
18642 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18643echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18644if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646else
18647 ac_check_lib_save_LIBS=$LIBS
18648LIBS="-lgcc $LIBS"
18649cat >conftest.$ac_ext <<_ACEOF
18650/* confdefs.h. */
18651_ACEOF
18652cat confdefs.h >>conftest.$ac_ext
18653cat >>conftest.$ac_ext <<_ACEOF
18654/* end confdefs.h. */
18655
18656/* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18659#ifdef __cplusplus
18660extern "C"
18661#endif
18662char __moddi3 ();
18663int
18664main ()
18665{
18666return __moddi3 ();
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext conftest$ac_exeext
18672if { (ac_try="$ac_link"
18673case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18676esac
18677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_link") 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18686 { (case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18689esac
18690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_try") 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; } &&
18695 { ac_try='test -s conftest$ac_exeext'
18696 { (case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18699esac
18700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_try") 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 ac_cv_lib_gcc___moddi3=yes
18706else
18707 echo "$as_me: failed program was:" >&5
18708sed 's/^/| /' conftest.$ac_ext >&5
18709
18710 ac_cv_lib_gcc___moddi3=no
18711fi
18712
18713rm -f core conftest.err conftest.$ac_objext \
18714 conftest$ac_exeext conftest.$ac_ext
18715LIBS=$ac_check_lib_save_LIBS
18716fi
18717{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18718echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18719if test $ac_cv_lib_gcc___moddi3 = yes; then
18720
18721cat >>confdefs.h <<\_ACEOF
18722#define HAVE___MODDI3 1
18723_ACEOF
18724
18725fi
18726
18727 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18728echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18729if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18731else
18732 ac_check_lib_save_LIBS=$LIBS
18733LIBS="-lgcc $LIBS"
18734cat >conftest.$ac_ext <<_ACEOF
18735/* confdefs.h. */
18736_ACEOF
18737cat confdefs.h >>conftest.$ac_ext
18738cat >>conftest.$ac_ext <<_ACEOF
18739/* end confdefs.h. */
18740
18741/* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18744#ifdef __cplusplus
18745extern "C"
18746#endif
18747char __udivdi3 ();
18748int
18749main ()
18750{
18751return __udivdi3 ();
18752 ;
18753 return 0;
18754}
18755_ACEOF
18756rm -f conftest.$ac_objext conftest$ac_exeext
18757if { (ac_try="$ac_link"
18758case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18761esac
18762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_link") 2>conftest.er1
18764 ac_status=$?
18765 grep -v '^ *+' conftest.er1 >conftest.err
18766 rm -f conftest.er1
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } &&
18770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18771 { (case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18774esac
18775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_try") 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; } &&
18780 { ac_try='test -s conftest$ac_exeext'
18781 { (case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18784esac
18785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_try") 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_lib_gcc___udivdi3=yes
18791else
18792 echo "$as_me: failed program was:" >&5
18793sed 's/^/| /' conftest.$ac_ext >&5
18794
18795 ac_cv_lib_gcc___udivdi3=no
18796fi
18797
18798rm -f core conftest.err conftest.$ac_objext \
18799 conftest$ac_exeext conftest.$ac_ext
18800LIBS=$ac_check_lib_save_LIBS
18801fi
18802{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18803echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18804if test $ac_cv_lib_gcc___udivdi3 = yes; then
18805
18806cat >>confdefs.h <<\_ACEOF
18807#define HAVE___UDIVDI3 1
18808_ACEOF
18809
18810fi
18811
18812 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18813echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18814if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816else
18817 ac_check_lib_save_LIBS=$LIBS
18818LIBS="-lgcc $LIBS"
18819cat >conftest.$ac_ext <<_ACEOF
18820/* confdefs.h. */
18821_ACEOF
18822cat confdefs.h >>conftest.$ac_ext
18823cat >>conftest.$ac_ext <<_ACEOF
18824/* end confdefs.h. */
18825
18826/* Override any GCC internal prototype to avoid an error.
18827 Use char because int might match the return type of a GCC
18828 builtin and then its argument prototype would still apply. */
18829#ifdef __cplusplus
18830extern "C"
18831#endif
18832char __umoddi3 ();
18833int
18834main ()
18835{
18836return __umoddi3 ();
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext conftest$ac_exeext
18842if { (ac_try="$ac_link"
18843case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846esac
18847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>conftest.er1
18849 ac_status=$?
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
18855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18856 { (case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859esac
18860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_try") 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest$ac_exeext'
18866 { (case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18875 ac_cv_lib_gcc___umoddi3=yes
18876else
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880 ac_cv_lib_gcc___umoddi3=no
18881fi
18882
18883rm -f core conftest.err conftest.$ac_objext \
18884 conftest$ac_exeext conftest.$ac_ext
18885LIBS=$ac_check_lib_save_LIBS
18886fi
18887{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18888echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18889if test $ac_cv_lib_gcc___umoddi3 = yes; then
18890
18891cat >>confdefs.h <<\_ACEOF
18892#define HAVE___UMODDI3 1
18893_ACEOF
18894
18895fi
18896
18897
18898 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18899echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18900if test "${ac_cv_lib_gcc___main+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902else
18903 ac_check_lib_save_LIBS=$LIBS
18904LIBS="-lgcc $LIBS"
18905cat >conftest.$ac_ext <<_ACEOF
18906/* confdefs.h. */
18907_ACEOF
18908cat confdefs.h >>conftest.$ac_ext
18909cat >>conftest.$ac_ext <<_ACEOF
18910/* end confdefs.h. */
18911
18912/* Override any GCC internal prototype to avoid an error.
18913 Use char because int might match the return type of a GCC
18914 builtin and then its argument prototype would still apply. */
18915#ifdef __cplusplus
18916extern "C"
18917#endif
18918char __main ();
18919int
18920main ()
18921{
18922return __main ();
18923 ;
18924 return 0;
18925}
18926_ACEOF
18927rm -f conftest.$ac_objext conftest$ac_exeext
18928if { (ac_try="$ac_link"
18929case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18932esac
18933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_link") 2>conftest.er1
18935 ac_status=$?
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18942 { (case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945esac
18946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_try") 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest$ac_exeext'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961 ac_cv_lib_gcc___main=yes
18962else
18963 echo "$as_me: failed program was:" >&5
18964sed 's/^/| /' conftest.$ac_ext >&5
18965
18966 ac_cv_lib_gcc___main=no
18967fi
18968
18969rm -f core conftest.err conftest.$ac_objext \
18970 conftest$ac_exeext conftest.$ac_ext
18971LIBS=$ac_check_lib_save_LIBS
18972fi
18973{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18974echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18975if test $ac_cv_lib_gcc___main = yes; then
18976
18977cat >>confdefs.h <<\_ACEOF
18978#define HAVE___MAIN 1
18979_ACEOF
18980
18981fi
18982
18983 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18984echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18985if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18987else
18988 ac_check_lib_save_LIBS=$LIBS
18989LIBS="-lgcc $LIBS"
18990cat >conftest.$ac_ext <<_ACEOF
18991/* confdefs.h. */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */
18996
18997/* Override any GCC internal prototype to avoid an error.
18998 Use char because int might match the return type of a GCC
18999 builtin and then its argument prototype would still apply. */
19000#ifdef __cplusplus
19001extern "C"
19002#endif
19003char __cmpdi2 ();
19004int
19005main ()
19006{
19007return __cmpdi2 ();
19008 ;
19009 return 0;
19010}
19011_ACEOF
19012rm -f conftest.$ac_objext conftest$ac_exeext
19013if { (ac_try="$ac_link"
19014case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017esac
19018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_link") 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
19026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19027 { (case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19030esac
19031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_try") 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest$ac_exeext'
19037 { (case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_try") 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 ac_cv_lib_gcc___cmpdi2=yes
19047else
19048 echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
19051 ac_cv_lib_gcc___cmpdi2=no
19052fi
19053
19054rm -f core conftest.err conftest.$ac_objext \
19055 conftest$ac_exeext conftest.$ac_ext
19056LIBS=$ac_check_lib_save_LIBS
19057fi
19058{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19059echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19060if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19061
19062cat >>confdefs.h <<\_ACEOF
19063#define HAVE___CMPDI2 1
19064_ACEOF
19065
19066fi
19067
19068fi
19069
19070if test "$llvm_cv_os_type" = "MingW" ; then
19071 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19072echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19073 cat >conftest.$ac_ext <<_ACEOF
19074#include <windows.h>
19075#include <imagehlp.h>
19076extern void foo(PENUMLOADED_MODULES_CALLBACK);
19077extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19078_ACEOF
19079rm -f conftest.$ac_objext
19080if { (ac_try="$ac_compile"
19081case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19084esac
19085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_compile") 2>conftest.er1
19087 ac_status=$?
19088 grep -v '^ *+' conftest.er1 >conftest.err
19089 rm -f conftest.er1
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } &&
19093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19094 { (case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19097esac
19098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_try") 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107esac
19108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113
19114 { echo "$as_me:$LINENO: result: yes" >&5
19115echo "${ECHO_T}yes" >&6; }
19116 llvm_cv_win32_elmcb_pcstr="PCSTR"
19117
19118else
19119 echo "$as_me: failed program was:" >&5
19120sed 's/^/| /' conftest.$ac_ext >&5
19121
19122
19123 { echo "$as_me:$LINENO: result: no" >&5
19124echo "${ECHO_T}no" >&6; }
19125 llvm_cv_win32_elmcb_pcstr="PSTR"
19126
19127fi
19128
19129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19130
19131cat >>confdefs.h <<_ACEOF
19132#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19133_ACEOF
19134
19135fi
19136
19137
19138{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19139echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19140if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19142else
19143 ac_ext=cpp
19144ac_cpp='$CXXCPP $CPPFLAGS'
19145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19148
19149 cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h. */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h. */
19155#include <math.h>
19156int
19157main ()
19158{
19159float f; isnan(f);
19160 ;
19161 return 0;
19162}
19163_ACEOF
19164rm -f conftest.$ac_objext
19165if { (ac_try="$ac_compile"
19166case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169esac
19170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_compile") 2>conftest.er1
19172 ac_status=$?
19173 grep -v '^ *+' conftest.er1 >conftest.err
19174 rm -f conftest.er1
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } &&
19178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19179 { (case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182esac
19183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_try") 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest.$ac_objext'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192esac
19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
19198 ac_cv_func_isnan_in_math_h=yes
19199else
19200 echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
19203 ac_cv_func_isnan_in_math_h=no
19204fi
19205
19206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 ac_ext=c
19208ac_cpp='$CPP $CPPFLAGS'
19209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19211ac_compiler_gnu=$ac_cv_c_compiler_gnu
19212
19213fi
19214{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19215echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19216
19217
19218if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19219
19220cat >>confdefs.h <<\_ACEOF
19221#define HAVE_ISNAN_IN_MATH_H 1
19222_ACEOF
19223
19224fi
19225
19226{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19227echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19228if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230else
19231 ac_ext=cpp
19232ac_cpp='$CXXCPP $CPPFLAGS'
19233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19236
19237 cat >conftest.$ac_ext <<_ACEOF
19238/* confdefs.h. */
19239_ACEOF
19240cat confdefs.h >>conftest.$ac_ext
19241cat >>conftest.$ac_ext <<_ACEOF
19242/* end confdefs.h. */
19243#include <cmath>
19244int
19245main ()
19246{
19247float f; isnan(f);
19248 ;
19249 return 0;
19250}
19251_ACEOF
19252rm -f conftest.$ac_objext
19253if { (ac_try="$ac_compile"
19254case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257esac
19258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_compile") 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270esac
19271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest.$ac_objext'
19277 { (case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280esac
19281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_try") 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_cv_func_isnan_in_cmath=yes
19287else
19288 echo "$as_me: failed program was:" >&5
19289sed 's/^/| /' conftest.$ac_ext >&5
19290
19291 ac_cv_func_isnan_in_cmath=no
19292fi
19293
19294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295 ac_ext=c
19296ac_cpp='$CPP $CPPFLAGS'
19297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19299ac_compiler_gnu=$ac_cv_c_compiler_gnu
19300
19301fi
19302{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19303echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19304
19305if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19306
19307cat >>confdefs.h <<\_ACEOF
19308#define HAVE_ISNAN_IN_CMATH 1
19309_ACEOF
19310
19311fi
19312
19313{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19314echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19315if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19317else
19318 ac_ext=cpp
19319ac_cpp='$CXXCPP $CPPFLAGS'
19320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19323
19324 cat >conftest.$ac_ext <<_ACEOF
19325/* confdefs.h. */
19326_ACEOF
19327cat confdefs.h >>conftest.$ac_ext
19328cat >>conftest.$ac_ext <<_ACEOF
19329/* end confdefs.h. */
19330#include <cmath>
19331int
19332main ()
19333{
19334float f; std::isnan(f);
19335 ;
19336 return 0;
19337}
19338_ACEOF
19339rm -f conftest.$ac_objext
19340if { (ac_try="$ac_compile"
19341case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344esac
19345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_compile") 2>conftest.er1
19347 ac_status=$?
19348 grep -v '^ *+' conftest.er1 >conftest.err
19349 rm -f conftest.er1
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } &&
19353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19354 { (case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19357esac
19358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_try") 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest.$ac_objext'
19364 { (case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19367esac
19368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_try") 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_cv_func_std_isnan_in_cmath=yes
19374else
19375 echo "$as_me: failed program was:" >&5
19376sed 's/^/| /' conftest.$ac_ext >&5
19377
19378 ac_cv_func_std_isnan_in_cmath=no
19379fi
19380
19381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19382 ac_ext=c
19383ac_cpp='$CPP $CPPFLAGS'
19384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19386ac_compiler_gnu=$ac_cv_c_compiler_gnu
19387
19388fi
19389{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19390echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19391
19392if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19393
19394cat >>confdefs.h <<\_ACEOF
19395#define HAVE_STD_ISNAN_IN_CMATH 1
19396_ACEOF
19397
19398fi
19399
19400
19401{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19402echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19403if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405else
19406 ac_ext=cpp
19407ac_cpp='$CXXCPP $CPPFLAGS'
19408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19411
19412 cat >conftest.$ac_ext <<_ACEOF
19413/* confdefs.h. */
19414_ACEOF
19415cat confdefs.h >>conftest.$ac_ext
19416cat >>conftest.$ac_ext <<_ACEOF
19417/* end confdefs.h. */
19418#include <math.h>
19419int
19420main ()
19421{
19422float f; isinf(f);
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427rm -f conftest.$ac_objext
19428if { (ac_try="$ac_compile"
19429case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432esac
19433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_compile") 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445esac
19446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest.$ac_objext'
19452 { (case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455esac
19456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_try") 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_cv_func_isinf_in_math_h=yes
19462else
19463 echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466 ac_cv_func_isinf_in_math_h=no
19467fi
19468
19469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19470 ac_ext=c
19471ac_cpp='$CPP $CPPFLAGS'
19472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19474ac_compiler_gnu=$ac_cv_c_compiler_gnu
19475
19476fi
19477{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19478echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19479
19480if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19481
19482cat >>confdefs.h <<\_ACEOF
19483#define HAVE_ISINF_IN_MATH_H 1
19484_ACEOF
19485
19486fi
19487
19488{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19489echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19490if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492else
19493 ac_ext=cpp
19494ac_cpp='$CXXCPP $CPPFLAGS'
19495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19498
19499 cat >conftest.$ac_ext <<_ACEOF
19500/* confdefs.h. */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
19504/* end confdefs.h. */
19505#include <cmath>
19506int
19507main ()
19508{
19509float f; isinf(f);
19510 ;
19511 return 0;
19512}
19513_ACEOF
19514rm -f conftest.$ac_objext
19515if { (ac_try="$ac_compile"
19516case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519esac
19520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_compile") 2>conftest.er1
19522 ac_status=$?
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } &&
19528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532esac
19533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542esac
19543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_try") 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_cv_func_isinf_in_cmath=yes
19549else
19550 echo "$as_me: failed program was:" >&5
19551sed 's/^/| /' conftest.$ac_ext >&5
19552
19553 ac_cv_func_isinf_in_cmath=no
19554fi
19555
19556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19557 ac_ext=c
19558ac_cpp='$CPP $CPPFLAGS'
19559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19561ac_compiler_gnu=$ac_cv_c_compiler_gnu
19562
19563fi
19564{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19565echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19566
19567if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19568
19569cat >>confdefs.h <<\_ACEOF
19570#define HAVE_ISINF_IN_CMATH 1
19571_ACEOF
19572
19573fi
19574
19575{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19576echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19577if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579else
19580 ac_ext=cpp
19581ac_cpp='$CXXCPP $CPPFLAGS'
19582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19585
19586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
19592#include <cmath>
19593int
19594main ()
19595{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019596float f; std::isinf(f);
Daniel Dunbarbf79f912011-10-18 23:10:58 +000019597 ;
19598 return 0;
19599}
19600_ACEOF
19601rm -f conftest.$ac_objext
19602if { (ac_try="$ac_compile"
19603case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } &&
19615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; } &&
19625 { ac_try='test -s conftest.$ac_objext'
19626 { (case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629esac
19630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_try") 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 ac_cv_func_std_isinf_in_cmath=yes
19636else
19637 echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
19639
19640 ac_cv_func_std_isinf_in_cmath=no
19641fi
19642
19643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19644 ac_ext=c
19645ac_cpp='$CPP $CPPFLAGS'
19646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648ac_compiler_gnu=$ac_cv_c_compiler_gnu
19649
19650fi
19651{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19652echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19653
19654if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19655
19656cat >>confdefs.h <<\_ACEOF
19657#define HAVE_STD_ISINF_IN_CMATH 1
19658_ACEOF
19659
19660fi
19661
19662{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19663echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19664if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19666else
19667 ac_ext=cpp
19668ac_cpp='$CXXCPP $CPPFLAGS'
19669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19672
19673 cat >conftest.$ac_ext <<_ACEOF
19674/* confdefs.h. */
19675_ACEOF
19676cat confdefs.h >>conftest.$ac_ext
19677cat >>conftest.$ac_ext <<_ACEOF
19678/* end confdefs.h. */
19679#include <ieeefp.h>
19680int
19681main ()
19682{
19683float f; finite(f);
19684 ;
19685 return 0;
19686}
19687_ACEOF
19688rm -f conftest.$ac_objext
19689if { (ac_try="$ac_compile"
19690case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693esac
19694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_compile") 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19703 { (case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19706esac
19707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_try") 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; } &&
19712 { ac_try='test -s conftest.$ac_objext'
19713 { (case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716esac
19717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_try") 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; }; then
19722 ac_cv_func_finite_in_ieeefp_h=yes
19723else
19724 echo "$as_me: failed program was:" >&5
19725sed 's/^/| /' conftest.$ac_ext >&5
19726
19727 ac_cv_func_finite_in_ieeefp_h=no
19728fi
19729
19730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19731 ac_ext=c
19732ac_cpp='$CPP $CPPFLAGS'
19733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19735ac_compiler_gnu=$ac_cv_c_compiler_gnu
19736
19737fi
19738{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19739echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19740
19741if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19742
19743cat >>confdefs.h <<\_ACEOF
19744#define HAVE_FINITE_IN_IEEEFP_H 1
19745_ACEOF
19746
19747fi
19748
19749
19750
19751if test "$llvm_cv_platform_type" = "Unix" ; then
19752
19753
19754for ac_header in stdlib.h unistd.h
19755do
19756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762fi
19763ac_res=`eval echo '${'$as_ac_Header'}'`
19764 { echo "$as_me:$LINENO: result: $ac_res" >&5
19765echo "${ECHO_T}$ac_res" >&6; }
19766else
19767 # Is the header compilable?
19768{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19770cat >conftest.$ac_ext <<_ACEOF
19771/* confdefs.h. */
19772_ACEOF
19773cat confdefs.h >>conftest.$ac_ext
19774cat >>conftest.$ac_ext <<_ACEOF
19775/* end confdefs.h. */
19776$ac_includes_default
19777#include <$ac_header>
19778_ACEOF
19779rm -f conftest.$ac_objext
19780if { (ac_try="$ac_compile"
19781case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19784esac
19785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_compile") 2>conftest.er1
19787 ac_status=$?
19788 grep -v '^ *+' conftest.er1 >conftest.err
19789 rm -f conftest.er1
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19794 { (case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19797esac
19798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_try") 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try='test -s conftest.$ac_objext'
19804 { (case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807esac
19808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_try") 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; }; then
19813 ac_header_compiler=yes
19814else
19815 echo "$as_me: failed program was:" >&5
19816sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_header_compiler=no
19819fi
19820
19821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19822{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19823echo "${ECHO_T}$ac_header_compiler" >&6; }
19824
19825# Is the header present?
19826{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19828cat >conftest.$ac_ext <<_ACEOF
19829/* confdefs.h. */
19830_ACEOF
19831cat confdefs.h >>conftest.$ac_ext
19832cat >>conftest.$ac_ext <<_ACEOF
19833/* end confdefs.h. */
19834#include <$ac_header>
19835_ACEOF
19836if { (ac_try="$ac_cpp conftest.$ac_ext"
19837case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19840esac
19841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19843 ac_status=$?
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } >/dev/null; then
19849 if test -s conftest.err; then
19850 ac_cpp_err=$ac_c_preproc_warn_flag
19851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19852 else
19853 ac_cpp_err=
19854 fi
19855else
19856 ac_cpp_err=yes
19857fi
19858if test -z "$ac_cpp_err"; then
19859 ac_header_preproc=yes
19860else
19861 echo "$as_me: failed program was:" >&5
19862sed 's/^/| /' conftest.$ac_ext >&5
19863
19864 ac_header_preproc=no
19865fi
19866
19867rm -f conftest.err conftest.$ac_ext
19868{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19869echo "${ECHO_T}$ac_header_preproc" >&6; }
19870
19871# So? What about this header?
19872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19873 yes:no: )
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19875echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19877echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19878 ac_header_preproc=yes
19879 ;;
19880 no:yes:* )
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19886echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19888echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19892echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19893 ( cat <<\_ASBOX
19894## ------------------------------ ##
19895## Report this to bugs@yourdomain ##
19896## ------------------------------ ##
19897_ASBOX
19898 ) | sed "s/^/$as_me: WARNING: /" >&2
19899 ;;
19900esac
19901{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19905else
19906 eval "$as_ac_Header=\$ac_header_preproc"
19907fi
19908ac_res=`eval echo '${'$as_ac_Header'}'`
19909 { echo "$as_me:$LINENO: result: $ac_res" >&5
19910echo "${ECHO_T}$ac_res" >&6; }
19911
19912fi
19913if test `eval echo '${'$as_ac_Header'}'` = yes; then
19914 cat >>confdefs.h <<_ACEOF
19915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19916_ACEOF
19917
19918fi
19919
19920done
19921
19922
19923for ac_func in getpagesize
19924do
19925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19926{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19928if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930else
19931 cat >conftest.$ac_ext <<_ACEOF
19932/* confdefs.h. */
19933_ACEOF
19934cat confdefs.h >>conftest.$ac_ext
19935cat >>conftest.$ac_ext <<_ACEOF
19936/* end confdefs.h. */
19937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19939#define $ac_func innocuous_$ac_func
19940
19941/* System header to define __stub macros and hopefully few prototypes,
19942 which can conflict with char $ac_func (); below.
19943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944 <limits.h> exists even on freestanding compilers. */
19945
19946#ifdef __STDC__
19947# include <limits.h>
19948#else
19949# include <assert.h>
19950#endif
19951
19952#undef $ac_func
19953
19954/* Override any GCC internal prototype to avoid an error.
19955 Use char because int might match the return type of a GCC
19956 builtin and then its argument prototype would still apply. */
19957#ifdef __cplusplus
19958extern "C"
19959#endif
19960char $ac_func ();
19961/* The GNU C library defines this for functions which it implements
19962 to always fail with ENOSYS. Some functions are actually named
19963 something starting with __ and the normal name is an alias. */
19964#if defined __stub_$ac_func || defined __stub___$ac_func
19965choke me
19966#endif
19967
19968int
19969main ()
19970{
19971return $ac_func ();
19972 ;
19973 return 0;
19974}
19975_ACEOF
19976rm -f conftest.$ac_objext conftest$ac_exeext
19977if { (ac_try="$ac_link"
19978case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19981esac
19982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_link") 2>conftest.er1
19984 ac_status=$?
19985 grep -v '^ *+' conftest.er1 >conftest.err
19986 rm -f conftest.er1
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
19990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19994esac
19995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest$ac_exeext'
20001 { (case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004esac
20005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_try") 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 eval "$as_ac_var=yes"
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 eval "$as_ac_var=no"
20016fi
20017
20018rm -f core conftest.err conftest.$ac_objext \
20019 conftest$ac_exeext conftest.$ac_ext
20020fi
20021ac_res=`eval echo '${'$as_ac_var'}'`
20022 { echo "$as_me:$LINENO: result: $ac_res" >&5
20023echo "${ECHO_T}$ac_res" >&6; }
20024if test `eval echo '${'$as_ac_var'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20027_ACEOF
20028
20029fi
20030done
20031
20032{ echo "$as_me:$LINENO: checking for working mmap" >&5
20033echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20034if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20036else
20037 if test "$cross_compiling" = yes; then
20038 ac_cv_func_mmap_fixed_mapped=no
20039else
20040 cat >conftest.$ac_ext <<_ACEOF
20041/* confdefs.h. */
20042_ACEOF
20043cat confdefs.h >>conftest.$ac_ext
20044cat >>conftest.$ac_ext <<_ACEOF
20045/* end confdefs.h. */
20046$ac_includes_default
20047/* malloc might have been renamed as rpl_malloc. */
20048#undef malloc
20049
20050/* Thanks to Mike Haertel and Jim Avera for this test.
20051 Here is a matrix of mmap possibilities:
20052 mmap private not fixed
20053 mmap private fixed at somewhere currently unmapped
20054 mmap private fixed at somewhere already mapped
20055 mmap shared not fixed
20056 mmap shared fixed at somewhere currently unmapped
20057 mmap shared fixed at somewhere already mapped
20058 For private mappings, we should verify that changes cannot be read()
20059 back from the file, nor mmap's back from the file at a different
20060 address. (There have been systems where private was not correctly
20061 implemented like the infamous i386 svr4.0, and systems where the
20062 VM page cache was not coherent with the file system buffer cache
20063 like early versions of FreeBSD and possibly contemporary NetBSD.)
20064 For shared mappings, we should conversely verify that changes get
20065 propagated back to all the places they're supposed to be.
20066
20067 Grep wants private fixed already mapped.
20068 The main things grep needs to know about mmap are:
20069 * does it exist and is it safe to write into the mmap'd area
20070 * how to use it (BSD variants) */
20071
20072#include <fcntl.h>
20073#include <sys/mman.h>
20074
20075#if !STDC_HEADERS && !HAVE_STDLIB_H
20076char *malloc ();
20077#endif
20078
20079/* This mess was copied from the GNU getpagesize.h. */
20080#if !HAVE_GETPAGESIZE
20081/* Assume that all systems that can run configure have sys/param.h. */
20082# if !HAVE_SYS_PARAM_H
20083# define HAVE_SYS_PARAM_H 1
20084# endif
20085
20086# ifdef _SC_PAGESIZE
20087# define getpagesize() sysconf(_SC_PAGESIZE)
20088# else /* no _SC_PAGESIZE */
20089# if HAVE_SYS_PARAM_H
20090# include <sys/param.h>
20091# ifdef EXEC_PAGESIZE
20092# define getpagesize() EXEC_PAGESIZE
20093# else /* no EXEC_PAGESIZE */
20094# ifdef NBPG
20095# define getpagesize() NBPG * CLSIZE
20096# ifndef CLSIZE
20097# define CLSIZE 1
20098# endif /* no CLSIZE */
20099# else /* no NBPG */
20100# ifdef NBPC
20101# define getpagesize() NBPC
20102# else /* no NBPC */
20103# ifdef PAGESIZE
20104# define getpagesize() PAGESIZE
20105# endif /* PAGESIZE */
20106# endif /* no NBPC */
20107# endif /* no NBPG */
20108# endif /* no EXEC_PAGESIZE */
20109# else /* no HAVE_SYS_PARAM_H */
20110# define getpagesize() 8192 /* punt totally */
20111# endif /* no HAVE_SYS_PARAM_H */
20112# endif /* no _SC_PAGESIZE */
20113
20114#endif /* no HAVE_GETPAGESIZE */
20115
20116int
20117main ()
20118{
20119 char *data, *data2, *data3;
20120 int i, pagesize;
20121 int fd;
20122
20123 pagesize = getpagesize ();
20124
20125 /* First, make a file with some known garbage in it. */
20126 data = (char *) malloc (pagesize);
20127 if (!data)
20128 return 1;
20129 for (i = 0; i < pagesize; ++i)
20130 *(data + i) = rand ();
20131 umask (0);
20132 fd = creat ("conftest.mmap", 0600);
20133 if (fd < 0)
20134 return 1;
20135 if (write (fd, data, pagesize) != pagesize)
20136 return 1;
20137 close (fd);
20138
20139 /* Next, try to mmap the file at a fixed address which already has
20140 something else allocated at it. If we can, also make sure that
20141 we see the same garbage. */
20142 fd = open ("conftest.mmap", O_RDWR);
20143 if (fd < 0)
20144 return 1;
20145 data2 = (char *) malloc (2 * pagesize);
20146 if (!data2)
20147 return 1;
20148 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20149 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20150 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20151 return 1;
20152 for (i = 0; i < pagesize; ++i)
20153 if (*(data + i) != *(data2 + i))
20154 return 1;
20155
20156 /* Finally, make sure that changes to the mapped area do not
20157 percolate back to the file as seen by read(). (This is a bug on
20158 some variants of i386 svr4.0.) */
20159 for (i = 0; i < pagesize; ++i)
20160 *(data2 + i) = *(data2 + i) + 1;
20161 data3 = (char *) malloc (pagesize);
20162 if (!data3)
20163 return 1;
20164 if (read (fd, data3, pagesize) != pagesize)
20165 return 1;
20166 for (i = 0; i < pagesize; ++i)
20167 if (*(data + i) != *(data3 + i))
20168 return 1;
20169 close (fd);
20170 return 0;
20171}
20172_ACEOF
20173rm -f conftest$ac_exeext
20174if { (ac_try="$ac_link"
20175case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178esac
20179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20184 { (case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187esac
20188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_try") 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; }; then
20193 ac_cv_func_mmap_fixed_mapped=yes
20194else
20195 echo "$as_me: program exited with status $ac_status" >&5
20196echo "$as_me: failed program was:" >&5
20197sed 's/^/| /' conftest.$ac_ext >&5
20198
20199( exit $ac_status )
20200ac_cv_func_mmap_fixed_mapped=no
20201fi
20202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20203fi
20204
20205
20206fi
20207{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20208echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20209if test $ac_cv_func_mmap_fixed_mapped = yes; then
20210
20211cat >>confdefs.h <<\_ACEOF
20212#define HAVE_MMAP 1
20213_ACEOF
20214
20215fi
20216rm -f conftest.mmap
20217
20218 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20219echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20220if test "${ac_cv_func_mmap_file+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222else
20223 ac_ext=c
20224ac_cpp='$CPP $CPPFLAGS'
20225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20227ac_compiler_gnu=$ac_cv_c_compiler_gnu
20228
20229 if test "$cross_compiling" = yes; then
20230 ac_cv_func_mmap_file=no
20231else
20232 cat >conftest.$ac_ext <<_ACEOF
20233
20234 /* confdefs.h. */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h. */
20239
20240#include <sys/types.h>
20241#include <sys/mman.h>
20242#include <fcntl.h>
20243
20244int
20245main ()
20246{
20247
20248 int fd;
20249 fd = creat ("foo",0777);
20250 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20251 unlink ("foo");
20252 return (fd != (int) MAP_FAILED);
20253 ;
20254 return 0;
20255}
20256_ACEOF
20257rm -f conftest$ac_exeext
20258if { (ac_try="$ac_link"
20259case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20262esac
20263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_link") 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20268 { (case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20271esac
20272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_try") 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_cv_func_mmap_file=yes
20278else
20279 echo "$as_me: program exited with status $ac_status" >&5
20280echo "$as_me: failed program was:" >&5
20281sed 's/^/| /' conftest.$ac_ext >&5
20282
20283( exit $ac_status )
20284ac_cv_func_mmap_file=no
20285fi
20286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20287fi
20288
20289
20290 ac_ext=c
20291ac_cpp='$CPP $CPPFLAGS'
20292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20294ac_compiler_gnu=$ac_cv_c_compiler_gnu
20295
20296
20297fi
20298{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20299echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20300if test "$ac_cv_func_mmap_file" = yes; then
20301
20302cat >>confdefs.h <<\_ACEOF
20303#define HAVE_MMAP_FILE
20304_ACEOF
20305
20306 MMAP_FILE=yes
20307
20308fi
20309
20310 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20311echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20312if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20314else
20315 if test "$llvm_cv_os_type" = "Interix" ; then
20316 ac_cv_need_dev_zero_for_mmap=yes
20317 else
20318 ac_cv_need_dev_zero_for_mmap=no
20319 fi
20320
20321fi
20322{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20323echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20324if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20325
20326cat >>confdefs.h <<\_ACEOF
20327#define NEED_DEV_ZERO_FOR_MMAP 1
20328_ACEOF
20329
20330fi
20331
20332 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20333 then
20334 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20335echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20336 fi
20337 if test "$ac_cv_func_mmap_file" = "no"
20338 then
20339 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20340echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20341 fi
20342fi
20343
20344{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20345echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20346ac_ext=cpp
20347ac_cpp='$CXXCPP $CPPFLAGS'
20348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20351
20352cat >conftest.$ac_ext <<_ACEOF
20353/* confdefs.h. */
20354_ACEOF
20355cat confdefs.h >>conftest.$ac_ext
20356cat >>conftest.$ac_ext <<_ACEOF
20357/* end confdefs.h. */
20358int main() {
20359 volatile unsigned long val = 1;
20360 __sync_synchronize();
20361 __sync_val_compare_and_swap(&val, 1, 0);
20362 __sync_add_and_fetch(&val, 1);
20363 __sync_sub_and_fetch(&val, 1);
20364 return 0;
20365 }
20366
20367_ACEOF
20368rm -f conftest.$ac_objext conftest$ac_exeext
20369if { (ac_try="$ac_link"
20370case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373esac
20374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_link") 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20392 { ac_try='test -s conftest$ac_exeext'
20393 { (case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396esac
20397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_try") 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_ext=c
20403ac_cpp='$CPP $CPPFLAGS'
20404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406ac_compiler_gnu=$ac_cv_c_compiler_gnu
20407
20408 { echo "$as_me:$LINENO: result: yes" >&5
20409echo "${ECHO_T}yes" >&6; }
20410
20411cat >>confdefs.h <<\_ACEOF
20412#define LLVM_HAS_ATOMICS 1
20413_ACEOF
20414
20415else
20416 echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419 { echo "$as_me:$LINENO: result: no" >&5
20420echo "${ECHO_T}no" >&6; }
20421
20422cat >>confdefs.h <<\_ACEOF
20423#define LLVM_HAS_ATOMICS 0
20424_ACEOF
20425
20426 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20427echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20428fi
20429
20430rm -f core conftest.err conftest.$ac_objext \
20431 conftest$ac_exeext conftest.$ac_ext
20432
20433
20434if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20435 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20436echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20437if test "${llvm_cv_linux_mixed+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439else
20440 ac_ext=c
20441ac_cpp='$CPP $CPPFLAGS'
20442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20444ac_compiler_gnu=$ac_cv_c_compiler_gnu
20445
20446 cat >conftest.$ac_ext <<_ACEOF
20447/* confdefs.h. */
20448_ACEOF
20449cat confdefs.h >>conftest.$ac_ext
20450cat >>conftest.$ac_ext <<_ACEOF
20451/* end confdefs.h. */
20452#ifndef __x86_64__
20453 error: Not x86-64 even if uname says so!
20454 #endif
20455
20456int
20457main ()
20458{
20459
20460 ;
20461 return 0;
20462}
20463_ACEOF
20464rm -f conftest.$ac_objext
20465if { (ac_try="$ac_compile"
20466case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469esac
20470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_compile") 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20479 { (case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482esac
20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_try") 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest.$ac_objext'
20489 { (case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492esac
20493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_try") 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 llvm_cv_linux_mixed=no
20499else
20500 echo "$as_me: failed program was:" >&5
20501sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 llvm_cv_linux_mixed=yes
20504fi
20505
20506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 ac_ext=c
20508ac_cpp='$CPP $CPPFLAGS'
20509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20511ac_compiler_gnu=$ac_cv_c_compiler_gnu
20512
20513
20514fi
20515{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20516echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20517
20518 if test "$llvm_cv_linux_mixed" = "yes"; then
20519 llvm_cv_target_arch="x86"
20520 ARCH="x86"
20521 fi
20522fi
20523
20524
20525for ac_func in __dso_handle
20526do
20527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20528{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20530if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20532else
20533 cat >conftest.$ac_ext <<_ACEOF
20534/* confdefs.h. */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
20538/* end confdefs.h. */
20539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20541#define $ac_func innocuous_$ac_func
20542
20543/* System header to define __stub macros and hopefully few prototypes,
20544 which can conflict with char $ac_func (); below.
20545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20546 <limits.h> exists even on freestanding compilers. */
20547
20548#ifdef __STDC__
20549# include <limits.h>
20550#else
20551# include <assert.h>
20552#endif
20553
20554#undef $ac_func
20555
20556/* Override any GCC internal prototype to avoid an error.
20557 Use char because int might match the return type of a GCC
20558 builtin and then its argument prototype would still apply. */
20559#ifdef __cplusplus
20560extern "C"
20561#endif
20562char $ac_func ();
20563/* The GNU C library defines this for functions which it implements
20564 to always fail with ENOSYS. Some functions are actually named
20565 something starting with __ and the normal name is an alias. */
20566#if defined __stub_$ac_func || defined __stub___$ac_func
20567choke me
20568#endif
20569
20570int
20571main ()
20572{
20573return $ac_func ();
20574 ;
20575 return 0;
20576}
20577_ACEOF
20578rm -f conftest.$ac_objext conftest$ac_exeext
20579if { (ac_try="$ac_link"
20580case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583esac
20584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_link") 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
20592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20593 { (case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20596esac
20597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_try") 2>&5
20599 ac_status=$?
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; } &&
20602 { ac_try='test -s conftest$ac_exeext'
20603 { (case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20606esac
20607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_try") 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
20612 eval "$as_ac_var=yes"
20613else
20614 echo "$as_me: failed program was:" >&5
20615sed 's/^/| /' conftest.$ac_ext >&5
20616
20617 eval "$as_ac_var=no"
20618fi
20619
20620rm -f core conftest.err conftest.$ac_objext \
20621 conftest$ac_exeext conftest.$ac_ext
20622fi
20623ac_res=`eval echo '${'$as_ac_var'}'`
20624 { echo "$as_me:$LINENO: result: $ac_res" >&5
20625echo "${ECHO_T}$ac_res" >&6; }
20626if test `eval echo '${'$as_ac_var'}'` = yes; then
20627 cat >>confdefs.h <<_ACEOF
20628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20629_ACEOF
20630
20631fi
20632done
20633
20634
20635SHLIBEXT=$libltdl_cv_shlibext
20636
20637
20638SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20639
20640
20641# Translate the various configuration directories and other basic
20642# information into substitutions that will end up in Makefile.config.in
20643# that these configured values can be used by the makefiles
20644if test "${prefix}" = "NONE" ; then
20645 prefix="/usr/local"
20646fi
20647eval LLVM_PREFIX="${prefix}";
20648eval LLVM_BINDIR="${prefix}/bin";
20649eval LLVM_LIBDIR="${prefix}/lib";
20650eval LLVM_DATADIR="${prefix}/share/llvm";
20651eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20652eval LLVM_ETCDIR="${prefix}/etc/llvm";
20653eval LLVM_INCLUDEDIR="${prefix}/include";
20654eval LLVM_INFODIR="${prefix}/info";
20655eval LLVM_MANDIR="${prefix}/man";
20656LLVM_CONFIGTIME=`date`
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668# Place the various directores into the config.h file as #defines so that we
20669# can know about the installation paths within LLVM.
20670
20671cat >>confdefs.h <<_ACEOF
20672#define LLVM_PREFIX "$LLVM_PREFIX"
20673_ACEOF
20674
20675
20676cat >>confdefs.h <<_ACEOF
20677#define LLVM_BINDIR "$LLVM_BINDIR"
20678_ACEOF
20679
20680
20681cat >>confdefs.h <<_ACEOF
20682#define LLVM_LIBDIR "$LLVM_LIBDIR"
20683_ACEOF
20684
20685
20686cat >>confdefs.h <<_ACEOF
20687#define LLVM_DATADIR "$LLVM_DATADIR"
20688_ACEOF
20689
20690
20691cat >>confdefs.h <<_ACEOF
20692#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20693_ACEOF
20694
20695
20696cat >>confdefs.h <<_ACEOF
20697#define LLVM_ETCDIR "$LLVM_ETCDIR"
20698_ACEOF
20699
20700
20701cat >>confdefs.h <<_ACEOF
20702#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20703_ACEOF
20704
20705
20706cat >>confdefs.h <<_ACEOF
20707#define LLVM_INFODIR "$LLVM_INFODIR"
20708_ACEOF
20709
20710
20711cat >>confdefs.h <<_ACEOF
20712#define LLVM_MANDIR "$LLVM_MANDIR"
20713_ACEOF
20714
20715
20716cat >>confdefs.h <<_ACEOF
20717#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20718_ACEOF
20719
20720
20721cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020722#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020723_ACEOF
20724
20725
20726# Determine which bindings to build.
20727if test "$BINDINGS_TO_BUILD" = auto ; then
20728 BINDINGS_TO_BUILD=""
20729 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20730 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20731 fi
20732fi
20733BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20734
20735
20736# This isn't really configurey, but it avoids having to repeat the list in
20737# other files.
20738ALL_BINDINGS=ocaml
20739
20740
20741# Do any work necessary to ensure that bindings have what they need.
20742binding_prereqs_failed=0
20743for a_binding in $BINDINGS_TO_BUILD ; do
20744 case "$a_binding" in
20745 ocaml)
20746 if test "x$OCAMLC" = x ; then
20747 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20748echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20749 binding_prereqs_failed=1
20750 fi
20751 if test "x$OCAMLDEP" = x ; then
20752 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20753echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20754 binding_prereqs_failed=1
20755 fi
20756 if test "x$OCAMLOPT" = x ; then
20757 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20758echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20759 fi
20760 if test "x$with_ocaml_libdir" != xauto ; then
20761 OCAML_LIBDIR=$with_ocaml_libdir
20762
20763 else
20764 ocaml_stdlib="`"$OCAMLC" -where`"
20765 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20766 then
20767 # ocaml stdlib is beneath our prefix; use stdlib
20768 OCAML_LIBDIR=$ocaml_stdlib
20769
20770 else
20771 # ocaml stdlib is outside our prefix; use libdir/ocaml
20772 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20773
20774 fi
20775 fi
20776 ;;
20777 esac
20778done
20779if test "$binding_prereqs_failed" = 1 ; then
20780 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20781echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20782 { (exit 1); exit 1; }; }
20783fi
20784
20785{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20786echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20787if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790 ac_ext=cpp
20791ac_cpp='$CXXCPP $CPPFLAGS'
20792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20795
20796 oldcxxflags="$CXXFLAGS"
20797 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20798 cat >conftest.$ac_ext <<_ACEOF
20799/* confdefs.h. */
20800_ACEOF
20801cat confdefs.h >>conftest.$ac_ext
20802cat >>conftest.$ac_ext <<_ACEOF
20803/* end confdefs.h. */
20804
20805int
20806main ()
20807{
20808
20809 ;
20810 return 0;
20811}
20812_ACEOF
20813rm -f conftest.$ac_objext
20814if { (ac_try="$ac_compile"
20815case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818esac
20819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_compile") 2>conftest.er1
20821 ac_status=$?
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } &&
20827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20828 { (case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831esac
20832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_try") 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try='test -s conftest.$ac_objext'
20838 { (case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841esac
20842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_try") 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
20847 llvm_cv_cxx_visibility_inlines_hidden=yes
20848else
20849 echo "$as_me: failed program was:" >&5
20850sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 llvm_cv_cxx_visibility_inlines_hidden=no
20853fi
20854
20855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20856 CXXFLAGS="$oldcxxflags"
20857 ac_ext=c
20858ac_cpp='$CPP $CPPFLAGS'
20859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20861ac_compiler_gnu=$ac_cv_c_compiler_gnu
20862
20863
20864fi
20865{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20866echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20867if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20868 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20869
20870else
20871 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20872
20873fi
20874
20875
20876if test "$llvm_cv_link_use_r" = "yes" ; then
20877 RPATH="-Wl,-R"
20878else
20879 RPATH="-Wl,-rpath"
20880fi
20881
20882
20883if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20884 RDYNAMIC="-Wl,-export-dynamic"
20885else
20886 RDYNAMIC=""
20887fi
20888
20889
20890
Reid Spencer421ec052005-02-24 18:53:47 +000020891
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020892ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020893
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020894ac_config_files="$ac_config_files Makefile.llvm.config"
20895
John Criswell451f67f2003-10-16 01:45:35 +000020896
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020897ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020898
20899
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020900ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020901
20902
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020903ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020904
20905
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020906ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020907
20908
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020909ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020910
20911
20912
John Criswell451f67f2003-10-16 01:45:35 +000020913cat >confcache <<\_ACEOF
20914# This file is a shell script that caches the results of configure
20915# tests run on this system so they can be shared between configure
20916# scripts and configure runs, see configure's option --config-cache.
20917# It is not useful on other systems. If it contains results you don't
20918# want to keep, you may remove or edit it.
20919#
20920# config.status only pays attention to the cache file if you give it
20921# the --recheck option to rerun configure.
20922#
20923# `ac_cv_env_foo' variables (set or unset) will be overridden when
20924# loading this file, other *unset* `ac_cv_foo' will be assigned the
20925# following values.
20926
20927_ACEOF
20928
20929# The following way of writing the cache mishandles newlines in values,
20930# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020931# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020932# Ultrix sh set writes to stderr and can't be redirected directly,
20933# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020934(
20935 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20936 eval ac_val=\$$ac_var
20937 case $ac_val in #(
20938 *${as_nl}*)
20939 case $ac_var in #(
20940 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20941echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20942 esac
20943 case $ac_var in #(
20944 _ | IFS | as_nl) ;; #(
20945 *) $as_unset $ac_var ;;
20946 esac ;;
20947 esac
20948 done
20949
John Criswell451f67f2003-10-16 01:45:35 +000020950 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020951 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20952 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020953 # `set' does not quote correctly, so add quotes (double-quote
20954 # substitution turns \\\\ into \\, and sed turns \\ into \).
20955 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000020956 "s/'/'\\\\''/g;
20957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020958 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000020959 *)
20960 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000020962 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020963 esac |
20964 sort
20965) |
John Criswell451f67f2003-10-16 01:45:35 +000020966 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020967 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000020968 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020969 :clear
John Criswell451f67f2003-10-16 01:45:35 +000020970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20971 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020972 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20973 :end' >>confcache
20974if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20975 if test -w "$cache_file"; then
20976 test "x$cache_file" != "x/dev/null" &&
20977 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20978echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020979 cat confcache >$cache_file
20980 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020981 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20982echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020983 fi
20984fi
20985rm -f confcache
20986
20987test "x$prefix" = xNONE && prefix=$ac_default_prefix
20988# Let make expand exec_prefix.
20989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20990
John Criswell451f67f2003-10-16 01:45:35 +000020991# Transform confdefs.h into DEFS.
20992# Protect against shell expansion while executing Makefile rules.
20993# Protect against Makefile macro expansion.
20994#
20995# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020996# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000020997# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020998ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000020999t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021000:clear
21001s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021002t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021003s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021004t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021005b any
21006:quote
21007s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21008s/\[/\\&/g
21009s/\]/\\&/g
21010s/\$/$$/g
21011H
21012:any
21013${
21014 g
21015 s/^\n//
21016 s/\n/ /g
21017 p
21018}
21019'
21020DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021021
21022
21023ac_libobjs=
21024ac_ltlibobjs=
21025for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21026 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21028 ac_i=`echo "$ac_i" | sed "$ac_script"`
21029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21030 # will be set to the directory where LIBOBJS objects are built.
21031 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21032 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021033done
21034LIBOBJS=$ac_libobjs
21035
21036LTLIBOBJS=$ac_ltlibobjs
21037
21038
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021039if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21040 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21041Usually this means the macro was only invoked conditionally." >&5
21042echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21043Usually this means the macro was only invoked conditionally." >&2;}
21044 { (exit 1); exit 1; }; }
21045fi
21046if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21047 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21048Usually this means the macro was only invoked conditionally." >&5
21049echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21050Usually this means the macro was only invoked conditionally." >&2;}
21051 { (exit 1); exit 1; }; }
21052fi
John Criswell451f67f2003-10-16 01:45:35 +000021053
21054: ${CONFIG_STATUS=./config.status}
21055ac_clean_files_save=$ac_clean_files
21056ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21057{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21058echo "$as_me: creating $CONFIG_STATUS" >&6;}
21059cat >$CONFIG_STATUS <<_ACEOF
21060#! $SHELL
21061# Generated by $as_me.
21062# Run this file to recreate the current configuration.
21063# Compiler output produced by configure, useful for debugging
21064# configure, is in config.log if it exists.
21065
21066debug=false
21067ac_cs_recheck=false
21068ac_cs_silent=false
21069SHELL=\${CONFIG_SHELL-$SHELL}
21070_ACEOF
21071
21072cat >>$CONFIG_STATUS <<\_ACEOF
21073## --------------------- ##
21074## M4sh Initialization. ##
21075## --------------------- ##
21076
Dan Gohman324f6082009-03-25 00:52:11 +000021077# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021078if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21079 emulate sh
21080 NULLCMD=:
21081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21082 # is contrary to our usage. Disable this feature.
21083 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021084 setopt NO_GLOB_SUBST
21085else
21086 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021087fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021088BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021089DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021090
John Criswell451f67f2003-10-16 01:45:35 +000021091
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021092# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021093# Avoid depending upon Character Ranges.
21094as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21095as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21096as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21097as_cr_digits='0123456789'
21098as_cr_alnum=$as_cr_Letters$as_cr_digits
21099
21100# The user is always right.
21101if test "${PATH_SEPARATOR+set}" != set; then
21102 echo "#! /bin/sh" >conf$$.sh
21103 echo "exit 0" >>conf$$.sh
21104 chmod +x conf$$.sh
21105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21106 PATH_SEPARATOR=';'
21107 else
21108 PATH_SEPARATOR=:
21109 fi
21110 rm -f conf$$.sh
21111fi
21112
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021113# Support unset when possible.
21114if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21115 as_unset=unset
21116else
21117 as_unset=false
21118fi
John Criswell451f67f2003-10-16 01:45:35 +000021119
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021120
21121# IFS
21122# We need space, tab and new line, in precisely that order. Quoting is
21123# there to prevent editors from complaining about space-tab.
21124# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21125# splitting by setting IFS to empty value.)
21126as_nl='
21127'
21128IFS=" "" $as_nl"
21129
21130# Find who we are. Look in the path if we contain no directory separator.
21131case $0 in
21132 *[\\/]* ) as_myself=$0 ;;
21133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021134for as_dir in $PATH
21135do
21136 IFS=$as_save_IFS
21137 test -z "$as_dir" && as_dir=.
21138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21139done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021140IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021141
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021142 ;;
21143esac
21144# We did not find ourselves, most probably we were run as `sh COMMAND'
21145# in which case we are not to be found in the path.
21146if test "x$as_myself" = x; then
21147 as_myself=$0
21148fi
21149if test ! -f "$as_myself"; then
21150 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21151 { (exit 1); exit 1; }
21152fi
21153
21154# Work around bugs in pre-3.0 UWIN ksh.
21155for as_var in ENV MAIL MAILPATH
21156do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21157done
21158PS1='$ '
21159PS2='> '
21160PS4='+ '
21161
21162# NLS nuisances.
21163for as_var in \
21164 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21165 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21166 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021167do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021168 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21169 eval $as_var=C; export $as_var
21170 else
21171 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21172 fi
21173done
21174
21175# Required to use basename.
21176if expr a : '\(a\)' >/dev/null 2>&1 &&
21177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21178 as_expr=expr
21179else
21180 as_expr=false
21181fi
21182
21183if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21184 as_basename=basename
21185else
21186 as_basename=false
21187fi
21188
21189
21190# Name of the executable.
21191as_me=`$as_basename -- "$0" ||
21192$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21193 X"$0" : 'X\(//\)$' \| \
21194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21195echo X/"$0" |
21196 sed '/^.*\/\([^/][^/]*\)\/*$/{
21197 s//\1/
21198 q
21199 }
21200 /^X\/\(\/\/\)$/{
21201 s//\1/
21202 q
21203 }
21204 /^X\/\(\/\).*/{
21205 s//\1/
21206 q
21207 }
21208 s/.*/./; q'`
21209
21210# CDPATH.
21211$as_unset CDPATH
21212
21213
21214
John Criswell451f67f2003-10-16 01:45:35 +000021215 as_lineno_1=$LINENO
21216 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021217 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021218 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021219
21220 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21221 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021222 # line-number line after each line using $LINENO; the second 'sed'
21223 # does the real work. The second script uses 'N' to pair each
21224 # line-number line with the line containing $LINENO, and appends
21225 # trailing '-' during substitution so that $LINENO is not a special
21226 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021227 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021228 # scripts with optimization help from Paolo Bonzini. Blame Lee
21229 # E. McMahon (1931-1989) for sed's syntax. :-)
21230 sed -n '
21231 p
21232 /[$]LINENO/=
21233 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021234 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021235 s/[$]LINENO.*/&-/
21236 t lineno
21237 b
21238 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021239 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021240 :loop
21241 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021242 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021243 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021244 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021245 chmod +x "$as_me.lineno" ||
21246 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021247 { (exit 1); exit 1; }; }
21248
21249 # Don't try to exec as it changes $[0], causing all sort of problems
21250 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021251 # original and so on. Autoconf is especially sensitive to this).
21252 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021253 # Exit status is that of the last command.
21254 exit
21255}
21256
21257
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021258if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21259 as_dirname=dirname
21260else
21261 as_dirname=false
21262fi
21263
21264ECHO_C= ECHO_N= ECHO_T=
21265case `echo -n x` in
21266-n*)
21267 case `echo 'x\c'` in
21268 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21269 *) ECHO_C='\c';;
21270 esac;;
21271*)
21272 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021273esac
21274
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021275if expr a : '\(a\)' >/dev/null 2>&1 &&
21276 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021277 as_expr=expr
21278else
21279 as_expr=false
21280fi
21281
21282rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021283if test -d conf$$.dir; then
21284 rm -f conf$$.dir/conf$$.file
21285else
21286 rm -f conf$$.dir
21287 mkdir conf$$.dir
21288fi
John Criswell451f67f2003-10-16 01:45:35 +000021289echo >conf$$.file
21290if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021291 as_ln_s='ln -s'
21292 # ... but there are two gotchas:
21293 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21294 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21295 # In both cases, we have to default to `cp -p'.
21296 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021297 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021298elif ln conf$$.file conf$$ 2>/dev/null; then
21299 as_ln_s=ln
21300else
21301 as_ln_s='cp -p'
21302fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021303rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21304rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021305
21306if mkdir -p . 2>/dev/null; then
21307 as_mkdir_p=:
21308else
Reid Spencer9964cd82005-01-01 09:26:55 +000021309 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021310 as_mkdir_p=false
21311fi
21312
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021313# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21314# systems may use methods other than mode bits to determine executability.
21315cat >conf$$.file <<_ASEOF
21316#! /bin/sh
21317exit 0
21318_ASEOF
21319chmod +x conf$$.file
21320if test -x conf$$.file >/dev/null 2>&1; then
21321 as_executable_p="test -x"
21322else
21323 as_executable_p=:
21324fi
21325rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021326
21327# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021328as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021329
21330# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021331as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021332
21333
John Criswell451f67f2003-10-16 01:45:35 +000021334exec 6>&1
21335
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021336# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021337# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021338# values after options handling.
21339ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021340This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021341generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021342
21343 CONFIG_FILES = $CONFIG_FILES
21344 CONFIG_HEADERS = $CONFIG_HEADERS
21345 CONFIG_LINKS = $CONFIG_LINKS
21346 CONFIG_COMMANDS = $CONFIG_COMMANDS
21347 $ $0 $@
21348
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021349on `(hostname || uname -n) 2>/dev/null | sed 1q`
21350"
21351
John Criswell451f67f2003-10-16 01:45:35 +000021352_ACEOF
21353
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021354cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021355# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021356config_files="$ac_config_files"
21357config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021358
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021359_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021360
21361cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021362ac_cs_usage="\
21363\`$as_me' instantiates files from templates according to the
21364current configuration.
21365
21366Usage: $0 [OPTIONS] [FILE]...
21367
21368 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021369 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021370 -q, --quiet do not print progress messages
21371 -d, --debug don't remove temporary files
21372 --recheck update $as_me by reconfiguring in the same conditions
21373 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021374 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021375
21376Configuration files:
21377$config_files
21378
21379Configuration commands:
21380$config_commands
21381
21382Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021383
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021384_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021385cat >>$CONFIG_STATUS <<_ACEOF
21386ac_cs_version="\\
21387[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021388configured by $0, generated by GNU Autoconf 2.60,
21389 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021390
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021391Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021392This config.status script is free software; the Free Software Foundation
21393gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021394
21395ac_pwd='$ac_pwd'
21396srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021397INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021398_ACEOF
21399
21400cat >>$CONFIG_STATUS <<\_ACEOF
21401# If no file are specified by the user, then we need to provide default
21402# value. By we need to know if files were specified by the user.
21403ac_need_defaults=:
21404while test $# != 0
21405do
21406 case $1 in
21407 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021408 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21409 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021410 ac_shift=:
21411 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021412 *)
John Criswell451f67f2003-10-16 01:45:35 +000021413 ac_option=$1
21414 ac_optarg=$2
21415 ac_shift=shift
21416 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021417 esac
21418
21419 case $ac_option in
21420 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21422 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21424 echo "$ac_cs_version"; exit ;;
21425 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021426 debug=: ;;
21427 --file | --fil | --fi | --f )
21428 $ac_shift
21429 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21430 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021431 --he | --h | --help | --hel | -h )
21432 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21434 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21435 ac_cs_silent=: ;;
21436
21437 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021438 -*) { echo "$as_me: error: unrecognized option: $1
21439Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021440 { (exit 1); exit 1; }; } ;;
21441
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021442 *) ac_config_targets="$ac_config_targets $1"
21443 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021444
21445 esac
21446 shift
21447done
21448
21449ac_configure_extra_args=
21450
21451if $ac_cs_silent; then
21452 exec 6>/dev/null
21453 ac_configure_extra_args="$ac_configure_extra_args --silent"
21454fi
21455
21456_ACEOF
21457cat >>$CONFIG_STATUS <<_ACEOF
21458if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021459 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21460 CONFIG_SHELL=$SHELL
21461 export CONFIG_SHELL
21462 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021463fi
21464
21465_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021466cat >>$CONFIG_STATUS <<\_ACEOF
21467exec 5>>config.log
21468{
21469 echo
21470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21471## Running $as_me. ##
21472_ASBOX
21473 echo "$ac_log"
21474} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021475
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021476_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021477cat >>$CONFIG_STATUS <<_ACEOF
21478#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021479# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021480#
Reid Spencer421ec052005-02-24 18:53:47 +000021481llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021482
21483_ACEOF
21484
Dan Gohman324f6082009-03-25 00:52:11 +000021485cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021486
21487# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021488for ac_config_target in $ac_config_targets
21489do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021490 case $ac_config_target in
21491 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21492 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021493 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021494 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21495 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21496 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21497 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21498 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21499
John Criswell451f67f2003-10-16 01:45:35 +000021500 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21501echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21502 { (exit 1); exit 1; }; };;
21503 esac
21504done
21505
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021506
John Criswell451f67f2003-10-16 01:45:35 +000021507# If the user did not use the arguments to specify the items to instantiate,
21508# then the envvar interface is used. Set only those that are not.
21509# We use the long form for the default assignment because of an extremely
21510# bizarre bug on SunOS 4.1.3.
21511if $ac_need_defaults; then
21512 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21513 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21514fi
21515
21516# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021517# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021518# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021519# Hook for its removal unless debugging.
21520# Note that there is a small window in which the directory will not be cleaned:
21521# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021522$debug ||
21523{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021524 tmp=
21525 trap 'exit_status=$?
21526 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21527' 0
John Criswell451f67f2003-10-16 01:45:35 +000021528 trap '{ (exit 1); exit 1; }' 1 2 13 15
21529}
John Criswell451f67f2003-10-16 01:45:35 +000021530# Create a (secure) tmp directory for tmp files.
21531
21532{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021534 test -n "$tmp" && test -d "$tmp"
21535} ||
21536{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021537 tmp=./conf$$-$RANDOM
21538 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021539} ||
21540{
21541 echo "$me: cannot create a temporary directory in ." >&2
21542 { (exit 1); exit 1; }
21543}
21544
John Criswell451f67f2003-10-16 01:45:35 +000021545#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021546# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021547#
21548
21549# No need to generate the scripts if there are no CONFIG_FILES.
21550# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021551if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021552
21553_ACEOF
21554
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021555
21556
21557ac_delim='%!_!# '
21558for ac_last_try in false false false false false :; do
21559 cat >conf$$subs.sed <<_ACEOF
21560SHELL!$SHELL$ac_delim
21561PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21562PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21563PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21564PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21565PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21566PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21567exec_prefix!$exec_prefix$ac_delim
21568prefix!$prefix$ac_delim
21569program_transform_name!$program_transform_name$ac_delim
21570bindir!$bindir$ac_delim
21571sbindir!$sbindir$ac_delim
21572libexecdir!$libexecdir$ac_delim
21573datarootdir!$datarootdir$ac_delim
21574datadir!$datadir$ac_delim
21575sysconfdir!$sysconfdir$ac_delim
21576sharedstatedir!$sharedstatedir$ac_delim
21577localstatedir!$localstatedir$ac_delim
21578includedir!$includedir$ac_delim
21579oldincludedir!$oldincludedir$ac_delim
21580docdir!$docdir$ac_delim
21581infodir!$infodir$ac_delim
21582htmldir!$htmldir$ac_delim
21583dvidir!$dvidir$ac_delim
21584pdfdir!$pdfdir$ac_delim
21585psdir!$psdir$ac_delim
21586libdir!$libdir$ac_delim
21587localedir!$localedir$ac_delim
21588mandir!$mandir$ac_delim
21589DEFS!$DEFS$ac_delim
21590ECHO_C!$ECHO_C$ac_delim
21591ECHO_N!$ECHO_N$ac_delim
21592ECHO_T!$ECHO_T$ac_delim
21593LIBS!$LIBS$ac_delim
21594build_alias!$build_alias$ac_delim
21595host_alias!$host_alias$ac_delim
21596target_alias!$target_alias$ac_delim
21597LLVM_SRC!$LLVM_SRC$ac_delim
21598LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021599LLVM_VERSION!$LLVM_VERSION$ac_delim
21600CC!$CC$ac_delim
21601CFLAGS!$CFLAGS$ac_delim
21602LDFLAGS!$LDFLAGS$ac_delim
21603CPPFLAGS!$CPPFLAGS$ac_delim
21604ac_ct_CC!$ac_ct_CC$ac_delim
21605EXEEXT!$EXEEXT$ac_delim
21606OBJEXT!$OBJEXT$ac_delim
21607CXX!$CXX$ac_delim
21608CXXFLAGS!$CXXFLAGS$ac_delim
21609ac_ct_CXX!$ac_ct_CXX$ac_delim
21610CPP!$CPP$ac_delim
21611ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21612LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21613subdirs!$subdirs$ac_delim
21614build!$build$ac_delim
21615build_cpu!$build_cpu$ac_delim
21616build_vendor!$build_vendor$ac_delim
21617build_os!$build_os$ac_delim
21618host!$host$ac_delim
21619host_cpu!$host_cpu$ac_delim
21620host_vendor!$host_vendor$ac_delim
21621host_os!$host_os$ac_delim
21622target!$target$ac_delim
21623target_cpu!$target_cpu$ac_delim
21624target_vendor!$target_vendor$ac_delim
21625target_os!$target_os$ac_delim
21626OS!$OS$ac_delim
21627HOST_OS!$HOST_OS$ac_delim
21628TARGET_OS!$TARGET_OS$ac_delim
21629LINKALL!$LINKALL$ac_delim
21630NOLINKALL!$NOLINKALL$ac_delim
21631LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21632LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21633ARCH!$ARCH$ac_delim
21634ENDIAN!$ENDIAN$ac_delim
21635GREP!$GREP$ac_delim
21636EGREP!$EGREP$ac_delim
21637LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21638BUILD_CC!$BUILD_CC$ac_delim
21639BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21640BUILD_CXX!$BUILD_CXX$ac_delim
21641CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021642ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021643ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21644ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21645DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21646ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21647EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21648DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21649DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21650JIT!$JIT$ac_delim
21651TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21652ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21653ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21654ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21655ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21656ENABLE_PIC!$ENABLE_PIC$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021657_ACEOF
21658
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021659 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021660 break
21661 elif $ac_last_try; then
21662 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21663echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21664 { (exit 1); exit 1; }; }
21665 else
21666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021667 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021668done
21669
21670ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21671if test -n "$ac_eof"; then
21672 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21673 ac_eof=`expr $ac_eof + 1`
21674fi
21675
21676cat >>$CONFIG_STATUS <<_ACEOF
21677cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21679_ACEOF
21680sed '
21681s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21682s/^/s,@/; s/!/@,|#_!!_#|/
21683:n
21684t n
21685s/'"$ac_delim"'$/,g/; t
21686s/$/\\/; p
21687N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21688' >>$CONFIG_STATUS <conf$$subs.sed
21689rm -f conf$$subs.sed
21690cat >>$CONFIG_STATUS <<_ACEOF
21691CEOF$ac_eof
21692_ACEOF
21693
21694
21695ac_delim='%!_!# '
21696for ac_last_try in false false false false false :; do
21697 cat >conf$$subs.sed <<_ACEOF
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021698ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021699ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21700ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21701TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21702LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21703LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21704LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21705LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021706OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21707EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21708EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21709BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21710NM!$NM$ac_delim
21711ifGNUmake!$ifGNUmake$ac_delim
21712LN_S!$LN_S$ac_delim
21713CMP!$CMP$ac_delim
21714CP!$CP$ac_delim
21715DATE!$DATE$ac_delim
21716FIND!$FIND$ac_delim
21717MKDIR!$MKDIR$ac_delim
21718MV!$MV$ac_delim
21719RANLIB!$RANLIB$ac_delim
21720AR!$AR$ac_delim
21721RM!$RM$ac_delim
21722SED!$SED$ac_delim
21723TAR!$TAR$ac_delim
21724BINPWD!$BINPWD$ac_delim
21725GRAPHVIZ!$GRAPHVIZ$ac_delim
21726DOT!$DOT$ac_delim
21727FDP!$FDP$ac_delim
21728NEATO!$NEATO$ac_delim
21729TWOPI!$TWOPI$ac_delim
21730CIRCO!$CIRCO$ac_delim
21731GV!$GV$ac_delim
21732DOTTY!$DOTTY$ac_delim
21733XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021734INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21735INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21736INSTALL_DATA!$INSTALL_DATA$ac_delim
21737BZIP2!$BZIP2$ac_delim
21738CAT!$CAT$ac_delim
21739DOXYGEN!$DOXYGEN$ac_delim
21740GROFF!$GROFF$ac_delim
21741GZIPBIN!$GZIPBIN$ac_delim
21742POD2HTML!$POD2HTML$ac_delim
21743POD2MAN!$POD2MAN$ac_delim
21744PDFROFF!$PDFROFF$ac_delim
21745RUNTEST!$RUNTEST$ac_delim
21746TCLSH!$TCLSH$ac_delim
21747ZIP!$ZIP$ac_delim
21748OCAMLC!$OCAMLC$ac_delim
21749OCAMLOPT!$OCAMLOPT$ac_delim
21750OCAMLDEP!$OCAMLDEP$ac_delim
21751OCAMLDOC!$OCAMLDOC$ac_delim
21752GAS!$GAS$ac_delim
21753HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21754INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21755INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21756CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21757CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21758LIBADD_DL!$LIBADD_DL$ac_delim
21759NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21760NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021761COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021762USE_UDIS86!$USE_UDIS86$ac_delim
21763USE_OPROFILE!$USE_OPROFILE$ac_delim
21764HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21765HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21766MMAP_FILE!$MMAP_FILE$ac_delim
21767SHLIBEXT!$SHLIBEXT$ac_delim
21768SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21769LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21770LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21771LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21772LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21773LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21774LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21775LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21776LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21777LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21778LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21779BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21780ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21781OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21782ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21783RPATH!$RPATH$ac_delim
21784RDYNAMIC!$RDYNAMIC$ac_delim
21785LIBOBJS!$LIBOBJS$ac_delim
21786LTLIBOBJS!$LTLIBOBJS$ac_delim
21787_ACEOF
21788
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021790 break
21791 elif $ac_last_try; then
21792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21793echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21794 { (exit 1); exit 1; }; }
21795 else
21796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21797 fi
21798done
21799
21800ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21801if test -n "$ac_eof"; then
21802 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21803 ac_eof=`expr $ac_eof + 1`
21804fi
21805
21806cat >>$CONFIG_STATUS <<_ACEOF
21807cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021808/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21809_ACEOF
21810sed '
21811s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21812s/^/s,@/; s/!/@,|#_!!_#|/
21813:n
21814t n
21815s/'"$ac_delim"'$/,g/; t
21816s/$/\\/; p
21817N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21818' >>$CONFIG_STATUS <conf$$subs.sed
21819rm -f conf$$subs.sed
21820cat >>$CONFIG_STATUS <<_ACEOF
21821:end
21822s/|#_!!_#|//g
21823CEOF$ac_eof
21824_ACEOF
21825
21826
21827# VPATH may cause trouble with some makes, so we remove $(srcdir),
21828# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21829# trailing colons and then remove the whole line if VPATH becomes empty
21830# (actually we leave an empty line to preserve line numbers).
21831if test "x$srcdir" = x.; then
21832 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21833s/:*\$(srcdir):*/:/
21834s/:*\${srcdir}:*/:/
21835s/:*@srcdir@:*/:/
21836s/^\([^=]*=[ ]*\):*/\1/
21837s/:*$//
21838s/^[^=]*=[ ]*$//
21839}'
21840fi
21841
21842cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021843fi # test -n "$CONFIG_FILES"
21844
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021845
21846for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21847do
21848 case $ac_tag in
21849 :[FHLC]) ac_mode=$ac_tag; continue;;
21850 esac
21851 case $ac_mode$ac_tag in
21852 :[FHL]*:*);;
21853 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21854echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21855 { (exit 1); exit 1; }; };;
21856 :[FH]-) ac_tag=-:-;;
21857 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21858 esac
21859 ac_save_IFS=$IFS
21860 IFS=:
21861 set x $ac_tag
21862 IFS=$ac_save_IFS
21863 shift
21864 ac_file=$1
21865 shift
21866
21867 case $ac_mode in
21868 :L) ac_source=$1;;
21869 :[FH])
21870 ac_file_inputs=
21871 for ac_f
21872 do
21873 case $ac_f in
21874 -) ac_f="$tmp/stdin";;
21875 *) # Look for the file first in the build tree, then in the source tree
21876 # (if the path is not absolute). The absolute path cannot be DOS-style,
21877 # because $ac_f cannot contain `:'.
21878 test -f "$ac_f" ||
21879 case $ac_f in
21880 [\\/$]*) false;;
21881 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21882 esac ||
21883 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21884echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21885 { (exit 1); exit 1; }; };;
21886 esac
21887 ac_file_inputs="$ac_file_inputs $ac_f"
21888 done
21889
21890 # Let's still pretend it is `configure' which instantiates (i.e., don't
21891 # use $as_me), people would be surprised to read:
21892 # /* config.h. Generated by config.status. */
21893 configure_input="Generated from "`IFS=:
21894 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21895 if test x"$ac_file" != x-; then
21896 configure_input="$ac_file. $configure_input"
21897 { echo "$as_me:$LINENO: creating $ac_file" >&5
21898echo "$as_me: creating $ac_file" >&6;}
21899 fi
21900
21901 case $ac_tag in
21902 *:-:* | *:-) cat >"$tmp/stdin";;
21903 esac
21904 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021905 esac
21906
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021907 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021908$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021909 X"$ac_file" : 'X\(//\)[^/]' \| \
21910 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021911 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021912echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21914 s//\1/
21915 q
21916 }
21917 /^X\(\/\/\)[^/].*/{
21918 s//\1/
21919 q
21920 }
21921 /^X\(\/\/\)$/{
21922 s//\1/
21923 q
21924 }
21925 /^X\(\/\).*/{
21926 s//\1/
21927 q
21928 }
21929 s/.*/./; q'`
21930 { as_dir="$ac_dir"
21931 case $as_dir in #(
21932 -*) as_dir=./$as_dir;;
21933 esac
21934 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021935 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021936 while :; do
21937 case $as_dir in #(
21938 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21939 *) as_qdir=$as_dir;;
21940 esac
21941 as_dirs="'$as_qdir' $as_dirs"
21942 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021943$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021944 X"$as_dir" : 'X\(//\)[^/]' \| \
21945 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021946 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021947echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21949 s//\1/
21950 q
21951 }
21952 /^X\(\/\/\)[^/].*/{
21953 s//\1/
21954 q
21955 }
21956 /^X\(\/\/\)$/{
21957 s//\1/
21958 q
21959 }
21960 /^X\(\/\).*/{
21961 s//\1/
21962 q
21963 }
21964 s/.*/./; q'`
21965 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000021966 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021967 test -z "$as_dirs" || eval "mkdir $as_dirs"
21968 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21969echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000021970 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000021971 ac_builddir=.
21972
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021973case "$ac_dir" in
21974.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21975*)
John Criswell451f67f2003-10-16 01:45:35 +000021976 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021977 # A ".." for each directory in $ac_dir_suffix.
21978 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21979 case $ac_top_builddir_sub in
21980 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21981 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21982 esac ;;
21983esac
21984ac_abs_top_builddir=$ac_pwd
21985ac_abs_builddir=$ac_pwd$ac_dir_suffix
21986# for backward compatibility:
21987ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000021988
21989case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021990 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000021991 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021992 ac_top_srcdir=$ac_top_builddir_sub
21993 ac_abs_top_srcdir=$ac_pwd ;;
21994 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000021995 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021996 ac_top_srcdir=$srcdir
21997 ac_abs_top_srcdir=$srcdir ;;
21998 *) # Relative name.
21999 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22000 ac_top_srcdir=$ac_top_build_prefix$srcdir
22001 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022002esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022003ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022004
Dan Gohman324f6082009-03-25 00:52:11 +000022005
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022006 case $ac_mode in
22007 :F)
22008 #
22009 # CONFIG_FILE
22010 #
Dan Gohman324f6082009-03-25 00:52:11 +000022011
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022012 case $INSTALL in
22013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22014 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22015 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022016_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022017
22018cat >>$CONFIG_STATUS <<\_ACEOF
22019# If the template does not know about datarootdir, expand it.
22020# FIXME: This hack should be removed a few years after 2.60.
22021ac_datarootdir_hack=; ac_datarootdir_seen=
22022
22023case `sed -n '/datarootdir/ {
22024 p
22025 q
22026}
22027/@datadir@/p
22028/@docdir@/p
22029/@infodir@/p
22030/@localedir@/p
22031/@mandir@/p
22032' $ac_file_inputs` in
22033*datarootdir*) ac_datarootdir_seen=yes;;
22034*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22035 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22036echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22037_ACEOF
22038cat >>$CONFIG_STATUS <<_ACEOF
22039 ac_datarootdir_hack='
22040 s&@datadir@&$datadir&g
22041 s&@docdir@&$docdir&g
22042 s&@infodir@&$infodir&g
22043 s&@localedir@&$localedir&g
22044 s&@mandir@&$mandir&g
22045 s&\\\${datarootdir}&$datarootdir&g' ;;
22046esac
22047_ACEOF
22048
22049# Neutralize VPATH when `$srcdir' = `.'.
22050# Shell code in configure.ac might set extrasub.
22051# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022052cat >>$CONFIG_STATUS <<_ACEOF
22053 sed "$ac_vpsub
22054$extrasub
22055_ACEOF
22056cat >>$CONFIG_STATUS <<\_ACEOF
22057:t
22058/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022059s&@configure_input@&$configure_input&;t t
22060s&@top_builddir@&$ac_top_builddir_sub&;t t
22061s&@srcdir@&$ac_srcdir&;t t
22062s&@abs_srcdir@&$ac_abs_srcdir&;t t
22063s&@top_srcdir@&$ac_top_srcdir&;t t
22064s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22065s&@builddir@&$ac_builddir&;t t
22066s&@abs_builddir@&$ac_abs_builddir&;t t
22067s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022068s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022069$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022070" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022071
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022072test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22073 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22074 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22075 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22076which seems to be undefined. Please make sure it is defined." >&5
22077echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22078which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022080 rm -f "$tmp/stdin"
22081 case $ac_file in
22082 -) cat "$tmp/out"; rm -f "$tmp/out";;
22083 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022084 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022085 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022086
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022087
22088 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22089echo "$as_me: executing $ac_file commands" >&6;}
22090 ;;
22091 esac
22092
22093
22094 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022095 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22096 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22097 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22098 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22099 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22100 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22101 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22102 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22103 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22104 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022105
22106 esac
22107done # for ac_tag
22108
John Criswell451f67f2003-10-16 01:45:35 +000022109
22110{ (exit 0); exit 0; }
22111_ACEOF
22112chmod +x $CONFIG_STATUS
22113ac_clean_files=$ac_clean_files_save
22114
22115
22116# configure is writing to config.log, and then calls config.status.
22117# config.status does its own redirection, appending to config.log.
22118# Unfortunately, on DOS this fails, as config.log is still kept open
22119# by configure, so config.status won't be able to write to it; its
22120# output is simply discarded. So we exec the FD to /dev/null,
22121# effectively closing config.log, so it can be properly (re)opened and
22122# appended to by config.status. When coming back to configure, we
22123# need to make the FD available again.
22124if test "$no_create" != yes; then
22125 ac_cs_success=:
22126 ac_config_status_args=
22127 test "$silent" = yes &&
22128 ac_config_status_args="$ac_config_status_args --quiet"
22129 exec 5>/dev/null
22130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22131 exec 5>>config.log
22132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22133 # would make configure fail if this is the last instruction.
22134 $ac_cs_success || { (exit 1); exit 1; }
22135fi
22136
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022137#
22138# CONFIG_SUBDIRS section.
22139#
22140if test "$no_recursion" != yes; then
22141
22142 # Remove --cache-file and --srcdir arguments so they do not pile up.
22143 ac_sub_configure_args=
22144 ac_prev=
22145 eval "set x $ac_configure_args"
22146 shift
22147 for ac_arg
22148 do
22149 if test -n "$ac_prev"; then
22150 ac_prev=
22151 continue
22152 fi
22153 case $ac_arg in
22154 -cache-file | --cache-file | --cache-fil | --cache-fi \
22155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22156 ac_prev=cache_file ;;
22157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22159 | --c=*)
22160 ;;
22161 --config-cache | -C)
22162 ;;
22163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22164 ac_prev=srcdir ;;
22165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22166 ;;
22167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22168 ac_prev=prefix ;;
22169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22170 ;;
22171 *)
22172 case $ac_arg in
22173 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22174 esac
22175 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22176 esac
22177 done
22178
22179 # Always prepend --prefix to ensure using the same prefix
22180 # in subdir configurations.
22181 ac_arg="--prefix=$prefix"
22182 case $ac_arg in
22183 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22184 esac
22185 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22186
22187 ac_popdir=`pwd`
22188 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22189
22190 # Do not complain, so a configure script can configure whichever
22191 # parts of a large source tree are present.
22192 test -d "$srcdir/$ac_dir" || continue
22193
22194 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22195 echo "$as_me:$LINENO: $ac_msg" >&5
22196 echo "$ac_msg" >&6
22197 { as_dir="$ac_dir"
22198 case $as_dir in #(
22199 -*) as_dir=./$as_dir;;
22200 esac
22201 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22202 as_dirs=
22203 while :; do
22204 case $as_dir in #(
22205 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22206 *) as_qdir=$as_dir;;
22207 esac
22208 as_dirs="'$as_qdir' $as_dirs"
22209 as_dir=`$as_dirname -- "$as_dir" ||
22210$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22211 X"$as_dir" : 'X\(//\)[^/]' \| \
22212 X"$as_dir" : 'X\(//\)$' \| \
22213 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22214echo X"$as_dir" |
22215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22216 s//\1/
22217 q
22218 }
22219 /^X\(\/\/\)[^/].*/{
22220 s//\1/
22221 q
22222 }
22223 /^X\(\/\/\)$/{
22224 s//\1/
22225 q
22226 }
22227 /^X\(\/\).*/{
22228 s//\1/
22229 q
22230 }
22231 s/.*/./; q'`
22232 test -d "$as_dir" && break
22233 done
22234 test -z "$as_dirs" || eval "mkdir $as_dirs"
22235 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22236echo "$as_me: error: cannot create directory $as_dir" >&2;}
22237 { (exit 1); exit 1; }; }; }
22238 ac_builddir=.
22239
22240case "$ac_dir" in
22241.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22242*)
22243 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22244 # A ".." for each directory in $ac_dir_suffix.
22245 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22246 case $ac_top_builddir_sub in
22247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22249 esac ;;
22250esac
22251ac_abs_top_builddir=$ac_pwd
22252ac_abs_builddir=$ac_pwd$ac_dir_suffix
22253# for backward compatibility:
22254ac_top_builddir=$ac_top_build_prefix
22255
22256case $srcdir in
22257 .) # We are building in place.
22258 ac_srcdir=.
22259 ac_top_srcdir=$ac_top_builddir_sub
22260 ac_abs_top_srcdir=$ac_pwd ;;
22261 [\\/]* | ?:[\\/]* ) # Absolute name.
22262 ac_srcdir=$srcdir$ac_dir_suffix;
22263 ac_top_srcdir=$srcdir
22264 ac_abs_top_srcdir=$srcdir ;;
22265 *) # Relative name.
22266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22267 ac_top_srcdir=$ac_top_build_prefix$srcdir
22268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22269esac
22270ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22271
22272
22273 cd "$ac_dir"
22274
22275 # Check for guested configure; otherwise get Cygnus style configure.
22276 if test -f "$ac_srcdir/configure.gnu"; then
22277 ac_sub_configure=$ac_srcdir/configure.gnu
22278 elif test -f "$ac_srcdir/configure"; then
22279 ac_sub_configure=$ac_srcdir/configure
22280 elif test -f "$ac_srcdir/configure.in"; then
22281 # This should be Cygnus configure.
22282 ac_sub_configure=$ac_aux_dir/configure
22283 else
22284 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22285echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22286 ac_sub_configure=
22287 fi
22288
22289 # The recursion is here.
22290 if test -n "$ac_sub_configure"; then
22291 # Make the cache file name correct relative to the subdirectory.
22292 case $cache_file in
22293 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22294 *) # Relative name.
22295 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22296 esac
22297
22298 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22299echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22300 # The eval makes quoting arguments work.
22301 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22302 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22303 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22304echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22305 { (exit 1); exit 1; }; }
22306 fi
22307
22308 cd "$ac_popdir"
22309 done
22310fi
22311