blob: dab1dc5d5a670dfe2fd87c354334cd63c1857fb0 [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
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
694ENABLE_DOCS
695ENABLE_DOXYGEN
696ENABLE_THREADS
697ENABLE_PTHREADS
698ENABLE_PIC
699ENABLE_SHARED
700ENABLE_EMBED_STDCXX
701ENABLE_TIMESTAMPS
702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_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
736PERL
737HAVE_PERL
738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
742CAT
743DOXYGEN
744GROFF
745GZIPBIN
746POD2HTML
747POD2MAN
748PDFROFF
749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
757HAVE_LINK_VERSION_SCRIPT
758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
765USE_UDIS86
766USE_OPROFILE
767HAVE_PTHREAD
768HUGE_VAL_SANITY
769MMAP_FILE
770SHLIBEXT
771SHLIBPATH_VAR
772LLVM_PREFIX
773LLVM_BINDIR
774LLVM_LIBDIR
775LLVM_DATADIR
776LLVM_DOCSDIR
777LLVM_ETCDIR
778LLVM_INCLUDEDIR
779LLVM_INFODIR
780LLVM_MANDIR
781LLVM_CONFIGTIME
782BINDINGS_TO_BUILD
783ALL_BINDINGS
784OCAML_LIBDIR
785ENABLE_VISIBILITY_INLINES_HIDDEN
786RPATH
787RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000788LIBOBJS
789LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000790ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000791 ac_precious_vars='build_alias
792host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000793target_alias
794CC
795CFLAGS
796LDFLAGS
797CPPFLAGS
798CXX
799CXXFLAGS
800CCC
801CPP'
802ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807# The variables have the same names as the options, with
808# dashes changed to underlines.
809cache_file=/dev/null
810exec_prefix=NONE
811no_create=
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
820verbose=
821x_includes=NONE
822x_libraries=NONE
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000829# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000838includedir='${prefix}/include'
839oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000849
850ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000851ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000852for ac_option
853do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000856 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000857 ac_prev=
858 continue
859 fi
860
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000861 case $ac_option in
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *) ac_optarg=yes ;;
864 esac
John Criswell451f67f2003-10-16 01:45:35 +0000865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000892 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000893 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000895 datadir=$ac_optarg ;;
896
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
John Criswell451f67f2003-10-16 01:45:35 +0000904 -disable-* | --disable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000910 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000911 eval enable_$ac_feature=no ;;
912
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
917
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000922
923 -enable-* | --enable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000930 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
John Criswell451f67f2003-10-16 01:45:35 +0000963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
John Criswell451f67f2003-10-16 01:45:35 +0000992 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000993 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
John Criswell451f67f2003-10-16 01:45:35 +00001071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001126 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001127 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001128
1129 -without-* | --without-*)
1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001135 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001136 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001137
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1141
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1148
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1155
1156 -*) { echo "$as_me: error: unrecognized option: $ac_option
1157Try \`$0 --help' for more information." >&2
1158 { (exit 1); exit 1; }; }
1159 ;;
1160
1161 *=*)
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001167 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001168 export $ac_envvar ;;
1169
1170 *)
1171 # FIXME: should be removed in autoconf 3.0.
1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176 ;;
1177
1178 esac
1179done
1180
1181if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 { echo "$as_me: error: missing argument to $ac_option" >&2
1184 { (exit 1); exit 1; }; }
1185fi
1186
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001187# Be sure to have absolute directory names.
1188for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001192do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001193 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001194 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001197 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001200done
1201
1202# There might be people who depend on the old broken behavior: `$host'
1203# used to hold the argument of --host etc.
1204# FIXME: To remove some day.
1205build=$build_alias
1206host=$host_alias
1207target=$target_alias
1208
1209# FIXME: To remove some day.
1210if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1216 cross_compiling=yes
1217 fi
1218fi
1219
1220ac_tool_prefix=
1221test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223test "$silent" = yes && exec 6>/dev/null
1224
1225
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001226ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227ac_ls_di=`ls -di .` &&
1228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 { echo "$as_me: error: Working directory cannot be determined" >&2
1230 { (exit 1); exit 1; }; }
1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 { echo "$as_me: error: pwd does not report name of working directory" >&2
1233 { (exit 1); exit 1; }; }
1234
1235
John Criswell451f67f2003-10-16 01:45:35 +00001236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001241$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001242 X"$0" : 'X\(//\)[^/]' \| \
1243 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001245echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001263 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001264 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001273 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001274fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001275ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276ac_abs_confdir=`(
1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001278 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001279 pwd)`
1280# When building in place, set srcdir=.
1281if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283fi
1284# Remove unnecessary trailing slashes from srcdir.
1285# Double slashes in file names in object file debugging info
1286# mess up M-x gdb in Emacs.
1287case $srcdir in
1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289esac
1290for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295done
John Criswell451f67f2003-10-16 01:45:35 +00001296
1297#
1298# Report the --help message.
1299#
1300if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311Defaults for the options are specified in brackets.
1312
1313Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
John Criswell451f67f2003-10-16 01:45:35 +00001324Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001326 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001328 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001329
1330By default, \`make install' will install all the files in
1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333for instance \`--prefix=\$HOME'.
1334
1335For better control, use the options below.
1336
1337Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001357_ACEOF
1358
1359 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001360
1361System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001365_ACEOF
1366fi
1367
1368if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371 esac
1372 cat <<\_ACEOF
1373
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001374Optional Features:
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-polly Use polly if available (default is YES)
1378 --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-cbe-printf-a Enable C Backend output with hex floating point via
1407 %a (default is YES)
1408 --enable-bindings Build specific language bindings:
1409 all,auto,none,{binding-name} (default=auto)
1410 --enable-libffi Check for the presence of libffi (default is NO)
1411 --enable-ltdl-install install libltdl
1412
John Criswell451f67f2003-10-16 01:45:35 +00001413Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-llvmsrc Location of LLVM Source Code
1417 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001418 --with-optimize-option Select the compiler options to use for optimized
1419 builds
1420 --with-extra-options Specify additional options to compile LLVM with
1421 --with-extra-ld-options Specify additional options to link LLVM with
1422 --with-ocaml-libdir Specify install location for ocaml bindings (default
1423 is stdlib)
1424 --with-clang-resource-dir
1425 Relative directory from the Clang binary for
1426 resource files
1427 --with-c-include-dirs Colon separated list of directories clang will
1428 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001429 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001430 --with-binutils-include Specify path to binutils/include/ containing
1431 plugin-api.h file for gold plugin.
1432 --with-bug-report-url Specify the URL where bug reports should be
1433 submitted (default=http://llvm.org/bugs/)
1434 --with-tclinclude directory where tcl headers are
1435 --with-udis86=<path> Use udis86 external x86 disassembler library
1436 --with-oprofile=<prefix>
1437 Tell OProfile >= 0.9.4 how to symbolize JIT output
1438
1439Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CXX C++ compiler command
1447 CXXFLAGS C++ compiler flags
1448 CPP C preprocessor
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001452
1453Report bugs to <bugs@yourdomain>.
1454_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001455ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001461 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001462 ac_builddir=.
1463
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001464case "$ac_dir" in
1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466*)
John Criswell451f67f2003-10-16 01:45:35 +00001467 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474esac
1475ac_abs_top_builddir=$ac_pwd
1476ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477# for backward compatibility:
1478ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001479
1480case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001481 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001482 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001486 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001493esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001495
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001504 else
1505 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001508 done
1509fi
1510
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001511test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001512if $ac_init_version; then
1513 cat <<\_ACEOF
1514[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001515generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001517Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15182002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001519This configure script is free software; the Free Software Foundation
1520gives unlimited permission to copy, distribute and modify it.
1521_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001522 exit
John Criswell451f67f2003-10-16 01:45:35 +00001523fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001524cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001525This file contains any messages produced by compilers while
1526running configure, to aid debugging if configure makes a mistake.
1527
1528It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001529generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001530
1531 $ $0 $@
1532
1533_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001534exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001535{
1536cat <<_ASUNAME
1537## --------- ##
1538## Platform. ##
1539## --------- ##
1540
1541hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1542uname -m = `(uname -m) 2>/dev/null || echo unknown`
1543uname -r = `(uname -r) 2>/dev/null || echo unknown`
1544uname -s = `(uname -s) 2>/dev/null || echo unknown`
1545uname -v = `(uname -v) 2>/dev/null || echo unknown`
1546
1547/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1548/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1549
1550/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1551/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1552/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001553/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001554/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1555/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1556/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1557
1558_ASUNAME
1559
1560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563 IFS=$as_save_IFS
1564 test -z "$as_dir" && as_dir=.
1565 echo "PATH: $as_dir"
1566done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001567IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001568
1569} >&5
1570
1571cat >&5 <<_ACEOF
1572
1573
1574## ----------- ##
1575## Core tests. ##
1576## ----------- ##
1577
1578_ACEOF
1579
1580
1581# Keep a trace of the command line.
1582# Strip out --no-create and --no-recursion so they do not pile up.
1583# Strip out --silent because we don't want to record it for future runs.
1584# Also quote any args containing shell meta-characters.
1585# Make two passes to allow for proper duplicate-argument suppression.
1586ac_configure_args=
1587ac_configure_args0=
1588ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001589ac_must_keep_next=false
1590for ac_pass in 1 2
1591do
1592 for ac_arg
1593 do
1594 case $ac_arg in
1595 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1597 | -silent | --silent | --silen | --sile | --sil)
1598 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001599 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001600 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1601 esac
1602 case $ac_pass in
1603 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1604 2)
1605 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1606 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001607 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001608 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001609 case $ac_arg in
1610 *=* | --config-cache | -C | -disable-* | --disable-* \
1611 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1612 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1613 | -with-* | --with-* | -without-* | --without-* | --x)
1614 case "$ac_configure_args0 " in
1615 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1616 esac
1617 ;;
1618 -* ) ac_must_keep_next=true ;;
1619 esac
John Criswell451f67f2003-10-16 01:45:35 +00001620 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001621 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001622 ;;
1623 esac
1624 done
1625done
1626$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1627$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1628
1629# When interrupted or exit'd, cleanup temporary files, and complete
1630# config.log. We remove comments because anyway the quotes in there
1631# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001632# WARNING: Use '\'' to represent an apostrophe within the trap.
1633# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001634trap 'exit_status=$?
1635 # Save into config.log some information that might help in debugging.
1636 {
1637 echo
1638
1639 cat <<\_ASBOX
1640## ---------------- ##
1641## Cache variables. ##
1642## ---------------- ##
1643_ASBOX
1644 echo
1645 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001646(
1647 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1648 eval ac_val=\$$ac_var
1649 case $ac_val in #(
1650 *${as_nl}*)
1651 case $ac_var in #(
1652 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1653echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1654 esac
1655 case $ac_var in #(
1656 _ | IFS | as_nl) ;; #(
1657 *) $as_unset $ac_var ;;
1658 esac ;;
1659 esac
1660 done
John Criswell451f67f2003-10-16 01:45:35 +00001661 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001662 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1663 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001664 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001665 "s/'\''/'\''\\\\'\'''\''/g;
1666 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1667 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001668 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001670 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001671 esac |
1672 sort
1673)
John Criswell451f67f2003-10-16 01:45:35 +00001674 echo
1675
1676 cat <<\_ASBOX
1677## ----------------- ##
1678## Output variables. ##
1679## ----------------- ##
1680_ASBOX
1681 echo
1682 for ac_var in $ac_subst_vars
1683 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001684 eval ac_val=\$$ac_var
1685 case $ac_val in
1686 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1687 esac
1688 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001689 done | sort
1690 echo
1691
1692 if test -n "$ac_subst_files"; then
1693 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001694## ------------------- ##
1695## File substitutions. ##
1696## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001697_ASBOX
1698 echo
1699 for ac_var in $ac_subst_files
1700 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001701 eval ac_val=\$$ac_var
1702 case $ac_val in
1703 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1704 esac
1705 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001706 done | sort
1707 echo
1708 fi
1709
1710 if test -s confdefs.h; then
1711 cat <<\_ASBOX
1712## ----------- ##
1713## confdefs.h. ##
1714## ----------- ##
1715_ASBOX
1716 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001717 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001718 echo
1719 fi
1720 test "$ac_signal" != 0 &&
1721 echo "$as_me: caught signal $ac_signal"
1722 echo "$as_me: exit $exit_status"
1723 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001724 rm -f core *.core core.conftest.* &&
1725 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001726 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001727' 0
John Criswell451f67f2003-10-16 01:45:35 +00001728for ac_signal in 1 2 13 15; do
1729 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1730done
1731ac_signal=0
1732
1733# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001734rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001735
1736# Predefined preprocessor variables.
1737
1738cat >>confdefs.h <<_ACEOF
1739#define PACKAGE_NAME "$PACKAGE_NAME"
1740_ACEOF
1741
1742
1743cat >>confdefs.h <<_ACEOF
1744#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1745_ACEOF
1746
1747
1748cat >>confdefs.h <<_ACEOF
1749#define PACKAGE_VERSION "$PACKAGE_VERSION"
1750_ACEOF
1751
1752
1753cat >>confdefs.h <<_ACEOF
1754#define PACKAGE_STRING "$PACKAGE_STRING"
1755_ACEOF
1756
1757
1758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1760_ACEOF
1761
1762
1763# Let the site file select an alternate cache file if it wants to.
1764# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001765if test -n "$CONFIG_SITE"; then
1766 set x "$CONFIG_SITE"
1767elif test "x$prefix" != xNONE; then
1768 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1769else
1770 set x "$ac_default_prefix/share/config.site" \
1771 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001772fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001773shift
1774for ac_site_file
1775do
John Criswell451f67f2003-10-16 01:45:35 +00001776 if test -r "$ac_site_file"; then
1777 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1778echo "$as_me: loading site script $ac_site_file" >&6;}
1779 sed 's/^/| /' "$ac_site_file" >&5
1780 . "$ac_site_file"
1781 fi
1782done
1783
1784if test -r "$cache_file"; then
1785 # Some versions of bash will fail to source /dev/null (special
1786 # files actually), so we avoid doing that.
1787 if test -f "$cache_file"; then
1788 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1789echo "$as_me: loading cache $cache_file" >&6;}
1790 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001791 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1792 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001793 esac
1794 fi
1795else
1796 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1797echo "$as_me: creating cache $cache_file" >&6;}
1798 >$cache_file
1799fi
1800
1801# Check that the precious variables saved in the cache have kept the same
1802# value.
1803ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001804for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001805 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1806 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001807 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1808 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001809 case $ac_old_set,$ac_new_set in
1810 set,)
1811 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1812echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1813 ac_cache_corrupted=: ;;
1814 ,set)
1815 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1816echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1817 ac_cache_corrupted=: ;;
1818 ,);;
1819 *)
1820 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001821 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001822echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001823 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001824echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001825 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001826echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001827 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001828 fi;;
1829 esac
1830 # Pass precious variables to config.status.
1831 if test "$ac_new_set" = set; then
1832 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001833 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001834 *) ac_arg=$ac_var=$ac_new_val ;;
1835 esac
1836 case " $ac_configure_args " in
1837 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1838 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1839 esac
1840 fi
1841done
1842if $ac_cache_corrupted; then
1843 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1844echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1845 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1846echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1847 { (exit 1); exit 1; }; }
1848fi
1849
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
John Criswell451f67f2003-10-16 01:45:35 +00001874ac_ext=c
1875ac_cpp='$CPP $CPPFLAGS'
1876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879
1880
1881
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001882LLVM_SRC_ROOT="../.."
1883LLVM_OBJ_ROOT="../.."
1884
1885LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1886LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001887
1888
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001889# Check whether --with-llvmsrc was given.
1890if test "${with_llvmsrc+set}" = set; then
1891 withval=$with_llvmsrc; llvm_src="$withval"
1892else
1893 llvm_src="$LLVM_ABS_SRC_ROOT"
1894fi
1895
1896 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001897
1898
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001899# Check whether --with-llvmobj was given.
1900if test "${with_llvmobj+set}" = set; then
1901 withval=$with_llvmobj; llvm_obj="$withval"
1902else
1903 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1904fi
Dan Gohman324f6082009-03-25 00:52:11 +00001905
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001906 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001907
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001908 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001909
1910
1911
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001912{ echo "$as_me:$LINENO: checking llvm-config" >&5
1913echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1914llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1915if ! test -f "$llvm_config_path" ; then
1916 llvm_config_path="no"
1917fi
1918{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1919echo "${ECHO_T}$llvm_config_path" >&6; }
1920
1921{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1922echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1923if test "$llvm_config_path" != no ; then
1924 llvm_package_version=`$llvm_config_path --version`
1925else
1926 llvm_package_version="unknown";
1927fi
1928{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1929echo "${ECHO_T}$llvm_package_version" >&6; }
1930LLVM_VERSION=$llvm_package_version
1931
1932
1933
1934
John Criswell451f67f2003-10-16 01:45:35 +00001935ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001936for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001937 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install-sh -c"
1940 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001941 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/install.sh -c"
1944 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001945 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/shtool install -c"
1948 break
1949 fi
1950done
1951if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001952 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1953echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001954 { (exit 1); exit 1; }; }
1955fi
John Criswell451f67f2003-10-16 01:45:35 +00001956
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001957# These three variables are undocumented and unsupported,
1958# and are intended to be withdrawn in a future Autoconf release.
1959# They can cause serious problems if a builder's source tree is in a directory
1960# whose full name contains unusual characters.
1961ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1962ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1963ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001964
1965
1966
1967
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001968ac_ext=c
1969ac_cpp='$CPP $CPPFLAGS'
1970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973if test -n "$ac_tool_prefix"; then
1974 for ac_prog in clang llvm-gcc gcc
1975 do
1976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1980if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1985else
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 break 2
1996 fi
1997done
1998done
1999IFS=$as_save_IFS
2000
2001fi
2002fi
2003CC=$ac_cv_prog_CC
2004if test -n "$CC"; then
2005 { echo "$as_me:$LINENO: result: $CC" >&5
2006echo "${ECHO_T}$CC" >&6; }
2007else
2008 { echo "$as_me:$LINENO: result: no" >&5
2009echo "${ECHO_T}no" >&6; }
2010fi
2011
2012
2013 test -n "$CC" && break
2014 done
2015fi
2016if test -z "$CC"; then
2017 ac_ct_CC=$CC
2018 for ac_prog in clang llvm-gcc gcc
2019do
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021set dummy $ac_prog; ac_word=$2
2022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027 if test -n "$ac_ct_CC"; then
2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 ac_cv_prog_ac_ct_CC="$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2040 fi
2041done
2042done
2043IFS=$as_save_IFS
2044
2045fi
2046fi
2047ac_ct_CC=$ac_cv_prog_ac_ct_CC
2048if test -n "$ac_ct_CC"; then
2049 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2050echo "${ECHO_T}$ac_ct_CC" >&6; }
2051else
2052 { echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6; }
2054fi
2055
2056
2057 test -n "$ac_ct_CC" && break
2058done
2059
2060 if test "x$ac_ct_CC" = x; then
2061 CC=""
2062 else
2063 case $cross_compiling:$ac_tool_warned in
2064yes:)
2065{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2066whose name does not start with the host triplet. If you think this
2067configuration is useful to you, please write to autoconf@gnu.org." >&5
2068echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2069whose name does not start with the host triplet. If you think this
2070configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2071ac_tool_warned=yes ;;
2072esac
2073 CC=$ac_ct_CC
2074 fi
2075fi
2076
2077
2078test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2079See \`config.log' for more details." >&5
2080echo "$as_me: error: no acceptable C compiler found in \$PATH
2081See \`config.log' for more details." >&2;}
2082 { (exit 1); exit 1; }; }
2083
2084# Provide some information about the compiler.
2085echo "$as_me:$LINENO: checking for C compiler version" >&5
2086ac_compiler=`set X $ac_compile; echo $2`
2087{ (ac_try="$ac_compiler --version >&5"
2088case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091esac
2092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2093 (eval "$ac_compiler --version >&5") 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097{ (ac_try="$ac_compiler -v >&5"
2098case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101esac
2102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2103 (eval "$ac_compiler -v >&5") 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2107{ (ac_try="$ac_compiler -V >&5"
2108case "(($ac_try" in
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2111esac
2112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2113 (eval "$ac_compiler -V >&5") 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2117
2118cat >conftest.$ac_ext <<_ACEOF
2119/* confdefs.h. */
2120_ACEOF
2121cat confdefs.h >>conftest.$ac_ext
2122cat >>conftest.$ac_ext <<_ACEOF
2123/* end confdefs.h. */
2124
2125int
2126main ()
2127{
2128
2129 ;
2130 return 0;
2131}
2132_ACEOF
2133ac_clean_files_save=$ac_clean_files
2134ac_clean_files="$ac_clean_files a.out a.exe b.out"
2135# Try to create an executable without -o first, disregard a.out.
2136# It will help us diagnose broken compilers, and finding out an intuition
2137# of exeext.
2138{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2139echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2140ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141#
2142# List of possible output files, starting from the most likely.
2143# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2144# only as a last resort. b.out is created by i960 compilers.
2145ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2146#
2147# The IRIX 6 linker writes into existing files which may not be
2148# executable, retaining their permissions. Remove them first so a
2149# subsequent execution test works.
2150ac_rmfiles=
2151for ac_file in $ac_files
2152do
2153 case $ac_file in
2154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2155 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2156 esac
2157done
2158rm -f $ac_rmfiles
2159
2160if { (ac_try="$ac_link_default"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2166 (eval "$ac_link_default") 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2171# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2172# in a Makefile. We should not override ac_cv_exeext if it was cached,
2173# so that the user can short-circuit this test for compilers unknown to
2174# Autoconf.
2175for ac_file in $ac_files
2176do
2177 test -f "$ac_file" || continue
2178 case $ac_file in
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2180 ;;
2181 [ab].out )
2182 # We found the default executable, but exeext='' is most
2183 # certainly right.
2184 break;;
2185 *.* )
2186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2187 then :; else
2188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 fi
2190 # We set ac_cv_exeext here because the later test for it is not
2191 # safe: cross compilers may not add the suffix if given an `-o'
2192 # argument, so we may need to know it at that point already.
2193 # Even if this section looks crufty: it has the advantage of
2194 # actually working.
2195 break;;
2196 * )
2197 break;;
2198 esac
2199done
2200test "$ac_cv_exeext" = no && ac_cv_exeext=
2201
2202else
2203 echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207See \`config.log' for more details." >&5
2208echo "$as_me: error: C compiler cannot create executables
2209See \`config.log' for more details." >&2;}
2210 { (exit 77); exit 77; }; }
2211fi
2212
2213ac_exeext=$ac_cv_exeext
2214{ echo "$as_me:$LINENO: result: $ac_file" >&5
2215echo "${ECHO_T}$ac_file" >&6; }
2216
2217# Check that the compiler produces executables we can run. If not, either
2218# the compiler is broken, or we cross compile.
2219{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2221# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222# If not cross compiling, check that we can run a simple program.
2223if test "$cross_compiling" != yes; then
2224 if { ac_try='./$ac_file'
2225 { (case "(($ac_try" in
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2228esac
2229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230 (eval "$ac_try") 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 cross_compiling=no
2235 else
2236 if test "$cross_compiling" = maybe; then
2237 cross_compiling=yes
2238 else
2239 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240If you meant to cross compile, use \`--host'.
2241See \`config.log' for more details." >&5
2242echo "$as_me: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2246 fi
2247 fi
2248fi
2249{ echo "$as_me:$LINENO: result: yes" >&5
2250echo "${ECHO_T}yes" >&6; }
2251
2252rm -f a.out a.exe conftest$ac_cv_exeext b.out
2253ac_clean_files=$ac_clean_files_save
2254# Check that the compiler produces executables we can run. If not, either
2255# the compiler is broken, or we cross compile.
2256{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2258{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259echo "${ECHO_T}$cross_compiling" >&6; }
2260
2261{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2263if { (ac_try="$ac_link"
2264case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269 (eval "$ac_link") 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2275# work properly (i.e., refer to `conftest.exe'), while it won't with
2276# `rm'.
2277for ac_file in conftest.exe conftest conftest.*; do
2278 test -f "$ac_file" || continue
2279 case $ac_file in
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 break;;
2283 * ) break;;
2284 esac
2285done
2286else
2287 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2290See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2292fi
2293
2294rm -f conftest$ac_cv_exeext
2295{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2296echo "${ECHO_T}$ac_cv_exeext" >&6; }
2297
2298rm -f conftest.$ac_ext
2299EXEEXT=$ac_cv_exeext
2300ac_exeext=$EXEEXT
2301{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2302echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2303if test "${ac_cv_objext+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
2306 cat >conftest.$ac_ext <<_ACEOF
2307/* confdefs.h. */
2308_ACEOF
2309cat confdefs.h >>conftest.$ac_ext
2310cat >>conftest.$ac_ext <<_ACEOF
2311/* end confdefs.h. */
2312
2313int
2314main ()
2315{
2316
2317 ;
2318 return 0;
2319}
2320_ACEOF
2321rm -f conftest.o conftest.obj
2322if { (ac_try="$ac_compile"
2323case "(($ac_try" in
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2326esac
2327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2328 (eval "$ac_compile") 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 for ac_file in conftest.o conftest.obj conftest.*; do
2333 test -f "$ac_file" || continue;
2334 case $ac_file in
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337 break;;
2338 esac
2339done
2340else
2341 echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&5
2346echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2349fi
2350
2351rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352fi
2353{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354echo "${ECHO_T}$ac_cv_objext" >&6; }
2355OBJEXT=$ac_cv_objext
2356ac_objext=$OBJEXT
2357{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2359if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362 cat >conftest.$ac_ext <<_ACEOF
2363/* confdefs.h. */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h. */
2368
2369int
2370main ()
2371{
2372#ifndef __GNUC__
2373 choke me
2374#endif
2375
2376 ;
2377 return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
2381if { (ac_try="$ac_compile"
2382case "(($ac_try" in
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2385esac
2386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2387 (eval "$ac_compile") 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2395 { (case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398esac
2399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_try") 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (case "(($ac_try" in
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2408esac
2409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_try") 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 ac_compiler_gnu=yes
2415else
2416 echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 ac_compiler_gnu=no
2420fi
2421
2422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424
2425fi
2426{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2427echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2428GCC=`test $ac_compiler_gnu = yes && echo yes`
2429ac_test_CFLAGS=${CFLAGS+set}
2430ac_save_CFLAGS=$CFLAGS
2431{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2432echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2433if test "${ac_cv_prog_cc_g+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436 ac_save_c_werror_flag=$ac_c_werror_flag
2437 ac_c_werror_flag=yes
2438 ac_cv_prog_cc_g=no
2439 CFLAGS="-g"
2440 cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h. */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h. */
2446
2447int
2448main ()
2449{
2450
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (ac_try="$ac_compile"
2457case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460esac
2461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2462 (eval "$ac_compile") 2>conftest.er1
2463 ac_status=$?
2464 grep -v '^ *+' conftest.er1 >conftest.err
2465 rm -f conftest.er1
2466 cat conftest.err >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } &&
2469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2470 { (case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2473esac
2474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_try") 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
2484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_try") 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2489 ac_cv_prog_cc_g=yes
2490else
2491 echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 CFLAGS=""
2495 cat >conftest.$ac_ext <<_ACEOF
2496/* confdefs.h. */
2497_ACEOF
2498cat confdefs.h >>conftest.$ac_ext
2499cat >>conftest.$ac_ext <<_ACEOF
2500/* end confdefs.h. */
2501
2502int
2503main ()
2504{
2505
2506 ;
2507 return 0;
2508}
2509_ACEOF
2510rm -f conftest.$ac_objext
2511if { (ac_try="$ac_compile"
2512case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515esac
2516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_compile") 2>conftest.er1
2518 ac_status=$?
2519 grep -v '^ *+' conftest.er1 >conftest.err
2520 rm -f conftest.er1
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2525 { (case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_try") 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538esac
2539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_try") 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2544 :
2545else
2546 echo "$as_me: failed program was:" >&5
2547sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 ac_c_werror_flag=$ac_save_c_werror_flag
2550 CFLAGS="-g"
2551 cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h. */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h. */
2557
2558int
2559main ()
2560{
2561
2562 ;
2563 return 0;
2564}
2565_ACEOF
2566rm -f conftest.$ac_objext
2567if { (ac_try="$ac_compile"
2568case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571esac
2572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 (eval "$ac_compile") 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2581 { (case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584esac
2585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_try") 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2594esac
2595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_try") 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 ac_cv_prog_cc_g=yes
2601else
2602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605
2606fi
2607
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610
2611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612fi
2613
2614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_c_werror_flag=$ac_save_c_werror_flag
2616fi
2617{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2618echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2619if test "$ac_test_CFLAGS" = set; then
2620 CFLAGS=$ac_save_CFLAGS
2621elif test $ac_cv_prog_cc_g = yes; then
2622 if test "$GCC" = yes; then
2623 CFLAGS="-g -O2"
2624 else
2625 CFLAGS="-g"
2626 fi
2627else
2628 if test "$GCC" = yes; then
2629 CFLAGS="-O2"
2630 else
2631 CFLAGS=
2632 fi
2633fi
2634{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2635echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2636if test "${ac_cv_prog_cc_c89+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639 ac_cv_prog_cc_c89=no
2640ac_save_CC=$CC
2641cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h. */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h. */
2647#include <stdarg.h>
2648#include <stdio.h>
2649#include <sys/types.h>
2650#include <sys/stat.h>
2651/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2652struct buf { int x; };
2653FILE * (*rcsopen) (struct buf *, struct stat *, int);
2654static char *e (p, i)
2655 char **p;
2656 int i;
2657{
2658 return p[i];
2659}
2660static char *f (char * (*g) (char **, int), char **p, ...)
2661{
2662 char *s;
2663 va_list v;
2664 va_start (v,p);
2665 s = g (p, va_arg (v,int));
2666 va_end (v);
2667 return s;
2668}
2669
2670/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2671 function prototypes and stuff, but not '\xHH' hex character constants.
2672 These don't provoke an error unfortunately, instead are silently treated
2673 as 'x'. The following induces an error, until -std is added to get
2674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2675 array size at least. It's necessary to write '\x00'==0 to get something
2676 that's true only with -std. */
2677int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2678
2679/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2680 inside strings and character constants. */
2681#define FOO(x) 'x'
2682int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2683
2684int test (int i, double x);
2685struct s1 {int (*f) (int a);};
2686struct s2 {int (*f) (double a);};
2687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2688int argc;
2689char **argv;
2690int
2691main ()
2692{
2693return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2700do
2701 CC="$ac_save_CC $ac_arg"
2702 rm -f conftest.$ac_objext
2703if { (ac_try="$ac_compile"
2704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compile") 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2717 { (case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_try") 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730esac
2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_try") 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_prog_cc_c89=$ac_arg
2737else
2738 echo "$as_me: failed program was:" >&5
2739sed 's/^/| /' conftest.$ac_ext >&5
2740
2741
2742fi
2743
2744rm -f core conftest.err conftest.$ac_objext
2745 test "x$ac_cv_prog_cc_c89" != "xno" && break
2746done
2747rm -f conftest.$ac_ext
2748CC=$ac_save_CC
2749
2750fi
2751# AC_CACHE_VAL
2752case "x$ac_cv_prog_cc_c89" in
2753 x)
2754 { echo "$as_me:$LINENO: result: none needed" >&5
2755echo "${ECHO_T}none needed" >&6; } ;;
2756 xno)
2757 { echo "$as_me:$LINENO: result: unsupported" >&5
2758echo "${ECHO_T}unsupported" >&6; } ;;
2759 *)
2760 CC="$CC $ac_cv_prog_cc_c89"
2761 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2762echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2763esac
2764
2765
2766ac_ext=c
2767ac_cpp='$CPP $CPPFLAGS'
2768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772ac_ext=cpp
2773ac_cpp='$CXXCPP $CPPFLAGS'
2774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2777if test -z "$CXX"; then
2778 if test -n "$CCC"; then
2779 CXX=$CCC
2780 else
2781 if test -n "$ac_tool_prefix"; then
2782 for ac_prog in clang++ llvm-g++ g++
2783 do
2784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788if test "${ac_cv_prog_CXX+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2790else
2791 if test -n "$CXX"; then
2792 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805done
2806done
2807IFS=$as_save_IFS
2808
2809fi
2810fi
2811CXX=$ac_cv_prog_CXX
2812if test -n "$CXX"; then
2813 { echo "$as_me:$LINENO: result: $CXX" >&5
2814echo "${ECHO_T}$CXX" >&6; }
2815else
2816 { echo "$as_me:$LINENO: result: no" >&5
2817echo "${ECHO_T}no" >&6; }
2818fi
2819
2820
2821 test -n "$CXX" && break
2822 done
2823fi
2824if test -z "$CXX"; then
2825 ac_ct_CXX=$CXX
2826 for ac_prog in clang++ llvm-g++ g++
2827do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829set dummy $ac_prog; ac_word=$2
2830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834else
2835 if test -n "$ac_ct_CXX"; then
2836 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_CXX="$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849done
2850done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2856if test -n "$ac_ct_CXX"; then
2857 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2858echo "${ECHO_T}$ac_ct_CXX" >&6; }
2859else
2860 { echo "$as_me:$LINENO: result: no" >&5
2861echo "${ECHO_T}no" >&6; }
2862fi
2863
2864
2865 test -n "$ac_ct_CXX" && break
2866done
2867
2868 if test "x$ac_ct_CXX" = x; then
2869 CXX="g++"
2870 else
2871 case $cross_compiling:$ac_tool_warned in
2872yes:)
2873{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2874whose name does not start with the host triplet. If you think this
2875configuration is useful to you, please write to autoconf@gnu.org." >&5
2876echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2877whose name does not start with the host triplet. If you think this
2878configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2879ac_tool_warned=yes ;;
2880esac
2881 CXX=$ac_ct_CXX
2882 fi
2883fi
2884
2885 fi
2886fi
2887# Provide some information about the compiler.
2888echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2889ac_compiler=`set X $ac_compile; echo $2`
2890{ (ac_try="$ac_compiler --version >&5"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compiler --version >&5") 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }
2900{ (ac_try="$ac_compiler -v >&5"
2901case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904esac
2905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compiler -v >&5") 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2910{ (ac_try="$ac_compiler -V >&5"
2911case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
2915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_compiler -V >&5") 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }
2920
2921{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2922echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2923if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926 cat >conftest.$ac_ext <<_ACEOF
2927/* confdefs.h. */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h. */
2932
2933int
2934main ()
2935{
2936#ifndef __GNUC__
2937 choke me
2938#endif
2939
2940 ;
2941 return 0;
2942}
2943_ACEOF
2944rm -f conftest.$ac_objext
2945if { (ac_try="$ac_compile"
2946case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compile") 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2959 { (case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_try") 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972esac
2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_try") 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 ac_compiler_gnu=yes
2979else
2980 echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983 ac_compiler_gnu=no
2984fi
2985
2986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2988
2989fi
2990{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2991echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2992GXX=`test $ac_compiler_gnu = yes && echo yes`
2993ac_test_CXXFLAGS=${CXXFLAGS+set}
2994ac_save_CXXFLAGS=$CXXFLAGS
2995{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2996echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2997if test "${ac_cv_prog_cxx_g+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999else
3000 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3001 ac_cxx_werror_flag=yes
3002 ac_cv_prog_cxx_g=no
3003 CXXFLAGS="-g"
3004 cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h. */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h. */
3010
3011int
3012main ()
3013{
3014
3015 ;
3016 return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext
3020if { (ac_try="$ac_compile"
3021case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compile") 2>conftest.er1
3027 ac_status=$?
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037esac
3038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_try") 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_prog_cxx_g=yes
3054else
3055 echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058 CXXFLAGS=""
3059 cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h. */
3065
3066int
3067main ()
3068{
3069
3070 ;
3071 return 0;
3072}
3073_ACEOF
3074rm -f conftest.$ac_objext
3075if { (ac_try="$ac_compile"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 :
3109else
3110 echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3114 CXXFLAGS="-g"
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */
3121
3122int
3123main ()
3124{
3125
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158esac
3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 ac_cv_prog_cxx_g=yes
3165else
3166 echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169
3170fi
3171
3172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173fi
3174
3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176fi
3177
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3180fi
3181{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3182echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3183if test "$ac_test_CXXFLAGS" = set; then
3184 CXXFLAGS=$ac_save_CXXFLAGS
3185elif test $ac_cv_prog_cxx_g = yes; then
3186 if test "$GXX" = yes; then
3187 CXXFLAGS="-g -O2"
3188 else
3189 CXXFLAGS="-g"
3190 fi
3191else
3192 if test "$GXX" = yes; then
3193 CXXFLAGS="-O2"
3194 else
3195 CXXFLAGS=
3196 fi
3197fi
3198ac_ext=c
3199ac_cpp='$CPP $CPPFLAGS'
3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3210echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3211# On Suns, sometimes $CPP names a directory.
3212if test -n "$CPP" && test -d "$CPP"; then
3213 CPP=
3214fi
3215if test -z "$CPP"; then
3216 if test "${ac_cv_prog_CPP+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219 # Double quotes because CPP needs to be expanded
3220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3221 do
3222 ac_preproc_ok=false
3223for ac_c_preproc_warn_flag in '' yes
3224do
3225 # Use a header file that comes with gcc, so configuring glibc
3226 # with a fresh cross-compiler works.
3227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228 # <limits.h> exists even on freestanding compilers.
3229 # On the NeXT, cc -E runs the code through the compiler's parser,
3230 # not just through cpp. "Syntax error" is here to catch this case.
3231 cat >conftest.$ac_ext <<_ACEOF
3232/* confdefs.h. */
3233_ACEOF
3234cat confdefs.h >>conftest.$ac_ext
3235cat >>conftest.$ac_ext <<_ACEOF
3236/* end confdefs.h. */
3237#ifdef __STDC__
3238# include <limits.h>
3239#else
3240# include <assert.h>
3241#endif
3242 Syntax error
3243_ACEOF
3244if { (ac_try="$ac_cpp conftest.$ac_ext"
3245case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248esac
3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } >/dev/null; then
3257 if test -s conftest.err; then
3258 ac_cpp_err=$ac_c_preproc_warn_flag
3259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3260 else
3261 ac_cpp_err=
3262 fi
3263else
3264 ac_cpp_err=yes
3265fi
3266if test -z "$ac_cpp_err"; then
3267 :
3268else
3269 echo "$as_me: failed program was:" >&5
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
3272 # Broken: fails on valid input.
3273continue
3274fi
3275
3276rm -f conftest.err conftest.$ac_ext
3277
3278 # OK, works on sane cases. Now check whether nonexistent headers
3279 # can be detected and how.
3280 cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h. */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h. */
3286#include <ac_nonexistent.h>
3287_ACEOF
3288if { (ac_try="$ac_cpp conftest.$ac_ext"
3289case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
3293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } >/dev/null; then
3301 if test -s conftest.err; then
3302 ac_cpp_err=$ac_c_preproc_warn_flag
3303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3304 else
3305 ac_cpp_err=
3306 fi
3307else
3308 ac_cpp_err=yes
3309fi
3310if test -z "$ac_cpp_err"; then
3311 # Broken: success on invalid input.
3312continue
3313else
3314 echo "$as_me: failed program was:" >&5
3315sed 's/^/| /' conftest.$ac_ext >&5
3316
3317 # Passes both tests.
3318ac_preproc_ok=:
3319break
3320fi
3321
3322rm -f conftest.err conftest.$ac_ext
3323
3324done
3325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3326rm -f conftest.err conftest.$ac_ext
3327if $ac_preproc_ok; then
3328 break
3329fi
3330
3331 done
3332 ac_cv_prog_CPP=$CPP
3333
3334fi
3335 CPP=$ac_cv_prog_CPP
3336else
3337 ac_cv_prog_CPP=$CPP
3338fi
3339{ echo "$as_me:$LINENO: result: $CPP" >&5
3340echo "${ECHO_T}$CPP" >&6; }
3341ac_preproc_ok=false
3342for ac_c_preproc_warn_flag in '' yes
3343do
3344 # Use a header file that comes with gcc, so configuring glibc
3345 # with a fresh cross-compiler works.
3346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347 # <limits.h> exists even on freestanding compilers.
3348 # On the NeXT, cc -E runs the code through the compiler's parser,
3349 # not just through cpp. "Syntax error" is here to catch this case.
3350 cat >conftest.$ac_ext <<_ACEOF
3351/* confdefs.h. */
3352_ACEOF
3353cat confdefs.h >>conftest.$ac_ext
3354cat >>conftest.$ac_ext <<_ACEOF
3355/* end confdefs.h. */
3356#ifdef __STDC__
3357# include <limits.h>
3358#else
3359# include <assert.h>
3360#endif
3361 Syntax error
3362_ACEOF
3363if { (ac_try="$ac_cpp conftest.$ac_ext"
3364case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367esac
3368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_c_preproc_warn_flag
3378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3379 else
3380 ac_cpp_err=
3381 fi
3382else
3383 ac_cpp_err=yes
3384fi
3385if test -z "$ac_cpp_err"; then
3386 :
3387else
3388 echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 # Broken: fails on valid input.
3392continue
3393fi
3394
3395rm -f conftest.err conftest.$ac_ext
3396
3397 # OK, works on sane cases. Now check whether nonexistent headers
3398 # can be detected and how.
3399 cat >conftest.$ac_ext <<_ACEOF
3400/* confdefs.h. */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h. */
3405#include <ac_nonexistent.h>
3406_ACEOF
3407if { (ac_try="$ac_cpp conftest.$ac_ext"
3408case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411esac
3412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3414 ac_status=$?
3415 grep -v '^ *+' conftest.er1 >conftest.err
3416 rm -f conftest.er1
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev/null; then
3420 if test -s conftest.err; then
3421 ac_cpp_err=$ac_c_preproc_warn_flag
3422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423 else
3424 ac_cpp_err=
3425 fi
3426else
3427 ac_cpp_err=yes
3428fi
3429if test -z "$ac_cpp_err"; then
3430 # Broken: success on invalid input.
3431continue
3432else
3433 echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 # Passes both tests.
3437ac_preproc_ok=:
3438break
3439fi
3440
3441rm -f conftest.err conftest.$ac_ext
3442
3443done
3444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445rm -f conftest.err conftest.$ac_ext
3446if $ac_preproc_ok; then
3447 :
3448else
3449 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3450See \`config.log' for more details." >&5
3451echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3452See \`config.log' for more details." >&2;}
3453 { (exit 1); exit 1; }; }
3454fi
3455
3456ac_ext=c
3457ac_cpp='$CPP $CPPFLAGS'
3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
3462
3463
3464
3465# Check whether --enable-polly was given.
3466if test "${enable_polly+set}" = set; then
3467 enableval=$enable_polly;
3468else
3469 enableval=default
3470fi
3471
3472case "$enableval" in
3473 yes) ENABLE_POLLY=1
3474 ;;
3475 no) ENABLE_POLLY=0
3476 ;;
3477 default) ENABLE_POLLY=1
3478 ;;
3479 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3480echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3481 { (exit 1); exit 1; }; } ;;
3482esac
3483
3484
3485if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3486 LLVM_HAS_POLLY=1
3487
3488 subdirs="$subdirs tools/polly"
3489
3490fi
3491
3492
3493# Make sure we can run config.sub.
3494$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3495 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3496echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3497 { (exit 1); exit 1; }; }
3498
3499{ echo "$as_me:$LINENO: checking build system type" >&5
3500echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3501if test "${ac_cv_build+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 ac_build_alias=$build_alias
3505test "x$ac_build_alias" = x &&
3506 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3507test "x$ac_build_alias" = x &&
3508 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3509echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3510 { (exit 1); exit 1; }; }
3511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3512 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3513echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3514 { (exit 1); exit 1; }; }
3515
3516fi
3517{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3518echo "${ECHO_T}$ac_cv_build" >&6; }
3519case $ac_cv_build in
3520*-*-*) ;;
3521*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3522echo "$as_me: error: invalid value of canonical build" >&2;}
3523 { (exit 1); exit 1; }; };;
3524esac
3525build=$ac_cv_build
3526ac_save_IFS=$IFS; IFS='-'
3527set x $ac_cv_build
3528shift
3529build_cpu=$1
3530build_vendor=$2
3531shift; shift
3532# Remember, the first character of IFS is used to create $*,
3533# except with old shells:
3534build_os=$*
3535IFS=$ac_save_IFS
3536case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3537
3538
3539{ echo "$as_me:$LINENO: checking host system type" >&5
3540echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3541if test "${ac_cv_host+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 if test "x$host_alias" = x; then
3545 ac_cv_host=$ac_cv_build
3546else
3547 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3548 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3549echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3550 { (exit 1); exit 1; }; }
3551fi
3552
3553fi
3554{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3555echo "${ECHO_T}$ac_cv_host" >&6; }
3556case $ac_cv_host in
3557*-*-*) ;;
3558*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3559echo "$as_me: error: invalid value of canonical host" >&2;}
3560 { (exit 1); exit 1; }; };;
3561esac
3562host=$ac_cv_host
3563ac_save_IFS=$IFS; IFS='-'
3564set x $ac_cv_host
3565shift
3566host_cpu=$1
3567host_vendor=$2
3568shift; shift
3569# Remember, the first character of IFS is used to create $*,
3570# except with old shells:
3571host_os=$*
3572IFS=$ac_save_IFS
3573case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3574
3575
3576{ echo "$as_me:$LINENO: checking target system type" >&5
3577echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3578if test "${ac_cv_target+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581 if test "x$target_alias" = x; then
3582 ac_cv_target=$ac_cv_host
3583else
3584 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3585 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3586echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3587 { (exit 1); exit 1; }; }
3588fi
3589
3590fi
3591{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3592echo "${ECHO_T}$ac_cv_target" >&6; }
3593case $ac_cv_target in
3594*-*-*) ;;
3595*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3596echo "$as_me: error: invalid value of canonical target" >&2;}
3597 { (exit 1); exit 1; }; };;
3598esac
3599target=$ac_cv_target
3600ac_save_IFS=$IFS; IFS='-'
3601set x $ac_cv_target
3602shift
3603target_cpu=$1
3604target_vendor=$2
3605shift; shift
3606# Remember, the first character of IFS is used to create $*,
3607# except with old shells:
3608target_os=$*
3609IFS=$ac_save_IFS
3610case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3611
3612
3613# The aliases save the names the user supplied, while $host etc.
3614# will get canonicalized.
3615test -n "$target_alias" &&
3616 test "$program_prefix$program_suffix$program_transform_name" = \
3617 NONENONEs,x,x, &&
3618 program_prefix=${target_alias}-
3619
3620{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3621echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3622if test "${llvm_cv_os_type+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625 case $host in
3626 *-*-aix*)
3627 llvm_cv_link_all_option="-Wl,--whole-archive"
3628 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3629 llvm_cv_os_type="AIX"
3630 llvm_cv_platform_type="Unix" ;;
3631 *-*-irix*)
3632 llvm_cv_link_all_option="-Wl,--whole-archive"
3633 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3634 llvm_cv_os_type="IRIX"
3635 llvm_cv_platform_type="Unix" ;;
3636 *-*-cygwin*)
3637 llvm_cv_link_all_option="-Wl,--whole-archive"
3638 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3639 llvm_cv_os_type="Cygwin"
3640 llvm_cv_platform_type="Unix" ;;
3641 *-*-darwin*)
3642 llvm_cv_link_all_option="-Wl,-all_load"
3643 llvm_cv_no_link_all_option="-Wl,-noall_load"
3644 llvm_cv_os_type="Darwin"
3645 llvm_cv_platform_type="Unix" ;;
3646 *-*-minix*)
3647 llvm_cv_link_all_option="-Wl,-all_load"
3648 llvm_cv_no_link_all_option="-Wl,-noall_load"
3649 llvm_cv_os_type="Minix"
3650 llvm_cv_platform_type="Unix" ;;
3651 *-*-freebsd*)
3652 llvm_cv_link_all_option="-Wl,--whole-archive"
3653 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3654 llvm_cv_os_type="FreeBSD"
3655 llvm_cv_platform_type="Unix" ;;
3656 *-*-openbsd*)
3657 llvm_cv_link_all_option="-Wl,--whole-archive"
3658 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3659 llvm_cv_os_type="OpenBSD"
3660 llvm_cv_platform_type="Unix" ;;
3661 *-*-netbsd*)
3662 llvm_cv_link_all_option="-Wl,--whole-archive"
3663 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3664 llvm_cv_os_type="NetBSD"
3665 llvm_cv_platform_type="Unix" ;;
3666 *-*-dragonfly*)
3667 llvm_cv_link_all_option="-Wl,--whole-archive"
3668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669 llvm_cv_os_type="DragonFly"
3670 llvm_cv_platform_type="Unix" ;;
3671 *-*-hpux*)
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="HP-UX"
3675 llvm_cv_platform_type="Unix" ;;
3676 *-*-interix*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="Interix"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-linux*)
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Linux"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-solaris*)
3687 llvm_cv_link_all_option="-Wl,-z,allextract"
3688 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3689 llvm_cv_os_type="SunOS"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-auroraux*)
3692 llvm_cv_link_all_option="-Wl,-z,allextract"
3693 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3694 llvm_cv_os_type="AuroraUX"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-win32*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="Win32"
3700 llvm_cv_platform_type="Win32" ;;
3701 *-*-mingw*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="MingW"
3705 llvm_cv_platform_type="Win32" ;;
3706 *-*-haiku*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="Haiku"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-unknown-eabi*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="Freestanding"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-unknown-elf*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="Freestanding"
3720 llvm_cv_platform_type="Unix" ;;
3721 *)
3722 llvm_cv_link_all_option=""
3723 llvm_cv_no_link_all_option=""
3724 llvm_cv_os_type="Unknown"
3725 llvm_cv_platform_type="Unknown" ;;
3726esac
3727fi
3728{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3729echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3730
3731{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3732echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3733if test "${llvm_cv_target_os_type+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 case $target in
3737 *-*-aix*)
3738 llvm_cv_target_os_type="AIX" ;;
3739 *-*-irix*)
3740 llvm_cv_target_os_type="IRIX" ;;
3741 *-*-cygwin*)
3742 llvm_cv_target_os_type="Cygwin" ;;
3743 *-*-darwin*)
3744 llvm_cv_target_os_type="Darwin" ;;
3745 *-*-minix*)
3746 llvm_cv_target_os_type="Minix" ;;
3747 *-*-freebsd*)
3748 llvm_cv_target_os_type="FreeBSD" ;;
3749 *-*-openbsd*)
3750 llvm_cv_target_os_type="OpenBSD" ;;
3751 *-*-netbsd*)
3752 llvm_cv_target_os_type="NetBSD" ;;
3753 *-*-dragonfly*)
3754 llvm_cv_target_os_type="DragonFly" ;;
3755 *-*-hpux*)
3756 llvm_cv_target_os_type="HP-UX" ;;
3757 *-*-interix*)
3758 llvm_cv_target_os_type="Interix" ;;
3759 *-*-linux*)
3760 llvm_cv_target_os_type="Linux" ;;
3761 *-*-solaris*)
3762 llvm_cv_target_os_type="SunOS" ;;
3763 *-*-auroraux*)
3764 llvm_cv_target_os_type="AuroraUX" ;;
3765 *-*-win32*)
3766 llvm_cv_target_os_type="Win32" ;;
3767 *-*-mingw*)
3768 llvm_cv_target_os_type="MingW" ;;
3769 *-*-haiku*)
3770 llvm_cv_target_os_type="Haiku" ;;
3771 *-*-rtems*)
3772 llvm_cv_target_os_type="RTEMS" ;;
3773 *-*-nacl*)
3774 llvm_cv_target_os_type="NativeClient" ;;
3775 *-unknown-eabi*)
3776 llvm_cv_target_os_type="Freestanding" ;;
3777 *)
3778 llvm_cv_target_os_type="Unknown" ;;
3779esac
3780fi
3781{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3782echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3783
3784if test "$llvm_cv_os_type" = "Unknown" ; then
3785 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3786echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3787 { (exit 1); exit 1; }; }
3788fi
3789
3790OS=$llvm_cv_os_type
3791
3792HOST_OS=$llvm_cv_os_type
3793
3794TARGET_OS=$llvm_cv_target_os_type
3795
3796
3797LINKALL=$llvm_cv_link_all_option
3798
3799NOLINKALL=$llvm_cv_no_link_all_option
3800
3801
3802case $llvm_cv_platform_type in
3803 Unix)
3804
3805cat >>confdefs.h <<\_ACEOF
3806#define LLVM_ON_UNIX 1
3807_ACEOF
3808
3809 LLVM_ON_UNIX=1
3810
3811 LLVM_ON_WIN32=0
3812
3813 ;;
3814 Win32)
3815
3816cat >>confdefs.h <<\_ACEOF
3817#define LLVM_ON_WIN32 1
3818_ACEOF
3819
3820 LLVM_ON_UNIX=0
3821
3822 LLVM_ON_WIN32=1
3823
3824 ;;
3825esac
3826
3827{ echo "$as_me:$LINENO: checking target architecture" >&5
3828echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3829if test "${llvm_cv_target_arch+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832 case $target in
3833 i?86-*) llvm_cv_target_arch="x86" ;;
3834 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3835 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3836 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003837 arm*-*) llvm_cv_target_arch="ARM" ;;
3838 mips-*) llvm_cv_target_arch="Mips" ;;
3839 xcore-*) llvm_cv_target_arch="XCore" ;;
3840 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003841 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003842 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3843 ptx-*) llvm_cv_target_arch="PTX" ;;
3844 *) llvm_cv_target_arch="Unknown" ;;
3845esac
3846fi
3847{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3848echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3849
3850if test "$llvm_cv_target_arch" = "Unknown" ; then
3851 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3852echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3853fi
3854
3855# Determine the LLVM native architecture for the target
3856case "$llvm_cv_target_arch" in
3857 x86) LLVM_NATIVE_ARCH="X86" ;;
3858 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3859 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3860esac
3861
3862ARCH=$llvm_cv_target_arch
3863
3864
3865
3866
3867{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3868echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3869if test "${ac_cv_path_GREP+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
3872 # Extract the first word of "grep ggrep" to use in msg output
3873if test -z "$GREP"; then
3874set dummy grep ggrep; ac_prog_name=$2
3875if test "${ac_cv_path_GREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 ac_path_GREP_found=false
3879# Loop through the user's path and test for each of PROGNAME-LIST
3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_prog in grep ggrep; do
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3888 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3889 # Check for GNU ac_path_GREP and select it if it is found.
3890 # Check for GNU $ac_path_GREP
3891case `"$ac_path_GREP" --version 2>&1` in
3892*GNU*)
3893 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3894*)
3895 ac_count=0
3896 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3897 while :
3898 do
3899 cat "conftest.in" "conftest.in" >"conftest.tmp"
3900 mv "conftest.tmp" "conftest.in"
3901 cp "conftest.in" "conftest.nl"
3902 echo 'GREP' >> "conftest.nl"
3903 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905 ac_count=`expr $ac_count + 1`
3906 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3907 # Best one so far, save it but keep looking for a better one
3908 ac_cv_path_GREP="$ac_path_GREP"
3909 ac_path_GREP_max=$ac_count
3910 fi
3911 # 10*(2^10) chars as input seems more than enough
3912 test $ac_count -gt 10 && break
3913 done
3914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915esac
3916
3917
3918 $ac_path_GREP_found && break 3
3919 done
3920done
3921
3922done
3923IFS=$as_save_IFS
3924
3925
3926fi
3927
3928GREP="$ac_cv_path_GREP"
3929if test -z "$GREP"; then
3930 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3931echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3932 { (exit 1); exit 1; }; }
3933fi
3934
3935else
3936 ac_cv_path_GREP=$GREP
3937fi
3938
3939
3940fi
3941{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3942echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3943 GREP="$ac_cv_path_GREP"
3944
3945
3946{ echo "$as_me:$LINENO: checking for egrep" >&5
3947echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3948if test "${ac_cv_path_EGREP+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3952 then ac_cv_path_EGREP="$GREP -E"
3953 else
3954 # Extract the first word of "egrep" to use in msg output
3955if test -z "$EGREP"; then
3956set dummy egrep; ac_prog_name=$2
3957if test "${ac_cv_path_EGREP+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960 ac_path_EGREP_found=false
3961# Loop through the user's path and test for each of PROGNAME-LIST
3962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3964do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_prog in egrep; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3970 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3971 # Check for GNU ac_path_EGREP and select it if it is found.
3972 # Check for GNU $ac_path_EGREP
3973case `"$ac_path_EGREP" --version 2>&1` in
3974*GNU*)
3975 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3976*)
3977 ac_count=0
3978 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3979 while :
3980 do
3981 cat "conftest.in" "conftest.in" >"conftest.tmp"
3982 mv "conftest.tmp" "conftest.in"
3983 cp "conftest.in" "conftest.nl"
3984 echo 'EGREP' >> "conftest.nl"
3985 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987 ac_count=`expr $ac_count + 1`
3988 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3989 # Best one so far, save it but keep looking for a better one
3990 ac_cv_path_EGREP="$ac_path_EGREP"
3991 ac_path_EGREP_max=$ac_count
3992 fi
3993 # 10*(2^10) chars as input seems more than enough
3994 test $ac_count -gt 10 && break
3995 done
3996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997esac
3998
3999
4000 $ac_path_EGREP_found && break 3
4001 done
4002done
4003
4004done
4005IFS=$as_save_IFS
4006
4007
4008fi
4009
4010EGREP="$ac_cv_path_EGREP"
4011if test -z "$EGREP"; then
4012 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4013echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4014 { (exit 1); exit 1; }; }
4015fi
4016
4017else
4018 ac_cv_path_EGREP=$EGREP
4019fi
4020
4021
4022 fi
4023fi
4024{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4025echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4026 EGREP="$ac_cv_path_EGREP"
4027
4028
4029{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4030echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4031if test "${ac_cv_header_stdc+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034 cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040#include <stdlib.h>
4041#include <stdarg.h>
4042#include <string.h>
4043#include <float.h>
4044
4045int
4046main ()
4047{
4048
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext
4054if { (ac_try="$ac_compile"
4055case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068 { (case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071esac
4072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_try") 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_header_stdc=yes
4088else
4089 echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 ac_cv_header_stdc=no
4093fi
4094
4095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096
4097if test $ac_cv_header_stdc = yes; then
4098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4099 cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h. */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h. */
4105#include <string.h>
4106
4107_ACEOF
4108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 $EGREP "memchr" >/dev/null 2>&1; then
4110 :
4111else
4112 ac_cv_header_stdc=no
4113fi
4114rm -f conftest*
4115
4116fi
4117
4118if test $ac_cv_header_stdc = yes; then
4119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4120 cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
4126#include <stdlib.h>
4127
4128_ACEOF
4129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130 $EGREP "free" >/dev/null 2>&1; then
4131 :
4132else
4133 ac_cv_header_stdc=no
4134fi
4135rm -f conftest*
4136
4137fi
4138
4139if test $ac_cv_header_stdc = yes; then
4140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4141 if test "$cross_compiling" = yes; then
4142 :
4143else
4144 cat >conftest.$ac_ext <<_ACEOF
4145/* confdefs.h. */
4146_ACEOF
4147cat confdefs.h >>conftest.$ac_ext
4148cat >>conftest.$ac_ext <<_ACEOF
4149/* end confdefs.h. */
4150#include <ctype.h>
4151#include <stdlib.h>
4152#if ((' ' & 0x0FF) == 0x020)
4153# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4154# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4155#else
4156# define ISLOWER(c) \
4157 (('a' <= (c) && (c) <= 'i') \
4158 || ('j' <= (c) && (c) <= 'r') \
4159 || ('s' <= (c) && (c) <= 'z'))
4160# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4161#endif
4162
4163#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4164int
4165main ()
4166{
4167 int i;
4168 for (i = 0; i < 256; i++)
4169 if (XOR (islower (i), ISLOWER (i))
4170 || toupper (i) != TOUPPER (i))
4171 return 2;
4172 return 0;
4173}
4174_ACEOF
4175rm -f conftest$ac_exeext
4176if { (ac_try="$ac_link"
4177case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180esac
4181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_link") 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 :
4196else
4197 echo "$as_me: program exited with status $ac_status" >&5
4198echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201( exit $ac_status )
4202ac_cv_header_stdc=no
4203fi
4204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4205fi
4206
4207
4208fi
4209fi
4210{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4211echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4212if test $ac_cv_header_stdc = yes; then
4213
4214cat >>confdefs.h <<\_ACEOF
4215#define STDC_HEADERS 1
4216_ACEOF
4217
4218fi
4219
4220# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4231 inttypes.h stdint.h unistd.h
4232do
4233as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239 cat >conftest.$ac_ext <<_ACEOF
4240/* confdefs.h. */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
4244/* end confdefs.h. */
4245$ac_includes_default
4246
4247#include <$ac_header>
4248_ACEOF
4249rm -f conftest.$ac_objext
4250if { (ac_try="$ac_compile"
4251case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 eval "$as_ac_Header=yes"
4284else
4285 echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288 eval "$as_ac_Header=no"
4289fi
4290
4291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292fi
4293ac_res=`eval echo '${'$as_ac_Header'}'`
4294 { echo "$as_me:$LINENO: result: $ac_res" >&5
4295echo "${ECHO_T}$ac_res" >&6; }
4296if test `eval echo '${'$as_ac_Header'}'` = yes; then
4297 cat >>confdefs.h <<_ACEOF
4298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4299_ACEOF
4300
4301fi
4302
4303done
4304
4305
4306{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4307echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4308if test "${ac_cv_c_bigendian+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311 # See if sys/param.h defines the BYTE_ORDER macro.
4312cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
4318#include <sys/types.h>
4319#include <sys/param.h>
4320
4321int
4322main ()
4323{
4324#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4325 bogus endian macros
4326#endif
4327
4328 ;
4329 return 0;
4330}
4331_ACEOF
4332rm -f conftest.$ac_objext
4333if { (ac_try="$ac_compile"
4334case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_compile") 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest.$ac_objext'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360esac
4361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 # It does; now see whether it defined to BIG_ENDIAN or not.
4367cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373#include <sys/types.h>
4374#include <sys/param.h>
4375
4376int
4377main ()
4378{
4379#if BYTE_ORDER != BIG_ENDIAN
4380 not big endian
4381#endif
4382
4383 ;
4384 return 0;
4385}
4386_ACEOF
4387rm -f conftest.$ac_objext
4388if { (ac_try="$ac_compile"
4389case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392esac
4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4402 { (case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_try") 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415esac
4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 ac_cv_c_bigendian=yes
4422else
4423 echo "$as_me: failed program was:" >&5
4424sed 's/^/| /' conftest.$ac_ext >&5
4425
4426 ac_cv_c_bigendian=no
4427fi
4428
4429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430else
4431 echo "$as_me: failed program was:" >&5
4432sed 's/^/| /' conftest.$ac_ext >&5
4433
4434 # It does not; compile a test program.
4435if test "$cross_compiling" = yes; then
4436 # try to guess the endianness by grepping values into an object file
4437 ac_cv_c_bigendian=unknown
4438 cat >conftest.$ac_ext <<_ACEOF
4439/* confdefs.h. */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h. */
4444short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4445short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4446void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4447short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4448short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4449void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4450int
4451main ()
4452{
4453 _ascii (); _ebcdic ();
4454 ;
4455 return 0;
4456}
4457_ACEOF
4458rm -f conftest.$ac_objext
4459if { (ac_try="$ac_compile"
4460case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463esac
4464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4473 { (case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476esac
4477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_try") 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; } &&
4482 { ac_try='test -s conftest.$ac_objext'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486esac
4487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4493 ac_cv_c_bigendian=yes
4494fi
4495if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4496 if test "$ac_cv_c_bigendian" = unknown; then
4497 ac_cv_c_bigendian=no
4498 else
4499 # finding both strings is unlikely to happen, but who knows?
4500 ac_cv_c_bigendian=unknown
4501 fi
4502fi
4503else
4504 echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
4506
4507
4508fi
4509
4510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511else
4512 cat >conftest.$ac_ext <<_ACEOF
4513/* confdefs.h. */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4517/* end confdefs.h. */
4518$ac_includes_default
4519int
4520main ()
4521{
4522
4523 /* Are we little or big endian? From Harbison&Steele. */
4524 union
4525 {
4526 long int l;
4527 char c[sizeof (long int)];
4528 } u;
4529 u.l = 1;
4530 return u.c[sizeof (long int) - 1] == 1;
4531
4532 ;
4533 return 0;
4534}
4535_ACEOF
4536rm -f conftest$ac_exeext
4537if { (ac_try="$ac_link"
4538case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541esac
4542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_link") 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4547 { (case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550esac
4551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_try") 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_c_bigendian=no
4557else
4558 echo "$as_me: program exited with status $ac_status" >&5
4559echo "$as_me: failed program was:" >&5
4560sed 's/^/| /' conftest.$ac_ext >&5
4561
4562( exit $ac_status )
4563ac_cv_c_bigendian=yes
4564fi
4565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4566fi
4567
4568
4569fi
4570
4571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572fi
4573{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4574echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4575case $ac_cv_c_bigendian in
4576 yes)
4577 ENDIAN=big
4578 ;;
4579 no)
4580 ENDIAN=little
4581 ;;
4582 *)
4583 { { echo "$as_me:$LINENO: error: unknown endianness
4584presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4585echo "$as_me: error: unknown endianness
4586presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4587 { (exit 1); exit 1; }; } ;;
4588esac
4589
4590
4591if test "$cross_compiling" = yes; then
4592 LLVM_CROSS_COMPILING=1
4593
4594
4595{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4596echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4597if test "${ac_cv_build_exeext+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599else
4600 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4601 ac_cv_build_exeext=.exe
4602else
4603 ac_build_prefix=${build_alias}-
4604
4605 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4606set dummy ${ac_build_prefix}gcc; ac_word=$2
4607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611else
4612 if test -n "$BUILD_CC"; then
4613 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626done
4627done
4628IFS=$as_save_IFS
4629
4630fi
4631fi
4632BUILD_CC=$ac_cv_prog_BUILD_CC
4633if test -n "$BUILD_CC"; then
4634 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4635echo "${ECHO_T}$BUILD_CC" >&6; }
4636else
4637 { echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6; }
4639fi
4640
4641
4642 if test -z "$BUILD_CC"; then
4643 # Extract the first word of "gcc", so it can be a program name with args.
4644set dummy gcc; ac_word=$2
4645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649else
4650 if test -n "$BUILD_CC"; then
4651 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_BUILD_CC="gcc"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664done
4665done
4666IFS=$as_save_IFS
4667
4668fi
4669fi
4670BUILD_CC=$ac_cv_prog_BUILD_CC
4671if test -n "$BUILD_CC"; then
4672 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4673echo "${ECHO_T}$BUILD_CC" >&6; }
4674else
4675 { echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6; }
4677fi
4678
4679
4680 if test -z "$BUILD_CC"; then
4681 # Extract the first word of "cc", so it can be a program name with args.
4682set dummy cc; ac_word=$2
4683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687else
4688 if test -n "$BUILD_CC"; then
4689 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4690else
4691 ac_prog_rejected=no
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4700 ac_prog_rejected=yes
4701 continue
4702 fi
4703 ac_cv_prog_BUILD_CC="cc"
4704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707done
4708done
4709IFS=$as_save_IFS
4710
4711if test $ac_prog_rejected = yes; then
4712 # We found a bogon in the path, so make sure we never use it.
4713 set dummy $ac_cv_prog_BUILD_CC
4714 shift
4715 if test $# != 0; then
4716 # We chose a different compiler from the bogus one.
4717 # However, it has the same basename, so the bogon will be chosen
4718 # first if we set BUILD_CC to just the basename; use the full file name.
4719 shift
4720 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4721 fi
4722fi
4723fi
4724fi
4725BUILD_CC=$ac_cv_prog_BUILD_CC
4726if test -n "$BUILD_CC"; then
4727 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4728echo "${ECHO_T}$BUILD_CC" >&6; }
4729else
4730 { echo "$as_me:$LINENO: result: no" >&5
4731echo "${ECHO_T}no" >&6; }
4732fi
4733
4734
4735 fi
4736 fi
4737 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4738echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4739 { (exit 1); exit 1; }; }
4740 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4741 rm -f conftest*
4742 echo 'int main () { return 0; }' > conftest.$ac_ext
4743 ac_cv_build_exeext=
4744 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4745 (eval $ac_build_link) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; then
4749 for file in conftest.*; do
4750 case $file in
4751 *.c | *.o | *.obj | *.dSYM) ;;
4752 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4753 esac
4754 done
4755 else
4756 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4757echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4758 { (exit 1); exit 1; }; }
4759 fi
4760 rm -f conftest*
4761 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4762fi
4763fi
4764
4765BUILD_EXEEXT=""
4766test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4767{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4768echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4769ac_build_exeext=$BUILD_EXEEXT
4770
4771 ac_build_prefix=${build_alias}-
4772 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4773set dummy ${ac_build_prefix}g++; ac_word=$2
4774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779 if test -n "$BUILD_CXX"; then
4780 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793done
4794done
4795IFS=$as_save_IFS
4796
4797fi
4798fi
4799BUILD_CXX=$ac_cv_prog_BUILD_CXX
4800if test -n "$BUILD_CXX"; then
4801 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4802echo "${ECHO_T}$BUILD_CXX" >&6; }
4803else
4804 { echo "$as_me:$LINENO: result: no" >&5
4805echo "${ECHO_T}no" >&6; }
4806fi
4807
4808
4809 if test -z "$BUILD_CXX"; then
4810 # Extract the first word of "g++", so it can be a program name with args.
4811set dummy g++; ac_word=$2
4812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816else
4817 if test -n "$BUILD_CXX"; then
4818 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4819else
4820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_BUILD_CXX="g++"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
4832done
4833IFS=$as_save_IFS
4834
4835fi
4836fi
4837BUILD_CXX=$ac_cv_prog_BUILD_CXX
4838if test -n "$BUILD_CXX"; then
4839 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4840echo "${ECHO_T}$BUILD_CXX" >&6; }
4841else
4842 { echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6; }
4844fi
4845
4846
4847 if test -z "$BUILD_CXX"; then
4848 # Extract the first word of "c++", so it can be a program name with args.
4849set dummy c++; ac_word=$2
4850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855 if test -n "$BUILD_CXX"; then
4856 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4857else
4858 ac_prog_rejected=no
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4867 ac_prog_rejected=yes
4868 continue
4869 fi
4870 ac_cv_prog_BUILD_CXX="c++"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874done
4875done
4876IFS=$as_save_IFS
4877
4878if test $ac_prog_rejected = yes; then
4879 # We found a bogon in the path, so make sure we never use it.
4880 set dummy $ac_cv_prog_BUILD_CXX
4881 shift
4882 if test $# != 0; then
4883 # We chose a different compiler from the bogus one.
4884 # However, it has the same basename, so the bogon will be chosen
4885 # first if we set BUILD_CXX to just the basename; use the full file name.
4886 shift
4887 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4888 fi
4889fi
4890fi
4891fi
4892BUILD_CXX=$ac_cv_prog_BUILD_CXX
4893if test -n "$BUILD_CXX"; then
4894 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4895echo "${ECHO_T}$BUILD_CXX" >&6; }
4896else
4897 { echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6; }
4899fi
4900
4901
4902 fi
4903 fi
4904else
4905 LLVM_CROSS_COMPILING=0
4906
4907fi
4908
4909if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4910 cvsbuild="yes"
4911 optimize="no"
4912 CVSBUILD=CVSBUILD=1
4913
4914else
4915 cvsbuild="no"
4916 optimize="yes"
4917fi
4918
4919
4920# Check whether --enable-optimized was given.
4921if test "${enable_optimized+set}" = set; then
4922 enableval=$enable_optimized;
4923else
4924 enableval=$optimize
4925fi
4926
4927if test ${enableval} = "no" ; then
4928 ENABLE_OPTIMIZED=
4929
4930else
4931 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4932
4933fi
4934
4935# Check whether --enable-profiling was given.
4936if test "${enable_profiling+set}" = set; then
4937 enableval=$enable_profiling;
4938else
4939 enableval="no"
4940fi
4941
4942if test ${enableval} = "no" ; then
4943 ENABLE_PROFILING=
4944
4945else
4946 ENABLE_PROFILING=ENABLE_PROFILING=1
4947
4948fi
4949
4950# Check whether --enable-assertions was given.
4951if test "${enable_assertions+set}" = set; then
4952 enableval=$enable_assertions;
4953else
4954 enableval="yes"
4955fi
4956
4957if test ${enableval} = "yes" ; then
4958 DISABLE_ASSERTIONS=
4959
4960else
4961 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4962
4963fi
4964
4965# Check whether --enable-expensive-checks was given.
4966if test "${enable_expensive_checks+set}" = set; then
4967 enableval=$enable_expensive_checks;
4968else
4969 enableval="no"
4970fi
4971
4972if test ${enableval} = "yes" ; then
4973 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4974
4975 EXPENSIVE_CHECKS=yes
4976
4977else
4978 ENABLE_EXPENSIVE_CHECKS=
4979
4980 EXPENSIVE_CHECKS=no
4981
4982fi
4983
4984# Check whether --enable-debug-runtime was given.
4985if test "${enable_debug_runtime+set}" = set; then
4986 enableval=$enable_debug_runtime;
4987else
4988 enableval=no
4989fi
4990
4991if test ${enableval} = "no" ; then
4992 DEBUG_RUNTIME=
4993
4994else
4995 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4996
4997fi
4998
4999# Check whether --enable-debug-symbols was given.
5000if test "${enable_debug_symbols+set}" = set; then
5001 enableval=$enable_debug_symbols;
5002else
5003 enableval=no
5004fi
5005
5006if test ${enableval} = "no" ; then
5007 DEBUG_SYMBOLS=
5008
5009else
5010 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5011
5012fi
5013
5014# Check whether --enable-jit was given.
5015if test "${enable_jit+set}" = set; then
5016 enableval=$enable_jit;
5017else
5018 enableval=default
5019fi
5020
5021if test ${enableval} = "no"
5022then
5023 JIT=
5024
5025else
5026 case "$llvm_cv_target_arch" in
5027 x86) TARGET_HAS_JIT=1
5028 ;;
5029 Sparc) TARGET_HAS_JIT=0
5030 ;;
5031 PowerPC) TARGET_HAS_JIT=1
5032 ;;
5033 x86_64) TARGET_HAS_JIT=1
5034 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005035 ARM) TARGET_HAS_JIT=1
5036 ;;
5037 Mips) TARGET_HAS_JIT=1
5038 ;;
5039 XCore) TARGET_HAS_JIT=0
5040 ;;
5041 MSP430) TARGET_HAS_JIT=0
5042 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005043 Hexagon) TARGET_HAS_JIT=0
5044 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005045 MBlaze) TARGET_HAS_JIT=0
5046 ;;
5047 PTX) TARGET_HAS_JIT=0
5048 ;;
5049 *) TARGET_HAS_JIT=0
5050 ;;
5051 esac
5052fi
5053
5054# Check whether --enable-docs was given.
5055if test "${enable_docs+set}" = set; then
5056 enableval=$enable_docs;
5057else
5058 enableval=default
5059fi
5060
5061case "$enableval" in
5062 yes) ENABLE_DOCS=1
5063 ;;
5064 no) ENABLE_DOCS=0
5065 ;;
5066 default) ENABLE_DOCS=1
5067 ;;
5068 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5069echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5071esac
5072
5073# Check whether --enable-doxygen was given.
5074if test "${enable_doxygen+set}" = set; then
5075 enableval=$enable_doxygen;
5076else
5077 enableval=default
5078fi
5079
5080case "$enableval" in
5081 yes) ENABLE_DOXYGEN=1
5082 ;;
5083 no) ENABLE_DOXYGEN=0
5084 ;;
5085 default) ENABLE_DOXYGEN=0
5086 ;;
5087 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5088echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5089 { (exit 1); exit 1; }; } ;;
5090esac
5091
5092# Check whether --enable-threads was given.
5093if test "${enable_threads+set}" = set; then
5094 enableval=$enable_threads;
5095else
5096 enableval=default
5097fi
5098
5099case "$enableval" in
5100 yes) ENABLE_THREADS=1
5101 ;;
5102 no) ENABLE_THREADS=0
5103 ;;
5104 default) ENABLE_THREADS=1
5105 ;;
5106 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5107echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5108 { (exit 1); exit 1; }; } ;;
5109esac
5110
5111cat >>confdefs.h <<_ACEOF
5112#define ENABLE_THREADS $ENABLE_THREADS
5113_ACEOF
5114
5115
5116# Check whether --enable-pthreads was given.
5117if test "${enable_pthreads+set}" = set; then
5118 enableval=$enable_pthreads;
5119else
5120 enableval=default
5121fi
5122
5123case "$enableval" in
5124 yes) ENABLE_PTHREADS=1
5125 ;;
5126 no) ENABLE_PTHREADS=0
5127 ;;
5128 default) ENABLE_PTHREADS=1
5129 ;;
5130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5131echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
5133esac
5134
5135# Check whether --enable-pic was given.
5136if test "${enable_pic+set}" = set; then
5137 enableval=$enable_pic;
5138else
5139 enableval=default
5140fi
5141
5142case "$enableval" in
5143 yes) ENABLE_PIC=1
5144 ;;
5145 no) ENABLE_PIC=0
5146 ;;
5147 default) ENABLE_PIC=1
5148 ;;
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5150echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5152esac
5153
5154cat >>confdefs.h <<_ACEOF
5155#define ENABLE_PIC $ENABLE_PIC
5156_ACEOF
5157
5158
5159# Check whether --enable-shared was given.
5160if test "${enable_shared+set}" = set; then
5161 enableval=$enable_shared;
5162else
5163 enableval=default
5164fi
5165
5166case "$enableval" in
5167 yes) ENABLE_SHARED=1
5168 ;;
5169 no) ENABLE_SHARED=0
5170 ;;
5171 default) ENABLE_SHARED=0
5172 ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5174echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5176esac
5177
5178# Check whether --enable-embed-stdcxx was given.
5179if test "${enable_embed_stdcxx+set}" = set; then
5180 enableval=$enable_embed_stdcxx;
5181else
5182 enableval=default
5183fi
5184
5185case "$enableval" in
5186 yes) ENABLE_EMBED_STDCXX=1
5187 ;;
5188 no) ENABLE_EMBED_STDCXX=0
5189 ;;
5190 default) ENABLE_EMBED_STDCXX=1
5191 ;;
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5193echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5195esac
5196
5197# Check whether --enable-timestamps was given.
5198if test "${enable_timestamps+set}" = set; then
5199 enableval=$enable_timestamps;
5200else
5201 enableval=default
5202fi
5203
5204case "$enableval" in
5205 yes) ENABLE_TIMESTAMPS=1
5206 ;;
5207 no) ENABLE_TIMESTAMPS=0
5208 ;;
5209 default) ENABLE_TIMESTAMPS=1
5210 ;;
5211 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5212echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5214esac
5215
5216cat >>confdefs.h <<_ACEOF
5217#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5218_ACEOF
5219
5220
5221TARGETS_TO_BUILD=""
5222# Check whether --enable-targets was given.
5223if test "${enable_targets+set}" = set; then
5224 enableval=$enable_targets;
5225else
5226 enableval=all
5227fi
5228
5229if test "$enableval" = host-only ; then
5230 enableval=host
5231fi
5232case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005233 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005234 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5235 case "$a_target" in
5236 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5237 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5238 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5239 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005240 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5241 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5242 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5243 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5244 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005245 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005246 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5247 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5248 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5249 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5250 host) case "$llvm_cv_target_arch" in
5251 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5252 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5253 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5254 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005255 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5256 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5257 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5258 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5259 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5260 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005261 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005262 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5263 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5264echo "$as_me: error: Can not set target to build" >&2;}
5265 { (exit 1); exit 1; }; } ;;
5266 esac ;;
5267 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5268echo "$as_me: error: Unrecognized target $a_target" >&2;}
5269 { (exit 1); exit 1; }; } ;;
5270 esac
5271 done
5272 ;;
5273esac
5274TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5275
5276
5277# Determine whether we are building LLVM support for the native architecture.
5278# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5279for a_target in $TARGETS_TO_BUILD; do
5280 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5281
5282cat >>confdefs.h <<_ACEOF
5283#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5284_ACEOF
5285
5286 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5287 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5288 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5289 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5290 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5291 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5292 fi
5293
5294cat >>confdefs.h <<_ACEOF
5295#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5296_ACEOF
5297
5298
5299cat >>confdefs.h <<_ACEOF
5300#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5301_ACEOF
5302
5303
5304cat >>confdefs.h <<_ACEOF
5305#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5306_ACEOF
5307
5308
5309cat >>confdefs.h <<_ACEOF
5310#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5311_ACEOF
5312
5313 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5314
5315cat >>confdefs.h <<_ACEOF
5316#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5317_ACEOF
5318
5319 fi
5320 fi
5321done
5322
5323# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5324# target feature def files.
5325LLVM_ENUM_TARGETS=""
5326LLVM_ENUM_ASM_PRINTERS=""
5327LLVM_ENUM_ASM_PARSERS=""
5328LLVM_ENUM_DISASSEMBLERS=""
5329for target_to_build in $TARGETS_TO_BUILD; do
5330 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5331 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5332 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5333 fi
5334 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5335 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5336 fi
5337 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5338 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5339 fi
5340done
5341
5342
5343
5344
5345
5346# Check whether --enable-cbe-printf-a was given.
5347if test "${enable_cbe_printf_a+set}" = set; then
5348 enableval=$enable_cbe_printf_a;
5349else
5350 enableval=default
5351fi
5352
5353case "$enableval" in
5354 yes) ENABLE_CBE_PRINTF_A=1
5355 ;;
5356 no) ENABLE_CBE_PRINTF_A=0
5357 ;;
5358 default) ENABLE_CBE_PRINTF_A=1
5359 ;;
5360 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5361echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5362 { (exit 1); exit 1; }; } ;;
5363esac
5364
5365cat >>confdefs.h <<_ACEOF
5366#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5367_ACEOF
5368
5369
5370
5371# Check whether --with-optimize-option was given.
5372if test "${with_optimize_option+set}" = set; then
5373 withval=$with_optimize_option;
5374else
5375 withval=default
5376fi
5377
5378{ echo "$as_me:$LINENO: checking optimization flags" >&5
5379echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5380case "$withval" in
5381 default)
5382 case "$llvm_cv_os_type" in
5383 FreeBSD) optimize_option=-O2 ;;
5384 MingW) optimize_option=-O2 ;;
5385 *) optimize_option=-O3 ;;
5386 esac ;;
5387 *) optimize_option="$withval" ;;
5388esac
5389OPTIMIZE_OPTION=$optimize_option
5390
5391{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5392echo "${ECHO_T}$optimize_option" >&6; }
5393
5394
5395# Check whether --with-extra-options was given.
5396if test "${with_extra_options+set}" = set; then
5397 withval=$with_extra_options;
5398else
5399 withval=default
5400fi
5401
5402case "$withval" in
5403 default) EXTRA_OPTIONS= ;;
5404 *) EXTRA_OPTIONS=$withval ;;
5405esac
5406EXTRA_OPTIONS=$EXTRA_OPTIONS
5407
5408
5409
5410# Check whether --with-extra-ld-options was given.
5411if test "${with_extra_ld_options+set}" = set; then
5412 withval=$with_extra_ld_options;
5413else
5414 withval=default
5415fi
5416
5417case "$withval" in
5418 default) EXTRA_LD_OPTIONS= ;;
5419 *) EXTRA_LD_OPTIONS=$withval ;;
5420esac
5421EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5422
5423
5424# Check whether --enable-bindings was given.
5425if test "${enable_bindings+set}" = set; then
5426 enableval=$enable_bindings;
5427else
5428 enableval=default
5429fi
5430
5431BINDINGS_TO_BUILD=""
5432case "$enableval" in
5433 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5434 all ) BINDINGS_TO_BUILD="ocaml" ;;
5435 none | no) BINDINGS_TO_BUILD="" ;;
5436 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5437 case "$a_binding" in
5438 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5439 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5440echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5441 { (exit 1); exit 1; }; } ;;
5442 esac
5443 done
5444 ;;
5445esac
5446
5447
5448# Check whether --with-ocaml-libdir was given.
5449if test "${with_ocaml_libdir+set}" = set; then
5450 withval=$with_ocaml_libdir;
5451else
5452 withval=auto
5453fi
5454
5455case "$withval" in
5456 auto) with_ocaml_libdir="$withval" ;;
5457 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5458 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5459echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5460 { (exit 1); exit 1; }; } ;;
5461esac
5462
5463
5464# Check whether --with-clang-resource-dir was given.
5465if test "${with_clang_resource_dir+set}" = set; then
5466 withval=$with_clang_resource_dir;
5467else
5468 withval=""
5469fi
5470
5471
5472cat >>confdefs.h <<_ACEOF
5473#define CLANG_RESOURCE_DIR "$withval"
5474_ACEOF
5475
5476
5477
5478# Check whether --with-c-include-dirs was given.
5479if test "${with_c_include_dirs+set}" = set; then
5480 withval=$with_c_include_dirs;
5481else
5482 withval=""
5483fi
5484
5485
5486cat >>confdefs.h <<_ACEOF
5487#define C_INCLUDE_DIRS "$withval"
5488_ACEOF
5489
5490
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005491# Clang normally uses the system c++ headers and libraries. With this option,
5492# clang will use the ones provided by a gcc installation instead. This option should
5493# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005494
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005495# Check whether --with-gcc-toolchain was given.
5496if test "${with_gcc_toolchain+set}" = set; then
5497 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005498else
5499 withval=""
5500fi
5501
5502
5503cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005504#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005505_ACEOF
5506
5507
5508
5509# Check whether --with-binutils-include was given.
5510if test "${with_binutils_include+set}" = set; then
5511 withval=$with_binutils_include;
5512else
5513 withval=default
5514fi
5515
5516case "$withval" in
5517 default) WITH_BINUTILS_INCDIR=default ;;
5518 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5519 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5520echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5521 { (exit 1); exit 1; }; } ;;
5522esac
5523if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5524 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5525
5526 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5527 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5528 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5529echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5530 { (exit 1); exit 1; }; };
5531 fi
5532fi
5533
5534
5535# Check whether --with-bug-report-url was given.
5536if test "${with_bug_report_url+set}" = set; then
5537 withval=$with_bug_report_url;
5538else
5539 withval="http://llvm.org/bugs/"
5540fi
5541
5542
5543cat >>confdefs.h <<_ACEOF
5544#define BUG_REPORT_URL "$withval"
5545_ACEOF
5546
5547
5548# Check whether --enable-libffi was given.
5549if test "${enable_libffi+set}" = set; then
5550 enableval=$enable_libffi; case "$enableval" in
5551 yes) llvm_cv_enable_libffi="yes" ;;
5552 no) llvm_cv_enable_libffi="no" ;;
5553 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5554echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5555 { (exit 1); exit 1; }; } ;;
5556 esac
5557else
5558 llvm_cv_enable_libffi=no
5559fi
5560
5561
5562
5563{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5564echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5565if test "${lt_cv_path_NM+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567else
5568 if test -n "$NM"; then
5569 # Let the user override the test.
5570 lt_cv_path_NM="$NM"
5571else
5572 lt_nm_to_check="${ac_tool_prefix}nm"
5573 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5574 lt_nm_to_check="$lt_nm_to_check nm"
5575 fi
5576 for lt_tmp_nm in $lt_nm_to_check; do
5577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5578 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5579 IFS="$lt_save_ifs"
5580 test -z "$ac_dir" && ac_dir=.
5581 tmp_nm="$ac_dir/$lt_tmp_nm"
5582 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5583 # Check to see if the nm accepts a BSD-compat flag.
5584 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5585 # nm: unknown option "B" ignored
5586 # Tru64's nm complains that /dev/null is an invalid object file
5587 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5588 */dev/null* | *'Invalid file or object type'*)
5589 lt_cv_path_NM="$tmp_nm -B"
5590 break
5591 ;;
5592 *)
5593 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5594 */dev/null*)
5595 lt_cv_path_NM="$tmp_nm -p"
5596 break
5597 ;;
5598 *)
5599 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5600 continue # so that we can try to find one that supports BSD flags
5601 ;;
5602 esac
5603 ;;
5604 esac
5605 fi
5606 done
5607 IFS="$lt_save_ifs"
5608 done
5609 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5610fi
5611fi
5612{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5613echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5614NM="$lt_cv_path_NM"
5615
5616
5617
5618{ echo "$as_me:$LINENO: checking for GNU make" >&5
5619echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5620if test "${llvm_cv_gnu_make_command+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623 llvm_cv_gnu_make_command=''
5624 for a in "$MAKE" make gmake gnumake ; do
5625 if test -z "$a" ; then continue ; fi ;
5626 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5627 then
5628 llvm_cv_gnu_make_command=$a ;
5629 break;
5630 fi
5631 done
5632fi
5633{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5634echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5635 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5636 ifGNUmake='' ;
5637 else
5638 ifGNUmake='#' ;
5639 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5640echo "${ECHO_T}\"Not found\"" >&6; };
5641 fi
5642
5643
5644{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5645echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5646LN_S=$as_ln_s
5647if test "$LN_S" = "ln -s"; then
5648 { echo "$as_me:$LINENO: result: yes" >&5
5649echo "${ECHO_T}yes" >&6; }
5650else
5651 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5652echo "${ECHO_T}no, using $LN_S" >&6; }
5653fi
5654
5655# Extract the first word of "cmp", so it can be a program name with args.
5656set dummy cmp; ac_word=$2
5657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5659if test "${ac_cv_path_CMP+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662 case $CMP in
5663 [\\/]* | ?:[\\/]*)
5664 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5665 ;;
5666 *)
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5674 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5677 fi
5678done
5679done
5680IFS=$as_save_IFS
5681
5682 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5683 ;;
5684esac
5685fi
5686CMP=$ac_cv_path_CMP
5687if test -n "$CMP"; then
5688 { echo "$as_me:$LINENO: result: $CMP" >&5
5689echo "${ECHO_T}$CMP" >&6; }
5690else
5691 { echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6; }
5693fi
5694
5695
5696# Extract the first word of "cp", so it can be a program name with args.
5697set dummy cp; ac_word=$2
5698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700if test "${ac_cv_path_CP+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703 case $CP in
5704 [\\/]* | ?:[\\/]*)
5705 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5706 ;;
5707 *)
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5718 fi
5719done
5720done
5721IFS=$as_save_IFS
5722
5723 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5724 ;;
5725esac
5726fi
5727CP=$ac_cv_path_CP
5728if test -n "$CP"; then
5729 { echo "$as_me:$LINENO: result: $CP" >&5
5730echo "${ECHO_T}$CP" >&6; }
5731else
5732 { echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6; }
5734fi
5735
5736
5737# Extract the first word of "date", so it can be a program name with args.
5738set dummy date; ac_word=$2
5739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5741if test "${ac_cv_path_DATE+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744 case $DATE in
5745 [\\/]* | ?:[\\/]*)
5746 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5747 ;;
5748 *)
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5756 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761done
5762IFS=$as_save_IFS
5763
5764 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5765 ;;
5766esac
5767fi
5768DATE=$ac_cv_path_DATE
5769if test -n "$DATE"; then
5770 { echo "$as_me:$LINENO: result: $DATE" >&5
5771echo "${ECHO_T}$DATE" >&6; }
5772else
5773 { echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6; }
5775fi
5776
5777
5778# Extract the first word of "find", so it can be a program name with args.
5779set dummy find; ac_word=$2
5780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5782if test "${ac_cv_path_FIND+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785 case $FIND in
5786 [\\/]* | ?:[\\/]*)
5787 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5788 ;;
5789 *)
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5800 fi
5801done
5802done
5803IFS=$as_save_IFS
5804
5805 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5806 ;;
5807esac
5808fi
5809FIND=$ac_cv_path_FIND
5810if test -n "$FIND"; then
5811 { echo "$as_me:$LINENO: result: $FIND" >&5
5812echo "${ECHO_T}$FIND" >&6; }
5813else
5814 { echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6; }
5816fi
5817
5818
5819# Extract the first word of "grep", so it can be a program name with args.
5820set dummy grep; ac_word=$2
5821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823if test "${ac_cv_path_GREP+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826 case $GREP in
5827 [\\/]* | ?:[\\/]*)
5828 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5829 ;;
5830 *)
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5838 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842done
5843done
5844IFS=$as_save_IFS
5845
5846 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5847 ;;
5848esac
5849fi
5850GREP=$ac_cv_path_GREP
5851if test -n "$GREP"; then
5852 { echo "$as_me:$LINENO: result: $GREP" >&5
5853echo "${ECHO_T}$GREP" >&6; }
5854else
5855 { echo "$as_me:$LINENO: result: no" >&5
5856echo "${ECHO_T}no" >&6; }
5857fi
5858
5859
5860# Extract the first word of "mkdir", so it can be a program name with args.
5861set dummy mkdir; ac_word=$2
5862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864if test "${ac_cv_path_MKDIR+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866else
5867 case $MKDIR in
5868 [\\/]* | ?:[\\/]*)
5869 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5870 ;;
5871 *)
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883done
5884done
5885IFS=$as_save_IFS
5886
5887 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5888 ;;
5889esac
5890fi
5891MKDIR=$ac_cv_path_MKDIR
5892if test -n "$MKDIR"; then
5893 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5894echo "${ECHO_T}$MKDIR" >&6; }
5895else
5896 { echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6; }
5898fi
5899
5900
5901# Extract the first word of "mv", so it can be a program name with args.
5902set dummy mv; ac_word=$2
5903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905if test "${ac_cv_path_MV+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908 case $MV in
5909 [\\/]* | ?:[\\/]*)
5910 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5911 ;;
5912 *)
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5923 fi
5924done
5925done
5926IFS=$as_save_IFS
5927
5928 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5929 ;;
5930esac
5931fi
5932MV=$ac_cv_path_MV
5933if test -n "$MV"; then
5934 { echo "$as_me:$LINENO: result: $MV" >&5
5935echo "${ECHO_T}$MV" >&6; }
5936else
5937 { echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6; }
5939fi
5940
5941
5942if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5944set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947if test "${ac_cv_prog_RANLIB+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950 if test -n "$RANLIB"; then
5951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5952else
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964done
5965done
5966IFS=$as_save_IFS
5967
5968fi
5969fi
5970RANLIB=$ac_cv_prog_RANLIB
5971if test -n "$RANLIB"; then
5972 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5973echo "${ECHO_T}$RANLIB" >&6; }
5974else
5975 { echo "$as_me:$LINENO: result: no" >&5
5976echo "${ECHO_T}no" >&6; }
5977fi
5978
5979
5980fi
5981if test -z "$ac_cv_prog_RANLIB"; then
5982 ac_ct_RANLIB=$RANLIB
5983 # Extract the first word of "ranlib", so it can be a program name with args.
5984set dummy ranlib; ac_word=$2
5985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990 if test -n "$ac_ct_RANLIB"; then
5991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_RANLIB="ranlib"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6003 fi
6004done
6005done
6006IFS=$as_save_IFS
6007
6008fi
6009fi
6010ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6011if test -n "$ac_ct_RANLIB"; then
6012 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6013echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6014else
6015 { echo "$as_me:$LINENO: result: no" >&5
6016echo "${ECHO_T}no" >&6; }
6017fi
6018
6019 if test "x$ac_ct_RANLIB" = x; then
6020 RANLIB=":"
6021 else
6022 case $cross_compiling:$ac_tool_warned in
6023yes:)
6024{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6025whose name does not start with the host triplet. If you think this
6026configuration is useful to you, please write to autoconf@gnu.org." >&5
6027echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6028whose name does not start with the host triplet. If you think this
6029configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6030ac_tool_warned=yes ;;
6031esac
6032 RANLIB=$ac_ct_RANLIB
6033 fi
6034else
6035 RANLIB="$ac_cv_prog_RANLIB"
6036fi
6037
6038if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6040set dummy ${ac_tool_prefix}ar; ac_word=$2
6041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043if test "${ac_cv_prog_AR+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
6046 if test -n "$AR"; then
6047 ac_cv_prog_AR="$AR" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_AR="${ac_tool_prefix}ar"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060done
6061done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066AR=$ac_cv_prog_AR
6067if test -n "$AR"; then
6068 { echo "$as_me:$LINENO: result: $AR" >&5
6069echo "${ECHO_T}$AR" >&6; }
6070else
6071 { echo "$as_me:$LINENO: result: no" >&5
6072echo "${ECHO_T}no" >&6; }
6073fi
6074
6075
6076fi
6077if test -z "$ac_cv_prog_AR"; then
6078 ac_ct_AR=$AR
6079 # Extract the first word of "ar", so it can be a program name with args.
6080set dummy ar; ac_word=$2
6081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086 if test -n "$ac_ct_AR"; then
6087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_AR="ar"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100done
6101done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106ac_ct_AR=$ac_cv_prog_ac_ct_AR
6107if test -n "$ac_ct_AR"; then
6108 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6109echo "${ECHO_T}$ac_ct_AR" >&6; }
6110else
6111 { echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6; }
6113fi
6114
6115 if test "x$ac_ct_AR" = x; then
6116 AR="false"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119yes:)
6120{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121whose name does not start with the host triplet. If you think this
6122configuration is useful to you, please write to autoconf@gnu.org." >&5
6123echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124whose name does not start with the host triplet. If you think this
6125configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126ac_tool_warned=yes ;;
6127esac
6128 AR=$ac_ct_AR
6129 fi
6130else
6131 AR="$ac_cv_prog_AR"
6132fi
6133
6134# Extract the first word of "rm", so it can be a program name with args.
6135set dummy rm; ac_word=$2
6136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138if test "${ac_cv_path_RM+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140else
6141 case $RM in
6142 [\\/]* | ?:[\\/]*)
6143 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6144 ;;
6145 *)
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6156 fi
6157done
6158done
6159IFS=$as_save_IFS
6160
6161 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6162 ;;
6163esac
6164fi
6165RM=$ac_cv_path_RM
6166if test -n "$RM"; then
6167 { echo "$as_me:$LINENO: result: $RM" >&5
6168echo "${ECHO_T}$RM" >&6; }
6169else
6170 { echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6; }
6172fi
6173
6174
6175# Extract the first word of "sed", so it can be a program name with args.
6176set dummy sed; ac_word=$2
6177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179if test "${ac_cv_path_SED+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181else
6182 case $SED in
6183 [\\/]* | ?:[\\/]*)
6184 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6185 ;;
6186 *)
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198done
6199done
6200IFS=$as_save_IFS
6201
6202 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6203 ;;
6204esac
6205fi
6206SED=$ac_cv_path_SED
6207if test -n "$SED"; then
6208 { echo "$as_me:$LINENO: result: $SED" >&5
6209echo "${ECHO_T}$SED" >&6; }
6210else
6211 { echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6; }
6213fi
6214
6215
6216# Extract the first word of "tar", so it can be a program name with args.
6217set dummy tar; ac_word=$2
6218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220if test "${ac_cv_path_TAR+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223 case $TAR in
6224 [\\/]* | ?:[\\/]*)
6225 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6226 ;;
6227 *)
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6238 fi
6239done
6240done
6241IFS=$as_save_IFS
6242
6243 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6244 ;;
6245esac
6246fi
6247TAR=$ac_cv_path_TAR
6248if test -n "$TAR"; then
6249 { echo "$as_me:$LINENO: result: $TAR" >&5
6250echo "${ECHO_T}$TAR" >&6; }
6251else
6252 { echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6; }
6254fi
6255
6256
6257# Extract the first word of "pwd", so it can be a program name with args.
6258set dummy pwd; ac_word=$2
6259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261if test "${ac_cv_path_BINPWD+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264 case $BINPWD in
6265 [\\/]* | ?:[\\/]*)
6266 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6267 ;;
6268 *)
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280done
6281done
6282IFS=$as_save_IFS
6283
6284 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6285 ;;
6286esac
6287fi
6288BINPWD=$ac_cv_path_BINPWD
6289if test -n "$BINPWD"; then
6290 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6291echo "${ECHO_T}$BINPWD" >&6; }
6292else
6293 { echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6; }
6295fi
6296
6297
6298
6299# Extract the first word of "Graphviz", so it can be a program name with args.
6300set dummy Graphviz; ac_word=$2
6301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306 case $GRAPHVIZ in
6307 [\\/]* | ?:[\\/]*)
6308 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6309 ;;
6310 *)
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322done
6323done
6324IFS=$as_save_IFS
6325
6326 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6327 ;;
6328esac
6329fi
6330GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6331if test -n "$GRAPHVIZ"; then
6332 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6333echo "${ECHO_T}$GRAPHVIZ" >&6; }
6334else
6335 { echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6; }
6337fi
6338
6339
6340if test "$GRAPHVIZ" != "echo Graphviz" ; then
6341
6342cat >>confdefs.h <<\_ACEOF
6343#define HAVE_GRAPHVIZ 1
6344_ACEOF
6345
6346 if test "$llvm_cv_os_type" = "MingW" ; then
6347 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6348 fi
6349
6350cat >>confdefs.h <<_ACEOF
6351#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6352_ACEOF
6353
6354fi
6355# Extract the first word of "dot", so it can be a program name with args.
6356set dummy dot; ac_word=$2
6357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6359if test "${ac_cv_path_DOT+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362 case $DOT in
6363 [\\/]* | ?:[\\/]*)
6364 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6365 ;;
6366 *)
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378done
6379done
6380IFS=$as_save_IFS
6381
6382 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6383 ;;
6384esac
6385fi
6386DOT=$ac_cv_path_DOT
6387if test -n "$DOT"; then
6388 { echo "$as_me:$LINENO: result: $DOT" >&5
6389echo "${ECHO_T}$DOT" >&6; }
6390else
6391 { echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6; }
6393fi
6394
6395
6396if test "$DOT" != "echo dot" ; then
6397
6398cat >>confdefs.h <<\_ACEOF
6399#define HAVE_DOT 1
6400_ACEOF
6401
6402 if test "$llvm_cv_os_type" = "MingW" ; then
6403 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6404 fi
6405
6406cat >>confdefs.h <<_ACEOF
6407#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6408_ACEOF
6409
6410fi
6411# Extract the first word of "fdp", so it can be a program name with args.
6412set dummy fdp; ac_word=$2
6413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415if test "${ac_cv_path_FDP+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418 case $FDP in
6419 [\\/]* | ?:[\\/]*)
6420 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6421 ;;
6422 *)
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434done
6435done
6436IFS=$as_save_IFS
6437
6438 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6439 ;;
6440esac
6441fi
6442FDP=$ac_cv_path_FDP
6443if test -n "$FDP"; then
6444 { echo "$as_me:$LINENO: result: $FDP" >&5
6445echo "${ECHO_T}$FDP" >&6; }
6446else
6447 { echo "$as_me:$LINENO: result: no" >&5
6448echo "${ECHO_T}no" >&6; }
6449fi
6450
6451
6452if test "$FDP" != "echo fdp" ; then
6453
6454cat >>confdefs.h <<\_ACEOF
6455#define HAVE_FDP 1
6456_ACEOF
6457
6458 if test "$llvm_cv_os_type" = "MingW" ; then
6459 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6460 fi
6461
6462cat >>confdefs.h <<_ACEOF
6463#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6464_ACEOF
6465
6466fi
6467# Extract the first word of "neato", so it can be a program name with args.
6468set dummy neato; ac_word=$2
6469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471if test "${ac_cv_path_NEATO+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473else
6474 case $NEATO in
6475 [\\/]* | ?:[\\/]*)
6476 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6477 ;;
6478 *)
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490done
6491done
6492IFS=$as_save_IFS
6493
6494 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6495 ;;
6496esac
6497fi
6498NEATO=$ac_cv_path_NEATO
6499if test -n "$NEATO"; then
6500 { echo "$as_me:$LINENO: result: $NEATO" >&5
6501echo "${ECHO_T}$NEATO" >&6; }
6502else
6503 { echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6; }
6505fi
6506
6507
6508if test "$NEATO" != "echo neato" ; then
6509
6510cat >>confdefs.h <<\_ACEOF
6511#define HAVE_NEATO 1
6512_ACEOF
6513
6514 if test "$llvm_cv_os_type" = "MingW" ; then
6515 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6516 fi
6517
6518cat >>confdefs.h <<_ACEOF
6519#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6520_ACEOF
6521
6522fi
6523# Extract the first word of "twopi", so it can be a program name with args.
6524set dummy twopi; ac_word=$2
6525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527if test "${ac_cv_path_TWOPI+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530 case $TWOPI in
6531 [\\/]* | ?:[\\/]*)
6532 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6533 ;;
6534 *)
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546done
6547done
6548IFS=$as_save_IFS
6549
6550 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6551 ;;
6552esac
6553fi
6554TWOPI=$ac_cv_path_TWOPI
6555if test -n "$TWOPI"; then
6556 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6557echo "${ECHO_T}$TWOPI" >&6; }
6558else
6559 { echo "$as_me:$LINENO: result: no" >&5
6560echo "${ECHO_T}no" >&6; }
6561fi
6562
6563
6564if test "$TWOPI" != "echo twopi" ; then
6565
6566cat >>confdefs.h <<\_ACEOF
6567#define HAVE_TWOPI 1
6568_ACEOF
6569
6570 if test "$llvm_cv_os_type" = "MingW" ; then
6571 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6572 fi
6573
6574cat >>confdefs.h <<_ACEOF
6575#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6576_ACEOF
6577
6578fi
6579# Extract the first word of "circo", so it can be a program name with args.
6580set dummy circo; ac_word=$2
6581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583if test "${ac_cv_path_CIRCO+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586 case $CIRCO in
6587 [\\/]* | ?:[\\/]*)
6588 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6589 ;;
6590 *)
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602done
6603done
6604IFS=$as_save_IFS
6605
6606 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6607 ;;
6608esac
6609fi
6610CIRCO=$ac_cv_path_CIRCO
6611if test -n "$CIRCO"; then
6612 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6613echo "${ECHO_T}$CIRCO" >&6; }
6614else
6615 { echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6; }
6617fi
6618
6619
6620if test "$CIRCO" != "echo circo" ; then
6621
6622cat >>confdefs.h <<\_ACEOF
6623#define HAVE_CIRCO 1
6624_ACEOF
6625
6626 if test "$llvm_cv_os_type" = "MingW" ; then
6627 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6628 fi
6629
6630cat >>confdefs.h <<_ACEOF
6631#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6632_ACEOF
6633
6634fi
6635for ac_prog in gv gsview32
6636do
6637 # Extract the first word of "$ac_prog", so it can be a program name with args.
6638set dummy $ac_prog; ac_word=$2
6639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641if test "${ac_cv_path_GV+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644 case $GV in
6645 [\\/]* | ?:[\\/]*)
6646 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6647 ;;
6648 *)
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660done
6661done
6662IFS=$as_save_IFS
6663
6664 ;;
6665esac
6666fi
6667GV=$ac_cv_path_GV
6668if test -n "$GV"; then
6669 { echo "$as_me:$LINENO: result: $GV" >&5
6670echo "${ECHO_T}$GV" >&6; }
6671else
6672 { echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6; }
6674fi
6675
6676
6677 test -n "$GV" && break
6678done
6679test -n "$GV" || GV="echo gv"
6680
6681if test "$GV" != "echo gv" ; then
6682
6683cat >>confdefs.h <<\_ACEOF
6684#define HAVE_GV 1
6685_ACEOF
6686
6687 if test "$llvm_cv_os_type" = "MingW" ; then
6688 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6689 fi
6690
6691cat >>confdefs.h <<_ACEOF
6692#define LLVM_PATH_GV "$GV${EXEEXT}"
6693_ACEOF
6694
6695fi
6696# Extract the first word of "dotty", so it can be a program name with args.
6697set dummy dotty; ac_word=$2
6698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700if test "${ac_cv_path_DOTTY+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 case $DOTTY in
6704 [\\/]* | ?:[\\/]*)
6705 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6706 ;;
6707 *)
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719done
6720done
6721IFS=$as_save_IFS
6722
6723 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6724 ;;
6725esac
6726fi
6727DOTTY=$ac_cv_path_DOTTY
6728if test -n "$DOTTY"; then
6729 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6730echo "${ECHO_T}$DOTTY" >&6; }
6731else
6732 { echo "$as_me:$LINENO: result: no" >&5
6733echo "${ECHO_T}no" >&6; }
6734fi
6735
6736
6737if test "$DOTTY" != "echo dotty" ; then
6738
6739cat >>confdefs.h <<\_ACEOF
6740#define HAVE_DOTTY 1
6741_ACEOF
6742
6743 if test "$llvm_cv_os_type" = "MingW" ; then
6744 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6745 fi
6746
6747cat >>confdefs.h <<_ACEOF
6748#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6749_ACEOF
6750
6751fi
6752# Extract the first word of "xdot.py", so it can be a program name with args.
6753set dummy xdot.py; ac_word=$2
6754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756if test "${ac_cv_path_XDOT_PY+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 case $XDOT_PY in
6760 [\\/]* | ?:[\\/]*)
6761 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6762 ;;
6763 *)
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775done
6776done
6777IFS=$as_save_IFS
6778
6779 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6780 ;;
6781esac
6782fi
6783XDOT_PY=$ac_cv_path_XDOT_PY
6784if test -n "$XDOT_PY"; then
6785 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6786echo "${ECHO_T}$XDOT_PY" >&6; }
6787else
6788 { echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6; }
6790fi
6791
6792
6793if test "$XDOT_PY" != "echo xdot.py" ; then
6794
6795cat >>confdefs.h <<\_ACEOF
6796#define HAVE_XDOT_PY 1
6797_ACEOF
6798
6799 if test "$llvm_cv_os_type" = "MingW" ; then
6800 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6801 fi
6802
6803cat >>confdefs.h <<_ACEOF
6804#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6805_ACEOF
6806
6807fi
6808
6809
6810# Extract the first word of "perl", so it can be a program name with args.
6811set dummy perl; ac_word=$2
6812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814if test "${ac_cv_path_PERL+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817 case $PERL in
6818 [\\/]* | ?:[\\/]*)
6819 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6820 ;;
6821 *)
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834done
6835IFS=$as_save_IFS
6836
6837 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6838 ;;
6839esac
6840fi
6841PERL=$ac_cv_path_PERL
6842if test -n "$PERL"; then
6843 { echo "$as_me:$LINENO: result: $PERL" >&5
6844echo "${ECHO_T}$PERL" >&6; }
6845else
6846 { echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6; }
6848fi
6849
6850
6851if test "$PERL" != "none"; then
6852 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6853echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6854 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6855 { echo "$as_me:$LINENO: result: yes" >&5
6856echo "${ECHO_T}yes" >&6; }
6857 else
6858 PERL=none
6859 { echo "$as_me:$LINENO: result: not found" >&5
6860echo "${ECHO_T}not found" >&6; }
6861 fi
6862fi
6863
6864
6865if test x"$PERL" = xnone; then
6866 HAVE_PERL=0
6867
6868 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6869echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6870 { (exit 1); exit 1; }; }
6871else
6872 HAVE_PERL=1
6873
6874fi
6875
6876# Find a good install program. We prefer a C program (faster),
6877# so one script is as good as another. But avoid the broken or
6878# incompatible versions:
6879# SysV /etc/install, /usr/sbin/install
6880# SunOS /usr/etc/install
6881# IRIX /sbin/install
6882# AIX /bin/install
6883# AmigaOS /C/install, which installs bootblocks on floppy discs
6884# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6885# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6886# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6887# OS/2's system install, which has a completely different semantic
6888# ./install, which can be erroneously created by make from ./install.sh.
6889{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6890echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6891if test -z "$INSTALL"; then
6892if test "${ac_cv_path_install+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 # Account for people who put trailing slashes in PATH elements.
6901case $as_dir/ in
6902 ./ | .// | /cC/* | \
6903 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6904 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6905 /usr/ucb/* ) ;;
6906 *)
6907 # OSF1 and SCO ODT 3.0 have their own names for install.
6908 # Don't use installbsd from OSF since it installs stuff as root
6909 # by default.
6910 for ac_prog in ginstall scoinst install; do
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6913 if test $ac_prog = install &&
6914 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6915 # AIX install. It has an incompatible calling convention.
6916 :
6917 elif test $ac_prog = install &&
6918 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6919 # program-specific install script used by HP pwplus--don't use.
6920 :
6921 else
6922 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6923 break 3
6924 fi
6925 fi
6926 done
6927 done
6928 ;;
6929esac
6930done
6931IFS=$as_save_IFS
6932
6933
6934fi
6935 if test "${ac_cv_path_install+set}" = set; then
6936 INSTALL=$ac_cv_path_install
6937 else
6938 # As a last resort, use the slow shell script. Don't cache a
6939 # value for INSTALL within a source directory, because that will
6940 # break other packages using the cache if that directory is
6941 # removed, or if the value is a relative name.
6942 INSTALL=$ac_install_sh
6943 fi
6944fi
6945{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6946echo "${ECHO_T}$INSTALL" >&6; }
6947
6948# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6949# It thinks the first close brace ends the variable substitution.
6950test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6951
6952test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6953
6954test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6955
6956case "$INSTALL" in
6957 [\\/$]* | ?:[\\/]* ) ;;
6958 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6959esac
6960
6961# Extract the first word of "bzip2", so it can be a program name with args.
6962set dummy bzip2; ac_word=$2
6963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965if test "${ac_cv_path_BZIP2+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967else
6968 case $BZIP2 in
6969 [\\/]* | ?:[\\/]*)
6970 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6971 ;;
6972 *)
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974for as_dir in $PATH
6975do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6980 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984done
6985done
6986IFS=$as_save_IFS
6987
6988 ;;
6989esac
6990fi
6991BZIP2=$ac_cv_path_BZIP2
6992if test -n "$BZIP2"; then
6993 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6994echo "${ECHO_T}$BZIP2" >&6; }
6995else
6996 { echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6; }
6998fi
6999
7000
7001# Extract the first word of "cat", so it can be a program name with args.
7002set dummy cat; ac_word=$2
7003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005if test "${ac_cv_path_CAT+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008 case $CAT in
7009 [\\/]* | ?:[\\/]*)
7010 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7011 ;;
7012 *)
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024done
7025done
7026IFS=$as_save_IFS
7027
7028 ;;
7029esac
7030fi
7031CAT=$ac_cv_path_CAT
7032if test -n "$CAT"; then
7033 { echo "$as_me:$LINENO: result: $CAT" >&5
7034echo "${ECHO_T}$CAT" >&6; }
7035else
7036 { echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6; }
7038fi
7039
7040
7041# Extract the first word of "doxygen", so it can be a program name with args.
7042set dummy doxygen; ac_word=$2
7043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045if test "${ac_cv_path_DOXYGEN+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048 case $DOXYGEN in
7049 [\\/]* | ?:[\\/]*)
7050 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7051 ;;
7052 *)
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065done
7066IFS=$as_save_IFS
7067
7068 ;;
7069esac
7070fi
7071DOXYGEN=$ac_cv_path_DOXYGEN
7072if test -n "$DOXYGEN"; then
7073 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7074echo "${ECHO_T}$DOXYGEN" >&6; }
7075else
7076 { echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6; }
7078fi
7079
7080
7081# Extract the first word of "groff", so it can be a program name with args.
7082set dummy groff; ac_word=$2
7083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085if test "${ac_cv_path_GROFF+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087else
7088 case $GROFF in
7089 [\\/]* | ?:[\\/]*)
7090 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7091 ;;
7092 *)
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104done
7105done
7106IFS=$as_save_IFS
7107
7108 ;;
7109esac
7110fi
7111GROFF=$ac_cv_path_GROFF
7112if test -n "$GROFF"; then
7113 { echo "$as_me:$LINENO: result: $GROFF" >&5
7114echo "${ECHO_T}$GROFF" >&6; }
7115else
7116 { echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6; }
7118fi
7119
7120
7121# Extract the first word of "gzip", so it can be a program name with args.
7122set dummy gzip; ac_word=$2
7123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125if test "${ac_cv_path_GZIPBIN+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128 case $GZIPBIN in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7131 ;;
7132 *)
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144done
7145done
7146IFS=$as_save_IFS
7147
7148 ;;
7149esac
7150fi
7151GZIPBIN=$ac_cv_path_GZIPBIN
7152if test -n "$GZIPBIN"; then
7153 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7154echo "${ECHO_T}$GZIPBIN" >&6; }
7155else
7156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
7158fi
7159
7160
7161# Extract the first word of "pod2html", so it can be a program name with args.
7162set dummy pod2html; ac_word=$2
7163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165if test "${ac_cv_path_POD2HTML+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168 case $POD2HTML in
7169 [\\/]* | ?:[\\/]*)
7170 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7171 ;;
7172 *)
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184done
7185done
7186IFS=$as_save_IFS
7187
7188 ;;
7189esac
7190fi
7191POD2HTML=$ac_cv_path_POD2HTML
7192if test -n "$POD2HTML"; then
7193 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7194echo "${ECHO_T}$POD2HTML" >&6; }
7195else
7196 { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
7198fi
7199
7200
7201# Extract the first word of "pod2man", so it can be a program name with args.
7202set dummy pod2man; ac_word=$2
7203{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205if test "${ac_cv_path_POD2MAN+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208 case $POD2MAN in
7209 [\\/]* | ?:[\\/]*)
7210 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7211 ;;
7212 *)
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214for as_dir in $PATH
7215do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224done
7225done
7226IFS=$as_save_IFS
7227
7228 ;;
7229esac
7230fi
7231POD2MAN=$ac_cv_path_POD2MAN
7232if test -n "$POD2MAN"; then
7233 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7234echo "${ECHO_T}$POD2MAN" >&6; }
7235else
7236 { echo "$as_me:$LINENO: result: no" >&5
7237echo "${ECHO_T}no" >&6; }
7238fi
7239
7240
7241# Extract the first word of "pdfroff", so it can be a program name with args.
7242set dummy pdfroff; ac_word=$2
7243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245if test "${ac_cv_path_PDFROFF+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248 case $PDFROFF in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7251 ;;
7252 *)
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264done
7265done
7266IFS=$as_save_IFS
7267
7268 ;;
7269esac
7270fi
7271PDFROFF=$ac_cv_path_PDFROFF
7272if test -n "$PDFROFF"; then
7273 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7274echo "${ECHO_T}$PDFROFF" >&6; }
7275else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6; }
7278fi
7279
7280
7281# Extract the first word of "runtest", so it can be a program name with args.
7282set dummy runtest; ac_word=$2
7283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285if test "${ac_cv_path_RUNTEST+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288 case $RUNTEST in
7289 [\\/]* | ?:[\\/]*)
7290 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7291 ;;
7292 *)
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304done
7305done
7306IFS=$as_save_IFS
7307
7308 ;;
7309esac
7310fi
7311RUNTEST=$ac_cv_path_RUNTEST
7312if test -n "$RUNTEST"; then
7313 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7314echo "${ECHO_T}$RUNTEST" >&6; }
7315else
7316 { echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6; }
7318fi
7319
7320
7321
7322no_itcl=true
7323{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7324echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7325
7326# Check whether --with-tclinclude was given.
7327if test "${with_tclinclude+set}" = set; then
7328 withval=$with_tclinclude; with_tclinclude=${withval}
7329else
7330 with_tclinclude=''
7331fi
7332
7333if test "${ac_cv_path_tclsh+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335else
7336
7337if test x"${with_tclinclude}" != x ; then
7338 if test -f ${with_tclinclude}/tclsh ; then
7339 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7340 elif test -f ${with_tclinclude}/src/tclsh ; then
7341 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7342 else
7343 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7344echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7345 { (exit 1); exit 1; }; }
7346 fi
7347fi
7348fi
7349
7350
7351if test x"${ac_cv_path_tclsh}" = x ; then
7352 { echo "$as_me:$LINENO: result: none" >&5
7353echo "${ECHO_T}none" >&6; }
7354 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
7355do
7356 # Extract the first word of "$ac_prog", so it can be a program name with args.
7357set dummy $ac_prog; ac_word=$2
7358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360if test "${ac_cv_path_TCLSH+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362else
7363 case $TCLSH in
7364 [\\/]* | ?:[\\/]*)
7365 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7366 ;;
7367 *)
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379done
7380done
7381IFS=$as_save_IFS
7382
7383 ;;
7384esac
7385fi
7386TCLSH=$ac_cv_path_TCLSH
7387if test -n "$TCLSH"; then
7388 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7389echo "${ECHO_T}$TCLSH" >&6; }
7390else
7391 { echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6; }
7393fi
7394
7395
7396 test -n "$TCLSH" && break
7397done
7398
7399 if test x"${TCLSH}" = x ; then
7400 ac_cv_path_tclsh='';
7401 else
7402 ac_cv_path_tclsh="${TCLSH}";
7403 fi
7404else
7405 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7406echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7407 TCLSH="${ac_cv_path_tclsh}"
7408
7409fi
7410
7411# Extract the first word of "zip", so it can be a program name with args.
7412set dummy zip; ac_word=$2
7413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415if test "${ac_cv_path_ZIP+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418 case $ZIP in
7419 [\\/]* | ?:[\\/]*)
7420 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7421 ;;
7422 *)
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434done
7435done
7436IFS=$as_save_IFS
7437
7438 ;;
7439esac
7440fi
7441ZIP=$ac_cv_path_ZIP
7442if test -n "$ZIP"; then
7443 { echo "$as_me:$LINENO: result: $ZIP" >&5
7444echo "${ECHO_T}$ZIP" >&6; }
7445else
7446 { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
7448fi
7449
7450
7451for ac_prog in ocamlc
7452do
7453 # Extract the first word of "$ac_prog", so it can be a program name with args.
7454set dummy $ac_prog; ac_word=$2
7455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457if test "${ac_cv_path_OCAMLC+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459else
7460 case $OCAMLC in
7461 [\\/]* | ?:[\\/]*)
7462 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7463 ;;
7464 *)
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476done
7477done
7478IFS=$as_save_IFS
7479
7480 ;;
7481esac
7482fi
7483OCAMLC=$ac_cv_path_OCAMLC
7484if test -n "$OCAMLC"; then
7485 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7486echo "${ECHO_T}$OCAMLC" >&6; }
7487else
7488 { echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6; }
7490fi
7491
7492
7493 test -n "$OCAMLC" && break
7494done
7495
7496for ac_prog in ocamlopt
7497do
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499set dummy $ac_prog; ac_word=$2
7500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505 case $OCAMLOPT in
7506 [\\/]* | ?:[\\/]*)
7507 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7508 ;;
7509 *)
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511for as_dir in $PATH
7512do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521done
7522done
7523IFS=$as_save_IFS
7524
7525 ;;
7526esac
7527fi
7528OCAMLOPT=$ac_cv_path_OCAMLOPT
7529if test -n "$OCAMLOPT"; then
7530 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7531echo "${ECHO_T}$OCAMLOPT" >&6; }
7532else
7533 { echo "$as_me:$LINENO: result: no" >&5
7534echo "${ECHO_T}no" >&6; }
7535fi
7536
7537
7538 test -n "$OCAMLOPT" && break
7539done
7540
7541for ac_prog in ocamldep
7542do
7543 # Extract the first word of "$ac_prog", so it can be a program name with args.
7544set dummy $ac_prog; ac_word=$2
7545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550 case $OCAMLDEP in
7551 [\\/]* | ?:[\\/]*)
7552 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7553 ;;
7554 *)
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567done
7568IFS=$as_save_IFS
7569
7570 ;;
7571esac
7572fi
7573OCAMLDEP=$ac_cv_path_OCAMLDEP
7574if test -n "$OCAMLDEP"; then
7575 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7576echo "${ECHO_T}$OCAMLDEP" >&6; }
7577else
7578 { echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6; }
7580fi
7581
7582
7583 test -n "$OCAMLDEP" && break
7584done
7585
7586for ac_prog in ocamldoc
7587do
7588 # Extract the first word of "$ac_prog", so it can be a program name with args.
7589set dummy $ac_prog; ac_word=$2
7590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595 case $OCAMLDOC in
7596 [\\/]* | ?:[\\/]*)
7597 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7598 ;;
7599 *)
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611done
7612done
7613IFS=$as_save_IFS
7614
7615 ;;
7616esac
7617fi
7618OCAMLDOC=$ac_cv_path_OCAMLDOC
7619if test -n "$OCAMLDOC"; then
7620 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7621echo "${ECHO_T}$OCAMLDOC" >&6; }
7622else
7623 { echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6; }
7625fi
7626
7627
7628 test -n "$OCAMLDOC" && break
7629done
7630
7631for ac_prog in gas as
7632do
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634set dummy $ac_prog; ac_word=$2
7635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637if test "${ac_cv_path_GAS+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640 case $GAS in
7641 [\\/]* | ?:[\\/]*)
7642 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7643 ;;
7644 *)
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7655 fi
7656done
7657done
7658IFS=$as_save_IFS
7659
7660 ;;
7661esac
7662fi
7663GAS=$ac_cv_path_GAS
7664if test -n "$GAS"; then
7665 { echo "$as_me:$LINENO: result: $GAS" >&5
7666echo "${ECHO_T}$GAS" >&6; }
7667else
7668 { echo "$as_me:$LINENO: result: no" >&5
7669echo "${ECHO_T}no" >&6; }
7670fi
7671
7672
7673 test -n "$GAS" && break
7674done
7675
7676
7677{ echo "$as_me:$LINENO: checking for linker version" >&5
7678echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7679if test "${llvm_cv_link_version+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681else
7682
7683 version_string="$(ld -v 2>&1 | head -1)"
7684
7685 # Check for ld64.
7686 if (echo "$version_string" | grep -q "ld64"); then
7687 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7688 else
7689 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7690 fi
7691
7692fi
7693{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7694echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7695
7696cat >>confdefs.h <<_ACEOF
7697#define HOST_LINK_VERSION "$llvm_cv_link_version"
7698_ACEOF
7699
7700
7701
7702{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7703echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7704if test "${llvm_cv_link_use_r+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 ac_ext=c
7708ac_cpp='$CPP $CPPFLAGS'
7709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712
7713 oldcflags="$CFLAGS"
7714 CFLAGS="$CFLAGS -Wl,-R."
7715 cat >conftest.$ac_ext <<_ACEOF
7716/* confdefs.h. */
7717_ACEOF
7718cat confdefs.h >>conftest.$ac_ext
7719cat >>conftest.$ac_ext <<_ACEOF
7720/* end confdefs.h. */
7721
7722int
7723main ()
7724{
7725
7726 ;
7727 return 0;
7728}
7729_ACEOF
7730rm -f conftest.$ac_objext conftest$ac_exeext
7731if { (ac_try="$ac_link"
7732case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735esac
7736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_link") 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745 { (case "(($ac_try" in
7746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747 *) ac_try_echo=$ac_try;;
7748esac
7749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750 (eval "$ac_try") 2>&5
7751 ac_status=$?
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; } &&
7754 { ac_try='test -s conftest$ac_exeext'
7755 { (case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758esac
7759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_try") 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 llvm_cv_link_use_r=yes
7765else
7766 echo "$as_me: failed program was:" >&5
7767sed 's/^/| /' conftest.$ac_ext >&5
7768
7769 llvm_cv_link_use_r=no
7770fi
7771
7772rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774 CFLAGS="$oldcflags"
7775 ac_ext=c
7776ac_cpp='$CPP $CPPFLAGS'
7777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780
7781
7782fi
7783{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7784echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7785if test "$llvm_cv_link_use_r" = yes ; then
7786
7787cat >>confdefs.h <<\_ACEOF
7788#define HAVE_LINK_R 1
7789_ACEOF
7790
7791 fi
7792
7793
7794{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7795echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7796if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 ac_ext=c
7800ac_cpp='$CPP $CPPFLAGS'
7801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805 oldcflags="$CFLAGS"
7806 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7807 cat >conftest.$ac_ext <<_ACEOF
7808/* confdefs.h. */
7809_ACEOF
7810cat confdefs.h >>conftest.$ac_ext
7811cat >>conftest.$ac_ext <<_ACEOF
7812/* end confdefs.h. */
7813
7814int
7815main ()
7816{
7817
7818 ;
7819 return 0;
7820}
7821_ACEOF
7822rm -f conftest.$ac_objext conftest$ac_exeext
7823if { (ac_try="$ac_link"
7824case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827esac
7828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829 (eval "$ac_link") 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7837 { (case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840esac
7841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_try") 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try='test -s conftest$ac_exeext'
7847 { (case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850esac
7851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_try") 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 llvm_cv_link_use_export_dynamic=yes
7857else
7858 echo "$as_me: failed program was:" >&5
7859sed 's/^/| /' conftest.$ac_ext >&5
7860
7861 llvm_cv_link_use_export_dynamic=no
7862fi
7863
7864rm -f core conftest.err conftest.$ac_objext \
7865 conftest$ac_exeext conftest.$ac_ext
7866 CFLAGS="$oldcflags"
7867 ac_ext=c
7868ac_cpp='$CPP $CPPFLAGS'
7869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7871ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872
7873
7874fi
7875{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7876echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7877if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7878
7879cat >>confdefs.h <<\_ACEOF
7880#define HAVE_LINK_EXPORT_DYNAMIC 1
7881_ACEOF
7882
7883 fi
7884
7885
7886{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7887echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7888if test "${llvm_cv_link_use_version_script+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7890else
7891 ac_ext=c
7892ac_cpp='$CPP $CPPFLAGS'
7893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896
7897 oldcflags="$CFLAGS"
7898
7899 # The following code is from the autoconf manual,
7900 # "11.13: Limitations of Usual Tools".
7901 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7902 # Use mktemp if possible; otherwise fall back on mkdir,
7903 # with $RANDOM to make collisions less likely.
7904 : ${TMPDIR=/tmp}
7905 {
7906 tmp=`
7907 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7908 ` &&
7909 test -n "$tmp" && test -d "$tmp"
7910 } || {
7911 tmp=$TMPDIR/foo$$-$RANDOM
7912 (umask 077 && mkdir "$tmp")
7913 } || exit $?
7914
7915 echo "{" > "$tmp/export.map"
7916 echo " global: main;" >> "$tmp/export.map"
7917 echo " local: *;" >> "$tmp/export.map"
7918 echo "};" >> "$tmp/export.map"
7919
7920 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7921 cat >conftest.$ac_ext <<_ACEOF
7922/* confdefs.h. */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h. */
7927
7928int
7929main ()
7930{
7931
7932 ;
7933 return 0;
7934}
7935_ACEOF
7936rm -f conftest.$ac_objext conftest$ac_exeext
7937if { (ac_try="$ac_link"
7938case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_link") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954esac
7955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_try") 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 llvm_cv_link_use_version_script=yes
7971else
7972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 llvm_cv_link_use_version_script=no
7976fi
7977
7978rm -f core conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7980 rm "$tmp/export.map"
7981 rmdir "$tmp"
7982 CFLAGS="$oldcflags"
7983 ac_ext=c
7984ac_cpp='$CPP $CPPFLAGS'
7985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988
7989
7990fi
7991{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7992echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7993if test "$llvm_cv_link_use_version_script" = yes ; then
7994 HAVE_LINK_VERSION_SCRIPT=1
7995
7996 fi
7997
7998
7999
8000
8001{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8002echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8003if test "${ac_cv_c_const+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005else
8006 cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012
8013int
8014main ()
8015{
8016/* FIXME: Include the comments suggested by Paul. */
8017#ifndef __cplusplus
8018 /* Ultrix mips cc rejects this. */
8019 typedef int charset[2];
8020 const charset x;
8021 /* SunOS 4.1.1 cc rejects this. */
8022 char const *const *ccp;
8023 char **p;
8024 /* NEC SVR4.0.2 mips cc rejects this. */
8025 struct point {int x, y;};
8026 static struct point const zero = {0,0};
8027 /* AIX XL C 1.02.0.0 rejects this.
8028 It does not let you subtract one const X* pointer from another in
8029 an arm of an if-expression whose if-part is not a constant
8030 expression */
8031 const char *g = "string";
8032 ccp = &g + (g ? g-g : 0);
8033 /* HPUX 7.0 cc rejects these. */
8034 ++ccp;
8035 p = (char**) ccp;
8036 ccp = (char const *const *) p;
8037 { /* SCO 3.2v4 cc rejects this. */
8038 char *t;
8039 char const *s = 0 ? (char *) 0 : (char const *) 0;
8040
8041 *t++ = 0;
8042 if (s) return 0;
8043 }
8044 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8045 int x[] = {25, 17};
8046 const int *foo = &x[0];
8047 ++foo;
8048 }
8049 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8050 typedef const int *iptr;
8051 iptr p = 0;
8052 ++p;
8053 }
8054 { /* AIX XL C 1.02.0.0 rejects this saying
8055 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8056 struct s { int j; const int *ap[3]; };
8057 struct s *b; b->j = 5;
8058 }
8059 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8060 const int foo = 10;
8061 if (!foo) return 0;
8062 }
8063 return !x[0] && !zero.x;
8064#endif
8065
8066 ;
8067 return 0;
8068}
8069_ACEOF
8070rm -f conftest.$ac_objext
8071if { (ac_try="$ac_compile"
8072case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075esac
8076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8078 ac_status=$?
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8085 { (case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088esac
8089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_try") 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest.$ac_objext'
8095 { (case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8098esac
8099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_try") 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8104 ac_cv_c_const=yes
8105else
8106 echo "$as_me: failed program was:" >&5
8107sed 's/^/| /' conftest.$ac_ext >&5
8108
8109 ac_cv_c_const=no
8110fi
8111
8112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113fi
8114{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8115echo "${ECHO_T}$ac_cv_c_const" >&6; }
8116if test $ac_cv_c_const = no; then
8117
8118cat >>confdefs.h <<\_ACEOF
8119#define const
8120_ACEOF
8121
8122fi
8123
8124
8125
8126
8127
8128
8129ac_header_dirent=no
8130for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8131 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8132{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8133echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136else
8137 cat >conftest.$ac_ext <<_ACEOF
8138/* confdefs.h. */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h. */
8143#include <sys/types.h>
8144#include <$ac_hdr>
8145
8146int
8147main ()
8148{
8149if ((DIR *) 0)
8150return 0;
8151 ;
8152 return 0;
8153}
8154_ACEOF
8155rm -f conftest.$ac_objext
8156if { (ac_try="$ac_compile"
8157case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8160esac
8161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_compile") 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173esac
8174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest.$ac_objext'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183esac
8184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 eval "$as_ac_Header=yes"
8190else
8191 echo "$as_me: failed program was:" >&5
8192sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 eval "$as_ac_Header=no"
8195fi
8196
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198fi
8199ac_res=`eval echo '${'$as_ac_Header'}'`
8200 { echo "$as_me:$LINENO: result: $ac_res" >&5
8201echo "${ECHO_T}$ac_res" >&6; }
8202if test `eval echo '${'$as_ac_Header'}'` = yes; then
8203 cat >>confdefs.h <<_ACEOF
8204#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8205_ACEOF
8206
8207ac_header_dirent=$ac_hdr; break
8208fi
8209
8210done
8211# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8212if test $ac_header_dirent = dirent.h; then
8213 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8214echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8215if test "${ac_cv_search_opendir+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217else
8218 ac_func_search_save_LIBS=$LIBS
8219cat >conftest.$ac_ext <<_ACEOF
8220/* confdefs.h. */
8221_ACEOF
8222cat confdefs.h >>conftest.$ac_ext
8223cat >>conftest.$ac_ext <<_ACEOF
8224/* end confdefs.h. */
8225
8226/* Override any GCC internal prototype to avoid an error.
8227 Use char because int might match the return type of a GCC
8228 builtin and then its argument prototype would still apply. */
8229#ifdef __cplusplus
8230extern "C"
8231#endif
8232char opendir ();
8233int
8234main ()
8235{
8236return opendir ();
8237 ;
8238 return 0;
8239}
8240_ACEOF
8241for ac_lib in '' dir; do
8242 if test -z "$ac_lib"; then
8243 ac_res="none required"
8244 else
8245 ac_res=-l$ac_lib
8246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8247 fi
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249if { (ac_try="$ac_link"
8250case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253esac
8254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_link") 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266esac
8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_try") 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest$ac_exeext'
8273 { (case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276esac
8277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_try") 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_cv_search_opendir=$ac_res
8283else
8284 echo "$as_me: failed program was:" >&5
8285sed 's/^/| /' conftest.$ac_ext >&5
8286
8287
8288fi
8289
8290rm -f core conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext
8292 if test "${ac_cv_search_opendir+set}" = set; then
8293 break
8294fi
8295done
8296if test "${ac_cv_search_opendir+set}" = set; then
8297 :
8298else
8299 ac_cv_search_opendir=no
8300fi
8301rm conftest.$ac_ext
8302LIBS=$ac_func_search_save_LIBS
8303fi
8304{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8305echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8306ac_res=$ac_cv_search_opendir
8307if test "$ac_res" != no; then
8308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309
8310fi
8311
8312else
8313 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8314echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8315if test "${ac_cv_search_opendir+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317else
8318 ac_func_search_save_LIBS=$LIBS
8319cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h. */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h. */
8325
8326/* Override any GCC internal prototype to avoid an error.
8327 Use char because int might match the return type of a GCC
8328 builtin and then its argument prototype would still apply. */
8329#ifdef __cplusplus
8330extern "C"
8331#endif
8332char opendir ();
8333int
8334main ()
8335{
8336return opendir ();
8337 ;
8338 return 0;
8339}
8340_ACEOF
8341for ac_lib in '' x; do
8342 if test -z "$ac_lib"; then
8343 ac_res="none required"
8344 else
8345 ac_res=-l$ac_lib
8346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8347 fi
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349if { (ac_try="$ac_link"
8350case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353esac
8354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_link") 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366esac
8367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8376esac
8377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_try") 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_search_opendir=$ac_res
8383else
8384 echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
8386
8387
8388fi
8389
8390rm -f core conftest.err conftest.$ac_objext \
8391 conftest$ac_exeext
8392 if test "${ac_cv_search_opendir+set}" = set; then
8393 break
8394fi
8395done
8396if test "${ac_cv_search_opendir+set}" = set; then
8397 :
8398else
8399 ac_cv_search_opendir=no
8400fi
8401rm conftest.$ac_ext
8402LIBS=$ac_func_search_save_LIBS
8403fi
8404{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8405echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8406ac_res=$ac_cv_search_opendir
8407if test "$ac_res" != no; then
8408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8409
8410fi
8411
8412fi
8413
8414
8415for ac_header in dlfcn.h
8416do
8417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423fi
8424ac_res=`eval echo '${'$as_ac_Header'}'`
8425 { echo "$as_me:$LINENO: result: $ac_res" >&5
8426echo "${ECHO_T}$ac_res" >&6; }
8427else
8428 # Is the header compilable?
8429{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8430echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
8438#include <$ac_header>
8439_ACEOF
8440rm -f conftest.$ac_objext
8441if { (ac_try="$ac_compile"
8442case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445esac
8446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_compile") 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455 { (case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458esac
8459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_try") 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8468esac
8469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_try") 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_header_compiler=yes
8475else
8476 echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
8478
8479 ac_header_compiler=no
8480fi
8481
8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8484echo "${ECHO_T}$ac_header_compiler" >&6; }
8485
8486# Is the header present?
8487{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8488echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8489cat >conftest.$ac_ext <<_ACEOF
8490/* confdefs.h. */
8491_ACEOF
8492cat confdefs.h >>conftest.$ac_ext
8493cat >>conftest.$ac_ext <<_ACEOF
8494/* end confdefs.h. */
8495#include <$ac_header>
8496_ACEOF
8497if { (ac_try="$ac_cpp conftest.$ac_ext"
8498case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501esac
8502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8504 ac_status=$?
8505 grep -v '^ *+' conftest.er1 >conftest.err
8506 rm -f conftest.er1
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } >/dev/null; then
8510 if test -s conftest.err; then
8511 ac_cpp_err=$ac_c_preproc_warn_flag
8512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8513 else
8514 ac_cpp_err=
8515 fi
8516else
8517 ac_cpp_err=yes
8518fi
8519if test -z "$ac_cpp_err"; then
8520 ac_header_preproc=yes
8521else
8522 echo "$as_me: failed program was:" >&5
8523sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 ac_header_preproc=no
8526fi
8527
8528rm -f conftest.err conftest.$ac_ext
8529{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8530echo "${ECHO_T}$ac_header_preproc" >&6; }
8531
8532# So? What about this header?
8533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8534 yes:no: )
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8536echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8538echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8539 ac_header_preproc=yes
8540 ;;
8541 no:yes:* )
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8545echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8547echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8549echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8553echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8554 ( cat <<\_ASBOX
8555## ------------------------------ ##
8556## Report this to bugs@yourdomain ##
8557## ------------------------------ ##
8558_ASBOX
8559 ) | sed "s/^/$as_me: WARNING: /" >&2
8560 ;;
8561esac
8562{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566else
8567 eval "$as_ac_Header=\$ac_header_preproc"
8568fi
8569ac_res=`eval echo '${'$as_ac_Header'}'`
8570 { echo "$as_me:$LINENO: result: $ac_res" >&5
8571echo "${ECHO_T}$ac_res" >&6; }
8572
8573fi
8574if test `eval echo '${'$as_ac_Header'}'` = yes; then
8575 cat >>confdefs.h <<_ACEOF
8576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8577_ACEOF
8578
8579fi
8580
8581done
8582
8583# Check whether --enable-ltdl-install was given.
8584if test "${enable_ltdl_install+set}" = set; then
8585 enableval=$enable_ltdl_install;
8586fi
8587
8588
8589
8590
8591if test x"${enable_ltdl_install-no}" != xno; then
8592 INSTALL_LTDL_TRUE=
8593 INSTALL_LTDL_FALSE='#'
8594else
8595 INSTALL_LTDL_TRUE='#'
8596 INSTALL_LTDL_FALSE=
8597fi
8598
8599
8600
8601if test x"${enable_ltdl_convenience-no}" != xno; then
8602 CONVENIENCE_LTDL_TRUE=
8603 CONVENIENCE_LTDL_FALSE='#'
8604else
8605 CONVENIENCE_LTDL_TRUE='#'
8606 CONVENIENCE_LTDL_FALSE=
8607fi
8608
8609
8610{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8611echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8612library_names_spec=
8613libname_spec='lib$name'
8614soname_spec=
8615shrext_cmds=".so"
8616postinstall_cmds=
8617postuninstall_cmds=
8618finish_cmds=
8619finish_eval=
8620shlibpath_var=
8621shlibpath_overrides_runpath=unknown
8622version_type=none
8623dynamic_linker="$host_os ld.so"
8624sys_lib_dlsearch_path_spec="/lib /usr/lib"
8625if test "$GCC" = yes; then
8626 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8627 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8628 # if the path contains ";" then we assume it to be the separator
8629 # otherwise default to the standard path separator (i.e. ":") - it is
8630 # assumed that no part of a normal pathname contains ";" but that should
8631 # okay in the real world where ";" in dirpaths is itself problematic.
8632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8633 else
8634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8635 fi
8636else
8637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8638fi
8639need_lib_prefix=unknown
8640hardcode_into_libs=no
8641
8642# when you set need_version to no, make sure it does not cause -set_version
8643# flags to be left without arguments
8644need_version=unknown
8645
8646case $host_os in
8647aix3*)
8648 version_type=linux
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8650 shlibpath_var=LIBPATH
8651
8652 # AIX 3 has no versioning support, so we append a major version to the name.
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 ;;
8655
8656aix4* | aix5*)
8657 version_type=linux
8658 need_lib_prefix=no
8659 need_version=no
8660 hardcode_into_libs=yes
8661 if test "$host_cpu" = ia64; then
8662 # AIX 5 supports IA64
8663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8664 shlibpath_var=LD_LIBRARY_PATH
8665 else
8666 # With GCC up to 2.95.x, collect2 would create an import file
8667 # for dependence libraries. The import file would start with
8668 # the line `#! .'. This would cause the generated library to
8669 # depend on `.', always an invalid library. This was fixed in
8670 # development snapshots of GCC prior to 3.0.
8671 case $host_os in
8672 aix4 | aix4.[01] | aix4.[01].*)
8673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8674 echo ' yes '
8675 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8676 :
8677 else
8678 can_build_shared=no
8679 fi
8680 ;;
8681 esac
8682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8683 # soname into executable. Probably we can add versioning support to
8684 # collect2, so additional links can be useful in future.
8685 if test "$aix_use_runtimelinking" = yes; then
8686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8687 # instead of lib<name>.a to let people know that these are not
8688 # typical AIX shared libraries.
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 else
8691 # We preserve .a as extension for shared libraries through AIX4.2
8692 # and later when we are not doing run time linking.
8693 library_names_spec='${libname}${release}.a $libname.a'
8694 soname_spec='${libname}${release}${shared_ext}$major'
8695 fi
8696 shlibpath_var=LIBPATH
8697 fi
8698 ;;
8699
8700amigaos*)
8701 library_names_spec='$libname.ixlibrary $libname.a'
8702 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8703 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'
8704 ;;
8705
8706beos*)
8707 library_names_spec='${libname}${shared_ext}'
8708 dynamic_linker="$host_os ld.so"
8709 shlibpath_var=LIBRARY_PATH
8710 ;;
8711
8712bsdi[45]*)
8713 version_type=linux
8714 need_version=no
8715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716 soname_spec='${libname}${release}${shared_ext}$major'
8717 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8718 shlibpath_var=LD_LIBRARY_PATH
8719 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8720 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8721 # the default ld.so.conf also contains /usr/contrib/lib and
8722 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8723 # libtool to hard-code these into programs
8724 ;;
8725
8726cygwin* | mingw* | pw32*)
8727 version_type=windows
8728 shrext_cmds=".dll"
8729 need_version=no
8730 need_lib_prefix=no
8731
8732 case $GCC,$host_os in
8733 yes,cygwin* | yes,mingw* | yes,pw32*)
8734 library_names_spec='$libname.dll.a'
8735 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8736 postinstall_cmds='base_file=`basename \${file}`~
8737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8738 dldir=$destdir/`dirname \$dlpath`~
8739 test -d \$dldir || mkdir -p \$dldir~
8740 $install_prog $dir/$dlname \$dldir/$dlname~
8741 chmod a+x \$dldir/$dlname'
8742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8743 dlpath=$dir/\$dldll~
8744 $rm \$dlpath'
8745 shlibpath_overrides_runpath=yes
8746
8747 case $host_os in
8748 cygwin*)
8749 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8750 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8751 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8752 ;;
8753 mingw*)
8754 # MinGW DLLs use traditional 'lib' prefix
8755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8757 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8758 # It is most probably a Windows format PATH printed by
8759 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8760 # path with ; separators, and with drive letters. We can handle the
8761 # drive letters (cygwin fileutils understands them), so leave them,
8762 # especially as we might pass files found there to a mingw objdump,
8763 # which wouldn't understand a cygwinified path. Ahh.
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8765 else
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8767 fi
8768 ;;
8769 pw32*)
8770 # pw32 DLLs use 'pw' prefix rather than 'lib'
8771 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8772 ;;
8773 esac
8774 ;;
8775
8776 *)
8777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8778 ;;
8779 esac
8780 dynamic_linker='Win32 ld.exe'
8781 # FIXME: first we should search . and the directory the executable is in
8782 shlibpath_var=PATH
8783 ;;
8784
8785darwin* | rhapsody*)
8786 dynamic_linker="$host_os dyld"
8787 version_type=darwin
8788 need_lib_prefix=no
8789 need_version=no
8790 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8791 soname_spec='${libname}${release}${major}$shared_ext'
8792 shlibpath_overrides_runpath=yes
8793 shlibpath_var=DYLD_LIBRARY_PATH
8794 shrext_cmds='.dylib'
8795 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8796 if test "$GCC" = yes; then
8797 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"`
8798 else
8799 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8800 fi
8801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8802 ;;
8803
8804dgux*)
8805 version_type=linux
8806 need_lib_prefix=no
8807 need_version=no
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 ;;
8812
Rafael Espindola48381e52012-01-31 17:18:47 +00008813freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008814 dynamic_linker=no
8815 ;;
8816
8817kfreebsd*-gnu)
8818 version_type=linux
8819 need_lib_prefix=no
8820 need_version=no
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 shlibpath_overrides_runpath=no
8825 hardcode_into_libs=yes
8826 dynamic_linker='GNU ld.so'
8827 ;;
8828
8829freebsd* | dragonfly*)
8830 # DragonFly does not have aout. When/if they implement a new
8831 # versioning mechanism, adjust this.
8832 if test -x /usr/bin/objformat; then
8833 objformat=`/usr/bin/objformat`
8834 else
8835 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008836 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008837 *) objformat=elf ;;
8838 esac
8839 fi
8840 version_type=freebsd-$objformat
8841 case $version_type in
8842 freebsd-elf*)
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8844 need_version=no
8845 need_lib_prefix=no
8846 ;;
8847 freebsd-*)
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8849 need_version=yes
8850 ;;
8851 esac
8852 shlibpath_var=LD_LIBRARY_PATH
8853 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008854 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008855 shlibpath_overrides_runpath=yes
8856 ;;
8857 freebsd3.[01]* | freebsdelf3.[01]*)
8858 shlibpath_overrides_runpath=yes
8859 hardcode_into_libs=yes
8860 ;;
8861 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8862 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8863 shlibpath_overrides_runpath=no
8864 hardcode_into_libs=yes
8865 ;;
8866 freebsd*) # from 4.6 on
8867 shlibpath_overrides_runpath=yes
8868 hardcode_into_libs=yes
8869 ;;
8870 esac
8871 ;;
8872
8873gnu*)
8874 version_type=linux
8875 need_lib_prefix=no
8876 need_version=no
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 hardcode_into_libs=yes
8881 ;;
8882
8883hpux9* | hpux10* | hpux11*)
8884 # Give a soname corresponding to the major version so that dld.sl refuses to
8885 # link against other versions.
8886 version_type=sunos
8887 need_lib_prefix=no
8888 need_version=no
8889 case $host_cpu in
8890 ia64*)
8891 shrext_cmds='.so'
8892 hardcode_into_libs=yes
8893 dynamic_linker="$host_os dld.so"
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 if test "X$HPUX_IA64_MODE" = X32; then
8899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8900 else
8901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8902 fi
8903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8904 ;;
8905 hppa*64*)
8906 shrext_cmds='.sl'
8907 hardcode_into_libs=yes
8908 dynamic_linker="$host_os dld.sl"
8909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8915 ;;
8916 *)
8917 shrext_cmds='.sl'
8918 dynamic_linker="$host_os dld.sl"
8919 shlibpath_var=SHLIB_PATH
8920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 ;;
8924 esac
8925 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8926 postinstall_cmds='chmod 555 $lib'
8927 ;;
8928
8929interix3*)
8930 version_type=linux
8931 need_lib_prefix=no
8932 need_version=no
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=no
8938 hardcode_into_libs=yes
8939 ;;
8940
8941irix5* | irix6* | nonstopux*)
8942 case $host_os in
8943 nonstopux*) version_type=nonstopux ;;
8944 *)
8945 if test "$lt_cv_prog_gnu_ld" = yes; then
8946 version_type=linux
8947 else
8948 version_type=irix
8949 fi ;;
8950 esac
8951 need_lib_prefix=no
8952 need_version=no
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8955 case $host_os in
8956 irix5* | nonstopux*)
8957 libsuff= shlibsuff=
8958 ;;
8959 *)
8960 case $LD in # libtool.m4 will add one of these switches to LD
8961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8962 libsuff= shlibsuff= libmagic=32-bit;;
8963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8964 libsuff=32 shlibsuff=N32 libmagic=N32;;
8965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8966 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8967 *) libsuff= shlibsuff= libmagic=never-match;;
8968 esac
8969 ;;
8970 esac
8971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8972 shlibpath_overrides_runpath=no
8973 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8974 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8975 hardcode_into_libs=yes
8976 ;;
8977
8978# No shared lib support for Linux oldld, aout, or coff.
8979linux*oldld* | linux*aout* | linux*coff*)
8980 dynamic_linker=no
8981 ;;
8982
8983# This must be Linux ELF.
8984linux*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=no
8993 # This implies no fast_install, which is unacceptable.
8994 # Some rework will be needed to allow for fast_install
8995 # before this can be enabled.
8996 hardcode_into_libs=yes
8997
8998 # Append ld.so.conf contents to the search path
8999 if test -f /etc/ld.so.conf; then
9000 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' ' '`
9001 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9002 fi
9003
9004 # We used to test for /lib/ld.so.1 and disable shared libraries on
9005 # powerpc, because MkLinux only supported shared libraries with the
9006 # GNU dynamic linker. Since this was broken with cross compilers,
9007 # most powerpc-linux boxes support dynamic linking these days and
9008 # people can always --disable-shared, the test was removed, and we
9009 # assume the GNU/Linux dynamic linker is in use.
9010 dynamic_linker='GNU/Linux ld.so'
9011 ;;
9012
9013knetbsd*-gnu)
9014 version_type=linux
9015 need_lib_prefix=no
9016 need_version=no
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=no
9021 hardcode_into_libs=yes
9022 dynamic_linker='GNU ld.so'
9023 ;;
9024
9025netbsd*)
9026 version_type=sunos
9027 need_lib_prefix=no
9028 need_version=no
9029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9032 dynamic_linker='NetBSD (a.out) ld.so'
9033 else
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 dynamic_linker='NetBSD ld.elf_so'
9037 fi
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=yes
9040 hardcode_into_libs=yes
9041 ;;
9042
9043newsos6)
9044 version_type=linux
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=yes
9048 ;;
9049
9050nto-qnx*)
9051 version_type=linux
9052 need_lib_prefix=no
9053 need_version=no
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=yes
9058 ;;
9059
9060openbsd*)
9061 version_type=sunos
9062 sys_lib_dlsearch_path_spec="/usr/lib"
9063 need_lib_prefix=no
9064 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9065 case $host_os in
9066 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9067 *) need_version=no ;;
9068 esac
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9073 case $host_os in
9074 openbsd2.[89] | openbsd2.[89].*)
9075 shlibpath_overrides_runpath=no
9076 ;;
9077 *)
9078 shlibpath_overrides_runpath=yes
9079 ;;
9080 esac
9081 else
9082 shlibpath_overrides_runpath=yes
9083 fi
9084 ;;
9085
9086os2*)
9087 libname_spec='$name'
9088 shrext_cmds=".dll"
9089 need_lib_prefix=no
9090 library_names_spec='$libname${shared_ext} $libname.a'
9091 dynamic_linker='OS/2 ld.exe'
9092 shlibpath_var=LIBPATH
9093 ;;
9094
9095osf3* | osf4* | osf5*)
9096 version_type=osf
9097 need_lib_prefix=no
9098 need_version=no
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9103 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9104 ;;
9105
9106solaris*)
9107 version_type=linux
9108 need_lib_prefix=no
9109 need_version=no
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath=yes
9114 hardcode_into_libs=yes
9115 # ldd complains unless libraries are executable
9116 postinstall_cmds='chmod +x $lib'
9117 ;;
9118
9119sunos4*)
9120 version_type=sunos
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=yes
9125 if test "$with_gnu_ld" = yes; then
9126 need_lib_prefix=no
9127 fi
9128 need_version=yes
9129 ;;
9130
9131sysv4 | sysv4.3*)
9132 version_type=linux
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 case $host_vendor in
9137 sni)
9138 shlibpath_overrides_runpath=no
9139 need_lib_prefix=no
9140 export_dynamic_flag_spec='${wl}-Blargedynsym'
9141 runpath_var=LD_RUN_PATH
9142 ;;
9143 siemens)
9144 need_lib_prefix=no
9145 ;;
9146 motorola)
9147 need_lib_prefix=no
9148 need_version=no
9149 shlibpath_overrides_runpath=no
9150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9151 ;;
9152 esac
9153 ;;
9154
9155sysv4*MP*)
9156 if test -d /usr/nec ;then
9157 version_type=linux
9158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9159 soname_spec='$libname${shared_ext}.$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 fi
9162 ;;
9163
9164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9165 version_type=freebsd-elf
9166 need_lib_prefix=no
9167 need_version=no
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 hardcode_into_libs=yes
9172 if test "$with_gnu_ld" = yes; then
9173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9174 shlibpath_overrides_runpath=no
9175 else
9176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9177 shlibpath_overrides_runpath=yes
9178 case $host_os in
9179 sco3.2v5*)
9180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9181 ;;
9182 esac
9183 fi
9184 sys_lib_dlsearch_path_spec='/usr/lib'
9185 ;;
9186
9187uts4*)
9188 version_type=linux
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 ;;
9193
9194*)
9195 dynamic_linker=no
9196 ;;
9197esac
9198{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9199echo "${ECHO_T}$dynamic_linker" >&6; }
9200test "$dynamic_linker" = no && can_build_shared=no
9201
9202variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9203if test "$GCC" = yes; then
9204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9205fi
9206
9207
9208{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9209echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9210if test "${libltdl_cv_shlibext+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9212else
9213
9214module=yes
9215eval libltdl_cv_shlibext=$shrext_cmds
9216
9217fi
9218{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9219echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9220if test -n "$libltdl_cv_shlibext"; then
9221
9222cat >>confdefs.h <<_ACEOF
9223#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9224_ACEOF
9225
9226fi
9227
9228
9229{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9230echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9231if test "${libltdl_cv_shlibpath_var+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233else
9234 libltdl_cv_shlibpath_var="$shlibpath_var"
9235fi
9236{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9237echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9238if test -n "$libltdl_cv_shlibpath_var"; then
9239
9240cat >>confdefs.h <<_ACEOF
9241#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9242_ACEOF
9243
9244fi
9245
9246
9247{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9248echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9249if test "${libltdl_cv_sys_search_path+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251else
9252 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9253fi
9254{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9255echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9256if test -n "$libltdl_cv_sys_search_path"; then
9257 sys_search_path=
9258 for dir in $libltdl_cv_sys_search_path; do
9259 if test -z "$sys_search_path"; then
9260 sys_search_path="$dir"
9261 else
9262 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9263 fi
9264 done
9265
9266cat >>confdefs.h <<_ACEOF
9267#define LTDL_SYSSEARCHPATH "$sys_search_path"
9268_ACEOF
9269
9270fi
9271
9272{ echo "$as_me:$LINENO: checking for objdir" >&5
9273echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9274if test "${libltdl_cv_objdir+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276else
9277 libltdl_cv_objdir="$objdir"
9278 if test -n "$objdir"; then
9279 :
9280 else
9281 rm -f .libs 2>/dev/null
9282 mkdir .libs 2>/dev/null
9283 if test -d .libs; then
9284 libltdl_cv_objdir=.libs
9285 else
9286 # MS-DOS does not allow filenames that begin with a dot.
9287 libltdl_cv_objdir=_libs
9288 fi
9289 rmdir .libs 2>/dev/null
9290 fi
9291
9292fi
9293{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9294echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9295
9296cat >>confdefs.h <<_ACEOF
9297#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9298_ACEOF
9299
9300
9301
9302
9303
9304
9305# Check for command to grab the raw symbol name followed by C symbol from nm.
9306{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9307echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9308if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310else
9311
9312# These are sane defaults that work on at least a few old systems.
9313# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9314
9315# Character class describing NM global symbol codes.
9316symcode='[BCDEGRST]'
9317
9318# Regexp to match symbols that can be accessed directly from C.
9319sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9320
9321# Transform an extracted symbol line into a proper C declaration
9322lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9323
9324# Transform an extracted symbol line into symbol name and symbol address
9325lt_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'"
9326
9327# Define system-specific variables.
9328case $host_os in
9329aix*)
9330 symcode='[BCDT]'
9331 ;;
9332cygwin* | mingw* | pw32*)
9333 symcode='[ABCDGISTW]'
9334 ;;
9335hpux*) # Its linker distinguishes data from code symbols
9336 if test "$host_cpu" = ia64; then
9337 symcode='[ABCDEGRST]'
9338 fi
9339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9340 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'"
9341 ;;
9342linux*)
9343 if test "$host_cpu" = ia64; then
9344 symcode='[ABCDGIRSTW]'
9345 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9346 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'"
9347 fi
9348 ;;
9349irix* | nonstopux*)
9350 symcode='[BCDEGRST]'
9351 ;;
9352osf*)
9353 symcode='[BCDEGQRST]'
9354 ;;
9355solaris*)
9356 symcode='[BDRT]'
9357 ;;
9358sco3.2v5*)
9359 symcode='[DT]'
9360 ;;
9361sysv4.2uw2*)
9362 symcode='[DT]'
9363 ;;
9364sysv5* | sco5v6* | unixware* | OpenUNIX*)
9365 symcode='[ABDT]'
9366 ;;
9367sysv4)
9368 symcode='[DFNSTU]'
9369 ;;
9370esac
9371
9372# Handle CRLF in mingw tool chain
9373opt_cr=
9374case $build_os in
9375mingw*)
9376 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9377 ;;
9378esac
9379
9380# If we're using GNU nm, then use its standard symbol codes.
9381case `$NM -V 2>&1` in
9382*GNU* | *'with BFD'*)
9383 symcode='[ABCDGIRSTW]' ;;
9384esac
9385
9386# Try without a prefix undercore, then with it.
9387for ac_symprfx in "" "_"; do
9388
9389 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9390 symxfrm="\\1 $ac_symprfx\\2 \\2"
9391
9392 # Write the raw and C identifiers.
9393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9394
9395 # Check to see that the pipe works correctly.
9396 pipe_works=no
9397
9398 rm -f conftest*
9399 cat > conftest.$ac_ext <<EOF
9400#ifdef __cplusplus
9401extern "C" {
9402#endif
9403char nm_test_var;
9404void nm_test_func(){}
9405#ifdef __cplusplus
9406}
9407#endif
9408int main(){nm_test_var='a';nm_test_func();return(0);}
9409EOF
9410
9411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9412 (eval $ac_compile) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; then
9416 # Now try to grab the symbols.
9417 nlist=conftest.nm
9418 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9419 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } && test -s "$nlist"; then
9423 # Try sorting and uniquifying the output.
9424 if sort "$nlist" | uniq > "$nlist"T; then
9425 mv -f "$nlist"T "$nlist"
9426 else
9427 rm -f "$nlist"T
9428 fi
9429
9430 # Make sure that we snagged all the symbols we need.
9431 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9432 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9433 cat <<EOF > conftest.$ac_ext
9434#ifdef __cplusplus
9435extern "C" {
9436#endif
9437
9438EOF
9439 # Now generate the symbol file.
9440 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9441
9442 cat <<EOF >> conftest.$ac_ext
9443#if defined (__STDC__) && __STDC__
9444# define lt_ptr_t void *
9445#else
9446# define lt_ptr_t char *
9447# define const
9448#endif
9449
9450/* The mapping between symbol names and symbols. */
9451const struct {
9452 const char *name;
9453 lt_ptr_t address;
9454}
9455lt_preloaded_symbols[] =
9456{
9457EOF
9458 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9459 cat <<\EOF >> conftest.$ac_ext
9460 {0, (lt_ptr_t) 0}
9461};
9462
9463#ifdef __cplusplus
9464}
9465#endif
9466EOF
9467 # Now try linking the two files.
9468 mv conftest.$ac_objext conftstm.$ac_objext
9469 lt_save_LIBS="$LIBS"
9470 lt_save_CFLAGS="$CFLAGS"
9471 LIBS="conftstm.$ac_objext"
9472 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9478 pipe_works=yes
9479 fi
9480 LIBS="$lt_save_LIBS"
9481 CFLAGS="$lt_save_CFLAGS"
9482 else
9483 echo "cannot find nm_test_func in $nlist" >&5
9484 fi
9485 else
9486 echo "cannot find nm_test_var in $nlist" >&5
9487 fi
9488 else
9489 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9490 fi
9491 else
9492 echo "$progname: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9494 fi
9495 rm -f conftest* conftst*
9496
9497 # Do not use the global_symbol_pipe unless it works.
9498 if test "$pipe_works" = yes; then
9499 break
9500 else
9501 lt_cv_sys_global_symbol_pipe=
9502 fi
9503done
9504
9505fi
9506
9507if test -z "$lt_cv_sys_global_symbol_pipe"; then
9508 lt_cv_sys_global_symbol_to_cdecl=
9509fi
9510if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9511 { echo "$as_me:$LINENO: result: failed" >&5
9512echo "${ECHO_T}failed" >&6; }
9513else
9514 { echo "$as_me:$LINENO: result: ok" >&5
9515echo "${ECHO_T}ok" >&6; }
9516fi
9517
9518
9519{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9520echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9521if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523else
9524 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9525 libltdl_cv_preloaded_symbols=yes
9526 else
9527 libltdl_cv_preloaded_symbols=no
9528 fi
9529
9530fi
9531{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9532echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9533if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9534
9535cat >>confdefs.h <<\_ACEOF
9536#define HAVE_PRELOADED_SYMBOLS 1
9537_ACEOF
9538
9539fi
9540
9541LIBADD_DL=
9542
9543ac_ext=c
9544ac_cpp='$CPP $CPPFLAGS'
9545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547ac_compiler_gnu=$ac_cv_c_compiler_gnu
9548
9549
9550{ echo "$as_me:$LINENO: checking for shl_load" >&5
9551echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9552if test "${ac_cv_func_shl_load+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555 cat >conftest.$ac_ext <<_ACEOF
9556/* confdefs.h. */
9557_ACEOF
9558cat confdefs.h >>conftest.$ac_ext
9559cat >>conftest.$ac_ext <<_ACEOF
9560/* end confdefs.h. */
9561/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9563#define shl_load innocuous_shl_load
9564
9565/* System header to define __stub macros and hopefully few prototypes,
9566 which can conflict with char shl_load (); below.
9567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9568 <limits.h> exists even on freestanding compilers. */
9569
9570#ifdef __STDC__
9571# include <limits.h>
9572#else
9573# include <assert.h>
9574#endif
9575
9576#undef shl_load
9577
9578/* Override any GCC internal prototype to avoid an error.
9579 Use char because int might match the return type of a GCC
9580 builtin and then its argument prototype would still apply. */
9581#ifdef __cplusplus
9582extern "C"
9583#endif
9584char shl_load ();
9585/* The GNU C library defines this for functions which it implements
9586 to always fail with ENOSYS. Some functions are actually named
9587 something starting with __ and the normal name is an alias. */
9588#if defined __stub_shl_load || defined __stub___shl_load
9589choke me
9590#endif
9591
9592int
9593main ()
9594{
9595return shl_load ();
9596 ;
9597 return 0;
9598}
9599_ACEOF
9600rm -f conftest.$ac_objext conftest$ac_exeext
9601if { (ac_try="$ac_link"
9602case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605esac
9606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_link") 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9615 { (case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9618esac
9619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_try") 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; } &&
9624 { ac_try='test -s conftest$ac_exeext'
9625 { (case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9628esac
9629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_try") 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_func_shl_load=yes
9635else
9636 echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
9639 ac_cv_func_shl_load=no
9640fi
9641
9642rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644fi
9645{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9646echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9647if test $ac_cv_func_shl_load = yes; then
9648
9649cat >>confdefs.h <<\_ACEOF
9650#define HAVE_SHL_LOAD 1
9651_ACEOF
9652
9653else
9654 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9655echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9656if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658else
9659 ac_check_lib_save_LIBS=$LIBS
9660LIBS="-ldld $LIBS"
9661cat >conftest.$ac_ext <<_ACEOF
9662/* confdefs.h. */
9663_ACEOF
9664cat confdefs.h >>conftest.$ac_ext
9665cat >>conftest.$ac_ext <<_ACEOF
9666/* end confdefs.h. */
9667
9668/* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671#ifdef __cplusplus
9672extern "C"
9673#endif
9674char shl_load ();
9675int
9676main ()
9677{
9678return shl_load ();
9679 ;
9680 return 0;
9681}
9682_ACEOF
9683rm -f conftest.$ac_objext conftest$ac_exeext
9684if { (ac_try="$ac_link"
9685case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688esac
9689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701esac
9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711esac
9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_lib_dld_shl_load=yes
9718else
9719 echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722 ac_cv_lib_dld_shl_load=no
9723fi
9724
9725rm -f core conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727LIBS=$ac_check_lib_save_LIBS
9728fi
9729{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9730echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9731if test $ac_cv_lib_dld_shl_load = yes; then
9732
9733cat >>confdefs.h <<\_ACEOF
9734#define HAVE_SHL_LOAD 1
9735_ACEOF
9736
9737 LIBADD_DL="$LIBADD_DL -ldld"
9738else
9739 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9740echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9741if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743else
9744 ac_check_lib_save_LIBS=$LIBS
9745LIBS="-ldl $LIBS"
9746cat >conftest.$ac_ext <<_ACEOF
9747/* confdefs.h. */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h. */
9752
9753/* Override any GCC internal prototype to avoid an error.
9754 Use char because int might match the return type of a GCC
9755 builtin and then its argument prototype would still apply. */
9756#ifdef __cplusplus
9757extern "C"
9758#endif
9759char dlopen ();
9760int
9761main ()
9762{
9763return dlopen ();
9764 ;
9765 return 0;
9766}
9767_ACEOF
9768rm -f conftest.$ac_objext conftest$ac_exeext
9769if { (ac_try="$ac_link"
9770case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773esac
9774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786esac
9787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_try") 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796esac
9797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_cv_lib_dl_dlopen=yes
9803else
9804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
9807 ac_cv_lib_dl_dlopen=no
9808fi
9809
9810rm -f core conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext conftest.$ac_ext
9812LIBS=$ac_check_lib_save_LIBS
9813fi
9814{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9815echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9816if test $ac_cv_lib_dl_dlopen = yes; then
9817
9818cat >>confdefs.h <<\_ACEOF
9819#define HAVE_LIBDL 1
9820_ACEOF
9821
9822 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9823else
9824 cat >conftest.$ac_ext <<_ACEOF
9825/* confdefs.h. */
9826_ACEOF
9827cat confdefs.h >>conftest.$ac_ext
9828cat >>conftest.$ac_ext <<_ACEOF
9829/* end confdefs.h. */
9830#if HAVE_DLFCN_H
9831# include <dlfcn.h>
9832#endif
9833
9834int
9835main ()
9836{
9837dlopen(0, 0);
9838 ;
9839 return 0;
9840}
9841_ACEOF
9842rm -f conftest.$ac_objext conftest$ac_exeext
9843if { (ac_try="$ac_link"
9844case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9847esac
9848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_link") 2>conftest.er1
9850 ac_status=$?
9851 grep -v '^ *+' conftest.er1 >conftest.err
9852 rm -f conftest.er1
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9857 { (case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860esac
9861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_try") 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9870esac
9871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_try") 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876
9877cat >>confdefs.h <<\_ACEOF
9878#define HAVE_LIBDL 1
9879_ACEOF
9880 libltdl_cv_func_dlopen="yes"
9881else
9882 echo "$as_me: failed program was:" >&5
9883sed 's/^/| /' conftest.$ac_ext >&5
9884
9885 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9886echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9887if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889else
9890 ac_check_lib_save_LIBS=$LIBS
9891LIBS="-lsvld $LIBS"
9892cat >conftest.$ac_ext <<_ACEOF
9893/* confdefs.h. */
9894_ACEOF
9895cat confdefs.h >>conftest.$ac_ext
9896cat >>conftest.$ac_ext <<_ACEOF
9897/* end confdefs.h. */
9898
9899/* Override any GCC internal prototype to avoid an error.
9900 Use char because int might match the return type of a GCC
9901 builtin and then its argument prototype would still apply. */
9902#ifdef __cplusplus
9903extern "C"
9904#endif
9905char dlopen ();
9906int
9907main ()
9908{
9909return dlopen ();
9910 ;
9911 return 0;
9912}
9913_ACEOF
9914rm -f conftest.$ac_objext conftest$ac_exeext
9915if { (ac_try="$ac_link"
9916case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9919esac
9920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_link") 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9929 { (case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932esac
9933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_try") 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9942esac
9943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_try") 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_lib_svld_dlopen=yes
9949else
9950 echo "$as_me: failed program was:" >&5
9951sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_cv_lib_svld_dlopen=no
9954fi
9955
9956rm -f core conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958LIBS=$ac_check_lib_save_LIBS
9959fi
9960{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9961echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9962if test $ac_cv_lib_svld_dlopen = yes; then
9963
9964cat >>confdefs.h <<\_ACEOF
9965#define HAVE_LIBDL 1
9966_ACEOF
9967
9968 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9969else
9970 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9971echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9972if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974else
9975 ac_check_lib_save_LIBS=$LIBS
9976LIBS="-ldld $LIBS"
9977cat >conftest.$ac_ext <<_ACEOF
9978/* confdefs.h. */
9979_ACEOF
9980cat confdefs.h >>conftest.$ac_ext
9981cat >>conftest.$ac_ext <<_ACEOF
9982/* end confdefs.h. */
9983
9984/* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9987#ifdef __cplusplus
9988extern "C"
9989#endif
9990char dld_link ();
9991int
9992main ()
9993{
9994return dld_link ();
9995 ;
9996 return 0;
9997}
9998_ACEOF
9999rm -f conftest.$ac_objext conftest$ac_exeext
10000if { (ac_try="$ac_link"
10001case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_link") 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_lib_dld_dld_link=yes
10034else
10035 echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 ac_cv_lib_dld_dld_link=no
10039fi
10040
10041rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043LIBS=$ac_check_lib_save_LIBS
10044fi
10045{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10046echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10047if test $ac_cv_lib_dld_dld_link = yes; then
10048
10049cat >>confdefs.h <<\_ACEOF
10050#define HAVE_DLD 1
10051_ACEOF
10052
10053 LIBADD_DL="$LIBADD_DL -ldld"
10054else
10055 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10056echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10057if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060 cat >conftest.$ac_ext <<_ACEOF
10061/* confdefs.h. */
10062_ACEOF
10063cat confdefs.h >>conftest.$ac_ext
10064cat >>conftest.$ac_ext <<_ACEOF
10065/* end confdefs.h. */
10066/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10068#define _dyld_func_lookup innocuous__dyld_func_lookup
10069
10070/* System header to define __stub macros and hopefully few prototypes,
10071 which can conflict with char _dyld_func_lookup (); below.
10072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10073 <limits.h> exists even on freestanding compilers. */
10074
10075#ifdef __STDC__
10076# include <limits.h>
10077#else
10078# include <assert.h>
10079#endif
10080
10081#undef _dyld_func_lookup
10082
10083/* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10086#ifdef __cplusplus
10087extern "C"
10088#endif
10089char _dyld_func_lookup ();
10090/* The GNU C library defines this for functions which it implements
10091 to always fail with ENOSYS. Some functions are actually named
10092 something starting with __ and the normal name is an alias. */
10093#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10094choke me
10095#endif
10096
10097int
10098main ()
10099{
10100return _dyld_func_lookup ();
10101 ;
10102 return 0;
10103}
10104_ACEOF
10105rm -f conftest.$ac_objext conftest$ac_exeext
10106if { (ac_try="$ac_link"
10107case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133esac
10134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_func__dyld_func_lookup=yes
10140else
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 ac_cv_func__dyld_func_lookup=no
10145fi
10146
10147rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149fi
10150{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10151echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10152if test $ac_cv_func__dyld_func_lookup = yes; then
10153
10154cat >>confdefs.h <<\_ACEOF
10155#define HAVE_DYLD 1
10156_ACEOF
10157
10158fi
10159
10160
10161fi
10162
10163
10164fi
10165
10166
10167fi
10168
10169rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171
10172fi
10173
10174
10175fi
10176
10177
10178fi
10179
10180
10181if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10182then
10183 lt_save_LIBS="$LIBS"
10184 LIBS="$LIBS $LIBADD_DL"
10185
10186for ac_func in dlerror
10187do
10188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10189{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 cat >conftest.$ac_ext <<_ACEOF
10195/* confdefs.h. */
10196_ACEOF
10197cat confdefs.h >>conftest.$ac_ext
10198cat >>conftest.$ac_ext <<_ACEOF
10199/* end confdefs.h. */
10200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10202#define $ac_func innocuous_$ac_func
10203
10204/* System header to define __stub macros and hopefully few prototypes,
10205 which can conflict with char $ac_func (); below.
10206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10207 <limits.h> exists even on freestanding compilers. */
10208
10209#ifdef __STDC__
10210# include <limits.h>
10211#else
10212# include <assert.h>
10213#endif
10214
10215#undef $ac_func
10216
10217/* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10220#ifdef __cplusplus
10221extern "C"
10222#endif
10223char $ac_func ();
10224/* The GNU C library defines this for functions which it implements
10225 to always fail with ENOSYS. Some functions are actually named
10226 something starting with __ and the normal name is an alias. */
10227#if defined __stub_$ac_func || defined __stub___$ac_func
10228choke me
10229#endif
10230
10231int
10232main ()
10233{
10234return $ac_func ();
10235 ;
10236 return 0;
10237}
10238_ACEOF
10239rm -f conftest.$ac_objext conftest$ac_exeext
10240if { (ac_try="$ac_link"
10241case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244esac
10245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_link") 2>conftest.er1
10247 ac_status=$?
10248 grep -v '^ *+' conftest.er1 >conftest.err
10249 rm -f conftest.er1
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257esac
10258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; } &&
10263 { ac_try='test -s conftest$ac_exeext'
10264 { (case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267esac
10268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_try") 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 eval "$as_ac_var=yes"
10274else
10275 echo "$as_me: failed program was:" >&5
10276sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 eval "$as_ac_var=no"
10279fi
10280
10281rm -f core conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283fi
10284ac_res=`eval echo '${'$as_ac_var'}'`
10285 { echo "$as_me:$LINENO: result: $ac_res" >&5
10286echo "${ECHO_T}$ac_res" >&6; }
10287if test `eval echo '${'$as_ac_var'}'` = yes; then
10288 cat >>confdefs.h <<_ACEOF
10289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10290_ACEOF
10291
10292fi
10293done
10294
10295 LIBS="$lt_save_LIBS"
10296fi
10297ac_ext=c
10298ac_cpp='$CPP $CPPFLAGS'
10299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10301ac_compiler_gnu=$ac_cv_c_compiler_gnu
10302
10303
10304
10305{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10306echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10307if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 ac_cv_sys_symbol_underscore=no
10311 cat > conftest.$ac_ext <<EOF
10312void nm_test_func(){}
10313int main(){nm_test_func;return 0;}
10314EOF
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; then
10320 # Now try to grab the symbols.
10321 ac_nlist=conftest.nm
10322 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10323 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } && test -s "$ac_nlist"; then
10327 # See whether the symbols have a leading underscore.
10328 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10329 ac_cv_sys_symbol_underscore=yes
10330 else
10331 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10332 :
10333 else
10334 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10335 fi
10336 fi
10337 else
10338 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10339 fi
10340 else
10341 echo "configure: failed program was:" >&5
10342 cat conftest.c >&5
10343 fi
10344 rm -rf conftest*
10345
10346fi
10347{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10348echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10349
10350
10351if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10352 if test x"$libltdl_cv_func_dlopen" = xyes ||
10353 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10354 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10355echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10356if test "${libltdl_cv_need_uscore+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358else
10359 libltdl_cv_need_uscore=unknown
10360 save_LIBS="$LIBS"
10361 LIBS="$LIBS $LIBADD_DL"
10362 if test "$cross_compiling" = yes; then :
10363 libltdl_cv_need_uscore=cross
10364else
10365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10366 lt_status=$lt_dlunknown
10367 cat > conftest.$ac_ext <<EOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +000010368#line 10368 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010369#include "confdefs.h"
10370
10371#if HAVE_DLFCN_H
10372#include <dlfcn.h>
10373#endif
10374
10375#include <stdio.h>
10376
10377#ifdef RTLD_GLOBAL
10378# define LT_DLGLOBAL RTLD_GLOBAL
10379#else
10380# ifdef DL_GLOBAL
10381# define LT_DLGLOBAL DL_GLOBAL
10382# else
10383# define LT_DLGLOBAL 0
10384# endif
10385#endif
10386
10387/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10388 find out it does not work in some platform. */
10389#ifndef LT_DLLAZY_OR_NOW
10390# ifdef RTLD_LAZY
10391# define LT_DLLAZY_OR_NOW RTLD_LAZY
10392# else
10393# ifdef DL_LAZY
10394# define LT_DLLAZY_OR_NOW DL_LAZY
10395# else
10396# ifdef RTLD_NOW
10397# define LT_DLLAZY_OR_NOW RTLD_NOW
10398# else
10399# ifdef DL_NOW
10400# define LT_DLLAZY_OR_NOW DL_NOW
10401# else
10402# define LT_DLLAZY_OR_NOW 0
10403# endif
10404# endif
10405# endif
10406# endif
10407#endif
10408
10409#ifdef __cplusplus
10410extern "C" void exit (int);
10411#endif
10412
10413void fnord() { int i=42;}
10414int main ()
10415{
10416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10417 int status = $lt_dlunknown;
10418
10419 if (self)
10420 {
10421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10422 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10423 /* dlclose (self); */
10424 }
10425 else
10426 puts (dlerror ());
10427
10428 exit (status);
10429}
10430EOF
10431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432 (eval $ac_link) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10436 (./conftest; exit; ) >&5 2>/dev/null
10437 lt_status=$?
10438 case x$lt_status in
10439 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10440 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10441 x$lt_dlunknown|x*) ;;
10442 esac
10443 else :
10444 # compilation failed
10445
10446 fi
10447fi
10448rm -fr conftest*
10449
10450 LIBS="$save_LIBS"
10451
10452fi
10453{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10454echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10455 fi
10456fi
10457
10458if test x"$libltdl_cv_need_uscore" = xyes; then
10459
10460cat >>confdefs.h <<\_ACEOF
10461#define NEED_USCORE 1
10462_ACEOF
10463
10464fi
10465
10466
10467{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10468echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10469if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471else
10472 # PORTME does your system automatically load deplibs for dlopen?
10473 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10474 # For now, we just catch OSes we know something about -- in the
10475 # future, we'll try test this programmatically.
10476 libltdl_cv_sys_dlopen_deplibs=unknown
10477 case "$host_os" in
10478 aix3*|aix4.1.*|aix4.2.*)
10479 # Unknown whether this is true for these versions of AIX, but
10480 # we want this `case' here to explicitly catch those versions.
10481 libltdl_cv_sys_dlopen_deplibs=unknown
10482 ;;
10483 aix[45]*)
10484 libltdl_cv_sys_dlopen_deplibs=yes
10485 ;;
10486 darwin*)
10487 # Assuming the user has installed a libdl from somewhere, this is true
10488 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10489 libltdl_cv_sys_dlopen_deplibs=yes
10490 ;;
10491 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10492 # GNU and its variants, using gnu ld.so (Glibc)
10493 libltdl_cv_sys_dlopen_deplibs=yes
10494 ;;
10495 hpux10*|hpux11*)
10496 libltdl_cv_sys_dlopen_deplibs=yes
10497 ;;
10498 interix*)
10499 libltdl_cv_sys_dlopen_deplibs=yes
10500 ;;
10501 irix[12345]*|irix6.[01]*)
10502 # Catch all versions of IRIX before 6.2, and indicate that we don't
10503 # know how it worked for any of those versions.
10504 libltdl_cv_sys_dlopen_deplibs=unknown
10505 ;;
10506 irix*)
10507 # The case above catches anything before 6.2, and it's known that
10508 # at 6.2 and later dlopen does load deplibs.
10509 libltdl_cv_sys_dlopen_deplibs=yes
10510 ;;
10511 netbsd*)
10512 libltdl_cv_sys_dlopen_deplibs=yes
10513 ;;
10514 openbsd*)
10515 libltdl_cv_sys_dlopen_deplibs=yes
10516 ;;
10517 osf[1234]*)
10518 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10519 # it did *not* use an RPATH in a shared library to find objects the
10520 # library depends on, so we explicitly say `no'.
10521 libltdl_cv_sys_dlopen_deplibs=no
10522 ;;
10523 osf5.0|osf5.0a|osf5.1)
10524 # dlopen *does* load deplibs and with the right loader patch applied
10525 # it even uses RPATH in a shared library to search for shared objects
10526 # that the library depends on, but there's no easy way to know if that
10527 # patch is installed. Since this is the case, all we can really
10528 # say is unknown -- it depends on the patch being installed. If
10529 # it is, this changes to `yes'. Without it, it would be `no'.
10530 libltdl_cv_sys_dlopen_deplibs=unknown
10531 ;;
10532 osf*)
10533 # the two cases above should catch all versions of osf <= 5.1. Read
10534 # the comments above for what we know about them.
10535 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10536 # is used to find them so we can finally say `yes'.
10537 libltdl_cv_sys_dlopen_deplibs=yes
10538 ;;
10539 solaris*)
10540 libltdl_cv_sys_dlopen_deplibs=yes
10541 ;;
10542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10543 libltdl_cv_sys_dlopen_deplibs=yes
10544 ;;
10545 esac
10546
10547fi
10548{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10549echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10550if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10551
10552cat >>confdefs.h <<\_ACEOF
10553#define LTDL_DLOPEN_DEPLIBS 1
10554_ACEOF
10555
10556fi
10557
10558
10559for ac_header in argz.h
10560do
10561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567fi
10568ac_res=`eval echo '${'$as_ac_Header'}'`
10569 { echo "$as_me:$LINENO: result: $ac_res" >&5
10570echo "${ECHO_T}$ac_res" >&6; }
10571else
10572 # Is the header compilable?
10573{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10574echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
10582#include <$ac_header>
10583_ACEOF
10584rm -f conftest.$ac_objext
10585if { (ac_try="$ac_compile"
10586case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589esac
10590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602esac
10603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612esac
10613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_try") 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_header_compiler=yes
10619else
10620 echo "$as_me: failed program was:" >&5
10621sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 ac_header_compiler=no
10624fi
10625
10626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10628echo "${ECHO_T}$ac_header_compiler" >&6; }
10629
10630# Is the header present?
10631{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10633cat >conftest.$ac_ext <<_ACEOF
10634/* confdefs.h. */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h. */
10639#include <$ac_header>
10640_ACEOF
10641if { (ac_try="$ac_cpp conftest.$ac_ext"
10642case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645esac
10646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } >/dev/null; then
10654 if test -s conftest.err; then
10655 ac_cpp_err=$ac_c_preproc_warn_flag
10656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10657 else
10658 ac_cpp_err=
10659 fi
10660else
10661 ac_cpp_err=yes
10662fi
10663if test -z "$ac_cpp_err"; then
10664 ac_header_preproc=yes
10665else
10666 echo "$as_me: failed program was:" >&5
10667sed 's/^/| /' conftest.$ac_ext >&5
10668
10669 ac_header_preproc=no
10670fi
10671
10672rm -f conftest.err conftest.$ac_ext
10673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674echo "${ECHO_T}$ac_header_preproc" >&6; }
10675
10676# So? What about this header?
10677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10678 yes:no: )
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10683 ac_header_preproc=yes
10684 ;;
10685 no:yes:* )
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10693echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10698 ( cat <<\_ASBOX
10699## ------------------------------ ##
10700## Report this to bugs@yourdomain ##
10701## ------------------------------ ##
10702_ASBOX
10703 ) | sed "s/^/$as_me: WARNING: /" >&2
10704 ;;
10705esac
10706{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 eval "$as_ac_Header=\$ac_header_preproc"
10712fi
10713ac_res=`eval echo '${'$as_ac_Header'}'`
10714 { echo "$as_me:$LINENO: result: $ac_res" >&5
10715echo "${ECHO_T}$ac_res" >&6; }
10716
10717fi
10718if test `eval echo '${'$as_ac_Header'}'` = yes; then
10719 cat >>confdefs.h <<_ACEOF
10720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10721_ACEOF
10722
10723fi
10724
10725done
10726
10727
10728{ echo "$as_me:$LINENO: checking for error_t" >&5
10729echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10730if test "${ac_cv_type_error_t+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10732else
10733 cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h. */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
10738/* end confdefs.h. */
10739#if HAVE_ARGZ_H
10740# include <argz.h>
10741#endif
10742
10743typedef error_t ac__type_new_;
10744int
10745main ()
10746{
10747if ((ac__type_new_ *) 0)
10748 return 0;
10749if (sizeof (ac__type_new_))
10750 return 0;
10751 ;
10752 return 0;
10753}
10754_ACEOF
10755rm -f conftest.$ac_objext
10756if { (ac_try="$ac_compile"
10757case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10760esac
10761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_compile") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10773esac
10774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest.$ac_objext'
10780 { (case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10783esac
10784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_try") 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 ac_cv_type_error_t=yes
10790else
10791 echo "$as_me: failed program was:" >&5
10792sed 's/^/| /' conftest.$ac_ext >&5
10793
10794 ac_cv_type_error_t=no
10795fi
10796
10797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798fi
10799{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10800echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10801if test $ac_cv_type_error_t = yes; then
10802
10803cat >>confdefs.h <<_ACEOF
10804#define HAVE_ERROR_T 1
10805_ACEOF
10806
10807
10808else
10809
10810cat >>confdefs.h <<\_ACEOF
10811#define error_t int
10812_ACEOF
10813
10814fi
10815
10816
10817
10818
10819
10820
10821
10822for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10823do
10824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10825{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10827if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829else
10830 cat >conftest.$ac_ext <<_ACEOF
10831/* confdefs.h. */
10832_ACEOF
10833cat confdefs.h >>conftest.$ac_ext
10834cat >>conftest.$ac_ext <<_ACEOF
10835/* end confdefs.h. */
10836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10838#define $ac_func innocuous_$ac_func
10839
10840/* System header to define __stub macros and hopefully few prototypes,
10841 which can conflict with char $ac_func (); below.
10842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10843 <limits.h> exists even on freestanding compilers. */
10844
10845#ifdef __STDC__
10846# include <limits.h>
10847#else
10848# include <assert.h>
10849#endif
10850
10851#undef $ac_func
10852
10853/* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10856#ifdef __cplusplus
10857extern "C"
10858#endif
10859char $ac_func ();
10860/* The GNU C library defines this for functions which it implements
10861 to always fail with ENOSYS. Some functions are actually named
10862 something starting with __ and the normal name is an alias. */
10863#if defined __stub_$ac_func || defined __stub___$ac_func
10864choke me
10865#endif
10866
10867int
10868main ()
10869{
10870return $ac_func ();
10871 ;
10872 return 0;
10873}
10874_ACEOF
10875rm -f conftest.$ac_objext conftest$ac_exeext
10876if { (ac_try="$ac_link"
10877case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880esac
10881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_link") 2>conftest.er1
10883 ac_status=$?
10884 grep -v '^ *+' conftest.er1 >conftest.err
10885 rm -f conftest.er1
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890 { (case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893esac
10894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_try") 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest$ac_exeext'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903esac
10904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 eval "$as_ac_var=yes"
10910else
10911 echo "$as_me: failed program was:" >&5
10912sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 eval "$as_ac_var=no"
10915fi
10916
10917rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10919fi
10920ac_res=`eval echo '${'$as_ac_var'}'`
10921 { echo "$as_me:$LINENO: result: $ac_res" >&5
10922echo "${ECHO_T}$ac_res" >&6; }
10923if test `eval echo '${'$as_ac_var'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10926_ACEOF
10927
10928fi
10929done
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10959 stdio.h unistd.h
10960do
10961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967fi
10968ac_res=`eval echo '${'$as_ac_Header'}'`
10969 { echo "$as_me:$LINENO: result: $ac_res" >&5
10970echo "${ECHO_T}$ac_res" >&6; }
10971else
10972 # Is the header compilable?
10973{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10974echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
10982#include <$ac_header>
10983_ACEOF
10984rm -f conftest.$ac_objext
10985if { (ac_try="$ac_compile"
10986case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989esac
10990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_compile") 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest.$ac_objext'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012esac
11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_header_compiler=yes
11019else
11020 echo "$as_me: failed program was:" >&5
11021sed 's/^/| /' conftest.$ac_ext >&5
11022
11023 ac_header_compiler=no
11024fi
11025
11026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11028echo "${ECHO_T}$ac_header_compiler" >&6; }
11029
11030# Is the header present?
11031{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11033cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h. */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h. */
11039#include <$ac_header>
11040_ACEOF
11041if { (ac_try="$ac_cpp conftest.$ac_ext"
11042case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11045esac
11046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11048 ac_status=$?
11049 grep -v '^ *+' conftest.er1 >conftest.err
11050 rm -f conftest.er1
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } >/dev/null; then
11054 if test -s conftest.err; then
11055 ac_cpp_err=$ac_c_preproc_warn_flag
11056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11057 else
11058 ac_cpp_err=
11059 fi
11060else
11061 ac_cpp_err=yes
11062fi
11063if test -z "$ac_cpp_err"; then
11064 ac_header_preproc=yes
11065else
11066 echo "$as_me: failed program was:" >&5
11067sed 's/^/| /' conftest.$ac_ext >&5
11068
11069 ac_header_preproc=no
11070fi
11071
11072rm -f conftest.err conftest.$ac_ext
11073{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074echo "${ECHO_T}$ac_header_preproc" >&6; }
11075
11076# So? What about this header?
11077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11078 yes:no: )
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083 ac_header_preproc=yes
11084 ;;
11085 no:yes:* )
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11098 ( cat <<\_ASBOX
11099## ------------------------------ ##
11100## Report this to bugs@yourdomain ##
11101## ------------------------------ ##
11102_ASBOX
11103 ) | sed "s/^/$as_me: WARNING: /" >&2
11104 ;;
11105esac
11106{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110else
11111 eval "$as_ac_Header=\$ac_header_preproc"
11112fi
11113ac_res=`eval echo '${'$as_ac_Header'}'`
11114 { echo "$as_me:$LINENO: result: $ac_res" >&5
11115echo "${ECHO_T}$ac_res" >&6; }
11116
11117fi
11118if test `eval echo '${'$as_ac_Header'}'` = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11121_ACEOF
11122
11123fi
11124
11125done
11126
11127
11128
11129
11130
11131for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11132do
11133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139fi
11140ac_res=`eval echo '${'$as_ac_Header'}'`
11141 { echo "$as_me:$LINENO: result: $ac_res" >&5
11142echo "${ECHO_T}$ac_res" >&6; }
11143else
11144 # Is the header compilable?
11145{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
11154#include <$ac_header>
11155_ACEOF
11156rm -f conftest.$ac_objext
11157if { (ac_try="$ac_compile"
11158case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161esac
11162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_compile") 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11174esac
11175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest.$ac_objext'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11184esac
11185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 ac_header_compiler=yes
11191else
11192 echo "$as_me: failed program was:" >&5
11193sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 ac_header_compiler=no
11196fi
11197
11198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200echo "${ECHO_T}$ac_header_compiler" >&6; }
11201
11202# Is the header present?
11203{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11205cat >conftest.$ac_ext <<_ACEOF
11206/* confdefs.h. */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h. */
11211#include <$ac_header>
11212_ACEOF
11213if { (ac_try="$ac_cpp conftest.$ac_ext"
11214case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217esac
11218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev/null; then
11226 if test -s conftest.err; then
11227 ac_cpp_err=$ac_c_preproc_warn_flag
11228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11229 else
11230 ac_cpp_err=
11231 fi
11232else
11233 ac_cpp_err=yes
11234fi
11235if test -z "$ac_cpp_err"; then
11236 ac_header_preproc=yes
11237else
11238 echo "$as_me: failed program was:" >&5
11239sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 ac_header_preproc=no
11242fi
11243
11244rm -f conftest.err conftest.$ac_ext
11245{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11246echo "${ECHO_T}$ac_header_preproc" >&6; }
11247
11248# So? What about this header?
11249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11250 yes:no: )
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255 ac_header_preproc=yes
11256 ;;
11257 no:yes:* )
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11270 ( cat <<\_ASBOX
11271## ------------------------------ ##
11272## Report this to bugs@yourdomain ##
11273## ------------------------------ ##
11274_ASBOX
11275 ) | sed "s/^/$as_me: WARNING: /" >&2
11276 ;;
11277esac
11278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282else
11283 eval "$as_ac_Header=\$ac_header_preproc"
11284fi
11285ac_res=`eval echo '${'$as_ac_Header'}'`
11286 { echo "$as_me:$LINENO: result: $ac_res" >&5
11287echo "${ECHO_T}$ac_res" >&6; }
11288
11289fi
11290if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293_ACEOF
11294
11295fi
11296
11297done
11298
11299
11300
11301for ac_header in string.h strings.h
11302do
11303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309fi
11310ac_res=`eval echo '${'$as_ac_Header'}'`
11311 { echo "$as_me:$LINENO: result: $ac_res" >&5
11312echo "${ECHO_T}$ac_res" >&6; }
11313else
11314 # Is the header compilable?
11315{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11316echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
11324#include <$ac_header>
11325_ACEOF
11326rm -f conftest.$ac_objext
11327if { (ac_try="$ac_compile"
11328case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11331esac
11332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_compile") 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11341 { (case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11344esac
11345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_try") 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; } &&
11350 { ac_try='test -s conftest.$ac_objext'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354esac
11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11360 ac_header_compiler=yes
11361else
11362 echo "$as_me: failed program was:" >&5
11363sed 's/^/| /' conftest.$ac_ext >&5
11364
11365 ac_header_compiler=no
11366fi
11367
11368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11370echo "${ECHO_T}$ac_header_compiler" >&6; }
11371
11372# Is the header present?
11373{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11375cat >conftest.$ac_ext <<_ACEOF
11376/* confdefs.h. */
11377_ACEOF
11378cat confdefs.h >>conftest.$ac_ext
11379cat >>conftest.$ac_ext <<_ACEOF
11380/* end confdefs.h. */
11381#include <$ac_header>
11382_ACEOF
11383if { (ac_try="$ac_cpp conftest.$ac_ext"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } >/dev/null; then
11396 if test -s conftest.err; then
11397 ac_cpp_err=$ac_c_preproc_warn_flag
11398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11399 else
11400 ac_cpp_err=
11401 fi
11402else
11403 ac_cpp_err=yes
11404fi
11405if test -z "$ac_cpp_err"; then
11406 ac_header_preproc=yes
11407else
11408 echo "$as_me: failed program was:" >&5
11409sed 's/^/| /' conftest.$ac_ext >&5
11410
11411 ac_header_preproc=no
11412fi
11413
11414rm -f conftest.err conftest.$ac_ext
11415{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416echo "${ECHO_T}$ac_header_preproc" >&6; }
11417
11418# So? What about this header?
11419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420 yes:no: )
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425 ac_header_preproc=yes
11426 ;;
11427 no:yes:* )
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440 ( cat <<\_ASBOX
11441## ------------------------------ ##
11442## Report this to bugs@yourdomain ##
11443## ------------------------------ ##
11444_ASBOX
11445 ) | sed "s/^/$as_me: WARNING: /" >&2
11446 ;;
11447esac
11448{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452else
11453 eval "$as_ac_Header=\$ac_header_preproc"
11454fi
11455ac_res=`eval echo '${'$as_ac_Header'}'`
11456 { echo "$as_me:$LINENO: result: $ac_res" >&5
11457echo "${ECHO_T}$ac_res" >&6; }
11458
11459fi
11460if test `eval echo '${'$as_ac_Header'}'` = yes; then
11461 cat >>confdefs.h <<_ACEOF
11462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11463_ACEOF
11464 break
11465fi
11466
11467done
11468
11469
11470
11471
11472for ac_func in strchr index
11473do
11474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11475{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11479else
11480 cat >conftest.$ac_ext <<_ACEOF
11481/* confdefs.h. */
11482_ACEOF
11483cat confdefs.h >>conftest.$ac_ext
11484cat >>conftest.$ac_ext <<_ACEOF
11485/* end confdefs.h. */
11486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11488#define $ac_func innocuous_$ac_func
11489
11490/* System header to define __stub macros and hopefully few prototypes,
11491 which can conflict with char $ac_func (); below.
11492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11493 <limits.h> exists even on freestanding compilers. */
11494
11495#ifdef __STDC__
11496# include <limits.h>
11497#else
11498# include <assert.h>
11499#endif
11500
11501#undef $ac_func
11502
11503/* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506#ifdef __cplusplus
11507extern "C"
11508#endif
11509char $ac_func ();
11510/* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513#if defined __stub_$ac_func || defined __stub___$ac_func
11514choke me
11515#endif
11516
11517int
11518main ()
11519{
11520return $ac_func ();
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext conftest$ac_exeext
11526if { (ac_try="$ac_link"
11527case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11530esac
11531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_link") 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11540 { (case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11543esac
11544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_try") 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553esac
11554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_try") 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 eval "$as_ac_var=yes"
11560else
11561 echo "$as_me: failed program was:" >&5
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 eval "$as_ac_var=no"
11565fi
11566
11567rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11569fi
11570ac_res=`eval echo '${'$as_ac_var'}'`
11571 { echo "$as_me:$LINENO: result: $ac_res" >&5
11572echo "${ECHO_T}$ac_res" >&6; }
11573if test `eval echo '${'$as_ac_var'}'` = yes; then
11574 cat >>confdefs.h <<_ACEOF
11575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11576_ACEOF
11577 break
11578fi
11579done
11580
11581
11582
11583for ac_func in strrchr rindex
11584do
11585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11586{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11588if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590else
11591 cat >conftest.$ac_ext <<_ACEOF
11592/* confdefs.h. */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h. */
11597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11599#define $ac_func innocuous_$ac_func
11600
11601/* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func (); below.
11603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604 <limits.h> exists even on freestanding compilers. */
11605
11606#ifdef __STDC__
11607# include <limits.h>
11608#else
11609# include <assert.h>
11610#endif
11611
11612#undef $ac_func
11613
11614/* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11617#ifdef __cplusplus
11618extern "C"
11619#endif
11620char $ac_func ();
11621/* The GNU C library defines this for functions which it implements
11622 to always fail with ENOSYS. Some functions are actually named
11623 something starting with __ and the normal name is an alias. */
11624#if defined __stub_$ac_func || defined __stub___$ac_func
11625choke me
11626#endif
11627
11628int
11629main ()
11630{
11631return $ac_func ();
11632 ;
11633 return 0;
11634}
11635_ACEOF
11636rm -f conftest.$ac_objext conftest$ac_exeext
11637if { (ac_try="$ac_link"
11638case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_link") 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11651 { (case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654esac
11655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_try") 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest$ac_exeext'
11661 { (case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664esac
11665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_try") 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 eval "$as_ac_var=yes"
11671else
11672 echo "$as_me: failed program was:" >&5
11673sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 eval "$as_ac_var=no"
11676fi
11677
11678rm -f core conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11680fi
11681ac_res=`eval echo '${'$as_ac_var'}'`
11682 { echo "$as_me:$LINENO: result: $ac_res" >&5
11683echo "${ECHO_T}$ac_res" >&6; }
11684if test `eval echo '${'$as_ac_var'}'` = yes; then
11685 cat >>confdefs.h <<_ACEOF
11686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11687_ACEOF
11688 break
11689fi
11690done
11691
11692
11693
11694for ac_func in memcpy bcopy
11695do
11696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11697{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11699if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701else
11702 cat >conftest.$ac_ext <<_ACEOF
11703/* confdefs.h. */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h. */
11708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11710#define $ac_func innocuous_$ac_func
11711
11712/* System header to define __stub macros and hopefully few prototypes,
11713 which can conflict with char $ac_func (); below.
11714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11715 <limits.h> exists even on freestanding compilers. */
11716
11717#ifdef __STDC__
11718# include <limits.h>
11719#else
11720# include <assert.h>
11721#endif
11722
11723#undef $ac_func
11724
11725/* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11728#ifdef __cplusplus
11729extern "C"
11730#endif
11731char $ac_func ();
11732/* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735#if defined __stub_$ac_func || defined __stub___$ac_func
11736choke me
11737#endif
11738
11739int
11740main ()
11741{
11742return $ac_func ();
11743 ;
11744 return 0;
11745}
11746_ACEOF
11747rm -f conftest.$ac_objext conftest$ac_exeext
11748if { (ac_try="$ac_link"
11749case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752esac
11753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_link") 2>conftest.er1
11755 ac_status=$?
11756 grep -v '^ *+' conftest.er1 >conftest.err
11757 rm -f conftest.er1
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; } &&
11771 { ac_try='test -s conftest$ac_exeext'
11772 { (case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775esac
11776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_try") 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 eval "$as_ac_var=yes"
11782else
11783 echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 eval "$as_ac_var=no"
11787fi
11788
11789rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791fi
11792ac_res=`eval echo '${'$as_ac_var'}'`
11793 { echo "$as_me:$LINENO: result: $ac_res" >&5
11794echo "${ECHO_T}$ac_res" >&6; }
11795if test `eval echo '${'$as_ac_var'}'` = yes; then
11796 cat >>confdefs.h <<_ACEOF
11797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11798_ACEOF
11799 break
11800fi
11801done
11802
11803
11804
11805for ac_func in memmove strcmp
11806do
11807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11808{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11810if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812else
11813 cat >conftest.$ac_ext <<_ACEOF
11814/* confdefs.h. */
11815_ACEOF
11816cat confdefs.h >>conftest.$ac_ext
11817cat >>conftest.$ac_ext <<_ACEOF
11818/* end confdefs.h. */
11819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11821#define $ac_func innocuous_$ac_func
11822
11823/* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char $ac_func (); below.
11825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826 <limits.h> exists even on freestanding compilers. */
11827
11828#ifdef __STDC__
11829# include <limits.h>
11830#else
11831# include <assert.h>
11832#endif
11833
11834#undef $ac_func
11835
11836/* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11839#ifdef __cplusplus
11840extern "C"
11841#endif
11842char $ac_func ();
11843/* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846#if defined __stub_$ac_func || defined __stub___$ac_func
11847choke me
11848#endif
11849
11850int
11851main ()
11852{
11853return $ac_func ();
11854 ;
11855 return 0;
11856}
11857_ACEOF
11858rm -f conftest.$ac_objext conftest$ac_exeext
11859if { (ac_try="$ac_link"
11860case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863esac
11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_link") 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886esac
11887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_try") 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 eval "$as_ac_var=yes"
11893else
11894 echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 eval "$as_ac_var=no"
11898fi
11899
11900rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902fi
11903ac_res=`eval echo '${'$as_ac_var'}'`
11904 { echo "$as_me:$LINENO: result: $ac_res" >&5
11905echo "${ECHO_T}$ac_res" >&6; }
11906if test `eval echo '${'$as_ac_var'}'` = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11909_ACEOF
11910
11911fi
11912done
11913
11914
11915
11916
11917for ac_func in closedir opendir readdir
11918do
11919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924else
11925 cat >conftest.$ac_ext <<_ACEOF
11926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
11931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11933#define $ac_func innocuous_$ac_func
11934
11935/* System header to define __stub macros and hopefully few prototypes,
11936 which can conflict with char $ac_func (); below.
11937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11938 <limits.h> exists even on freestanding compilers. */
11939
11940#ifdef __STDC__
11941# include <limits.h>
11942#else
11943# include <assert.h>
11944#endif
11945
11946#undef $ac_func
11947
11948/* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11951#ifdef __cplusplus
11952extern "C"
11953#endif
11954char $ac_func ();
11955/* The GNU C library defines this for functions which it implements
11956 to always fail with ENOSYS. Some functions are actually named
11957 something starting with __ and the normal name is an alias. */
11958#if defined __stub_$ac_func || defined __stub___$ac_func
11959choke me
11960#endif
11961
11962int
11963main ()
11964{
11965return $ac_func ();
11966 ;
11967 return 0;
11968}
11969_ACEOF
11970rm -f conftest.$ac_objext conftest$ac_exeext
11971if { (ac_try="$ac_link"
11972case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>conftest.er1
11978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11985 { (case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11988esac
11989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_try") 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest$ac_exeext'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 eval "$as_ac_var=yes"
12005else
12006 echo "$as_me: failed program was:" >&5
12007sed 's/^/| /' conftest.$ac_ext >&5
12008
12009 eval "$as_ac_var=no"
12010fi
12011
12012rm -f core conftest.err conftest.$ac_objext \
12013 conftest$ac_exeext conftest.$ac_ext
12014fi
12015ac_res=`eval echo '${'$as_ac_var'}'`
12016 { echo "$as_me:$LINENO: result: $ac_res" >&5
12017echo "${ECHO_T}$ac_res" >&6; }
12018if test `eval echo '${'$as_ac_var'}'` = yes; then
12019 cat >>confdefs.h <<_ACEOF
12020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12021_ACEOF
12022
12023fi
12024done
12025
12026
12027
12028{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12029echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12030
12031ICC=no
12032IXX=no
12033case $CC in
12034 icc*|icpc*)
12035 ICC=yes
12036 IXX=yes
12037 ;;
12038 *)
12039 ;;
12040esac
12041
12042if test "$GCC" != "yes" && test "$ICC" != "yes"
12043then
12044 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12045echo "$as_me: error: gcc|icc required but not found" >&2;}
12046 { (exit 1); exit 1; }; }
12047fi
12048
12049if test "$GXX" != "yes" && test "$IXX" != "yes"
12050then
12051 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12052echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12053 { (exit 1); exit 1; }; }
12054fi
12055
12056if test "$GCC" = "yes"
12057then
12058 cat >conftest.$ac_ext <<_ACEOF
12059#if !defined(__GNUC__) || __GNUC__ < 3
12060#error Unsupported GCC version
12061#endif
12062
12063_ACEOF
12064rm -f conftest.$ac_objext
12065if { (ac_try="$ac_compile"
12066case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12069esac
12070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_compile") 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12079 { (case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12082esac
12083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_try") 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; } &&
12088 { ac_try='test -s conftest.$ac_objext'
12089 { (case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12092esac
12093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_try") 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 :
12099else
12100 echo "$as_me: failed program was:" >&5
12101sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12104echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12105 { (exit 1); exit 1; }; }
12106fi
12107
12108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109fi
12110
12111if test -z "$llvm_cv_gnu_make_command"
12112then
12113 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12114echo "$as_me: error: GNU Make required but not found" >&2;}
12115 { (exit 1); exit 1; }; }
12116fi
12117
12118{ echo "$as_me:$LINENO: result: ok" >&5
12119echo "${ECHO_T}ok" >&6; }
12120
12121{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12122echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12123NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12124
12125NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12126
12127{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12128echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12129
12130
12131
12132{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12133echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12134if test "${ac_cv_lib_m_sin+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136else
12137 ac_check_lib_save_LIBS=$LIBS
12138LIBS="-lm $LIBS"
12139cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
12145
12146/* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12149#ifdef __cplusplus
12150extern "C"
12151#endif
12152char sin ();
12153int
12154main ()
12155{
12156return sin ();
12157 ;
12158 return 0;
12159}
12160_ACEOF
12161rm -f conftest.$ac_objext conftest$ac_exeext
12162if { (ac_try="$ac_link"
12163case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_link") 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179esac
12180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest$ac_exeext'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189esac
12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 ac_cv_lib_m_sin=yes
12196else
12197 echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
12200 ac_cv_lib_m_sin=no
12201fi
12202
12203rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205LIBS=$ac_check_lib_save_LIBS
12206fi
12207{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12208echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12209if test $ac_cv_lib_m_sin = yes; then
12210 cat >>confdefs.h <<_ACEOF
12211#define HAVE_LIBM 1
12212_ACEOF
12213
12214 LIBS="-lm $LIBS"
12215
12216fi
12217
12218if test "$llvm_cv_os_type" = "MingW" ; then
12219
12220{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12221echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12222if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224else
12225 ac_check_lib_save_LIBS=$LIBS
12226LIBS="-limagehlp $LIBS"
12227cat >conftest.$ac_ext <<_ACEOF
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
12232/* end confdefs.h. */
12233
12234
12235int
12236main ()
12237{
12238return main ();
12239 ;
12240 return 0;
12241}
12242_ACEOF
12243rm -f conftest.$ac_objext conftest$ac_exeext
12244if { (ac_try="$ac_link"
12245case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271esac
12272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 ac_cv_lib_imagehlp_main=yes
12278else
12279 echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
12282 ac_cv_lib_imagehlp_main=no
12283fi
12284
12285rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287LIBS=$ac_check_lib_save_LIBS
12288fi
12289{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12290echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12291if test $ac_cv_lib_imagehlp_main = yes; then
12292 cat >>confdefs.h <<_ACEOF
12293#define HAVE_LIBIMAGEHLP 1
12294_ACEOF
12295
12296 LIBS="-limagehlp $LIBS"
12297
12298fi
12299
12300
12301{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12302echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12303if test "${ac_cv_lib_psapi_main+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305else
12306 ac_check_lib_save_LIBS=$LIBS
12307LIBS="-lpsapi $LIBS"
12308cat >conftest.$ac_ext <<_ACEOF
12309/* confdefs.h. */
12310_ACEOF
12311cat confdefs.h >>conftest.$ac_ext
12312cat >>conftest.$ac_ext <<_ACEOF
12313/* end confdefs.h. */
12314
12315
12316int
12317main ()
12318{
12319return main ();
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324rm -f conftest.$ac_objext conftest$ac_exeext
12325if { (ac_try="$ac_link"
12326case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329esac
12330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_link") 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12339 { (case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342esac
12343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_try") 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try='test -s conftest$ac_exeext'
12349 { (case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352esac
12353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_try") 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_lib_psapi_main=yes
12359else
12360 echo "$as_me: failed program was:" >&5
12361sed 's/^/| /' conftest.$ac_ext >&5
12362
12363 ac_cv_lib_psapi_main=no
12364fi
12365
12366rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368LIBS=$ac_check_lib_save_LIBS
12369fi
12370{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12371echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12372if test $ac_cv_lib_psapi_main = yes; then
12373 cat >>confdefs.h <<_ACEOF
12374#define HAVE_LIBPSAPI 1
12375_ACEOF
12376
12377 LIBS="-lpsapi $LIBS"
12378
12379fi
12380
12381fi
12382
12383{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12384echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12385if test "${ac_cv_search_dlopen+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387else
12388 ac_func_search_save_LIBS=$LIBS
12389cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395
12396/* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12399#ifdef __cplusplus
12400extern "C"
12401#endif
12402char dlopen ();
12403int
12404main ()
12405{
12406return dlopen ();
12407 ;
12408 return 0;
12409}
12410_ACEOF
12411for ac_lib in '' dl; do
12412 if test -z "$ac_lib"; then
12413 ac_res="none required"
12414 else
12415 ac_res=-l$ac_lib
12416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12417 fi
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419if { (ac_try="$ac_link"
12420case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12436esac
12437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446esac
12447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_search_dlopen=$ac_res
12453else
12454 echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
12457
12458fi
12459
12460rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext
12462 if test "${ac_cv_search_dlopen+set}" = set; then
12463 break
12464fi
12465done
12466if test "${ac_cv_search_dlopen+set}" = set; then
12467 :
12468else
12469 ac_cv_search_dlopen=no
12470fi
12471rm conftest.$ac_ext
12472LIBS=$ac_func_search_save_LIBS
12473fi
12474{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12475echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12476ac_res=$ac_cv_search_dlopen
12477if test "$ac_res" != no; then
12478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12479
12480cat >>confdefs.h <<\_ACEOF
12481#define HAVE_DLOPEN 1
12482_ACEOF
12483
12484else
12485 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12486echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12487fi
12488
12489
12490if test "$llvm_cv_enable_libffi" = "yes" ; then
12491 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12492echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12493if test "${ac_cv_search_ffi_call+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495else
12496 ac_func_search_save_LIBS=$LIBS
12497cat >conftest.$ac_ext <<_ACEOF
12498/* confdefs.h. */
12499_ACEOF
12500cat confdefs.h >>conftest.$ac_ext
12501cat >>conftest.$ac_ext <<_ACEOF
12502/* end confdefs.h. */
12503
12504/* Override any GCC internal prototype to avoid an error.
12505 Use char because int might match the return type of a GCC
12506 builtin and then its argument prototype would still apply. */
12507#ifdef __cplusplus
12508extern "C"
12509#endif
12510char ffi_call ();
12511int
12512main ()
12513{
12514return ffi_call ();
12515 ;
12516 return 0;
12517}
12518_ACEOF
12519for ac_lib in '' ffi; do
12520 if test -z "$ac_lib"; then
12521 ac_res="none required"
12522 else
12523 ac_res=-l$ac_lib
12524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12525 fi
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527if { (ac_try="$ac_link"
12528case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest$ac_exeext'
12551 { (case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554esac
12555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_try") 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 ac_cv_search_ffi_call=$ac_res
12561else
12562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
12565
12566fi
12567
12568rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext
12570 if test "${ac_cv_search_ffi_call+set}" = set; then
12571 break
12572fi
12573done
12574if test "${ac_cv_search_ffi_call+set}" = set; then
12575 :
12576else
12577 ac_cv_search_ffi_call=no
12578fi
12579rm conftest.$ac_ext
12580LIBS=$ac_func_search_save_LIBS
12581fi
12582{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12583echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12584ac_res=$ac_cv_search_ffi_call
12585if test "$ac_res" != no; then
12586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12587
12588cat >>confdefs.h <<\_ACEOF
12589#define HAVE_FFI_CALL 1
12590_ACEOF
12591
12592else
12593 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12594echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12595 { (exit 1); exit 1; }; }
12596fi
12597
12598fi
12599
12600{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12601echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12602if test "${ac_cv_search_mallinfo+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12604else
12605 ac_func_search_save_LIBS=$LIBS
12606cat >conftest.$ac_ext <<_ACEOF
12607/* confdefs.h. */
12608_ACEOF
12609cat confdefs.h >>conftest.$ac_ext
12610cat >>conftest.$ac_ext <<_ACEOF
12611/* end confdefs.h. */
12612
12613/* Override any GCC internal prototype to avoid an error.
12614 Use char because int might match the return type of a GCC
12615 builtin and then its argument prototype would still apply. */
12616#ifdef __cplusplus
12617extern "C"
12618#endif
12619char mallinfo ();
12620int
12621main ()
12622{
12623return mallinfo ();
12624 ;
12625 return 0;
12626}
12627_ACEOF
12628for ac_lib in '' malloc; do
12629 if test -z "$ac_lib"; then
12630 ac_res="none required"
12631 else
12632 ac_res=-l$ac_lib
12633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12634 fi
12635 rm -f conftest.$ac_objext conftest$ac_exeext
12636if { (ac_try="$ac_link"
12637case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640esac
12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_link") 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653esac
12654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest$ac_exeext'
12660 { (case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663esac
12664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_try") 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_cv_search_mallinfo=$ac_res
12670else
12671 echo "$as_me: failed program was:" >&5
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
12674
12675fi
12676
12677rm -f core conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext
12679 if test "${ac_cv_search_mallinfo+set}" = set; then
12680 break
12681fi
12682done
12683if test "${ac_cv_search_mallinfo+set}" = set; then
12684 :
12685else
12686 ac_cv_search_mallinfo=no
12687fi
12688rm conftest.$ac_ext
12689LIBS=$ac_func_search_save_LIBS
12690fi
12691{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12692echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12693ac_res=$ac_cv_search_mallinfo
12694if test "$ac_res" != no; then
12695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12696
12697cat >>confdefs.h <<\_ACEOF
12698#define HAVE_MALLINFO 1
12699_ACEOF
12700
12701fi
12702
12703
12704if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12705
12706{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12707echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12708if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710else
12711 ac_check_lib_save_LIBS=$LIBS
12712LIBS="-lpthread $LIBS"
12713cat >conftest.$ac_ext <<_ACEOF
12714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719
12720/* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12723#ifdef __cplusplus
12724extern "C"
12725#endif
12726char pthread_mutex_init ();
12727int
12728main ()
12729{
12730return pthread_mutex_init ();
12731 ;
12732 return 0;
12733}
12734_ACEOF
12735rm -f conftest.$ac_objext conftest$ac_exeext
12736if { (ac_try="$ac_link"
12737case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740esac
12741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
12749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest$ac_exeext'
12760 { (case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763esac
12764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_try") 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_cv_lib_pthread_pthread_mutex_init=yes
12770else
12771 echo "$as_me: failed program was:" >&5
12772sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 ac_cv_lib_pthread_pthread_mutex_init=no
12775fi
12776
12777rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779LIBS=$ac_check_lib_save_LIBS
12780fi
12781{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12782echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12783if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12784 cat >>confdefs.h <<_ACEOF
12785#define HAVE_LIBPTHREAD 1
12786_ACEOF
12787
12788 LIBS="-lpthread $LIBS"
12789
12790fi
12791
12792 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12793echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12794if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 ac_func_search_save_LIBS=$LIBS
12798cat >conftest.$ac_ext <<_ACEOF
12799/* confdefs.h. */
12800_ACEOF
12801cat confdefs.h >>conftest.$ac_ext
12802cat >>conftest.$ac_ext <<_ACEOF
12803/* end confdefs.h. */
12804
12805/* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12808#ifdef __cplusplus
12809extern "C"
12810#endif
12811char pthread_mutex_lock ();
12812int
12813main ()
12814{
12815return pthread_mutex_lock ();
12816 ;
12817 return 0;
12818}
12819_ACEOF
12820for ac_lib in '' pthread; do
12821 if test -z "$ac_lib"; then
12822 ac_res="none required"
12823 else
12824 ac_res=-l$ac_lib
12825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12826 fi
12827 rm -f conftest.$ac_objext conftest$ac_exeext
12828if { (ac_try="$ac_link"
12829case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832esac
12833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_link") 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845esac
12846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_try") 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_cv_search_pthread_mutex_lock=$ac_res
12862else
12863 echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
12866
12867fi
12868
12869rm -f core conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext
12871 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12872 break
12873fi
12874done
12875if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12876 :
12877else
12878 ac_cv_search_pthread_mutex_lock=no
12879fi
12880rm conftest.$ac_ext
12881LIBS=$ac_func_search_save_LIBS
12882fi
12883{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12884echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12885ac_res=$ac_cv_search_pthread_mutex_lock
12886if test "$ac_res" != no; then
12887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12888
12889cat >>confdefs.h <<\_ACEOF
12890#define HAVE_PTHREAD_MUTEX_LOCK 1
12891_ACEOF
12892
12893fi
12894
12895 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12896echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12897if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899else
12900 ac_func_search_save_LIBS=$LIBS
12901cat >conftest.$ac_ext <<_ACEOF
12902/* confdefs.h. */
12903_ACEOF
12904cat confdefs.h >>conftest.$ac_ext
12905cat >>conftest.$ac_ext <<_ACEOF
12906/* end confdefs.h. */
12907
12908/* Override any GCC internal prototype to avoid an error.
12909 Use char because int might match the return type of a GCC
12910 builtin and then its argument prototype would still apply. */
12911#ifdef __cplusplus
12912extern "C"
12913#endif
12914char pthread_rwlock_init ();
12915int
12916main ()
12917{
12918return pthread_rwlock_init ();
12919 ;
12920 return 0;
12921}
12922_ACEOF
12923for ac_lib in '' pthread; do
12924 if test -z "$ac_lib"; then
12925 ac_res="none required"
12926 else
12927 ac_res=-l$ac_lib
12928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12929 fi
12930 rm -f conftest.$ac_objext conftest$ac_exeext
12931if { (ac_try="$ac_link"
12932case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12935esac
12936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_link") 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12945 { (case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12948esac
12949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_try") 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; } &&
12954 { ac_try='test -s conftest$ac_exeext'
12955 { (case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958esac
12959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_try") 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 ac_cv_search_pthread_rwlock_init=$ac_res
12965else
12966 echo "$as_me: failed program was:" >&5
12967sed 's/^/| /' conftest.$ac_ext >&5
12968
12969
12970fi
12971
12972rm -f core conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext
12974 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12975 break
12976fi
12977done
12978if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12979 :
12980else
12981 ac_cv_search_pthread_rwlock_init=no
12982fi
12983rm conftest.$ac_ext
12984LIBS=$ac_func_search_save_LIBS
12985fi
12986{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12987echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12988ac_res=$ac_cv_search_pthread_rwlock_init
12989if test "$ac_res" != no; then
12990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12991
12992cat >>confdefs.h <<\_ACEOF
12993#define HAVE_PTHREAD_RWLOCK_INIT 1
12994_ACEOF
12995
12996fi
12997
12998 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12999echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13000if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003 ac_func_search_save_LIBS=$LIBS
13004cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h. */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
13009/* end confdefs.h. */
13010
13011/* Override any GCC internal prototype to avoid an error.
13012 Use char because int might match the return type of a GCC
13013 builtin and then its argument prototype would still apply. */
13014#ifdef __cplusplus
13015extern "C"
13016#endif
13017char pthread_getspecific ();
13018int
13019main ()
13020{
13021return pthread_getspecific ();
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026for ac_lib in '' pthread; do
13027 if test -z "$ac_lib"; then
13028 ac_res="none required"
13029 else
13030 ac_res=-l$ac_lib
13031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13032 fi
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034if { (ac_try="$ac_link"
13035case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest$ac_exeext'
13058 { (case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061esac
13062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_try") 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_cv_search_pthread_getspecific=$ac_res
13068else
13069 echo "$as_me: failed program was:" >&5
13070sed 's/^/| /' conftest.$ac_ext >&5
13071
13072
13073fi
13074
13075rm -f core conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext
13077 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13078 break
13079fi
13080done
13081if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13082 :
13083else
13084 ac_cv_search_pthread_getspecific=no
13085fi
13086rm conftest.$ac_ext
13087LIBS=$ac_func_search_save_LIBS
13088fi
13089{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13090echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13091ac_res=$ac_cv_search_pthread_getspecific
13092if test "$ac_res" != no; then
13093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13094
13095cat >>confdefs.h <<\_ACEOF
13096#define HAVE_PTHREAD_GETSPECIFIC 1
13097_ACEOF
13098
13099fi
13100
13101fi
13102
13103
13104# Check whether --with-udis86 was given.
13105if test "${with_udis86+set}" = set; then
13106 withval=$with_udis86;
13107 USE_UDIS86=1
13108
13109 case "$withval" in
13110 /usr/lib|yes) ;;
13111 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13112 esac
13113
13114{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13115echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13116if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118else
13119 ac_check_lib_save_LIBS=$LIBS
13120LIBS="-ludis86 $LIBS"
13121cat >conftest.$ac_ext <<_ACEOF
13122/* confdefs.h. */
13123_ACEOF
13124cat confdefs.h >>conftest.$ac_ext
13125cat >>conftest.$ac_ext <<_ACEOF
13126/* end confdefs.h. */
13127
13128/* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13131#ifdef __cplusplus
13132extern "C"
13133#endif
13134char ud_init ();
13135int
13136main ()
13137{
13138return ud_init ();
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext conftest$ac_exeext
13144if { (ac_try="$ac_link"
13145case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148esac
13149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_link") 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
13157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13158 { (case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161esac
13162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_try") 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest$ac_exeext'
13168 { (case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13171esac
13172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_try") 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_lib_udis86_ud_init=yes
13178else
13179 echo "$as_me: failed program was:" >&5
13180sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_cv_lib_udis86_ud_init=no
13183fi
13184
13185rm -f core conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13187LIBS=$ac_check_lib_save_LIBS
13188fi
13189{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13190echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13191if test $ac_cv_lib_udis86_ud_init = yes; then
13192 cat >>confdefs.h <<_ACEOF
13193#define HAVE_LIBUDIS86 1
13194_ACEOF
13195
13196 LIBS="-ludis86 $LIBS"
13197
13198else
13199
13200 echo "Error! You need to have libudis86 around."
13201 exit -1
13202
13203fi
13204
13205
13206else
13207 USE_UDIS86=0
13208
13209fi
13210
13211
13212cat >>confdefs.h <<_ACEOF
13213#define USE_UDIS86 $USE_UDIS86
13214_ACEOF
13215
13216
13217
13218# Check whether --with-oprofile was given.
13219if test "${with_oprofile+set}" = set; then
13220 withval=$with_oprofile;
13221 USE_OPROFILE=1
13222
13223 case "$withval" in
13224 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13225 no) llvm_cv_oppath=
13226 USE_OPROFILE=0
13227 ;;
13228 *) llvm_cv_oppath="${withval}/lib/oprofile"
13229 CPPFLAGS="-I${withval}/include";;
13230 esac
13231 if test -n "$llvm_cv_oppath" ; then
13232 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13233 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13234echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13235if test "${ac_cv_search_bfd_init+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
13238 ac_func_search_save_LIBS=$LIBS
13239cat >conftest.$ac_ext <<_ACEOF
13240/* confdefs.h. */
13241_ACEOF
13242cat confdefs.h >>conftest.$ac_ext
13243cat >>conftest.$ac_ext <<_ACEOF
13244/* end confdefs.h. */
13245
13246/* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13249#ifdef __cplusplus
13250extern "C"
13251#endif
13252char bfd_init ();
13253int
13254main ()
13255{
13256return bfd_init ();
13257 ;
13258 return 0;
13259}
13260_ACEOF
13261for ac_lib in '' bfd; do
13262 if test -z "$ac_lib"; then
13263 ac_res="none required"
13264 else
13265 ac_res=-l$ac_lib
13266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13267 fi
13268 rm -f conftest.$ac_objext conftest$ac_exeext
13269if { (ac_try="$ac_link"
13270case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273esac
13274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_link") 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13283 { (case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286esac
13287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; } &&
13292 { ac_try='test -s conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296esac
13297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_search_bfd_init=$ac_res
13303else
13304 echo "$as_me: failed program was:" >&5
13305sed 's/^/| /' conftest.$ac_ext >&5
13306
13307
13308fi
13309
13310rm -f core conftest.err conftest.$ac_objext \
13311 conftest$ac_exeext
13312 if test "${ac_cv_search_bfd_init+set}" = set; then
13313 break
13314fi
13315done
13316if test "${ac_cv_search_bfd_init+set}" = set; then
13317 :
13318else
13319 ac_cv_search_bfd_init=no
13320fi
13321rm conftest.$ac_ext
13322LIBS=$ac_func_search_save_LIBS
13323fi
13324{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13325echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13326ac_res=$ac_cv_search_bfd_init
13327if test "$ac_res" != no; then
13328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13329
13330fi
13331
13332 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13333echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13334if test "${ac_cv_search_op_open_agent+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336else
13337 ac_func_search_save_LIBS=$LIBS
13338cat >conftest.$ac_ext <<_ACEOF
13339/* confdefs.h. */
13340_ACEOF
13341cat confdefs.h >>conftest.$ac_ext
13342cat >>conftest.$ac_ext <<_ACEOF
13343/* end confdefs.h. */
13344
13345/* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13348#ifdef __cplusplus
13349extern "C"
13350#endif
13351char op_open_agent ();
13352int
13353main ()
13354{
13355return op_open_agent ();
13356 ;
13357 return 0;
13358}
13359_ACEOF
13360for ac_lib in '' opagent; do
13361 if test -z "$ac_lib"; then
13362 ac_res="none required"
13363 else
13364 ac_res=-l$ac_lib
13365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13366 fi
13367 rm -f conftest.$ac_objext conftest$ac_exeext
13368if { (ac_try="$ac_link"
13369case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372esac
13373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_link") 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385esac
13386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest$ac_exeext'
13392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13395esac
13396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_cv_search_op_open_agent=$ac_res
13402else
13403 echo "$as_me: failed program was:" >&5
13404sed 's/^/| /' conftest.$ac_ext >&5
13405
13406
13407fi
13408
13409rm -f core conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext
13411 if test "${ac_cv_search_op_open_agent+set}" = set; then
13412 break
13413fi
13414done
13415if test "${ac_cv_search_op_open_agent+set}" = set; then
13416 :
13417else
13418 ac_cv_search_op_open_agent=no
13419fi
13420rm conftest.$ac_ext
13421LIBS=$ac_func_search_save_LIBS
13422fi
13423{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13424echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13425ac_res=$ac_cv_search_op_open_agent
13426if test "$ac_res" != no; then
13427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13428
13429else
13430
13431 echo "Error! You need to have libopagent around."
13432 exit -1
13433
13434fi
13435
13436 if test "${ac_cv_header_opagent_h+set}" = set; then
13437 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13438echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13439if test "${ac_cv_header_opagent_h+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13441fi
13442{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13443echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13444else
13445 # Is the header compilable?
13446{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13447echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13448cat >conftest.$ac_ext <<_ACEOF
13449/* confdefs.h. */
13450_ACEOF
13451cat confdefs.h >>conftest.$ac_ext
13452cat >>conftest.$ac_ext <<_ACEOF
13453/* end confdefs.h. */
13454$ac_includes_default
13455#include <opagent.h>
13456_ACEOF
13457rm -f conftest.$ac_objext
13458if { (ac_try="$ac_compile"
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_compile") 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); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475esac
13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest.$ac_objext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_header_compiler=yes
13492else
13493 echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 ac_header_compiler=no
13497fi
13498
13499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13501echo "${ECHO_T}$ac_header_compiler" >&6; }
13502
13503# Is the header present?
13504{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13505echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13506cat >conftest.$ac_ext <<_ACEOF
13507/* confdefs.h. */
13508_ACEOF
13509cat confdefs.h >>conftest.$ac_ext
13510cat >>conftest.$ac_ext <<_ACEOF
13511/* end confdefs.h. */
13512#include <opagent.h>
13513_ACEOF
13514if { (ac_try="$ac_cpp conftest.$ac_ext"
13515case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518esac
13519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13521 ac_status=$?
13522 grep -v '^ *+' conftest.er1 >conftest.err
13523 rm -f conftest.er1
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } >/dev/null; then
13527 if test -s conftest.err; then
13528 ac_cpp_err=$ac_c_preproc_warn_flag
13529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13530 else
13531 ac_cpp_err=
13532 fi
13533else
13534 ac_cpp_err=yes
13535fi
13536if test -z "$ac_cpp_err"; then
13537 ac_header_preproc=yes
13538else
13539 echo "$as_me: failed program was:" >&5
13540sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 ac_header_preproc=no
13543fi
13544
13545rm -f conftest.err conftest.$ac_ext
13546{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547echo "${ECHO_T}$ac_header_preproc" >&6; }
13548
13549# So? What about this header?
13550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551 yes:no: )
13552 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13553echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13555echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13557 ;;
13558 no:yes:* )
13559 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13560echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13562echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13564echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13566echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13568echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13570echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13571 ( cat <<\_ASBOX
13572## ------------------------------ ##
13573## Report this to bugs@yourdomain ##
13574## ------------------------------ ##
13575_ASBOX
13576 ) | sed "s/^/$as_me: WARNING: /" >&2
13577 ;;
13578esac
13579{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13580echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13581if test "${ac_cv_header_opagent_h+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583else
13584 ac_cv_header_opagent_h=$ac_header_preproc
13585fi
13586{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13587echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13588
13589fi
13590if test $ac_cv_header_opagent_h = yes; then
13591 :
13592else
13593
13594 echo "Error! You need to have opagent.h around."
13595 exit -1
13596
13597fi
13598
13599
13600 fi
13601
13602else
13603
13604 USE_OPROFILE=0
13605
13606
13607fi
13608
13609
13610cat >>confdefs.h <<_ACEOF
13611#define USE_OPROFILE $USE_OPROFILE
13612_ACEOF
13613
13614
13615
13616
13617
13618
13619
13620
13621ac_header_dirent=no
13622for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13623 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13624{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13625echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628else
13629 cat >conftest.$ac_ext <<_ACEOF
13630/* confdefs.h. */
13631_ACEOF
13632cat confdefs.h >>conftest.$ac_ext
13633cat >>conftest.$ac_ext <<_ACEOF
13634/* end confdefs.h. */
13635#include <sys/types.h>
13636#include <$ac_hdr>
13637
13638int
13639main ()
13640{
13641if ((DIR *) 0)
13642return 0;
13643 ;
13644 return 0;
13645}
13646_ACEOF
13647rm -f conftest.$ac_objext
13648if { (ac_try="$ac_compile"
13649case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652esac
13653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_compile") 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675esac
13676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 eval "$as_ac_Header=yes"
13682else
13683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
13686 eval "$as_ac_Header=no"
13687fi
13688
13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690fi
13691ac_res=`eval echo '${'$as_ac_Header'}'`
13692 { echo "$as_me:$LINENO: result: $ac_res" >&5
13693echo "${ECHO_T}$ac_res" >&6; }
13694if test `eval echo '${'$as_ac_Header'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13697_ACEOF
13698
13699ac_header_dirent=$ac_hdr; break
13700fi
13701
13702done
13703# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13704if test $ac_header_dirent = dirent.h; then
13705 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13706echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13707if test "${ac_cv_search_opendir+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709else
13710 ac_func_search_save_LIBS=$LIBS
13711cat >conftest.$ac_ext <<_ACEOF
13712/* confdefs.h. */
13713_ACEOF
13714cat confdefs.h >>conftest.$ac_ext
13715cat >>conftest.$ac_ext <<_ACEOF
13716/* end confdefs.h. */
13717
13718/* Override any GCC internal prototype to avoid an error.
13719 Use char because int might match the return type of a GCC
13720 builtin and then its argument prototype would still apply. */
13721#ifdef __cplusplus
13722extern "C"
13723#endif
13724char opendir ();
13725int
13726main ()
13727{
13728return opendir ();
13729 ;
13730 return 0;
13731}
13732_ACEOF
13733for ac_lib in '' dir; do
13734 if test -z "$ac_lib"; then
13735 ac_res="none required"
13736 else
13737 ac_res=-l$ac_lib
13738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13739 fi
13740 rm -f conftest.$ac_objext conftest$ac_exeext
13741if { (ac_try="$ac_link"
13742case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13745esac
13746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_link") 2>conftest.er1
13748 ac_status=$?
13749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758esac
13759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest$ac_exeext'
13765 { (case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13768esac
13769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_try") 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_search_opendir=$ac_res
13775else
13776 echo "$as_me: failed program was:" >&5
13777sed 's/^/| /' conftest.$ac_ext >&5
13778
13779
13780fi
13781
13782rm -f core conftest.err conftest.$ac_objext \
13783 conftest$ac_exeext
13784 if test "${ac_cv_search_opendir+set}" = set; then
13785 break
13786fi
13787done
13788if test "${ac_cv_search_opendir+set}" = set; then
13789 :
13790else
13791 ac_cv_search_opendir=no
13792fi
13793rm conftest.$ac_ext
13794LIBS=$ac_func_search_save_LIBS
13795fi
13796{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13797echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13798ac_res=$ac_cv_search_opendir
13799if test "$ac_res" != no; then
13800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13801
13802fi
13803
13804else
13805 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13806echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13807if test "${ac_cv_search_opendir+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 ac_func_search_save_LIBS=$LIBS
13811cat >conftest.$ac_ext <<_ACEOF
13812/* confdefs.h. */
13813_ACEOF
13814cat confdefs.h >>conftest.$ac_ext
13815cat >>conftest.$ac_ext <<_ACEOF
13816/* end confdefs.h. */
13817
13818/* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13821#ifdef __cplusplus
13822extern "C"
13823#endif
13824char opendir ();
13825int
13826main ()
13827{
13828return opendir ();
13829 ;
13830 return 0;
13831}
13832_ACEOF
13833for ac_lib in '' x; do
13834 if test -z "$ac_lib"; then
13835 ac_res="none required"
13836 else
13837 ac_res=-l$ac_lib
13838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13839 fi
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841if { (ac_try="$ac_link"
13842case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_link") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858esac
13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest$ac_exeext'
13865 { (case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868esac
13869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_try") 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_search_opendir=$ac_res
13875else
13876 echo "$as_me: failed program was:" >&5
13877sed 's/^/| /' conftest.$ac_ext >&5
13878
13879
13880fi
13881
13882rm -f core conftest.err conftest.$ac_objext \
13883 conftest$ac_exeext
13884 if test "${ac_cv_search_opendir+set}" = set; then
13885 break
13886fi
13887done
13888if test "${ac_cv_search_opendir+set}" = set; then
13889 :
13890else
13891 ac_cv_search_opendir=no
13892fi
13893rm conftest.$ac_ext
13894LIBS=$ac_func_search_save_LIBS
13895fi
13896{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13897echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13898ac_res=$ac_cv_search_opendir
13899if test "$ac_res" != no; then
13900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13901
13902fi
13903
13904fi
13905
13906{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13907echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13908if test "${ac_cv_header_mmap_anon+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910else
13911 ac_ext=c
13912ac_cpp='$CPP $CPPFLAGS'
13913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915ac_compiler_gnu=$ac_cv_c_compiler_gnu
13916
13917 cat >conftest.$ac_ext <<_ACEOF
13918/* confdefs.h. */
13919_ACEOF
13920cat confdefs.h >>conftest.$ac_ext
13921cat >>conftest.$ac_ext <<_ACEOF
13922/* end confdefs.h. */
13923#include <sys/mman.h>
13924#include <unistd.h>
13925#include <fcntl.h>
13926int
13927main ()
13928{
13929mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13930 ;
13931 return 0;
13932}
13933_ACEOF
13934rm -f conftest.$ac_objext
13935if { (ac_try="$ac_compile"
13936case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_compile") 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952esac
13953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest.$ac_objext'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962esac
13963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_cv_header_mmap_anon=yes
13969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973 ac_cv_header_mmap_anon=no
13974fi
13975
13976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 ac_ext=c
13978ac_cpp='$CPP $CPPFLAGS'
13979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13981ac_compiler_gnu=$ac_cv_c_compiler_gnu
13982
13983
13984fi
13985{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13986echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13987if test "$ac_cv_header_mmap_anon" = yes; then
13988
13989cat >>confdefs.h <<\_ACEOF
13990#define HAVE_MMAP_ANONYMOUS 1
13991_ACEOF
13992
13993fi
13994
13995{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13996echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13997if test "${ac_cv_header_stat_broken+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
13999else
14000 cat >conftest.$ac_ext <<_ACEOF
14001/* confdefs.h. */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h. */
14006#include <sys/types.h>
14007#include <sys/stat.h>
14008
14009#if defined S_ISBLK && defined S_IFDIR
14010# if S_ISBLK (S_IFDIR)
14011You lose.
14012# endif
14013#endif
14014
14015#if defined S_ISBLK && defined S_IFCHR
14016# if S_ISBLK (S_IFCHR)
14017You lose.
14018# endif
14019#endif
14020
14021#if defined S_ISLNK && defined S_IFREG
14022# if S_ISLNK (S_IFREG)
14023You lose.
14024# endif
14025#endif
14026
14027#if defined S_ISSOCK && defined S_IFREG
14028# if S_ISSOCK (S_IFREG)
14029You lose.
14030# endif
14031#endif
14032
14033_ACEOF
14034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14035 $EGREP "You lose" >/dev/null 2>&1; then
14036 ac_cv_header_stat_broken=yes
14037else
14038 ac_cv_header_stat_broken=no
14039fi
14040rm -f conftest*
14041
14042fi
14043{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14044echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14045if test $ac_cv_header_stat_broken = yes; then
14046
14047cat >>confdefs.h <<\_ACEOF
14048#define STAT_MACROS_BROKEN 1
14049_ACEOF
14050
14051fi
14052
14053{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14054echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14055if test "${ac_cv_header_sys_wait_h+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14057else
14058 cat >conftest.$ac_ext <<_ACEOF
14059/* confdefs.h. */
14060_ACEOF
14061cat confdefs.h >>conftest.$ac_ext
14062cat >>conftest.$ac_ext <<_ACEOF
14063/* end confdefs.h. */
14064#include <sys/types.h>
14065#include <sys/wait.h>
14066#ifndef WEXITSTATUS
14067# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14068#endif
14069#ifndef WIFEXITED
14070# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14071#endif
14072
14073int
14074main ()
14075{
14076 int s;
14077 wait (&s);
14078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14079 ;
14080 return 0;
14081}
14082_ACEOF
14083rm -f conftest.$ac_objext
14084if { (ac_try="$ac_compile"
14085case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088esac
14089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_compile") 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
14108 { (case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111esac
14112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_try") 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_header_sys_wait_h=yes
14118else
14119 echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122 ac_cv_header_sys_wait_h=no
14123fi
14124
14125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126fi
14127{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14128echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14129if test $ac_cv_header_sys_wait_h = yes; then
14130
14131cat >>confdefs.h <<\_ACEOF
14132#define HAVE_SYS_WAIT_H 1
14133_ACEOF
14134
14135fi
14136
14137{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14138echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14139if test "${ac_cv_header_time+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141else
14142 cat >conftest.$ac_ext <<_ACEOF
14143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
14147/* end confdefs.h. */
14148#include <sys/types.h>
14149#include <sys/time.h>
14150#include <time.h>
14151
14152int
14153main ()
14154{
14155if ((struct tm *) 0)
14156return 0;
14157 ;
14158 return 0;
14159}
14160_ACEOF
14161rm -f conftest.$ac_objext
14162if { (ac_try="$ac_compile"
14163case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166esac
14167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_compile") 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14179esac
14180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14189esac
14190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_try") 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_cv_header_time=yes
14196else
14197 echo "$as_me: failed program was:" >&5
14198sed 's/^/| /' conftest.$ac_ext >&5
14199
14200 ac_cv_header_time=no
14201fi
14202
14203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204fi
14205{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14206echo "${ECHO_T}$ac_cv_header_time" >&6; }
14207if test $ac_cv_header_time = yes; then
14208
14209cat >>confdefs.h <<\_ACEOF
14210#define TIME_WITH_SYS_TIME 1
14211_ACEOF
14212
14213fi
14214
14215
14216
14217
14218
14219
14220
14221
14222for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14223do
14224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230fi
14231ac_res=`eval echo '${'$as_ac_Header'}'`
14232 { echo "$as_me:$LINENO: result: $ac_res" >&5
14233echo "${ECHO_T}$ac_res" >&6; }
14234else
14235 # Is the header compilable?
14236{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14238cat >conftest.$ac_ext <<_ACEOF
14239/* confdefs.h. */
14240_ACEOF
14241cat confdefs.h >>conftest.$ac_ext
14242cat >>conftest.$ac_ext <<_ACEOF
14243/* end confdefs.h. */
14244$ac_includes_default
14245#include <$ac_header>
14246_ACEOF
14247rm -f conftest.$ac_objext
14248if { (ac_try="$ac_compile"
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_compile") 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); } &&
14261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265esac
14266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; } &&
14271 { ac_try='test -s conftest.$ac_objext'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14275esac
14276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_header_compiler=yes
14282else
14283 echo "$as_me: failed program was:" >&5
14284sed 's/^/| /' conftest.$ac_ext >&5
14285
14286 ac_header_compiler=no
14287fi
14288
14289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14291echo "${ECHO_T}$ac_header_compiler" >&6; }
14292
14293# Is the header present?
14294{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14296cat >conftest.$ac_ext <<_ACEOF
14297/* confdefs.h. */
14298_ACEOF
14299cat confdefs.h >>conftest.$ac_ext
14300cat >>conftest.$ac_ext <<_ACEOF
14301/* end confdefs.h. */
14302#include <$ac_header>
14303_ACEOF
14304if { (ac_try="$ac_cpp conftest.$ac_ext"
14305case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14308esac
14309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14311 ac_status=$?
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } >/dev/null; then
14317 if test -s conftest.err; then
14318 ac_cpp_err=$ac_c_preproc_warn_flag
14319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14320 else
14321 ac_cpp_err=
14322 fi
14323else
14324 ac_cpp_err=yes
14325fi
14326if test -z "$ac_cpp_err"; then
14327 ac_header_preproc=yes
14328else
14329 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ac_header_preproc=no
14333fi
14334
14335rm -f conftest.err conftest.$ac_ext
14336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14337echo "${ECHO_T}$ac_header_preproc" >&6; }
14338
14339# So? What about this header?
14340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14341 yes:no: )
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14346 ac_header_preproc=yes
14347 ;;
14348 no:yes:* )
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14361 ( cat <<\_ASBOX
14362## ------------------------------ ##
14363## Report this to bugs@yourdomain ##
14364## ------------------------------ ##
14365_ASBOX
14366 ) | sed "s/^/$as_me: WARNING: /" >&2
14367 ;;
14368esac
14369{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373else
14374 eval "$as_ac_Header=\$ac_header_preproc"
14375fi
14376ac_res=`eval echo '${'$as_ac_Header'}'`
14377 { echo "$as_me:$LINENO: result: $ac_res" >&5
14378echo "${ECHO_T}$ac_res" >&6; }
14379
14380fi
14381if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382 cat >>confdefs.h <<_ACEOF
14383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384_ACEOF
14385
14386fi
14387
14388done
14389
14390
14391
14392
14393
14394
14395
14396for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14397do
14398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404fi
14405ac_res=`eval echo '${'$as_ac_Header'}'`
14406 { echo "$as_me:$LINENO: result: $ac_res" >&5
14407echo "${ECHO_T}$ac_res" >&6; }
14408else
14409 # Is the header compilable?
14410{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14412cat >conftest.$ac_ext <<_ACEOF
14413/* confdefs.h. */
14414_ACEOF
14415cat confdefs.h >>conftest.$ac_ext
14416cat >>conftest.$ac_ext <<_ACEOF
14417/* end confdefs.h. */
14418$ac_includes_default
14419#include <$ac_header>
14420_ACEOF
14421rm -f conftest.$ac_objext
14422if { (ac_try="$ac_compile"
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_compile") 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); } &&
14435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436 { (case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439esac
14440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_try") 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449esac
14450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_header_compiler=yes
14456else
14457 echo "$as_me: failed program was:" >&5
14458sed 's/^/| /' conftest.$ac_ext >&5
14459
14460 ac_header_compiler=no
14461fi
14462
14463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14465echo "${ECHO_T}$ac_header_compiler" >&6; }
14466
14467# Is the header present?
14468{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14470cat >conftest.$ac_ext <<_ACEOF
14471/* confdefs.h. */
14472_ACEOF
14473cat confdefs.h >>conftest.$ac_ext
14474cat >>conftest.$ac_ext <<_ACEOF
14475/* end confdefs.h. */
14476#include <$ac_header>
14477_ACEOF
14478if { (ac_try="$ac_cpp conftest.$ac_ext"
14479case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482esac
14483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } >/dev/null; then
14491 if test -s conftest.err; then
14492 ac_cpp_err=$ac_c_preproc_warn_flag
14493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14494 else
14495 ac_cpp_err=
14496 fi
14497else
14498 ac_cpp_err=yes
14499fi
14500if test -z "$ac_cpp_err"; then
14501 ac_header_preproc=yes
14502else
14503 echo "$as_me: failed program was:" >&5
14504sed 's/^/| /' conftest.$ac_ext >&5
14505
14506 ac_header_preproc=no
14507fi
14508
14509rm -f conftest.err conftest.$ac_ext
14510{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14511echo "${ECHO_T}$ac_header_preproc" >&6; }
14512
14513# So? What about this header?
14514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14515 yes:no: )
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14520 ac_header_preproc=yes
14521 ;;
14522 no:yes:* )
14523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14535 ( cat <<\_ASBOX
14536## ------------------------------ ##
14537## Report this to bugs@yourdomain ##
14538## ------------------------------ ##
14539_ASBOX
14540 ) | sed "s/^/$as_me: WARNING: /" >&2
14541 ;;
14542esac
14543{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547else
14548 eval "$as_ac_Header=\$ac_header_preproc"
14549fi
14550ac_res=`eval echo '${'$as_ac_Header'}'`
14551 { echo "$as_me:$LINENO: result: $ac_res" >&5
14552echo "${ECHO_T}$ac_res" >&6; }
14553
14554fi
14555if test `eval echo '${'$as_ac_Header'}'` = yes; then
14556 cat >>confdefs.h <<_ACEOF
14557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14558_ACEOF
14559
14560fi
14561
14562done
14563
14564
14565
14566for ac_header in utime.h windows.h
14567do
14568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14574fi
14575ac_res=`eval echo '${'$as_ac_Header'}'`
14576 { echo "$as_me:$LINENO: result: $ac_res" >&5
14577echo "${ECHO_T}$ac_res" >&6; }
14578else
14579 # Is the header compilable?
14580{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14582cat >conftest.$ac_ext <<_ACEOF
14583/* confdefs.h. */
14584_ACEOF
14585cat confdefs.h >>conftest.$ac_ext
14586cat >>conftest.$ac_ext <<_ACEOF
14587/* end confdefs.h. */
14588$ac_includes_default
14589#include <$ac_header>
14590_ACEOF
14591rm -f conftest.$ac_objext
14592if { (ac_try="$ac_compile"
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_compile") 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); } &&
14605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14606 { (case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14609esac
14610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_try") 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } &&
14615 { ac_try='test -s conftest.$ac_objext'
14616 { (case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619esac
14620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_try") 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 ac_header_compiler=yes
14626else
14627 echo "$as_me: failed program was:" >&5
14628sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 ac_header_compiler=no
14631fi
14632
14633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14635echo "${ECHO_T}$ac_header_compiler" >&6; }
14636
14637# Is the header present?
14638{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14640cat >conftest.$ac_ext <<_ACEOF
14641/* confdefs.h. */
14642_ACEOF
14643cat confdefs.h >>conftest.$ac_ext
14644cat >>conftest.$ac_ext <<_ACEOF
14645/* end confdefs.h. */
14646#include <$ac_header>
14647_ACEOF
14648if { (ac_try="$ac_cpp conftest.$ac_ext"
14649case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652esac
14653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } >/dev/null; then
14661 if test -s conftest.err; then
14662 ac_cpp_err=$ac_c_preproc_warn_flag
14663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14664 else
14665 ac_cpp_err=
14666 fi
14667else
14668 ac_cpp_err=yes
14669fi
14670if test -z "$ac_cpp_err"; then
14671 ac_header_preproc=yes
14672else
14673 echo "$as_me: failed program was:" >&5
14674sed 's/^/| /' conftest.$ac_ext >&5
14675
14676 ac_header_preproc=no
14677fi
14678
14679rm -f conftest.err conftest.$ac_ext
14680{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14681echo "${ECHO_T}$ac_header_preproc" >&6; }
14682
14683# So? What about this header?
14684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14685 yes:no: )
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14690 ac_header_preproc=yes
14691 ;;
14692 no:yes:* )
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14705 ( cat <<\_ASBOX
14706## ------------------------------ ##
14707## Report this to bugs@yourdomain ##
14708## ------------------------------ ##
14709_ASBOX
14710 ) | sed "s/^/$as_me: WARNING: /" >&2
14711 ;;
14712esac
14713{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717else
14718 eval "$as_ac_Header=\$ac_header_preproc"
14719fi
14720ac_res=`eval echo '${'$as_ac_Header'}'`
14721 { echo "$as_me:$LINENO: result: $ac_res" >&5
14722echo "${ECHO_T}$ac_res" >&6; }
14723
14724fi
14725if test `eval echo '${'$as_ac_Header'}'` = yes; then
14726 cat >>confdefs.h <<_ACEOF
14727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14728_ACEOF
14729
14730fi
14731
14732done
14733
14734
14735
14736
14737
14738
14739for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14740do
14741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747fi
14748ac_res=`eval echo '${'$as_ac_Header'}'`
14749 { echo "$as_me:$LINENO: result: $ac_res" >&5
14750echo "${ECHO_T}$ac_res" >&6; }
14751else
14752 # Is the header compilable?
14753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14755cat >conftest.$ac_ext <<_ACEOF
14756/* confdefs.h. */
14757_ACEOF
14758cat confdefs.h >>conftest.$ac_ext
14759cat >>conftest.$ac_ext <<_ACEOF
14760/* end confdefs.h. */
14761$ac_includes_default
14762#include <$ac_header>
14763_ACEOF
14764rm -f conftest.$ac_objext
14765if { (ac_try="$ac_compile"
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_compile") 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); } &&
14778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest.$ac_objext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792esac
14793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_header_compiler=yes
14799else
14800 echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803 ac_header_compiler=no
14804fi
14805
14806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808echo "${ECHO_T}$ac_header_compiler" >&6; }
14809
14810# Is the header present?
14811{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14813cat >conftest.$ac_ext <<_ACEOF
14814/* confdefs.h. */
14815_ACEOF
14816cat confdefs.h >>conftest.$ac_ext
14817cat >>conftest.$ac_ext <<_ACEOF
14818/* end confdefs.h. */
14819#include <$ac_header>
14820_ACEOF
14821if { (ac_try="$ac_cpp conftest.$ac_ext"
14822case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14825esac
14826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } >/dev/null; then
14834 if test -s conftest.err; then
14835 ac_cpp_err=$ac_c_preproc_warn_flag
14836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14837 else
14838 ac_cpp_err=
14839 fi
14840else
14841 ac_cpp_err=yes
14842fi
14843if test -z "$ac_cpp_err"; then
14844 ac_header_preproc=yes
14845else
14846 echo "$as_me: failed program was:" >&5
14847sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_header_preproc=no
14850fi
14851
14852rm -f conftest.err conftest.$ac_ext
14853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854echo "${ECHO_T}$ac_header_preproc" >&6; }
14855
14856# So? What about this header?
14857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858 yes:no: )
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14863 ac_header_preproc=yes
14864 ;;
14865 no:yes:* )
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14878 ( cat <<\_ASBOX
14879## ------------------------------ ##
14880## Report this to bugs@yourdomain ##
14881## ------------------------------ ##
14882_ASBOX
14883 ) | sed "s/^/$as_me: WARNING: /" >&2
14884 ;;
14885esac
14886{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14890else
14891 eval "$as_ac_Header=\$ac_header_preproc"
14892fi
14893ac_res=`eval echo '${'$as_ac_Header'}'`
14894 { echo "$as_me:$LINENO: result: $ac_res" >&5
14895echo "${ECHO_T}$ac_res" >&6; }
14896
14897fi
14898if test `eval echo '${'$as_ac_Header'}'` = yes; then
14899 cat >>confdefs.h <<_ACEOF
14900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14901_ACEOF
14902
14903fi
14904
14905done
14906
14907
14908
14909
14910
14911for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14912do
14913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919fi
14920ac_res=`eval echo '${'$as_ac_Header'}'`
14921 { echo "$as_me:$LINENO: result: $ac_res" >&5
14922echo "${ECHO_T}$ac_res" >&6; }
14923else
14924 # Is the header compilable?
14925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14927cat >conftest.$ac_ext <<_ACEOF
14928/* confdefs.h. */
14929_ACEOF
14930cat confdefs.h >>conftest.$ac_ext
14931cat >>conftest.$ac_ext <<_ACEOF
14932/* end confdefs.h. */
14933$ac_includes_default
14934#include <$ac_header>
14935_ACEOF
14936rm -f conftest.$ac_objext
14937if { (ac_try="$ac_compile"
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_compile") 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); } &&
14950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14951 { (case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14954esac
14955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_try") 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; } &&
14960 { ac_try='test -s conftest.$ac_objext'
14961 { (case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964esac
14965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_try") 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }; then
14970 ac_header_compiler=yes
14971else
14972 echo "$as_me: failed program was:" >&5
14973sed 's/^/| /' conftest.$ac_ext >&5
14974
14975 ac_header_compiler=no
14976fi
14977
14978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14980echo "${ECHO_T}$ac_header_compiler" >&6; }
14981
14982# Is the header present?
14983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14985cat >conftest.$ac_ext <<_ACEOF
14986/* confdefs.h. */
14987_ACEOF
14988cat confdefs.h >>conftest.$ac_ext
14989cat >>conftest.$ac_ext <<_ACEOF
14990/* end confdefs.h. */
14991#include <$ac_header>
14992_ACEOF
14993if { (ac_try="$ac_cpp conftest.$ac_ext"
14994case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14997esac
14998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15000 ac_status=$?
15001 grep -v '^ *+' conftest.er1 >conftest.err
15002 rm -f conftest.er1
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } >/dev/null; then
15006 if test -s conftest.err; then
15007 ac_cpp_err=$ac_c_preproc_warn_flag
15008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15009 else
15010 ac_cpp_err=
15011 fi
15012else
15013 ac_cpp_err=yes
15014fi
15015if test -z "$ac_cpp_err"; then
15016 ac_header_preproc=yes
15017else
15018 echo "$as_me: failed program was:" >&5
15019sed 's/^/| /' conftest.$ac_ext >&5
15020
15021 ac_header_preproc=no
15022fi
15023
15024rm -f conftest.err conftest.$ac_ext
15025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15026echo "${ECHO_T}$ac_header_preproc" >&6; }
15027
15028# So? What about this header?
15029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15030 yes:no: )
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15035 ac_header_preproc=yes
15036 ;;
15037 no:yes:* )
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15050 ( cat <<\_ASBOX
15051## ------------------------------ ##
15052## Report this to bugs@yourdomain ##
15053## ------------------------------ ##
15054_ASBOX
15055 ) | sed "s/^/$as_me: WARNING: /" >&2
15056 ;;
15057esac
15058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15062else
15063 eval "$as_ac_Header=\$ac_header_preproc"
15064fi
15065ac_res=`eval echo '${'$as_ac_Header'}'`
15066 { echo "$as_me:$LINENO: result: $ac_res" >&5
15067echo "${ECHO_T}$ac_res" >&6; }
15068
15069fi
15070if test `eval echo '${'$as_ac_Header'}'` = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15073_ACEOF
15074
15075fi
15076
15077done
15078
15079
15080for ac_header in valgrind/valgrind.h
15081do
15082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15088fi
15089ac_res=`eval echo '${'$as_ac_Header'}'`
15090 { echo "$as_me:$LINENO: result: $ac_res" >&5
15091echo "${ECHO_T}$ac_res" >&6; }
15092else
15093 # Is the header compilable?
15094{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15096cat >conftest.$ac_ext <<_ACEOF
15097/* confdefs.h. */
15098_ACEOF
15099cat confdefs.h >>conftest.$ac_ext
15100cat >>conftest.$ac_ext <<_ACEOF
15101/* end confdefs.h. */
15102$ac_includes_default
15103#include <$ac_header>
15104_ACEOF
15105rm -f conftest.$ac_objext
15106if { (ac_try="$ac_compile"
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_compile") 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); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest.$ac_objext'
15130 { (case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133esac
15134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_try") 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_header_compiler=yes
15140else
15141 echo "$as_me: failed program was:" >&5
15142sed 's/^/| /' conftest.$ac_ext >&5
15143
15144 ac_header_compiler=no
15145fi
15146
15147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15149echo "${ECHO_T}$ac_header_compiler" >&6; }
15150
15151# Is the header present?
15152{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15154cat >conftest.$ac_ext <<_ACEOF
15155/* confdefs.h. */
15156_ACEOF
15157cat confdefs.h >>conftest.$ac_ext
15158cat >>conftest.$ac_ext <<_ACEOF
15159/* end confdefs.h. */
15160#include <$ac_header>
15161_ACEOF
15162if { (ac_try="$ac_cpp conftest.$ac_ext"
15163case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15166esac
15167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } >/dev/null; then
15175 if test -s conftest.err; then
15176 ac_cpp_err=$ac_c_preproc_warn_flag
15177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15178 else
15179 ac_cpp_err=
15180 fi
15181else
15182 ac_cpp_err=yes
15183fi
15184if test -z "$ac_cpp_err"; then
15185 ac_header_preproc=yes
15186else
15187 echo "$as_me: failed program was:" >&5
15188sed 's/^/| /' conftest.$ac_ext >&5
15189
15190 ac_header_preproc=no
15191fi
15192
15193rm -f conftest.err conftest.$ac_ext
15194{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15195echo "${ECHO_T}$ac_header_preproc" >&6; }
15196
15197# So? What about this header?
15198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15199 yes:no: )
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15204 ac_header_preproc=yes
15205 ;;
15206 no:yes:* )
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15219 ( cat <<\_ASBOX
15220## ------------------------------ ##
15221## Report this to bugs@yourdomain ##
15222## ------------------------------ ##
15223_ASBOX
15224 ) | sed "s/^/$as_me: WARNING: /" >&2
15225 ;;
15226esac
15227{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231else
15232 eval "$as_ac_Header=\$ac_header_preproc"
15233fi
15234ac_res=`eval echo '${'$as_ac_Header'}'`
15235 { echo "$as_me:$LINENO: result: $ac_res" >&5
15236echo "${ECHO_T}$ac_res" >&6; }
15237
15238fi
15239if test `eval echo '${'$as_ac_Header'}'` = yes; then
15240 cat >>confdefs.h <<_ACEOF
15241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15242_ACEOF
15243
15244fi
15245
15246done
15247
15248
15249for ac_header in fenv.h
15250do
15251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257fi
15258ac_res=`eval echo '${'$as_ac_Header'}'`
15259 { echo "$as_me:$LINENO: result: $ac_res" >&5
15260echo "${ECHO_T}$ac_res" >&6; }
15261else
15262 # Is the header compilable?
15263{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15265cat >conftest.$ac_ext <<_ACEOF
15266/* confdefs.h. */
15267_ACEOF
15268cat confdefs.h >>conftest.$ac_ext
15269cat >>conftest.$ac_ext <<_ACEOF
15270/* end confdefs.h. */
15271$ac_includes_default
15272#include <$ac_header>
15273_ACEOF
15274rm -f conftest.$ac_objext
15275if { (ac_try="$ac_compile"
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_compile") 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); } &&
15288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292esac
15293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest.$ac_objext'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302esac
15303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_header_compiler=yes
15309else
15310 echo "$as_me: failed program was:" >&5
15311sed 's/^/| /' conftest.$ac_ext >&5
15312
15313 ac_header_compiler=no
15314fi
15315
15316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15318echo "${ECHO_T}$ac_header_compiler" >&6; }
15319
15320# Is the header present?
15321{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15322echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15323cat >conftest.$ac_ext <<_ACEOF
15324/* confdefs.h. */
15325_ACEOF
15326cat confdefs.h >>conftest.$ac_ext
15327cat >>conftest.$ac_ext <<_ACEOF
15328/* end confdefs.h. */
15329#include <$ac_header>
15330_ACEOF
15331if { (ac_try="$ac_cpp conftest.$ac_ext"
15332case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335esac
15336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } >/dev/null; then
15344 if test -s conftest.err; then
15345 ac_cpp_err=$ac_c_preproc_warn_flag
15346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15347 else
15348 ac_cpp_err=
15349 fi
15350else
15351 ac_cpp_err=yes
15352fi
15353if test -z "$ac_cpp_err"; then
15354 ac_header_preproc=yes
15355else
15356 echo "$as_me: failed program was:" >&5
15357sed 's/^/| /' conftest.$ac_ext >&5
15358
15359 ac_header_preproc=no
15360fi
15361
15362rm -f conftest.err conftest.$ac_ext
15363{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15364echo "${ECHO_T}$ac_header_preproc" >&6; }
15365
15366# So? What about this header?
15367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15368 yes:no: )
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15373 ac_header_preproc=yes
15374 ;;
15375 no:yes:* )
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15379echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15383echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15388 ( cat <<\_ASBOX
15389## ------------------------------ ##
15390## Report this to bugs@yourdomain ##
15391## ------------------------------ ##
15392_ASBOX
15393 ) | sed "s/^/$as_me: WARNING: /" >&2
15394 ;;
15395esac
15396{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15400else
15401 eval "$as_ac_Header=\$ac_header_preproc"
15402fi
15403ac_res=`eval echo '${'$as_ac_Header'}'`
15404 { echo "$as_me:$LINENO: result: $ac_res" >&5
15405echo "${ECHO_T}$ac_res" >&6; }
15406
15407fi
15408if test `eval echo '${'$as_ac_Header'}'` = yes; then
15409 cat >>confdefs.h <<_ACEOF
15410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15411_ACEOF
15412
15413fi
15414
15415done
15416
15417if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15418
15419for ac_header in pthread.h
15420do
15421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15427fi
15428ac_res=`eval echo '${'$as_ac_Header'}'`
15429 { echo "$as_me:$LINENO: result: $ac_res" >&5
15430echo "${ECHO_T}$ac_res" >&6; }
15431else
15432 # Is the header compilable?
15433{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15434echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15435cat >conftest.$ac_ext <<_ACEOF
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
15441$ac_includes_default
15442#include <$ac_header>
15443_ACEOF
15444rm -f conftest.$ac_objext
15445if { (ac_try="$ac_compile"
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_compile") 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); } &&
15458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459 { (case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462esac
15463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_try") 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest.$ac_objext'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15472esac
15473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_header_compiler=yes
15479else
15480 echo "$as_me: failed program was:" >&5
15481sed 's/^/| /' conftest.$ac_ext >&5
15482
15483 ac_header_compiler=no
15484fi
15485
15486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488echo "${ECHO_T}$ac_header_compiler" >&6; }
15489
15490# Is the header present?
15491{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15493cat >conftest.$ac_ext <<_ACEOF
15494/* confdefs.h. */
15495_ACEOF
15496cat confdefs.h >>conftest.$ac_ext
15497cat >>conftest.$ac_ext <<_ACEOF
15498/* end confdefs.h. */
15499#include <$ac_header>
15500_ACEOF
15501if { (ac_try="$ac_cpp conftest.$ac_ext"
15502case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15505esac
15506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } >/dev/null; then
15514 if test -s conftest.err; then
15515 ac_cpp_err=$ac_c_preproc_warn_flag
15516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15517 else
15518 ac_cpp_err=
15519 fi
15520else
15521 ac_cpp_err=yes
15522fi
15523if test -z "$ac_cpp_err"; then
15524 ac_header_preproc=yes
15525else
15526 echo "$as_me: failed program was:" >&5
15527sed 's/^/| /' conftest.$ac_ext >&5
15528
15529 ac_header_preproc=no
15530fi
15531
15532rm -f conftest.err conftest.$ac_ext
15533{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15534echo "${ECHO_T}$ac_header_preproc" >&6; }
15535
15536# So? What about this header?
15537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15538 yes:no: )
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15543 ac_header_preproc=yes
15544 ;;
15545 no:yes:* )
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15558 ( cat <<\_ASBOX
15559## ------------------------------ ##
15560## Report this to bugs@yourdomain ##
15561## ------------------------------ ##
15562_ASBOX
15563 ) | sed "s/^/$as_me: WARNING: /" >&2
15564 ;;
15565esac
15566{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570else
15571 eval "$as_ac_Header=\$ac_header_preproc"
15572fi
15573ac_res=`eval echo '${'$as_ac_Header'}'`
15574 { echo "$as_me:$LINENO: result: $ac_res" >&5
15575echo "${ECHO_T}$ac_res" >&6; }
15576
15577fi
15578if test `eval echo '${'$as_ac_Header'}'` = yes; then
15579 cat >>confdefs.h <<_ACEOF
15580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15581_ACEOF
15582 HAVE_PTHREAD=1
15583
15584else
15585 HAVE_PTHREAD=0
15586
15587fi
15588
15589done
15590
15591else
15592 HAVE_PTHREAD=0
15593
15594fi
15595
15596if test "$llvm_cv_enable_libffi" = "yes" ; then
15597
15598
15599for ac_header in ffi.h ffi/ffi.h
15600do
15601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607fi
15608ac_res=`eval echo '${'$as_ac_Header'}'`
15609 { echo "$as_me:$LINENO: result: $ac_res" >&5
15610echo "${ECHO_T}$ac_res" >&6; }
15611else
15612 # Is the header compilable?
15613{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15615cat >conftest.$ac_ext <<_ACEOF
15616/* confdefs.h. */
15617_ACEOF
15618cat confdefs.h >>conftest.$ac_ext
15619cat >>conftest.$ac_ext <<_ACEOF
15620/* end confdefs.h. */
15621$ac_includes_default
15622#include <$ac_header>
15623_ACEOF
15624rm -f conftest.$ac_objext
15625if { (ac_try="$ac_compile"
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_compile") 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); } &&
15638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15639 { (case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15642esac
15643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_try") 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest.$ac_objext'
15649 { (case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15652esac
15653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_try") 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15658 ac_header_compiler=yes
15659else
15660 echo "$as_me: failed program was:" >&5
15661sed 's/^/| /' conftest.$ac_ext >&5
15662
15663 ac_header_compiler=no
15664fi
15665
15666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15668echo "${ECHO_T}$ac_header_compiler" >&6; }
15669
15670# Is the header present?
15671{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15673cat >conftest.$ac_ext <<_ACEOF
15674/* confdefs.h. */
15675_ACEOF
15676cat confdefs.h >>conftest.$ac_ext
15677cat >>conftest.$ac_ext <<_ACEOF
15678/* end confdefs.h. */
15679#include <$ac_header>
15680_ACEOF
15681if { (ac_try="$ac_cpp conftest.$ac_ext"
15682case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685esac
15686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } >/dev/null; then
15694 if test -s conftest.err; then
15695 ac_cpp_err=$ac_c_preproc_warn_flag
15696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15697 else
15698 ac_cpp_err=
15699 fi
15700else
15701 ac_cpp_err=yes
15702fi
15703if test -z "$ac_cpp_err"; then
15704 ac_header_preproc=yes
15705else
15706 echo "$as_me: failed program was:" >&5
15707sed 's/^/| /' conftest.$ac_ext >&5
15708
15709 ac_header_preproc=no
15710fi
15711
15712rm -f conftest.err conftest.$ac_ext
15713{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15714echo "${ECHO_T}$ac_header_preproc" >&6; }
15715
15716# So? What about this header?
15717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15718 yes:no: )
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15723 ac_header_preproc=yes
15724 ;;
15725 no:yes:* )
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15729echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15733echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15738 ( cat <<\_ASBOX
15739## ------------------------------ ##
15740## Report this to bugs@yourdomain ##
15741## ------------------------------ ##
15742_ASBOX
15743 ) | sed "s/^/$as_me: WARNING: /" >&2
15744 ;;
15745esac
15746{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15750else
15751 eval "$as_ac_Header=\$ac_header_preproc"
15752fi
15753ac_res=`eval echo '${'$as_ac_Header'}'`
15754 { echo "$as_me:$LINENO: result: $ac_res" >&5
15755echo "${ECHO_T}$ac_res" >&6; }
15756
15757fi
15758if test `eval echo '${'$as_ac_Header'}'` = yes; then
15759 cat >>confdefs.h <<_ACEOF
15760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15761_ACEOF
15762
15763fi
15764
15765done
15766
15767fi
15768
15769
15770for ac_header in CrashReporterClient.h
15771do
15772as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778fi
15779ac_res=`eval echo '${'$as_ac_Header'}'`
15780 { echo "$as_me:$LINENO: result: $ac_res" >&5
15781echo "${ECHO_T}$ac_res" >&6; }
15782else
15783 # Is the header compilable?
15784{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15786cat >conftest.$ac_ext <<_ACEOF
15787/* confdefs.h. */
15788_ACEOF
15789cat confdefs.h >>conftest.$ac_ext
15790cat >>conftest.$ac_ext <<_ACEOF
15791/* end confdefs.h. */
15792$ac_includes_default
15793#include <$ac_header>
15794_ACEOF
15795rm -f conftest.$ac_objext
15796if { (ac_try="$ac_compile"
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_compile") 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); } &&
15809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15810 { (case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15813esac
15814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_try") 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest.$ac_objext'
15820 { (case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15823esac
15824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_try") 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_header_compiler=yes
15830else
15831 echo "$as_me: failed program was:" >&5
15832sed 's/^/| /' conftest.$ac_ext >&5
15833
15834 ac_header_compiler=no
15835fi
15836
15837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15839echo "${ECHO_T}$ac_header_compiler" >&6; }
15840
15841# Is the header present?
15842{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15844cat >conftest.$ac_ext <<_ACEOF
15845/* confdefs.h. */
15846_ACEOF
15847cat confdefs.h >>conftest.$ac_ext
15848cat >>conftest.$ac_ext <<_ACEOF
15849/* end confdefs.h. */
15850#include <$ac_header>
15851_ACEOF
15852if { (ac_try="$ac_cpp conftest.$ac_ext"
15853case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15856esac
15857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15859 ac_status=$?
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } >/dev/null; then
15865 if test -s conftest.err; then
15866 ac_cpp_err=$ac_c_preproc_warn_flag
15867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15868 else
15869 ac_cpp_err=
15870 fi
15871else
15872 ac_cpp_err=yes
15873fi
15874if test -z "$ac_cpp_err"; then
15875 ac_header_preproc=yes
15876else
15877 echo "$as_me: failed program was:" >&5
15878sed 's/^/| /' conftest.$ac_ext >&5
15879
15880 ac_header_preproc=no
15881fi
15882
15883rm -f conftest.err conftest.$ac_ext
15884{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15885echo "${ECHO_T}$ac_header_preproc" >&6; }
15886
15887# So? What about this header?
15888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15889 yes:no: )
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15894 ac_header_preproc=yes
15895 ;;
15896 no:yes:* )
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15909 ( cat <<\_ASBOX
15910## ------------------------------ ##
15911## Report this to bugs@yourdomain ##
15912## ------------------------------ ##
15913_ASBOX
15914 ) | sed "s/^/$as_me: WARNING: /" >&2
15915 ;;
15916esac
15917{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15921else
15922 eval "$as_ac_Header=\$ac_header_preproc"
15923fi
15924ac_res=`eval echo '${'$as_ac_Header'}'`
15925 { echo "$as_me:$LINENO: result: $ac_res" >&5
15926echo "${ECHO_T}$ac_res" >&6; }
15927
15928fi
15929if test `eval echo '${'$as_ac_Header'}'` = yes; then
15930 cat >>confdefs.h <<_ACEOF
15931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15932_ACEOF
15933
15934fi
15935
15936done
15937
15938
15939{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15940echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15941cat >conftest.$ac_ext <<_ACEOF
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947extern const char *__crashreporter_info__;
15948 int main() {
15949 __crashreporter_info__ = "test";
15950 return 0;
15951 }
15952
15953_ACEOF
15954rm -f conftest.$ac_objext conftest$ac_exeext
15955if { (ac_try="$ac_link"
15956case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15959esac
15960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_link") 2>conftest.er1
15962 ac_status=$?
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15972esac
15973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest$ac_exeext'
15979 { (case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15982esac
15983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_try") 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 { echo "$as_me:$LINENO: result: yes" >&5
15989echo "${ECHO_T}yes" >&6; }
15990
15991cat >>confdefs.h <<\_ACEOF
15992#define HAVE_CRASHREPORTER_INFO 1
15993_ACEOF
15994
15995else
15996 echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 { echo "$as_me:$LINENO: result: no" >&5
16000echo "${ECHO_T}no" >&6; }
16001
16002cat >>confdefs.h <<\_ACEOF
16003#define HAVE_CRASHREPORTER_INFO 0
16004_ACEOF
16005
16006fi
16007
16008rm -f core conftest.err conftest.$ac_objext \
16009 conftest$ac_exeext conftest.$ac_ext
16010
16011
16012
16013
16014 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16015echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16016if test "${ac_cv_huge_val_sanity+set}" = set; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018else
16019
16020 ac_ext=cpp
16021ac_cpp='$CXXCPP $CPPFLAGS'
16022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16025
16026 ac_save_CXXFLAGS=$CXXFLAGS
16027 CXXFLAGS=-pedantic
16028 if test "$cross_compiling" = yes; then
16029 ac_cv_huge_val_sanity=yes
16030else
16031 cat >conftest.$ac_ext <<_ACEOF
16032/* confdefs.h. */
16033_ACEOF
16034cat confdefs.h >>conftest.$ac_ext
16035cat >>conftest.$ac_ext <<_ACEOF
16036/* end confdefs.h. */
16037#include <math.h>
16038int
16039main ()
16040{
16041double x = HUGE_VAL; return x != x;
16042 ;
16043 return 0;
16044}
16045_ACEOF
16046rm -f conftest$ac_exeext
16047if { (ac_try="$ac_link"
16048case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051esac
16052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_link") 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16057 { (case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_try") 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 ac_cv_huge_val_sanity=yes
16067else
16068 echo "$as_me: program exited with status $ac_status" >&5
16069echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072( exit $ac_status )
16073ac_cv_huge_val_sanity=no
16074fi
16075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16076fi
16077
16078
16079 CXXFLAGS=$ac_save_CXXFLAGS
16080 ac_ext=c
16081ac_cpp='$CPP $CPPFLAGS'
16082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16084ac_compiler_gnu=$ac_cv_c_compiler_gnu
16085
16086
16087fi
16088{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16089echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16090 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16091
16092
16093{ echo "$as_me:$LINENO: checking for pid_t" >&5
16094echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16095if test "${ac_cv_type_pid_t+set}" = set; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16097else
16098 cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105typedef pid_t ac__type_new_;
16106int
16107main ()
16108{
16109if ((ac__type_new_ *) 0)
16110 return 0;
16111if (sizeof (ac__type_new_))
16112 return 0;
16113 ;
16114 return 0;
16115}
16116_ACEOF
16117rm -f conftest.$ac_objext
16118if { (ac_try="$ac_compile"
16119case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16122esac
16123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_compile") 2>conftest.er1
16125 ac_status=$?
16126 grep -v '^ *+' conftest.er1 >conftest.err
16127 rm -f conftest.er1
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest.$ac_objext'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145esac
16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_try") 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_type_pid_t=yes
16152else
16153 echo "$as_me: failed program was:" >&5
16154sed 's/^/| /' conftest.$ac_ext >&5
16155
16156 ac_cv_type_pid_t=no
16157fi
16158
16159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160fi
16161{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16162echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16163if test $ac_cv_type_pid_t = yes; then
16164 :
16165else
16166
16167cat >>confdefs.h <<_ACEOF
16168#define pid_t int
16169_ACEOF
16170
16171fi
16172
16173{ echo "$as_me:$LINENO: checking for size_t" >&5
16174echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16175if test "${ac_cv_type_size_t+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16177else
16178 cat >conftest.$ac_ext <<_ACEOF
16179/* confdefs.h. */
16180_ACEOF
16181cat confdefs.h >>conftest.$ac_ext
16182cat >>conftest.$ac_ext <<_ACEOF
16183/* end confdefs.h. */
16184$ac_includes_default
16185typedef size_t ac__type_new_;
16186int
16187main ()
16188{
16189if ((ac__type_new_ *) 0)
16190 return 0;
16191if (sizeof (ac__type_new_))
16192 return 0;
16193 ;
16194 return 0;
16195}
16196_ACEOF
16197rm -f conftest.$ac_objext
16198if { (ac_try="$ac_compile"
16199case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16202esac
16203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16212 { (case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16215esac
16216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217 (eval "$ac_try") 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; } &&
16221 { ac_try='test -s conftest.$ac_objext'
16222 { (case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16225esac
16226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_try") 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 ac_cv_type_size_t=yes
16232else
16233 echo "$as_me: failed program was:" >&5
16234sed 's/^/| /' conftest.$ac_ext >&5
16235
16236 ac_cv_type_size_t=no
16237fi
16238
16239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240fi
16241{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16242echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16243if test $ac_cv_type_size_t = yes; then
16244 :
16245else
16246
16247cat >>confdefs.h <<_ACEOF
16248#define size_t unsigned int
16249_ACEOF
16250
16251fi
16252
16253
16254cat >>confdefs.h <<_ACEOF
16255#define RETSIGTYPE void
16256_ACEOF
16257
16258{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16259echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16260if test "${ac_cv_struct_tm+set}" = set; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16262else
16263 cat >conftest.$ac_ext <<_ACEOF
16264/* confdefs.h. */
16265_ACEOF
16266cat confdefs.h >>conftest.$ac_ext
16267cat >>conftest.$ac_ext <<_ACEOF
16268/* end confdefs.h. */
16269#include <sys/types.h>
16270#include <time.h>
16271
16272int
16273main ()
16274{
16275struct tm *tp; tp->tm_sec;
16276 ;
16277 return 0;
16278}
16279_ACEOF
16280rm -f conftest.$ac_objext
16281if { (ac_try="$ac_compile"
16282case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16285esac
16286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287 (eval "$ac_compile") 2>conftest.er1
16288 ac_status=$?
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16295 { (case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298esac
16299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_try") 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; } &&
16304 { ac_try='test -s conftest.$ac_objext'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16314 ac_cv_struct_tm=time.h
16315else
16316 echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319 ac_cv_struct_tm=sys/time.h
16320fi
16321
16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323fi
16324{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16325echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16326if test $ac_cv_struct_tm = sys/time.h; then
16327
16328cat >>confdefs.h <<\_ACEOF
16329#define TM_IN_SYS_TIME 1
16330_ACEOF
16331
16332fi
16333
16334{ echo "$as_me:$LINENO: checking for int64_t" >&5
16335echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16336if test "${ac_cv_type_int64_t+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16338else
16339 cat >conftest.$ac_ext <<_ACEOF
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
16345$ac_includes_default
16346typedef int64_t ac__type_new_;
16347int
16348main ()
16349{
16350if ((ac__type_new_ *) 0)
16351 return 0;
16352if (sizeof (ac__type_new_))
16353 return 0;
16354 ;
16355 return 0;
16356}
16357_ACEOF
16358rm -f conftest.$ac_objext
16359if { (ac_try="$ac_compile"
16360case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363esac
16364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_compile") 2>conftest.er1
16366 ac_status=$?
16367 grep -v '^ *+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } &&
16372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16373 { (case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16376esac
16377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_try") 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; } &&
16382 { ac_try='test -s conftest.$ac_objext'
16383 { (case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16386esac
16387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_try") 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16392 ac_cv_type_int64_t=yes
16393else
16394 echo "$as_me: failed program was:" >&5
16395sed 's/^/| /' conftest.$ac_ext >&5
16396
16397 ac_cv_type_int64_t=no
16398fi
16399
16400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401fi
16402{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16403echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16404if test $ac_cv_type_int64_t = yes; then
16405
16406cat >>confdefs.h <<_ACEOF
16407#define HAVE_INT64_T 1
16408_ACEOF
16409
16410
16411else
16412 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16413echo "$as_me: error: Type int64_t required but not found" >&2;}
16414 { (exit 1); exit 1; }; }
16415fi
16416
16417{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16418echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16419if test "${ac_cv_type_uint64_t+set}" = set; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16421else
16422 cat >conftest.$ac_ext <<_ACEOF
16423/* confdefs.h. */
16424_ACEOF
16425cat confdefs.h >>conftest.$ac_ext
16426cat >>conftest.$ac_ext <<_ACEOF
16427/* end confdefs.h. */
16428$ac_includes_default
16429typedef uint64_t ac__type_new_;
16430int
16431main ()
16432{
16433if ((ac__type_new_ *) 0)
16434 return 0;
16435if (sizeof (ac__type_new_))
16436 return 0;
16437 ;
16438 return 0;
16439}
16440_ACEOF
16441rm -f conftest.$ac_objext
16442if { (ac_try="$ac_compile"
16443case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16446esac
16447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_compile") 2>conftest.er1
16449 ac_status=$?
16450 grep -v '^ *+' conftest.er1 >conftest.err
16451 rm -f conftest.er1
16452 cat conftest.err >&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16456 { (case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459esac
16460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_try") 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; } &&
16465 { ac_try='test -s conftest.$ac_objext'
16466 { (case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469esac
16470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_try") 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_type_uint64_t=yes
16476else
16477 echo "$as_me: failed program was:" >&5
16478sed 's/^/| /' conftest.$ac_ext >&5
16479
16480 ac_cv_type_uint64_t=no
16481fi
16482
16483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484fi
16485{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16486echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16487if test $ac_cv_type_uint64_t = yes; then
16488
16489cat >>confdefs.h <<_ACEOF
16490#define HAVE_UINT64_T 1
16491_ACEOF
16492
16493
16494else
16495 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16496echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16497if test "${ac_cv_type_u_int64_t+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
16500 cat >conftest.$ac_ext <<_ACEOF
16501/* confdefs.h. */
16502_ACEOF
16503cat confdefs.h >>conftest.$ac_ext
16504cat >>conftest.$ac_ext <<_ACEOF
16505/* end confdefs.h. */
16506$ac_includes_default
16507typedef u_int64_t ac__type_new_;
16508int
16509main ()
16510{
16511if ((ac__type_new_ *) 0)
16512 return 0;
16513if (sizeof (ac__type_new_))
16514 return 0;
16515 ;
16516 return 0;
16517}
16518_ACEOF
16519rm -f conftest.$ac_objext
16520if { (ac_try="$ac_compile"
16521case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524esac
16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_compile") 2>conftest.er1
16527 ac_status=$?
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
16533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest.$ac_objext'
16544 { (case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16547esac
16548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_try") 2>&5
16550 ac_status=$?
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_type_u_int64_t=yes
16554else
16555 echo "$as_me: failed program was:" >&5
16556sed 's/^/| /' conftest.$ac_ext >&5
16557
16558 ac_cv_type_u_int64_t=no
16559fi
16560
16561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16562fi
16563{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16564echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16565if test $ac_cv_type_u_int64_t = yes; then
16566
16567cat >>confdefs.h <<_ACEOF
16568#define HAVE_U_INT64_T 1
16569_ACEOF
16570
16571
16572else
16573 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16574echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16575 { (exit 1); exit 1; }; }
16576fi
16577
16578fi
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16590do
16591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16592{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16594if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16596else
16597 cat >conftest.$ac_ext <<_ACEOF
16598/* confdefs.h. */
16599_ACEOF
16600cat confdefs.h >>conftest.$ac_ext
16601cat >>conftest.$ac_ext <<_ACEOF
16602/* end confdefs.h. */
16603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16605#define $ac_func innocuous_$ac_func
16606
16607/* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func (); below.
16609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610 <limits.h> exists even on freestanding compilers. */
16611
16612#ifdef __STDC__
16613# include <limits.h>
16614#else
16615# include <assert.h>
16616#endif
16617
16618#undef $ac_func
16619
16620/* Override any GCC internal prototype to avoid an error.
16621 Use char because int might match the return type of a GCC
16622 builtin and then its argument prototype would still apply. */
16623#ifdef __cplusplus
16624extern "C"
16625#endif
16626char $ac_func ();
16627/* The GNU C library defines this for functions which it implements
16628 to always fail with ENOSYS. Some functions are actually named
16629 something starting with __ and the normal name is an alias. */
16630#if defined __stub_$ac_func || defined __stub___$ac_func
16631choke me
16632#endif
16633
16634int
16635main ()
16636{
16637return $ac_func ();
16638 ;
16639 return 0;
16640}
16641_ACEOF
16642rm -f conftest.$ac_objext conftest$ac_exeext
16643if { (ac_try="$ac_link"
16644case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647esac
16648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_link") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660esac
16661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest$ac_exeext'
16667 { (case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670esac
16671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_try") 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 eval "$as_ac_var=yes"
16677else
16678 echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 eval "$as_ac_var=no"
16682fi
16683
16684rm -f core conftest.err conftest.$ac_objext \
16685 conftest$ac_exeext conftest.$ac_ext
16686fi
16687ac_res=`eval echo '${'$as_ac_var'}'`
16688 { echo "$as_me:$LINENO: result: $ac_res" >&5
16689echo "${ECHO_T}$ac_res" >&6; }
16690if test `eval echo '${'$as_ac_var'}'` = yes; then
16691 cat >>confdefs.h <<_ACEOF
16692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16693_ACEOF
16694
16695fi
16696done
16697
16698
16699
16700
16701
16702for ac_func in powf fmodf strtof round
16703do
16704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16705{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16707if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16709else
16710 cat >conftest.$ac_ext <<_ACEOF
16711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16718#define $ac_func innocuous_$ac_func
16719
16720/* System header to define __stub macros and hopefully few prototypes,
16721 which can conflict with char $ac_func (); below.
16722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16723 <limits.h> exists even on freestanding compilers. */
16724
16725#ifdef __STDC__
16726# include <limits.h>
16727#else
16728# include <assert.h>
16729#endif
16730
16731#undef $ac_func
16732
16733/* Override any GCC internal prototype to avoid an error.
16734 Use char because int might match the return type of a GCC
16735 builtin and then its argument prototype would still apply. */
16736#ifdef __cplusplus
16737extern "C"
16738#endif
16739char $ac_func ();
16740/* The GNU C library defines this for functions which it implements
16741 to always fail with ENOSYS. Some functions are actually named
16742 something starting with __ and the normal name is an alias. */
16743#if defined __stub_$ac_func || defined __stub___$ac_func
16744choke me
16745#endif
16746
16747int
16748main ()
16749{
16750return $ac_func ();
16751 ;
16752 return 0;
16753}
16754_ACEOF
16755rm -f conftest.$ac_objext conftest$ac_exeext
16756if { (ac_try="$ac_link"
16757case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760esac
16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_link") 2>conftest.er1
16763 ac_status=$?
16764 grep -v '^ *+' conftest.er1 >conftest.err
16765 rm -f conftest.er1
16766 cat conftest.err >&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } &&
16769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16770 { (case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16773esac
16774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_try") 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest$ac_exeext'
16780 { (case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783esac
16784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_try") 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 eval "$as_ac_var=yes"
16790else
16791 echo "$as_me: failed program was:" >&5
16792sed 's/^/| /' conftest.$ac_ext >&5
16793
16794 eval "$as_ac_var=no"
16795fi
16796
16797rm -f core conftest.err conftest.$ac_objext \
16798 conftest$ac_exeext conftest.$ac_ext
16799fi
16800ac_res=`eval echo '${'$as_ac_var'}'`
16801 { echo "$as_me:$LINENO: result: $ac_res" >&5
16802echo "${ECHO_T}$ac_res" >&6; }
16803if test `eval echo '${'$as_ac_var'}'` = yes; then
16804 cat >>confdefs.h <<_ACEOF
16805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16806_ACEOF
16807
16808fi
16809done
16810
16811
16812
16813
16814
16815
16816for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16817do
16818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16819{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16821if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823else
16824 cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
16830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16832#define $ac_func innocuous_$ac_func
16833
16834/* System header to define __stub macros and hopefully few prototypes,
16835 which can conflict with char $ac_func (); below.
16836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16837 <limits.h> exists even on freestanding compilers. */
16838
16839#ifdef __STDC__
16840# include <limits.h>
16841#else
16842# include <assert.h>
16843#endif
16844
16845#undef $ac_func
16846
16847/* Override any GCC internal prototype to avoid an error.
16848 Use char because int might match the return type of a GCC
16849 builtin and then its argument prototype would still apply. */
16850#ifdef __cplusplus
16851extern "C"
16852#endif
16853char $ac_func ();
16854/* The GNU C library defines this for functions which it implements
16855 to always fail with ENOSYS. Some functions are actually named
16856 something starting with __ and the normal name is an alias. */
16857#if defined __stub_$ac_func || defined __stub___$ac_func
16858choke me
16859#endif
16860
16861int
16862main ()
16863{
16864return $ac_func ();
16865 ;
16866 return 0;
16867}
16868_ACEOF
16869rm -f conftest.$ac_objext conftest$ac_exeext
16870if { (ac_try="$ac_link"
16871case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16874esac
16875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_link") 2>conftest.er1
16877 ac_status=$?
16878 grep -v '^ *+' conftest.er1 >conftest.err
16879 rm -f conftest.er1
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
16883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887esac
16888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; } &&
16893 { ac_try='test -s conftest$ac_exeext'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 eval "$as_ac_var=yes"
16904else
16905 echo "$as_me: failed program was:" >&5
16906sed 's/^/| /' conftest.$ac_ext >&5
16907
16908 eval "$as_ac_var=no"
16909fi
16910
16911rm -f core conftest.err conftest.$ac_objext \
16912 conftest$ac_exeext conftest.$ac_ext
16913fi
16914ac_res=`eval echo '${'$as_ac_var'}'`
16915 { echo "$as_me:$LINENO: result: $ac_res" >&5
16916echo "${ECHO_T}$ac_res" >&6; }
16917if test `eval echo '${'$as_ac_var'}'` = yes; then
16918 cat >>confdefs.h <<_ACEOF
16919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16920_ACEOF
16921
16922fi
16923done
16924
16925
16926
16927
16928for ac_func in isatty mkdtemp mkstemp
16929do
16930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16931{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16933if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
16942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16944#define $ac_func innocuous_$ac_func
16945
16946/* System header to define __stub macros and hopefully few prototypes,
16947 which can conflict with char $ac_func (); below.
16948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16949 <limits.h> exists even on freestanding compilers. */
16950
16951#ifdef __STDC__
16952# include <limits.h>
16953#else
16954# include <assert.h>
16955#endif
16956
16957#undef $ac_func
16958
16959/* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16962#ifdef __cplusplus
16963extern "C"
16964#endif
16965char $ac_func ();
16966/* The GNU C library defines this for functions which it implements
16967 to always fail with ENOSYS. Some functions are actually named
16968 something starting with __ and the normal name is an alias. */
16969#if defined __stub_$ac_func || defined __stub___$ac_func
16970choke me
16971#endif
16972
16973int
16974main ()
16975{
16976return $ac_func ();
16977 ;
16978 return 0;
16979}
16980_ACEOF
16981rm -f conftest.$ac_objext conftest$ac_exeext
16982if { (ac_try="$ac_link"
16983case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986esac
16987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 eval "$as_ac_var=yes"
17016else
17017 echo "$as_me: failed program was:" >&5
17018sed 's/^/| /' conftest.$ac_ext >&5
17019
17020 eval "$as_ac_var=no"
17021fi
17022
17023rm -f core conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17025fi
17026ac_res=`eval echo '${'$as_ac_var'}'`
17027 { echo "$as_me:$LINENO: result: $ac_res" >&5
17028echo "${ECHO_T}$ac_res" >&6; }
17029if test `eval echo '${'$as_ac_var'}'` = yes; then
17030 cat >>confdefs.h <<_ACEOF
17031#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17032_ACEOF
17033
17034fi
17035done
17036
17037
17038
17039
17040
17041
17042
17043for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17044do
17045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17046{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17048if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17050else
17051 cat >conftest.$ac_ext <<_ACEOF
17052/* confdefs.h. */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h. */
17057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059#define $ac_func innocuous_$ac_func
17060
17061/* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17065
17066#ifdef __STDC__
17067# include <limits.h>
17068#else
17069# include <assert.h>
17070#endif
17071
17072#undef $ac_func
17073
17074/* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077#ifdef __cplusplus
17078extern "C"
17079#endif
17080char $ac_func ();
17081/* The GNU C library defines this for functions which it implements
17082 to always fail with ENOSYS. Some functions are actually named
17083 something starting with __ and the normal name is an alias. */
17084#if defined __stub_$ac_func || defined __stub___$ac_func
17085choke me
17086#endif
17087
17088int
17089main ()
17090{
17091return $ac_func ();
17092 ;
17093 return 0;
17094}
17095_ACEOF
17096rm -f conftest.$ac_objext conftest$ac_exeext
17097if { (ac_try="$ac_link"
17098case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101esac
17102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_link") 2>conftest.er1
17104 ac_status=$?
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
17110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17111 { (case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17114esac
17115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_try") 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124esac
17125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_try") 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 eval "$as_ac_var=yes"
17131else
17132 echo "$as_me: failed program was:" >&5
17133sed 's/^/| /' conftest.$ac_ext >&5
17134
17135 eval "$as_ac_var=no"
17136fi
17137
17138rm -f core conftest.err conftest.$ac_objext \
17139 conftest$ac_exeext conftest.$ac_ext
17140fi
17141ac_res=`eval echo '${'$as_ac_var'}'`
17142 { echo "$as_me:$LINENO: result: $ac_res" >&5
17143echo "${ECHO_T}$ac_res" >&6; }
17144if test `eval echo '${'$as_ac_var'}'` = yes; then
17145 cat >>confdefs.h <<_ACEOF
17146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17147_ACEOF
17148
17149fi
17150done
17151
17152
17153
17154
17155for ac_func in strerror strerror_r setenv
17156do
17157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17158{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17160if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
17163 cat >conftest.$ac_ext <<_ACEOF
17164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
17169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17171#define $ac_func innocuous_$ac_func
17172
17173/* System header to define __stub macros and hopefully few prototypes,
17174 which can conflict with char $ac_func (); below.
17175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176 <limits.h> exists even on freestanding compilers. */
17177
17178#ifdef __STDC__
17179# include <limits.h>
17180#else
17181# include <assert.h>
17182#endif
17183
17184#undef $ac_func
17185
17186/* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
17189#ifdef __cplusplus
17190extern "C"
17191#endif
17192char $ac_func ();
17193/* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196#if defined __stub_$ac_func || defined __stub___$ac_func
17197choke me
17198#endif
17199
17200int
17201main ()
17202{
17203return $ac_func ();
17204 ;
17205 return 0;
17206}
17207_ACEOF
17208rm -f conftest.$ac_objext conftest$ac_exeext
17209if { (ac_try="$ac_link"
17210case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 eval "$as_ac_var=yes"
17243else
17244 echo "$as_me: failed program was:" >&5
17245sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 eval "$as_ac_var=no"
17248fi
17249
17250rm -f core conftest.err conftest.$ac_objext \
17251 conftest$ac_exeext conftest.$ac_ext
17252fi
17253ac_res=`eval echo '${'$as_ac_var'}'`
17254 { echo "$as_me:$LINENO: result: $ac_res" >&5
17255echo "${ECHO_T}$ac_res" >&6; }
17256if test `eval echo '${'$as_ac_var'}'` = yes; then
17257 cat >>confdefs.h <<_ACEOF
17258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17259_ACEOF
17260
17261fi
17262done
17263
17264
17265
17266
17267
17268for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17269do
17270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17271{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17273if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17275else
17276 cat >conftest.$ac_ext <<_ACEOF
17277/* confdefs.h. */
17278_ACEOF
17279cat confdefs.h >>conftest.$ac_ext
17280cat >>conftest.$ac_ext <<_ACEOF
17281/* end confdefs.h. */
17282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17284#define $ac_func innocuous_$ac_func
17285
17286/* System header to define __stub macros and hopefully few prototypes,
17287 which can conflict with char $ac_func (); below.
17288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17289 <limits.h> exists even on freestanding compilers. */
17290
17291#ifdef __STDC__
17292# include <limits.h>
17293#else
17294# include <assert.h>
17295#endif
17296
17297#undef $ac_func
17298
17299/* Override any GCC internal prototype to avoid an error.
17300 Use char because int might match the return type of a GCC
17301 builtin and then its argument prototype would still apply. */
17302#ifdef __cplusplus
17303extern "C"
17304#endif
17305char $ac_func ();
17306/* The GNU C library defines this for functions which it implements
17307 to always fail with ENOSYS. Some functions are actually named
17308 something starting with __ and the normal name is an alias. */
17309#if defined __stub_$ac_func || defined __stub___$ac_func
17310choke me
17311#endif
17312
17313int
17314main ()
17315{
17316return $ac_func ();
17317 ;
17318 return 0;
17319}
17320_ACEOF
17321rm -f conftest.$ac_objext conftest$ac_exeext
17322if { (ac_try="$ac_link"
17323case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17326esac
17327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_link") 2>conftest.er1
17329 ac_status=$?
17330 grep -v '^ *+' conftest.er1 >conftest.err
17331 rm -f conftest.er1
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17336 { (case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339esac
17340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_try") 2>&5
17342 ac_status=$?
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try='test -s conftest$ac_exeext'
17346 { (case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349esac
17350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_try") 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 eval "$as_ac_var=yes"
17356else
17357 echo "$as_me: failed program was:" >&5
17358sed 's/^/| /' conftest.$ac_ext >&5
17359
17360 eval "$as_ac_var=no"
17361fi
17362
17363rm -f core conftest.err conftest.$ac_objext \
17364 conftest$ac_exeext conftest.$ac_ext
17365fi
17366ac_res=`eval echo '${'$as_ac_var'}'`
17367 { echo "$as_me:$LINENO: result: $ac_res" >&5
17368echo "${ECHO_T}$ac_res" >&6; }
17369if test `eval echo '${'$as_ac_var'}'` = yes; then
17370 cat >>confdefs.h <<_ACEOF
17371#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17372_ACEOF
17373
17374fi
17375done
17376
17377
17378
17379
17380
17381
17382for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17383do
17384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17385{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389else
17390 cat >conftest.$ac_ext <<_ACEOF
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
17396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17398#define $ac_func innocuous_$ac_func
17399
17400/* System header to define __stub macros and hopefully few prototypes,
17401 which can conflict with char $ac_func (); below.
17402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17403 <limits.h> exists even on freestanding compilers. */
17404
17405#ifdef __STDC__
17406# include <limits.h>
17407#else
17408# include <assert.h>
17409#endif
17410
17411#undef $ac_func
17412
17413/* Override any GCC internal prototype to avoid an error.
17414 Use char because int might match the return type of a GCC
17415 builtin and then its argument prototype would still apply. */
17416#ifdef __cplusplus
17417extern "C"
17418#endif
17419char $ac_func ();
17420/* The GNU C library defines this for functions which it implements
17421 to always fail with ENOSYS. Some functions are actually named
17422 something starting with __ and the normal name is an alias. */
17423#if defined __stub_$ac_func || defined __stub___$ac_func
17424choke me
17425#endif
17426
17427int
17428main ()
17429{
17430return $ac_func ();
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext conftest$ac_exeext
17436if { (ac_try="$ac_link"
17437case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17440esac
17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_link") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
17449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17450 { (case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17453esac
17454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_try") 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463esac
17464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_try") 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 eval "$as_ac_var=yes"
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 eval "$as_ac_var=no"
17475fi
17476
17477rm -f core conftest.err conftest.$ac_objext \
17478 conftest$ac_exeext conftest.$ac_ext
17479fi
17480ac_res=`eval echo '${'$as_ac_var'}'`
17481 { echo "$as_me:$LINENO: result: $ac_res" >&5
17482echo "${ECHO_T}$ac_res" >&6; }
17483if test `eval echo '${'$as_ac_var'}'` = yes; then
17484 cat >>confdefs.h <<_ACEOF
17485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17486_ACEOF
17487
17488fi
17489done
17490
17491{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17492echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17493if test "${llvm_cv_c_printf_a+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17495else
17496 ac_ext=c
17497ac_cpp='$CPP $CPPFLAGS'
17498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17500ac_compiler_gnu=$ac_cv_c_compiler_gnu
17501
17502 if test "$cross_compiling" = yes; then
17503 llvmac_cv_c_printf_a=no
17504else
17505 cat >conftest.$ac_ext <<_ACEOF
17506
17507 /* confdefs.h. */
17508_ACEOF
17509cat confdefs.h >>conftest.$ac_ext
17510cat >>conftest.$ac_ext <<_ACEOF
17511/* end confdefs.h. */
17512
17513#include <stdio.h>
17514#include <stdlib.h>
17515
17516int
17517main ()
17518{
17519
17520volatile double A, B;
17521char Buffer[100];
17522A = 1;
17523A /= 10.0;
17524sprintf(Buffer, "%a", A);
17525B = atof(Buffer);
17526if (A != B)
17527 return (1);
17528if (A != 0x1.999999999999ap-4)
17529 return (1);
17530return (0);
17531 ;
17532 return 0;
17533}
17534_ACEOF
17535rm -f conftest$ac_exeext
17536if { (ac_try="$ac_link"
17537case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540esac
17541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_link") 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17546 { (case "(($ac_try" in
17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548 *) ac_try_echo=$ac_try;;
17549esac
17550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551 (eval "$ac_try") 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 llvm_cv_c_printf_a=yes
17556else
17557 echo "$as_me: program exited with status $ac_status" >&5
17558echo "$as_me: failed program was:" >&5
17559sed 's/^/| /' conftest.$ac_ext >&5
17560
17561( exit $ac_status )
17562llvmac_cv_c_printf_a=no
17563fi
17564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17565fi
17566
17567
17568 ac_ext=c
17569ac_cpp='$CPP $CPPFLAGS'
17570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17572ac_compiler_gnu=$ac_cv_c_compiler_gnu
17573
17574fi
17575{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17576echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17577 if test "$llvm_cv_c_printf_a" = "yes"; then
17578
17579cat >>confdefs.h <<\_ACEOF
17580#define HAVE_PRINTF_A 1
17581_ACEOF
17582
17583 fi
17584
17585
17586{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17587echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17588if test "${ac_cv_func_rand48+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590else
17591 ac_ext=cpp
17592ac_cpp='$CXXCPP $CPPFLAGS'
17593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17596
17597 cat >conftest.$ac_ext <<_ACEOF
17598/* confdefs.h. */
17599_ACEOF
17600cat confdefs.h >>conftest.$ac_ext
17601cat >>conftest.$ac_ext <<_ACEOF
17602/* end confdefs.h. */
17603#include <stdlib.h>
17604int
17605main ()
17606{
17607srand48(0);lrand48();drand48();
17608 ;
17609 return 0;
17610}
17611_ACEOF
17612rm -f conftest.$ac_objext
17613if { (ac_try="$ac_compile"
17614case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17617esac
17618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_compile") 2>conftest.er1
17620 ac_status=$?
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17630esac
17631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_try") 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest.$ac_objext'
17637 { (case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640esac
17641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_try") 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_func_rand48=yes
17647else
17648 echo "$as_me: failed program was:" >&5
17649sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 ac_cv_func_rand48=no
17652fi
17653
17654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 ac_ext=c
17656ac_cpp='$CPP $CPPFLAGS'
17657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17659ac_compiler_gnu=$ac_cv_c_compiler_gnu
17660
17661fi
17662{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17663echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17664
17665if test "$ac_cv_func_rand48" = "yes" ; then
17666
17667cat >>confdefs.h <<\_ACEOF
17668#define HAVE_RAND48 1
17669_ACEOF
17670
17671fi
17672
17673
17674{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17675echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17676if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17678else
17679 cat >conftest.$ac_ext <<_ACEOF
17680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
17685$ac_includes_default
17686int
17687main ()
17688{
17689#ifndef strerror_s
17690 char *p = (char *) strerror_s;
17691 return !p;
17692#endif
17693
17694 ;
17695 return 0;
17696}
17697_ACEOF
17698rm -f conftest.$ac_objext
17699if { (ac_try="$ac_compile"
17700case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17703esac
17704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_compile") 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest.$ac_objext'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17726esac
17727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 ac_cv_have_decl_strerror_s=yes
17733else
17734 echo "$as_me: failed program was:" >&5
17735sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 ac_cv_have_decl_strerror_s=no
17738fi
17739
17740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741fi
17742{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17743echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17744if test $ac_cv_have_decl_strerror_s = yes; then
17745
17746cat >>confdefs.h <<_ACEOF
17747#define HAVE_DECL_STRERROR_S 1
17748_ACEOF
17749
17750
17751else
17752 cat >>confdefs.h <<_ACEOF
17753#define HAVE_DECL_STRERROR_S 0
17754_ACEOF
17755
17756
17757fi
17758
17759
17760
17761if test "$llvm_cv_os_type" = "MingW" ; then
17762 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17763echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17764if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17766else
17767 ac_check_lib_save_LIBS=$LIBS
17768LIBS="-lgcc $LIBS"
17769cat >conftest.$ac_ext <<_ACEOF
17770/* confdefs.h. */
17771_ACEOF
17772cat confdefs.h >>conftest.$ac_ext
17773cat >>conftest.$ac_ext <<_ACEOF
17774/* end confdefs.h. */
17775
17776/* Override any GCC internal prototype to avoid an error.
17777 Use char because int might match the return type of a GCC
17778 builtin and then its argument prototype would still apply. */
17779#ifdef __cplusplus
17780extern "C"
17781#endif
17782char _alloca ();
17783int
17784main ()
17785{
17786return _alloca ();
17787 ;
17788 return 0;
17789}
17790_ACEOF
17791rm -f conftest.$ac_objext conftest$ac_exeext
17792if { (ac_try="$ac_link"
17793case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17796esac
17797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_link") 2>conftest.er1
17799 ac_status=$?
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17806 { (case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809esac
17810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_try") 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest$ac_exeext'
17816 { (case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819esac
17820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_try") 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_cv_lib_gcc__alloca=yes
17826else
17827 echo "$as_me: failed program was:" >&5
17828sed 's/^/| /' conftest.$ac_ext >&5
17829
17830 ac_cv_lib_gcc__alloca=no
17831fi
17832
17833rm -f core conftest.err conftest.$ac_objext \
17834 conftest$ac_exeext conftest.$ac_ext
17835LIBS=$ac_check_lib_save_LIBS
17836fi
17837{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17838echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17839if test $ac_cv_lib_gcc__alloca = yes; then
17840
17841cat >>confdefs.h <<\_ACEOF
17842#define HAVE__ALLOCA 1
17843_ACEOF
17844
17845fi
17846
17847 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17848echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17849if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17851else
17852 ac_check_lib_save_LIBS=$LIBS
17853LIBS="-lgcc $LIBS"
17854cat >conftest.$ac_ext <<_ACEOF
17855/* confdefs.h. */
17856_ACEOF
17857cat confdefs.h >>conftest.$ac_ext
17858cat >>conftest.$ac_ext <<_ACEOF
17859/* end confdefs.h. */
17860
17861/* Override any GCC internal prototype to avoid an error.
17862 Use char because int might match the return type of a GCC
17863 builtin and then its argument prototype would still apply. */
17864#ifdef __cplusplus
17865extern "C"
17866#endif
17867char __alloca ();
17868int
17869main ()
17870{
17871return __alloca ();
17872 ;
17873 return 0;
17874}
17875_ACEOF
17876rm -f conftest.$ac_objext conftest$ac_exeext
17877if { (ac_try="$ac_link"
17878case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881esac
17882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_link") 2>conftest.er1
17884 ac_status=$?
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17891 { (case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17894esac
17895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_try") 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest$ac_exeext'
17901 { (case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17904esac
17905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_try") 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_lib_gcc___alloca=yes
17911else
17912 echo "$as_me: failed program was:" >&5
17913sed 's/^/| /' conftest.$ac_ext >&5
17914
17915 ac_cv_lib_gcc___alloca=no
17916fi
17917
17918rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920LIBS=$ac_check_lib_save_LIBS
17921fi
17922{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17923echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17924if test $ac_cv_lib_gcc___alloca = yes; then
17925
17926cat >>confdefs.h <<\_ACEOF
17927#define HAVE___ALLOCA 1
17928_ACEOF
17929
17930fi
17931
17932 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17933echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17934if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17936else
17937 ac_check_lib_save_LIBS=$LIBS
17938LIBS="-lgcc $LIBS"
17939cat >conftest.$ac_ext <<_ACEOF
17940/* confdefs.h. */
17941_ACEOF
17942cat confdefs.h >>conftest.$ac_ext
17943cat >>conftest.$ac_ext <<_ACEOF
17944/* end confdefs.h. */
17945
17946/* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17949#ifdef __cplusplus
17950extern "C"
17951#endif
17952char __chkstk ();
17953int
17954main ()
17955{
17956return __chkstk ();
17957 ;
17958 return 0;
17959}
17960_ACEOF
17961rm -f conftest.$ac_objext conftest$ac_exeext
17962if { (ac_try="$ac_link"
17963case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17966esac
17967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968 (eval "$ac_link") 2>conftest.er1
17969 ac_status=$?
17970 grep -v '^ *+' conftest.er1 >conftest.err
17971 rm -f conftest.er1
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17976 { (case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17979esac
17980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_try") 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest$ac_exeext'
17986 { (case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17989esac
17990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_try") 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; }; then
17995 ac_cv_lib_gcc___chkstk=yes
17996else
17997 echo "$as_me: failed program was:" >&5
17998sed 's/^/| /' conftest.$ac_ext >&5
17999
18000 ac_cv_lib_gcc___chkstk=no
18001fi
18002
18003rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18005LIBS=$ac_check_lib_save_LIBS
18006fi
18007{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18008echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18009if test $ac_cv_lib_gcc___chkstk = yes; then
18010
18011cat >>confdefs.h <<\_ACEOF
18012#define HAVE___CHKSTK 1
18013_ACEOF
18014
18015fi
18016
18017 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18018echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18019if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18021else
18022 ac_check_lib_save_LIBS=$LIBS
18023LIBS="-lgcc $LIBS"
18024cat >conftest.$ac_ext <<_ACEOF
18025/* confdefs.h. */
18026_ACEOF
18027cat confdefs.h >>conftest.$ac_ext
18028cat >>conftest.$ac_ext <<_ACEOF
18029/* end confdefs.h. */
18030
18031/* Override any GCC internal prototype to avoid an error.
18032 Use char because int might match the return type of a GCC
18033 builtin and then its argument prototype would still apply. */
18034#ifdef __cplusplus
18035extern "C"
18036#endif
18037char ___chkstk ();
18038int
18039main ()
18040{
18041return ___chkstk ();
18042 ;
18043 return 0;
18044}
18045_ACEOF
18046rm -f conftest.$ac_objext conftest$ac_exeext
18047if { (ac_try="$ac_link"
18048case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18051esac
18052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_link") 2>conftest.er1
18054 ac_status=$?
18055 grep -v '^ *+' conftest.er1 >conftest.err
18056 rm -f conftest.er1
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
18060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest$ac_exeext'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074esac
18075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_cv_lib_gcc____chkstk=yes
18081else
18082 echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
18085 ac_cv_lib_gcc____chkstk=no
18086fi
18087
18088rm -f core conftest.err conftest.$ac_objext \
18089 conftest$ac_exeext conftest.$ac_ext
18090LIBS=$ac_check_lib_save_LIBS
18091fi
18092{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18093echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18094if test $ac_cv_lib_gcc____chkstk = yes; then
18095
18096cat >>confdefs.h <<\_ACEOF
18097#define HAVE____CHKSTK 1
18098_ACEOF
18099
18100fi
18101
18102
18103 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18104echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18105if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107else
18108 ac_check_lib_save_LIBS=$LIBS
18109LIBS="-lgcc $LIBS"
18110cat >conftest.$ac_ext <<_ACEOF
18111/* confdefs.h. */
18112_ACEOF
18113cat confdefs.h >>conftest.$ac_ext
18114cat >>conftest.$ac_ext <<_ACEOF
18115/* end confdefs.h. */
18116
18117/* Override any GCC internal prototype to avoid an error.
18118 Use char because int might match the return type of a GCC
18119 builtin and then its argument prototype would still apply. */
18120#ifdef __cplusplus
18121extern "C"
18122#endif
18123char __ashldi3 ();
18124int
18125main ()
18126{
18127return __ashldi3 ();
18128 ;
18129 return 0;
18130}
18131_ACEOF
18132rm -f conftest.$ac_objext conftest$ac_exeext
18133if { (ac_try="$ac_link"
18134case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18137esac
18138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_link") 2>conftest.er1
18140 ac_status=$?
18141 grep -v '^ *+' conftest.er1 >conftest.err
18142 rm -f conftest.er1
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
18146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest$ac_exeext'
18157 { (case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160esac
18161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_try") 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_lib_gcc___ashldi3=yes
18167else
18168 echo "$as_me: failed program was:" >&5
18169sed 's/^/| /' conftest.$ac_ext >&5
18170
18171 ac_cv_lib_gcc___ashldi3=no
18172fi
18173
18174rm -f core conftest.err conftest.$ac_objext \
18175 conftest$ac_exeext conftest.$ac_ext
18176LIBS=$ac_check_lib_save_LIBS
18177fi
18178{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18179echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18180if test $ac_cv_lib_gcc___ashldi3 = yes; then
18181
18182cat >>confdefs.h <<\_ACEOF
18183#define HAVE___ASHLDI3 1
18184_ACEOF
18185
18186fi
18187
18188 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18189echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18190if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192else
18193 ac_check_lib_save_LIBS=$LIBS
18194LIBS="-lgcc $LIBS"
18195cat >conftest.$ac_ext <<_ACEOF
18196/* confdefs.h. */
18197_ACEOF
18198cat confdefs.h >>conftest.$ac_ext
18199cat >>conftest.$ac_ext <<_ACEOF
18200/* end confdefs.h. */
18201
18202/* Override any GCC internal prototype to avoid an error.
18203 Use char because int might match the return type of a GCC
18204 builtin and then its argument prototype would still apply. */
18205#ifdef __cplusplus
18206extern "C"
18207#endif
18208char __ashrdi3 ();
18209int
18210main ()
18211{
18212return __ashrdi3 ();
18213 ;
18214 return 0;
18215}
18216_ACEOF
18217rm -f conftest.$ac_objext conftest$ac_exeext
18218if { (ac_try="$ac_link"
18219case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18222esac
18223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_link") 2>conftest.er1
18225 ac_status=$?
18226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -f conftest.er1
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18235esac
18236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18245esac
18246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_try") 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_cv_lib_gcc___ashrdi3=yes
18252else
18253 echo "$as_me: failed program was:" >&5
18254sed 's/^/| /' conftest.$ac_ext >&5
18255
18256 ac_cv_lib_gcc___ashrdi3=no
18257fi
18258
18259rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261LIBS=$ac_check_lib_save_LIBS
18262fi
18263{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18264echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18265if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18266
18267cat >>confdefs.h <<\_ACEOF
18268#define HAVE___ASHRDI3 1
18269_ACEOF
18270
18271fi
18272
18273 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18274echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18275if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18277else
18278 ac_check_lib_save_LIBS=$LIBS
18279LIBS="-lgcc $LIBS"
18280cat >conftest.$ac_ext <<_ACEOF
18281/* confdefs.h. */
18282_ACEOF
18283cat confdefs.h >>conftest.$ac_ext
18284cat >>conftest.$ac_ext <<_ACEOF
18285/* end confdefs.h. */
18286
18287/* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18290#ifdef __cplusplus
18291extern "C"
18292#endif
18293char __divdi3 ();
18294int
18295main ()
18296{
18297return __divdi3 ();
18298 ;
18299 return 0;
18300}
18301_ACEOF
18302rm -f conftest.$ac_objext conftest$ac_exeext
18303if { (ac_try="$ac_link"
18304case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18307esac
18308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_link") 2>conftest.er1
18310 ac_status=$?
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18317 { (case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18320esac
18321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_try") 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest$ac_exeext'
18327 { (case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330esac
18331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_try") 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_cv_lib_gcc___divdi3=yes
18337else
18338 echo "$as_me: failed program was:" >&5
18339sed 's/^/| /' conftest.$ac_ext >&5
18340
18341 ac_cv_lib_gcc___divdi3=no
18342fi
18343
18344rm -f core conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18346LIBS=$ac_check_lib_save_LIBS
18347fi
18348{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18349echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18350if test $ac_cv_lib_gcc___divdi3 = yes; then
18351
18352cat >>confdefs.h <<\_ACEOF
18353#define HAVE___DIVDI3 1
18354_ACEOF
18355
18356fi
18357
18358 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18359echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18360if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362else
18363 ac_check_lib_save_LIBS=$LIBS
18364LIBS="-lgcc $LIBS"
18365cat >conftest.$ac_ext <<_ACEOF
18366/* confdefs.h. */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h. */
18371
18372/* Override any GCC internal prototype to avoid an error.
18373 Use char because int might match the return type of a GCC
18374 builtin and then its argument prototype would still apply. */
18375#ifdef __cplusplus
18376extern "C"
18377#endif
18378char __fixdfdi ();
18379int
18380main ()
18381{
18382return __fixdfdi ();
18383 ;
18384 return 0;
18385}
18386_ACEOF
18387rm -f conftest.$ac_objext conftest$ac_exeext
18388if { (ac_try="$ac_link"
18389case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392esac
18393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_link") 2>conftest.er1
18395 ac_status=$?
18396 grep -v '^ *+' conftest.er1 >conftest.err
18397 rm -f conftest.er1
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18402 { (case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18405esac
18406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407 (eval "$ac_try") 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try='test -s conftest$ac_exeext'
18412 { (case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18415esac
18416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_try") 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_cv_lib_gcc___fixdfdi=yes
18422else
18423 echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
18426 ac_cv_lib_gcc___fixdfdi=no
18427fi
18428
18429rm -f core conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
18431LIBS=$ac_check_lib_save_LIBS
18432fi
18433{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18434echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18435if test $ac_cv_lib_gcc___fixdfdi = yes; then
18436
18437cat >>confdefs.h <<\_ACEOF
18438#define HAVE___FIXDFDI 1
18439_ACEOF
18440
18441fi
18442
18443 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18444echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18445if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18447else
18448 ac_check_lib_save_LIBS=$LIBS
18449LIBS="-lgcc $LIBS"
18450cat >conftest.$ac_ext <<_ACEOF
18451/* confdefs.h. */
18452_ACEOF
18453cat confdefs.h >>conftest.$ac_ext
18454cat >>conftest.$ac_ext <<_ACEOF
18455/* end confdefs.h. */
18456
18457/* Override any GCC internal prototype to avoid an error.
18458 Use char because int might match the return type of a GCC
18459 builtin and then its argument prototype would still apply. */
18460#ifdef __cplusplus
18461extern "C"
18462#endif
18463char __fixsfdi ();
18464int
18465main ()
18466{
18467return __fixsfdi ();
18468 ;
18469 return 0;
18470}
18471_ACEOF
18472rm -f conftest.$ac_objext conftest$ac_exeext
18473if { (ac_try="$ac_link"
18474case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18477esac
18478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_link") 2>conftest.er1
18480 ac_status=$?
18481 grep -v '^ *+' conftest.er1 >conftest.err
18482 rm -f conftest.er1
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18487 { (case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490esac
18491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_try") 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest$ac_exeext'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500esac
18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_cv_lib_gcc___fixsfdi=yes
18507else
18508 echo "$as_me: failed program was:" >&5
18509sed 's/^/| /' conftest.$ac_ext >&5
18510
18511 ac_cv_lib_gcc___fixsfdi=no
18512fi
18513
18514rm -f core conftest.err conftest.$ac_objext \
18515 conftest$ac_exeext conftest.$ac_ext
18516LIBS=$ac_check_lib_save_LIBS
18517fi
18518{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18519echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18520if test $ac_cv_lib_gcc___fixsfdi = yes; then
18521
18522cat >>confdefs.h <<\_ACEOF
18523#define HAVE___FIXSFDI 1
18524_ACEOF
18525
18526fi
18527
18528 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18529echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18530if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18532else
18533 ac_check_lib_save_LIBS=$LIBS
18534LIBS="-lgcc $LIBS"
18535cat >conftest.$ac_ext <<_ACEOF
18536/* confdefs.h. */
18537_ACEOF
18538cat confdefs.h >>conftest.$ac_ext
18539cat >>conftest.$ac_ext <<_ACEOF
18540/* end confdefs.h. */
18541
18542/* Override any GCC internal prototype to avoid an error.
18543 Use char because int might match the return type of a GCC
18544 builtin and then its argument prototype would still apply. */
18545#ifdef __cplusplus
18546extern "C"
18547#endif
18548char __floatdidf ();
18549int
18550main ()
18551{
18552return __floatdidf ();
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext conftest$ac_exeext
18558if { (ac_try="$ac_link"
18559case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18562esac
18563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_link") 2>conftest.er1
18565 ac_status=$?
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
18571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18572 { (case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575esac
18576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_try") 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest$ac_exeext'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585esac
18586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 ac_cv_lib_gcc___floatdidf=yes
18592else
18593 echo "$as_me: failed program was:" >&5
18594sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 ac_cv_lib_gcc___floatdidf=no
18597fi
18598
18599rm -f core conftest.err conftest.$ac_objext \
18600 conftest$ac_exeext conftest.$ac_ext
18601LIBS=$ac_check_lib_save_LIBS
18602fi
18603{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18604echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18605if test $ac_cv_lib_gcc___floatdidf = yes; then
18606
18607cat >>confdefs.h <<\_ACEOF
18608#define HAVE___FLOATDIDF 1
18609_ACEOF
18610
18611fi
18612
18613 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18614echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18615if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18617else
18618 ac_check_lib_save_LIBS=$LIBS
18619LIBS="-lgcc $LIBS"
18620cat >conftest.$ac_ext <<_ACEOF
18621/* confdefs.h. */
18622_ACEOF
18623cat confdefs.h >>conftest.$ac_ext
18624cat >>conftest.$ac_ext <<_ACEOF
18625/* end confdefs.h. */
18626
18627/* Override any GCC internal prototype to avoid an error.
18628 Use char because int might match the return type of a GCC
18629 builtin and then its argument prototype would still apply. */
18630#ifdef __cplusplus
18631extern "C"
18632#endif
18633char __lshrdi3 ();
18634int
18635main ()
18636{
18637return __lshrdi3 ();
18638 ;
18639 return 0;
18640}
18641_ACEOF
18642rm -f conftest.$ac_objext conftest$ac_exeext
18643if { (ac_try="$ac_link"
18644case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647esac
18648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_link") 2>conftest.er1
18650 ac_status=$?
18651 grep -v '^ *+' conftest.er1 >conftest.err
18652 rm -f conftest.er1
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18657 { (case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18660esac
18661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_try") 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest$ac_exeext'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670esac
18671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_cv_lib_gcc___lshrdi3=yes
18677else
18678 echo "$as_me: failed program was:" >&5
18679sed 's/^/| /' conftest.$ac_ext >&5
18680
18681 ac_cv_lib_gcc___lshrdi3=no
18682fi
18683
18684rm -f core conftest.err conftest.$ac_objext \
18685 conftest$ac_exeext conftest.$ac_ext
18686LIBS=$ac_check_lib_save_LIBS
18687fi
18688{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18689echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18690if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18691
18692cat >>confdefs.h <<\_ACEOF
18693#define HAVE___LSHRDI3 1
18694_ACEOF
18695
18696fi
18697
18698 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18699echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18700if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18702else
18703 ac_check_lib_save_LIBS=$LIBS
18704LIBS="-lgcc $LIBS"
18705cat >conftest.$ac_ext <<_ACEOF
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711
18712/* Override any GCC internal prototype to avoid an error.
18713 Use char because int might match the return type of a GCC
18714 builtin and then its argument prototype would still apply. */
18715#ifdef __cplusplus
18716extern "C"
18717#endif
18718char __moddi3 ();
18719int
18720main ()
18721{
18722return __moddi3 ();
18723 ;
18724 return 0;
18725}
18726_ACEOF
18727rm -f conftest.$ac_objext conftest$ac_exeext
18728if { (ac_try="$ac_link"
18729case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18732esac
18733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_link") 2>conftest.er1
18735 ac_status=$?
18736 grep -v '^ *+' conftest.er1 >conftest.err
18737 rm -f conftest.er1
18738 cat conftest.err >&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } &&
18741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18742 { (case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745esac
18746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_try") 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; } &&
18751 { ac_try='test -s conftest$ac_exeext'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18755esac
18756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_lib_gcc___moddi3=yes
18762else
18763 echo "$as_me: failed program was:" >&5
18764sed 's/^/| /' conftest.$ac_ext >&5
18765
18766 ac_cv_lib_gcc___moddi3=no
18767fi
18768
18769rm -f core conftest.err conftest.$ac_objext \
18770 conftest$ac_exeext conftest.$ac_ext
18771LIBS=$ac_check_lib_save_LIBS
18772fi
18773{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18774echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18775if test $ac_cv_lib_gcc___moddi3 = yes; then
18776
18777cat >>confdefs.h <<\_ACEOF
18778#define HAVE___MODDI3 1
18779_ACEOF
18780
18781fi
18782
18783 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18784echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18785if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18787else
18788 ac_check_lib_save_LIBS=$LIBS
18789LIBS="-lgcc $LIBS"
18790cat >conftest.$ac_ext <<_ACEOF
18791/* confdefs.h. */
18792_ACEOF
18793cat confdefs.h >>conftest.$ac_ext
18794cat >>conftest.$ac_ext <<_ACEOF
18795/* end confdefs.h. */
18796
18797/* Override any GCC internal prototype to avoid an error.
18798 Use char because int might match the return type of a GCC
18799 builtin and then its argument prototype would still apply. */
18800#ifdef __cplusplus
18801extern "C"
18802#endif
18803char __udivdi3 ();
18804int
18805main ()
18806{
18807return __udivdi3 ();
18808 ;
18809 return 0;
18810}
18811_ACEOF
18812rm -f conftest.$ac_objext conftest$ac_exeext
18813if { (ac_try="$ac_link"
18814case "(($ac_try" in
18815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816 *) ac_try_echo=$ac_try;;
18817esac
18818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819 (eval "$ac_link") 2>conftest.er1
18820 ac_status=$?
18821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
18826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18827 { (case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18830esac
18831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_try") 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest$ac_exeext'
18837 { (case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18840esac
18841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_try") 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; }; then
18846 ac_cv_lib_gcc___udivdi3=yes
18847else
18848 echo "$as_me: failed program was:" >&5
18849sed 's/^/| /' conftest.$ac_ext >&5
18850
18851 ac_cv_lib_gcc___udivdi3=no
18852fi
18853
18854rm -f core conftest.err conftest.$ac_objext \
18855 conftest$ac_exeext conftest.$ac_ext
18856LIBS=$ac_check_lib_save_LIBS
18857fi
18858{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18859echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18860if test $ac_cv_lib_gcc___udivdi3 = yes; then
18861
18862cat >>confdefs.h <<\_ACEOF
18863#define HAVE___UDIVDI3 1
18864_ACEOF
18865
18866fi
18867
18868 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18869echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18870if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18872else
18873 ac_check_lib_save_LIBS=$LIBS
18874LIBS="-lgcc $LIBS"
18875cat >conftest.$ac_ext <<_ACEOF
18876/* confdefs.h. */
18877_ACEOF
18878cat confdefs.h >>conftest.$ac_ext
18879cat >>conftest.$ac_ext <<_ACEOF
18880/* end confdefs.h. */
18881
18882/* Override any GCC internal prototype to avoid an error.
18883 Use char because int might match the return type of a GCC
18884 builtin and then its argument prototype would still apply. */
18885#ifdef __cplusplus
18886extern "C"
18887#endif
18888char __umoddi3 ();
18889int
18890main ()
18891{
18892return __umoddi3 ();
18893 ;
18894 return 0;
18895}
18896_ACEOF
18897rm -f conftest.$ac_objext conftest$ac_exeext
18898if { (ac_try="$ac_link"
18899case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18902esac
18903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_link") 2>conftest.er1
18905 ac_status=$?
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18915esac
18916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18918 ac_status=$?
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest$ac_exeext'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 ac_cv_lib_gcc___umoddi3=yes
18932else
18933 echo "$as_me: failed program was:" >&5
18934sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 ac_cv_lib_gcc___umoddi3=no
18937fi
18938
18939rm -f core conftest.err conftest.$ac_objext \
18940 conftest$ac_exeext conftest.$ac_ext
18941LIBS=$ac_check_lib_save_LIBS
18942fi
18943{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18944echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18945if test $ac_cv_lib_gcc___umoddi3 = yes; then
18946
18947cat >>confdefs.h <<\_ACEOF
18948#define HAVE___UMODDI3 1
18949_ACEOF
18950
18951fi
18952
18953
18954 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18955echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18956if test "${ac_cv_lib_gcc___main+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18958else
18959 ac_check_lib_save_LIBS=$LIBS
18960LIBS="-lgcc $LIBS"
18961cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
18967
18968/* Override any GCC internal prototype to avoid an error.
18969 Use char because int might match the return type of a GCC
18970 builtin and then its argument prototype would still apply. */
18971#ifdef __cplusplus
18972extern "C"
18973#endif
18974char __main ();
18975int
18976main ()
18977{
18978return __main ();
18979 ;
18980 return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext conftest$ac_exeext
18984if { (ac_try="$ac_link"
18985case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988esac
18989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_link") 2>conftest.er1
18991 ac_status=$?
18992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19001esac
19002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011esac
19012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_cv_lib_gcc___main=yes
19018else
19019 echo "$as_me: failed program was:" >&5
19020sed 's/^/| /' conftest.$ac_ext >&5
19021
19022 ac_cv_lib_gcc___main=no
19023fi
19024
19025rm -f core conftest.err conftest.$ac_objext \
19026 conftest$ac_exeext conftest.$ac_ext
19027LIBS=$ac_check_lib_save_LIBS
19028fi
19029{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19030echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19031if test $ac_cv_lib_gcc___main = yes; then
19032
19033cat >>confdefs.h <<\_ACEOF
19034#define HAVE___MAIN 1
19035_ACEOF
19036
19037fi
19038
19039 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19040echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19041if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043else
19044 ac_check_lib_save_LIBS=$LIBS
19045LIBS="-lgcc $LIBS"
19046cat >conftest.$ac_ext <<_ACEOF
19047/* confdefs.h. */
19048_ACEOF
19049cat confdefs.h >>conftest.$ac_ext
19050cat >>conftest.$ac_ext <<_ACEOF
19051/* end confdefs.h. */
19052
19053/* Override any GCC internal prototype to avoid an error.
19054 Use char because int might match the return type of a GCC
19055 builtin and then its argument prototype would still apply. */
19056#ifdef __cplusplus
19057extern "C"
19058#endif
19059char __cmpdi2 ();
19060int
19061main ()
19062{
19063return __cmpdi2 ();
19064 ;
19065 return 0;
19066}
19067_ACEOF
19068rm -f conftest.$ac_objext conftest$ac_exeext
19069if { (ac_try="$ac_link"
19070case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073esac
19074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_link") 2>conftest.er1
19076 ac_status=$?
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086esac
19087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest$ac_exeext'
19093 { (case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096esac
19097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_try") 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; }; then
19102 ac_cv_lib_gcc___cmpdi2=yes
19103else
19104 echo "$as_me: failed program was:" >&5
19105sed 's/^/| /' conftest.$ac_ext >&5
19106
19107 ac_cv_lib_gcc___cmpdi2=no
19108fi
19109
19110rm -f core conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
19112LIBS=$ac_check_lib_save_LIBS
19113fi
19114{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19115echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19116if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19117
19118cat >>confdefs.h <<\_ACEOF
19119#define HAVE___CMPDI2 1
19120_ACEOF
19121
19122fi
19123
19124fi
19125
19126if test "$llvm_cv_os_type" = "MingW" ; then
19127 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19128echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19129 cat >conftest.$ac_ext <<_ACEOF
19130#include <windows.h>
19131#include <imagehlp.h>
19132extern void foo(PENUMLOADED_MODULES_CALLBACK);
19133extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19134_ACEOF
19135rm -f conftest.$ac_objext
19136if { (ac_try="$ac_compile"
19137case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19140esac
19141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142 (eval "$ac_compile") 2>conftest.er1
19143 ac_status=$?
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
19149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19150 { (case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19153esac
19154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155 (eval "$ac_try") 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; } &&
19159 { ac_try='test -s conftest.$ac_objext'
19160 { (case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163esac
19164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_try") 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19169
19170 { echo "$as_me:$LINENO: result: yes" >&5
19171echo "${ECHO_T}yes" >&6; }
19172 llvm_cv_win32_elmcb_pcstr="PCSTR"
19173
19174else
19175 echo "$as_me: failed program was:" >&5
19176sed 's/^/| /' conftest.$ac_ext >&5
19177
19178
19179 { echo "$as_me:$LINENO: result: no" >&5
19180echo "${ECHO_T}no" >&6; }
19181 llvm_cv_win32_elmcb_pcstr="PSTR"
19182
19183fi
19184
19185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19186
19187cat >>confdefs.h <<_ACEOF
19188#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19189_ACEOF
19190
19191fi
19192
19193
19194{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19195echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19196if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198else
19199 ac_ext=cpp
19200ac_cpp='$CXXCPP $CPPFLAGS'
19201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204
19205 cat >conftest.$ac_ext <<_ACEOF
19206/* confdefs.h. */
19207_ACEOF
19208cat confdefs.h >>conftest.$ac_ext
19209cat >>conftest.$ac_ext <<_ACEOF
19210/* end confdefs.h. */
19211#include <math.h>
19212int
19213main ()
19214{
19215float f; isnan(f);
19216 ;
19217 return 0;
19218}
19219_ACEOF
19220rm -f conftest.$ac_objext
19221if { (ac_try="$ac_compile"
19222case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225esac
19226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
19234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19238esac
19239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
19245 { (case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248esac
19249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_try") 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_cv_func_isnan_in_math_h=yes
19255else
19256 echo "$as_me: failed program was:" >&5
19257sed 's/^/| /' conftest.$ac_ext >&5
19258
19259 ac_cv_func_isnan_in_math_h=no
19260fi
19261
19262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263 ac_ext=c
19264ac_cpp='$CPP $CPPFLAGS'
19265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267ac_compiler_gnu=$ac_cv_c_compiler_gnu
19268
19269fi
19270{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19271echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19272
19273
19274if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19275
19276cat >>confdefs.h <<\_ACEOF
19277#define HAVE_ISNAN_IN_MATH_H 1
19278_ACEOF
19279
19280fi
19281
19282{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19283echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19284if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19286else
19287 ac_ext=cpp
19288ac_cpp='$CXXCPP $CPPFLAGS'
19289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19292
19293 cat >conftest.$ac_ext <<_ACEOF
19294/* confdefs.h. */
19295_ACEOF
19296cat confdefs.h >>conftest.$ac_ext
19297cat >>conftest.$ac_ext <<_ACEOF
19298/* end confdefs.h. */
19299#include <cmath>
19300int
19301main ()
19302{
19303float f; isnan(f);
19304 ;
19305 return 0;
19306}
19307_ACEOF
19308rm -f conftest.$ac_objext
19309if { (ac_try="$ac_compile"
19310case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19313esac
19314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_compile") 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19323 { (case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19326esac
19327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_try") 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19336esac
19337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_try") 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_func_isnan_in_cmath=yes
19343else
19344 echo "$as_me: failed program was:" >&5
19345sed 's/^/| /' conftest.$ac_ext >&5
19346
19347 ac_cv_func_isnan_in_cmath=no
19348fi
19349
19350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19351 ac_ext=c
19352ac_cpp='$CPP $CPPFLAGS'
19353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355ac_compiler_gnu=$ac_cv_c_compiler_gnu
19356
19357fi
19358{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19359echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19360
19361if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19362
19363cat >>confdefs.h <<\_ACEOF
19364#define HAVE_ISNAN_IN_CMATH 1
19365_ACEOF
19366
19367fi
19368
19369{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19370echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19371if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373else
19374 ac_ext=cpp
19375ac_cpp='$CXXCPP $CPPFLAGS'
19376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19379
19380 cat >conftest.$ac_ext <<_ACEOF
19381/* confdefs.h. */
19382_ACEOF
19383cat confdefs.h >>conftest.$ac_ext
19384cat >>conftest.$ac_ext <<_ACEOF
19385/* end confdefs.h. */
19386#include <cmath>
19387int
19388main ()
19389{
19390float f; std::isnan(f);
19391 ;
19392 return 0;
19393}
19394_ACEOF
19395rm -f conftest.$ac_objext
19396if { (ac_try="$ac_compile"
19397case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413esac
19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423esac
19424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 ac_cv_func_std_isnan_in_cmath=yes
19430else
19431 echo "$as_me: failed program was:" >&5
19432sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 ac_cv_func_std_isnan_in_cmath=no
19435fi
19436
19437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 ac_ext=c
19439ac_cpp='$CPP $CPPFLAGS'
19440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442ac_compiler_gnu=$ac_cv_c_compiler_gnu
19443
19444fi
19445{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19446echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19447
19448if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19449
19450cat >>confdefs.h <<\_ACEOF
19451#define HAVE_STD_ISNAN_IN_CMATH 1
19452_ACEOF
19453
19454fi
19455
19456
19457{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19458echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19459if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461else
19462 ac_ext=cpp
19463ac_cpp='$CXXCPP $CPPFLAGS'
19464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19467
19468 cat >conftest.$ac_ext <<_ACEOF
19469/* confdefs.h. */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
19473/* end confdefs.h. */
19474#include <math.h>
19475int
19476main ()
19477{
19478float f; isinf(f);
19479 ;
19480 return 0;
19481}
19482_ACEOF
19483rm -f conftest.$ac_objext
19484if { (ac_try="$ac_compile"
19485case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19488esac
19489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_compile") 2>conftest.er1
19491 ac_status=$?
19492 grep -v '^ *+' conftest.er1 >conftest.err
19493 rm -f conftest.er1
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
19497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19498 { (case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_try") 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; } &&
19507 { ac_try='test -s conftest.$ac_objext'
19508 { (case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511esac
19512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_try") 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 ac_cv_func_isinf_in_math_h=yes
19518else
19519 echo "$as_me: failed program was:" >&5
19520sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 ac_cv_func_isinf_in_math_h=no
19523fi
19524
19525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 ac_ext=c
19527ac_cpp='$CPP $CPPFLAGS'
19528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530ac_compiler_gnu=$ac_cv_c_compiler_gnu
19531
19532fi
19533{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19534echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19535
19536if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19537
19538cat >>confdefs.h <<\_ACEOF
19539#define HAVE_ISINF_IN_MATH_H 1
19540_ACEOF
19541
19542fi
19543
19544{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19545echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19546if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548else
19549 ac_ext=cpp
19550ac_cpp='$CXXCPP $CPPFLAGS'
19551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554
19555 cat >conftest.$ac_ext <<_ACEOF
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
19561#include <cmath>
19562int
19563main ()
19564{
19565float f; isinf(f);
19566 ;
19567 return 0;
19568}
19569_ACEOF
19570rm -f conftest.$ac_objext
19571if { (ac_try="$ac_compile"
19572case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19575esac
19576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_compile") 2>conftest.er1
19578 ac_status=$?
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19585 { (case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19588esac
19589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_try") 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest.$ac_objext'
19595 { (case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19598esac
19599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_try") 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_cv_func_isinf_in_cmath=yes
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_cv_func_isinf_in_cmath=no
19610fi
19611
19612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613 ac_ext=c
19614ac_cpp='$CPP $CPPFLAGS'
19615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617ac_compiler_gnu=$ac_cv_c_compiler_gnu
19618
19619fi
19620{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19621echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19622
19623if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19624
19625cat >>confdefs.h <<\_ACEOF
19626#define HAVE_ISINF_IN_CMATH 1
19627_ACEOF
19628
19629fi
19630
19631{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19632echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19633if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19635else
19636 ac_ext=cpp
19637ac_cpp='$CXXCPP $CPPFLAGS'
19638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19641
19642 cat >conftest.$ac_ext <<_ACEOF
19643/* confdefs.h. */
19644_ACEOF
19645cat confdefs.h >>conftest.$ac_ext
19646cat >>conftest.$ac_ext <<_ACEOF
19647/* end confdefs.h. */
19648#include <cmath>
19649int
19650main ()
19651{
19652float f; std::isinf(f)}
19653 ;
19654 return 0;
19655}
19656_ACEOF
19657rm -f conftest.$ac_objext
19658if { (ac_try="$ac_compile"
19659case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662esac
19663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_compile") 2>conftest.er1
19665 ac_status=$?
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
19671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19672 { (case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19675esac
19676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_try") 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
19682 { (case "(($ac_try" in
19683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684 *) ac_try_echo=$ac_try;;
19685esac
19686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687 (eval "$ac_try") 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 ac_cv_func_std_isinf_in_cmath=yes
19692else
19693 echo "$as_me: failed program was:" >&5
19694sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 ac_cv_func_std_isinf_in_cmath=no
19697fi
19698
19699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19700 ac_ext=c
19701ac_cpp='$CPP $CPPFLAGS'
19702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704ac_compiler_gnu=$ac_cv_c_compiler_gnu
19705
19706fi
19707{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19708echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19709
19710if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19711
19712cat >>confdefs.h <<\_ACEOF
19713#define HAVE_STD_ISINF_IN_CMATH 1
19714_ACEOF
19715
19716fi
19717
19718{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19719echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19720if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722else
19723 ac_ext=cpp
19724ac_cpp='$CXXCPP $CPPFLAGS'
19725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19728
19729 cat >conftest.$ac_ext <<_ACEOF
19730/* confdefs.h. */
19731_ACEOF
19732cat confdefs.h >>conftest.$ac_ext
19733cat >>conftest.$ac_ext <<_ACEOF
19734/* end confdefs.h. */
19735#include <ieeefp.h>
19736int
19737main ()
19738{
19739float f; finite(f);
19740 ;
19741 return 0;
19742}
19743_ACEOF
19744rm -f conftest.$ac_objext
19745if { (ac_try="$ac_compile"
19746case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19749esac
19750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_compile") 2>conftest.er1
19752 ac_status=$?
19753 grep -v '^ *+' conftest.er1 >conftest.err
19754 rm -f conftest.er1
19755 cat conftest.err >&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } &&
19758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19759 { (case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19762esac
19763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764 (eval "$ac_try") 2>&5
19765 ac_status=$?
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; } &&
19768 { ac_try='test -s conftest.$ac_objext'
19769 { (case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772esac
19773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_try") 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; }; then
19778 ac_cv_func_finite_in_ieeefp_h=yes
19779else
19780 echo "$as_me: failed program was:" >&5
19781sed 's/^/| /' conftest.$ac_ext >&5
19782
19783 ac_cv_func_finite_in_ieeefp_h=no
19784fi
19785
19786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787 ac_ext=c
19788ac_cpp='$CPP $CPPFLAGS'
19789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19791ac_compiler_gnu=$ac_cv_c_compiler_gnu
19792
19793fi
19794{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19795echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19796
19797if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19798
19799cat >>confdefs.h <<\_ACEOF
19800#define HAVE_FINITE_IN_IEEEFP_H 1
19801_ACEOF
19802
19803fi
19804
19805
19806
19807if test "$llvm_cv_platform_type" = "Unix" ; then
19808
19809
19810for ac_header in stdlib.h unistd.h
19811do
19812as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19818fi
19819ac_res=`eval echo '${'$as_ac_Header'}'`
19820 { echo "$as_me:$LINENO: result: $ac_res" >&5
19821echo "${ECHO_T}$ac_res" >&6; }
19822else
19823 # Is the header compilable?
19824{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19826cat >conftest.$ac_ext <<_ACEOF
19827/* confdefs.h. */
19828_ACEOF
19829cat confdefs.h >>conftest.$ac_ext
19830cat >>conftest.$ac_ext <<_ACEOF
19831/* end confdefs.h. */
19832$ac_includes_default
19833#include <$ac_header>
19834_ACEOF
19835rm -f conftest.$ac_objext
19836if { (ac_try="$ac_compile"
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_compile") 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); } &&
19849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19850 { (case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19853esac
19854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_try") 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } &&
19859 { ac_try='test -s conftest.$ac_objext'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863esac
19864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_header_compiler=yes
19870else
19871 echo "$as_me: failed program was:" >&5
19872sed 's/^/| /' conftest.$ac_ext >&5
19873
19874 ac_header_compiler=no
19875fi
19876
19877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19878{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19879echo "${ECHO_T}$ac_header_compiler" >&6; }
19880
19881# Is the header present?
19882{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19884cat >conftest.$ac_ext <<_ACEOF
19885/* confdefs.h. */
19886_ACEOF
19887cat confdefs.h >>conftest.$ac_ext
19888cat >>conftest.$ac_ext <<_ACEOF
19889/* end confdefs.h. */
19890#include <$ac_header>
19891_ACEOF
19892if { (ac_try="$ac_cpp conftest.$ac_ext"
19893case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896esac
19897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19899 ac_status=$?
19900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } >/dev/null; then
19905 if test -s conftest.err; then
19906 ac_cpp_err=$ac_c_preproc_warn_flag
19907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19908 else
19909 ac_cpp_err=
19910 fi
19911else
19912 ac_cpp_err=yes
19913fi
19914if test -z "$ac_cpp_err"; then
19915 ac_header_preproc=yes
19916else
19917 echo "$as_me: failed program was:" >&5
19918sed 's/^/| /' conftest.$ac_ext >&5
19919
19920 ac_header_preproc=no
19921fi
19922
19923rm -f conftest.err conftest.$ac_ext
19924{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19925echo "${ECHO_T}$ac_header_preproc" >&6; }
19926
19927# So? What about this header?
19928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19929 yes:no: )
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19934 ac_header_preproc=yes
19935 ;;
19936 no:yes:* )
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19944echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19949 ( cat <<\_ASBOX
19950## ------------------------------ ##
19951## Report this to bugs@yourdomain ##
19952## ------------------------------ ##
19953_ASBOX
19954 ) | sed "s/^/$as_me: WARNING: /" >&2
19955 ;;
19956esac
19957{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19961else
19962 eval "$as_ac_Header=\$ac_header_preproc"
19963fi
19964ac_res=`eval echo '${'$as_ac_Header'}'`
19965 { echo "$as_me:$LINENO: result: $ac_res" >&5
19966echo "${ECHO_T}$ac_res" >&6; }
19967
19968fi
19969if test `eval echo '${'$as_ac_Header'}'` = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19972_ACEOF
19973
19974fi
19975
19976done
19977
19978
19979for ac_func in getpagesize
19980do
19981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19982{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19986else
19987 cat >conftest.$ac_ext <<_ACEOF
19988/* confdefs.h. */
19989_ACEOF
19990cat confdefs.h >>conftest.$ac_ext
19991cat >>conftest.$ac_ext <<_ACEOF
19992/* end confdefs.h. */
19993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19995#define $ac_func innocuous_$ac_func
19996
19997/* System header to define __stub macros and hopefully few prototypes,
19998 which can conflict with char $ac_func (); below.
19999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20000 <limits.h> exists even on freestanding compilers. */
20001
20002#ifdef __STDC__
20003# include <limits.h>
20004#else
20005# include <assert.h>
20006#endif
20007
20008#undef $ac_func
20009
20010/* Override any GCC internal prototype to avoid an error.
20011 Use char because int might match the return type of a GCC
20012 builtin and then its argument prototype would still apply. */
20013#ifdef __cplusplus
20014extern "C"
20015#endif
20016char $ac_func ();
20017/* The GNU C library defines this for functions which it implements
20018 to always fail with ENOSYS. Some functions are actually named
20019 something starting with __ and the normal name is an alias. */
20020#if defined __stub_$ac_func || defined __stub___$ac_func
20021choke me
20022#endif
20023
20024int
20025main ()
20026{
20027return $ac_func ();
20028 ;
20029 return 0;
20030}
20031_ACEOF
20032rm -f conftest.$ac_objext conftest$ac_exeext
20033if { (ac_try="$ac_link"
20034case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037esac
20038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_link") 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20050esac
20051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; } &&
20056 { ac_try='test -s conftest$ac_exeext'
20057 { (case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20060esac
20061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062 (eval "$ac_try") 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 eval "$as_ac_var=yes"
20067else
20068 echo "$as_me: failed program was:" >&5
20069sed 's/^/| /' conftest.$ac_ext >&5
20070
20071 eval "$as_ac_var=no"
20072fi
20073
20074rm -f core conftest.err conftest.$ac_objext \
20075 conftest$ac_exeext conftest.$ac_ext
20076fi
20077ac_res=`eval echo '${'$as_ac_var'}'`
20078 { echo "$as_me:$LINENO: result: $ac_res" >&5
20079echo "${ECHO_T}$ac_res" >&6; }
20080if test `eval echo '${'$as_ac_var'}'` = yes; then
20081 cat >>confdefs.h <<_ACEOF
20082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20083_ACEOF
20084
20085fi
20086done
20087
20088{ echo "$as_me:$LINENO: checking for working mmap" >&5
20089echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20090if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092else
20093 if test "$cross_compiling" = yes; then
20094 ac_cv_func_mmap_fixed_mapped=no
20095else
20096 cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h. */
20102$ac_includes_default
20103/* malloc might have been renamed as rpl_malloc. */
20104#undef malloc
20105
20106/* Thanks to Mike Haertel and Jim Avera for this test.
20107 Here is a matrix of mmap possibilities:
20108 mmap private not fixed
20109 mmap private fixed at somewhere currently unmapped
20110 mmap private fixed at somewhere already mapped
20111 mmap shared not fixed
20112 mmap shared fixed at somewhere currently unmapped
20113 mmap shared fixed at somewhere already mapped
20114 For private mappings, we should verify that changes cannot be read()
20115 back from the file, nor mmap's back from the file at a different
20116 address. (There have been systems where private was not correctly
20117 implemented like the infamous i386 svr4.0, and systems where the
20118 VM page cache was not coherent with the file system buffer cache
20119 like early versions of FreeBSD and possibly contemporary NetBSD.)
20120 For shared mappings, we should conversely verify that changes get
20121 propagated back to all the places they're supposed to be.
20122
20123 Grep wants private fixed already mapped.
20124 The main things grep needs to know about mmap are:
20125 * does it exist and is it safe to write into the mmap'd area
20126 * how to use it (BSD variants) */
20127
20128#include <fcntl.h>
20129#include <sys/mman.h>
20130
20131#if !STDC_HEADERS && !HAVE_STDLIB_H
20132char *malloc ();
20133#endif
20134
20135/* This mess was copied from the GNU getpagesize.h. */
20136#if !HAVE_GETPAGESIZE
20137/* Assume that all systems that can run configure have sys/param.h. */
20138# if !HAVE_SYS_PARAM_H
20139# define HAVE_SYS_PARAM_H 1
20140# endif
20141
20142# ifdef _SC_PAGESIZE
20143# define getpagesize() sysconf(_SC_PAGESIZE)
20144# else /* no _SC_PAGESIZE */
20145# if HAVE_SYS_PARAM_H
20146# include <sys/param.h>
20147# ifdef EXEC_PAGESIZE
20148# define getpagesize() EXEC_PAGESIZE
20149# else /* no EXEC_PAGESIZE */
20150# ifdef NBPG
20151# define getpagesize() NBPG * CLSIZE
20152# ifndef CLSIZE
20153# define CLSIZE 1
20154# endif /* no CLSIZE */
20155# else /* no NBPG */
20156# ifdef NBPC
20157# define getpagesize() NBPC
20158# else /* no NBPC */
20159# ifdef PAGESIZE
20160# define getpagesize() PAGESIZE
20161# endif /* PAGESIZE */
20162# endif /* no NBPC */
20163# endif /* no NBPG */
20164# endif /* no EXEC_PAGESIZE */
20165# else /* no HAVE_SYS_PARAM_H */
20166# define getpagesize() 8192 /* punt totally */
20167# endif /* no HAVE_SYS_PARAM_H */
20168# endif /* no _SC_PAGESIZE */
20169
20170#endif /* no HAVE_GETPAGESIZE */
20171
20172int
20173main ()
20174{
20175 char *data, *data2, *data3;
20176 int i, pagesize;
20177 int fd;
20178
20179 pagesize = getpagesize ();
20180
20181 /* First, make a file with some known garbage in it. */
20182 data = (char *) malloc (pagesize);
20183 if (!data)
20184 return 1;
20185 for (i = 0; i < pagesize; ++i)
20186 *(data + i) = rand ();
20187 umask (0);
20188 fd = creat ("conftest.mmap", 0600);
20189 if (fd < 0)
20190 return 1;
20191 if (write (fd, data, pagesize) != pagesize)
20192 return 1;
20193 close (fd);
20194
20195 /* Next, try to mmap the file at a fixed address which already has
20196 something else allocated at it. If we can, also make sure that
20197 we see the same garbage. */
20198 fd = open ("conftest.mmap", O_RDWR);
20199 if (fd < 0)
20200 return 1;
20201 data2 = (char *) malloc (2 * pagesize);
20202 if (!data2)
20203 return 1;
20204 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20205 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20206 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20207 return 1;
20208 for (i = 0; i < pagesize; ++i)
20209 if (*(data + i) != *(data2 + i))
20210 return 1;
20211
20212 /* Finally, make sure that changes to the mapped area do not
20213 percolate back to the file as seen by read(). (This is a bug on
20214 some variants of i386 svr4.0.) */
20215 for (i = 0; i < pagesize; ++i)
20216 *(data2 + i) = *(data2 + i) + 1;
20217 data3 = (char *) malloc (pagesize);
20218 if (!data3)
20219 return 1;
20220 if (read (fd, data3, pagesize) != pagesize)
20221 return 1;
20222 for (i = 0; i < pagesize; ++i)
20223 if (*(data + i) != *(data3 + i))
20224 return 1;
20225 close (fd);
20226 return 0;
20227}
20228_ACEOF
20229rm -f conftest$ac_exeext
20230if { (ac_try="$ac_link"
20231case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20234esac
20235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_link") 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20240 { (case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243esac
20244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_try") 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_cv_func_mmap_fixed_mapped=yes
20250else
20251 echo "$as_me: program exited with status $ac_status" >&5
20252echo "$as_me: failed program was:" >&5
20253sed 's/^/| /' conftest.$ac_ext >&5
20254
20255( exit $ac_status )
20256ac_cv_func_mmap_fixed_mapped=no
20257fi
20258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20259fi
20260
20261
20262fi
20263{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20264echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20265if test $ac_cv_func_mmap_fixed_mapped = yes; then
20266
20267cat >>confdefs.h <<\_ACEOF
20268#define HAVE_MMAP 1
20269_ACEOF
20270
20271fi
20272rm -f conftest.mmap
20273
20274 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20275echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20276if test "${ac_cv_func_mmap_file+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278else
20279 ac_ext=c
20280ac_cpp='$CPP $CPPFLAGS'
20281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20283ac_compiler_gnu=$ac_cv_c_compiler_gnu
20284
20285 if test "$cross_compiling" = yes; then
20286 ac_cv_func_mmap_file=no
20287else
20288 cat >conftest.$ac_ext <<_ACEOF
20289
20290 /* confdefs.h. */
20291_ACEOF
20292cat confdefs.h >>conftest.$ac_ext
20293cat >>conftest.$ac_ext <<_ACEOF
20294/* end confdefs.h. */
20295
20296#include <sys/types.h>
20297#include <sys/mman.h>
20298#include <fcntl.h>
20299
20300int
20301main ()
20302{
20303
20304 int fd;
20305 fd = creat ("foo",0777);
20306 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20307 unlink ("foo");
20308 return (fd != (int) MAP_FAILED);
20309 ;
20310 return 0;
20311}
20312_ACEOF
20313rm -f conftest$ac_exeext
20314if { (ac_try="$ac_link"
20315case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20318esac
20319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_link") 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_func_mmap_file=yes
20334else
20335 echo "$as_me: program exited with status $ac_status" >&5
20336echo "$as_me: failed program was:" >&5
20337sed 's/^/| /' conftest.$ac_ext >&5
20338
20339( exit $ac_status )
20340ac_cv_func_mmap_file=no
20341fi
20342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20343fi
20344
20345
20346 ac_ext=c
20347ac_cpp='$CPP $CPPFLAGS'
20348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20350ac_compiler_gnu=$ac_cv_c_compiler_gnu
20351
20352
20353fi
20354{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20355echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20356if test "$ac_cv_func_mmap_file" = yes; then
20357
20358cat >>confdefs.h <<\_ACEOF
20359#define HAVE_MMAP_FILE
20360_ACEOF
20361
20362 MMAP_FILE=yes
20363
20364fi
20365
20366 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20367echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20368if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20370else
20371 if test "$llvm_cv_os_type" = "Interix" ; then
20372 ac_cv_need_dev_zero_for_mmap=yes
20373 else
20374 ac_cv_need_dev_zero_for_mmap=no
20375 fi
20376
20377fi
20378{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20379echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20380if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20381
20382cat >>confdefs.h <<\_ACEOF
20383#define NEED_DEV_ZERO_FOR_MMAP 1
20384_ACEOF
20385
20386fi
20387
20388 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20389 then
20390 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20391echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20392 fi
20393 if test "$ac_cv_func_mmap_file" = "no"
20394 then
20395 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20396echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20397 fi
20398fi
20399
20400{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20401echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20402ac_ext=cpp
20403ac_cpp='$CXXCPP $CPPFLAGS'
20404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20407
20408cat >conftest.$ac_ext <<_ACEOF
20409/* confdefs.h. */
20410_ACEOF
20411cat confdefs.h >>conftest.$ac_ext
20412cat >>conftest.$ac_ext <<_ACEOF
20413/* end confdefs.h. */
20414int main() {
20415 volatile unsigned long val = 1;
20416 __sync_synchronize();
20417 __sync_val_compare_and_swap(&val, 1, 0);
20418 __sync_add_and_fetch(&val, 1);
20419 __sync_sub_and_fetch(&val, 1);
20420 return 0;
20421 }
20422
20423_ACEOF
20424rm -f conftest.$ac_objext conftest$ac_exeext
20425if { (ac_try="$ac_link"
20426case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429esac
20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_link") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20439 { (case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442esac
20443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_try") 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest$ac_exeext'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20458 ac_ext=c
20459ac_cpp='$CPP $CPPFLAGS'
20460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20462ac_compiler_gnu=$ac_cv_c_compiler_gnu
20463
20464 { echo "$as_me:$LINENO: result: yes" >&5
20465echo "${ECHO_T}yes" >&6; }
20466
20467cat >>confdefs.h <<\_ACEOF
20468#define LLVM_HAS_ATOMICS 1
20469_ACEOF
20470
20471else
20472 echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475 { echo "$as_me:$LINENO: result: no" >&5
20476echo "${ECHO_T}no" >&6; }
20477
20478cat >>confdefs.h <<\_ACEOF
20479#define LLVM_HAS_ATOMICS 0
20480_ACEOF
20481
20482 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20483echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20484fi
20485
20486rm -f core conftest.err conftest.$ac_objext \
20487 conftest$ac_exeext conftest.$ac_ext
20488
20489
20490if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20491 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20492echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20493if test "${llvm_cv_linux_mixed+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495else
20496 ac_ext=c
20497ac_cpp='$CPP $CPPFLAGS'
20498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20500ac_compiler_gnu=$ac_cv_c_compiler_gnu
20501
20502 cat >conftest.$ac_ext <<_ACEOF
20503/* confdefs.h. */
20504_ACEOF
20505cat confdefs.h >>conftest.$ac_ext
20506cat >>conftest.$ac_ext <<_ACEOF
20507/* end confdefs.h. */
20508#ifndef __x86_64__
20509 error: Not x86-64 even if uname says so!
20510 #endif
20511
20512int
20513main ()
20514{
20515
20516 ;
20517 return 0;
20518}
20519_ACEOF
20520rm -f conftest.$ac_objext
20521if { (ac_try="$ac_compile"
20522case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525esac
20526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_compile") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538esac
20539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest.$ac_objext'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 llvm_cv_linux_mixed=no
20555else
20556 echo "$as_me: failed program was:" >&5
20557sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 llvm_cv_linux_mixed=yes
20560fi
20561
20562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 ac_ext=c
20564ac_cpp='$CPP $CPPFLAGS'
20565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567ac_compiler_gnu=$ac_cv_c_compiler_gnu
20568
20569
20570fi
20571{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20572echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20573
20574 if test "$llvm_cv_linux_mixed" = "yes"; then
20575 llvm_cv_target_arch="x86"
20576 ARCH="x86"
20577 fi
20578fi
20579
20580
20581for ac_func in __dso_handle
20582do
20583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20584{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20586if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20588else
20589 cat >conftest.$ac_ext <<_ACEOF
20590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
20595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20597#define $ac_func innocuous_$ac_func
20598
20599/* System header to define __stub macros and hopefully few prototypes,
20600 which can conflict with char $ac_func (); below.
20601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20602 <limits.h> exists even on freestanding compilers. */
20603
20604#ifdef __STDC__
20605# include <limits.h>
20606#else
20607# include <assert.h>
20608#endif
20609
20610#undef $ac_func
20611
20612/* Override any GCC internal prototype to avoid an error.
20613 Use char because int might match the return type of a GCC
20614 builtin and then its argument prototype would still apply. */
20615#ifdef __cplusplus
20616extern "C"
20617#endif
20618char $ac_func ();
20619/* The GNU C library defines this for functions which it implements
20620 to always fail with ENOSYS. Some functions are actually named
20621 something starting with __ and the normal name is an alias. */
20622#if defined __stub_$ac_func || defined __stub___$ac_func
20623choke me
20624#endif
20625
20626int
20627main ()
20628{
20629return $ac_func ();
20630 ;
20631 return 0;
20632}
20633_ACEOF
20634rm -f conftest.$ac_objext conftest$ac_exeext
20635if { (ac_try="$ac_link"
20636case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639esac
20640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_link") 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } &&
20648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20649 { (case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652esac
20653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_try") 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; } &&
20658 { ac_try='test -s conftest$ac_exeext'
20659 { (case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20662esac
20663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_try") 2>&5
20665 ac_status=$?
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; }; then
20668 eval "$as_ac_var=yes"
20669else
20670 echo "$as_me: failed program was:" >&5
20671sed 's/^/| /' conftest.$ac_ext >&5
20672
20673 eval "$as_ac_var=no"
20674fi
20675
20676rm -f core conftest.err conftest.$ac_objext \
20677 conftest$ac_exeext conftest.$ac_ext
20678fi
20679ac_res=`eval echo '${'$as_ac_var'}'`
20680 { echo "$as_me:$LINENO: result: $ac_res" >&5
20681echo "${ECHO_T}$ac_res" >&6; }
20682if test `eval echo '${'$as_ac_var'}'` = yes; then
20683 cat >>confdefs.h <<_ACEOF
20684#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20685_ACEOF
20686
20687fi
20688done
20689
20690
20691SHLIBEXT=$libltdl_cv_shlibext
20692
20693
20694SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20695
20696
20697# Translate the various configuration directories and other basic
20698# information into substitutions that will end up in Makefile.config.in
20699# that these configured values can be used by the makefiles
20700if test "${prefix}" = "NONE" ; then
20701 prefix="/usr/local"
20702fi
20703eval LLVM_PREFIX="${prefix}";
20704eval LLVM_BINDIR="${prefix}/bin";
20705eval LLVM_LIBDIR="${prefix}/lib";
20706eval LLVM_DATADIR="${prefix}/share/llvm";
20707eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20708eval LLVM_ETCDIR="${prefix}/etc/llvm";
20709eval LLVM_INCLUDEDIR="${prefix}/include";
20710eval LLVM_INFODIR="${prefix}/info";
20711eval LLVM_MANDIR="${prefix}/man";
20712LLVM_CONFIGTIME=`date`
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724# Place the various directores into the config.h file as #defines so that we
20725# can know about the installation paths within LLVM.
20726
20727cat >>confdefs.h <<_ACEOF
20728#define LLVM_PREFIX "$LLVM_PREFIX"
20729_ACEOF
20730
20731
20732cat >>confdefs.h <<_ACEOF
20733#define LLVM_BINDIR "$LLVM_BINDIR"
20734_ACEOF
20735
20736
20737cat >>confdefs.h <<_ACEOF
20738#define LLVM_LIBDIR "$LLVM_LIBDIR"
20739_ACEOF
20740
20741
20742cat >>confdefs.h <<_ACEOF
20743#define LLVM_DATADIR "$LLVM_DATADIR"
20744_ACEOF
20745
20746
20747cat >>confdefs.h <<_ACEOF
20748#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20749_ACEOF
20750
20751
20752cat >>confdefs.h <<_ACEOF
20753#define LLVM_ETCDIR "$LLVM_ETCDIR"
20754_ACEOF
20755
20756
20757cat >>confdefs.h <<_ACEOF
20758#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20759_ACEOF
20760
20761
20762cat >>confdefs.h <<_ACEOF
20763#define LLVM_INFODIR "$LLVM_INFODIR"
20764_ACEOF
20765
20766
20767cat >>confdefs.h <<_ACEOF
20768#define LLVM_MANDIR "$LLVM_MANDIR"
20769_ACEOF
20770
20771
20772cat >>confdefs.h <<_ACEOF
20773#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20774_ACEOF
20775
20776
20777cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020778#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020779_ACEOF
20780
20781
20782# Determine which bindings to build.
20783if test "$BINDINGS_TO_BUILD" = auto ; then
20784 BINDINGS_TO_BUILD=""
20785 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20786 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20787 fi
20788fi
20789BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20790
20791
20792# This isn't really configurey, but it avoids having to repeat the list in
20793# other files.
20794ALL_BINDINGS=ocaml
20795
20796
20797# Do any work necessary to ensure that bindings have what they need.
20798binding_prereqs_failed=0
20799for a_binding in $BINDINGS_TO_BUILD ; do
20800 case "$a_binding" in
20801 ocaml)
20802 if test "x$OCAMLC" = x ; then
20803 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20804echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20805 binding_prereqs_failed=1
20806 fi
20807 if test "x$OCAMLDEP" = x ; then
20808 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20809echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20810 binding_prereqs_failed=1
20811 fi
20812 if test "x$OCAMLOPT" = x ; then
20813 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20814echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20815 fi
20816 if test "x$with_ocaml_libdir" != xauto ; then
20817 OCAML_LIBDIR=$with_ocaml_libdir
20818
20819 else
20820 ocaml_stdlib="`"$OCAMLC" -where`"
20821 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20822 then
20823 # ocaml stdlib is beneath our prefix; use stdlib
20824 OCAML_LIBDIR=$ocaml_stdlib
20825
20826 else
20827 # ocaml stdlib is outside our prefix; use libdir/ocaml
20828 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20829
20830 fi
20831 fi
20832 ;;
20833 esac
20834done
20835if test "$binding_prereqs_failed" = 1 ; then
20836 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20837echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20838 { (exit 1); exit 1; }; }
20839fi
20840
20841{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20842echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20843if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20845else
20846 ac_ext=cpp
20847ac_cpp='$CXXCPP $CPPFLAGS'
20848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20851
20852 oldcxxflags="$CXXFLAGS"
20853 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20854 cat >conftest.$ac_ext <<_ACEOF
20855/* confdefs.h. */
20856_ACEOF
20857cat confdefs.h >>conftest.$ac_ext
20858cat >>conftest.$ac_ext <<_ACEOF
20859/* end confdefs.h. */
20860
20861int
20862main ()
20863{
20864
20865 ;
20866 return 0;
20867}
20868_ACEOF
20869rm -f conftest.$ac_objext
20870if { (ac_try="$ac_compile"
20871case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874esac
20875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
20883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20884 { (case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20887esac
20888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_try") 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest.$ac_objext'
20894 { (case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20897esac
20898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_try") 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 llvm_cv_cxx_visibility_inlines_hidden=yes
20904else
20905 echo "$as_me: failed program was:" >&5
20906sed 's/^/| /' conftest.$ac_ext >&5
20907
20908 llvm_cv_cxx_visibility_inlines_hidden=no
20909fi
20910
20911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 CXXFLAGS="$oldcxxflags"
20913 ac_ext=c
20914ac_cpp='$CPP $CPPFLAGS'
20915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917ac_compiler_gnu=$ac_cv_c_compiler_gnu
20918
20919
20920fi
20921{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20922echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20923if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20924 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20925
20926else
20927 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20928
20929fi
20930
20931
20932if test "$llvm_cv_link_use_r" = "yes" ; then
20933 RPATH="-Wl,-R"
20934else
20935 RPATH="-Wl,-rpath"
20936fi
20937
20938
20939if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20940 RDYNAMIC="-Wl,-export-dynamic"
20941else
20942 RDYNAMIC=""
20943fi
20944
20945
20946
Reid Spencer421ec052005-02-24 18:53:47 +000020947
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020948ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020949
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020950ac_config_files="$ac_config_files Makefile.llvm.config"
20951
John Criswell451f67f2003-10-16 01:45:35 +000020952
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020953ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020954
20955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020956ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020957
20958
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020959ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020960
20961
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020962ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020963
20964
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020965ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020966
20967
20968
John Criswell451f67f2003-10-16 01:45:35 +000020969cat >confcache <<\_ACEOF
20970# This file is a shell script that caches the results of configure
20971# tests run on this system so they can be shared between configure
20972# scripts and configure runs, see configure's option --config-cache.
20973# It is not useful on other systems. If it contains results you don't
20974# want to keep, you may remove or edit it.
20975#
20976# config.status only pays attention to the cache file if you give it
20977# the --recheck option to rerun configure.
20978#
20979# `ac_cv_env_foo' variables (set or unset) will be overridden when
20980# loading this file, other *unset* `ac_cv_foo' will be assigned the
20981# following values.
20982
20983_ACEOF
20984
20985# The following way of writing the cache mishandles newlines in values,
20986# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020987# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020988# Ultrix sh set writes to stderr and can't be redirected directly,
20989# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020990(
20991 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20992 eval ac_val=\$$ac_var
20993 case $ac_val in #(
20994 *${as_nl}*)
20995 case $ac_var in #(
20996 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20997echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20998 esac
20999 case $ac_var in #(
21000 _ | IFS | as_nl) ;; #(
21001 *) $as_unset $ac_var ;;
21002 esac ;;
21003 esac
21004 done
21005
John Criswell451f67f2003-10-16 01:45:35 +000021006 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021007 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21008 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000021009 # `set' does not quote correctly, so add quotes (double-quote
21010 # substitution turns \\\\ into \\, and sed turns \\ into \).
21011 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000021012 "s/'/'\\\\''/g;
21013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021014 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000021015 *)
21016 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000021018 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021019 esac |
21020 sort
21021) |
John Criswell451f67f2003-10-16 01:45:35 +000021022 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021023 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000021024 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021025 :clear
John Criswell451f67f2003-10-16 01:45:35 +000021026 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21027 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021028 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21029 :end' >>confcache
21030if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21031 if test -w "$cache_file"; then
21032 test "x$cache_file" != "x/dev/null" &&
21033 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21034echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021035 cat confcache >$cache_file
21036 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021037 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21038echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021039 fi
21040fi
21041rm -f confcache
21042
21043test "x$prefix" = xNONE && prefix=$ac_default_prefix
21044# Let make expand exec_prefix.
21045test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21046
John Criswell451f67f2003-10-16 01:45:35 +000021047# Transform confdefs.h into DEFS.
21048# Protect against shell expansion while executing Makefile rules.
21049# Protect against Makefile macro expansion.
21050#
21051# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021052# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021053# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021054ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021055t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021056:clear
21057s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021058t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021059s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021060t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021061b any
21062:quote
21063s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21064s/\[/\\&/g
21065s/\]/\\&/g
21066s/\$/$$/g
21067H
21068:any
21069${
21070 g
21071 s/^\n//
21072 s/\n/ /g
21073 p
21074}
21075'
21076DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021077
21078
21079ac_libobjs=
21080ac_ltlibobjs=
21081for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21082 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021083 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21084 ac_i=`echo "$ac_i" | sed "$ac_script"`
21085 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21086 # will be set to the directory where LIBOBJS objects are built.
21087 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21088 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021089done
21090LIBOBJS=$ac_libobjs
21091
21092LTLIBOBJS=$ac_ltlibobjs
21093
21094
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021095if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21096 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21097Usually this means the macro was only invoked conditionally." >&5
21098echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21099Usually this means the macro was only invoked conditionally." >&2;}
21100 { (exit 1); exit 1; }; }
21101fi
21102if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21103 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21104Usually this means the macro was only invoked conditionally." >&5
21105echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21106Usually this means the macro was only invoked conditionally." >&2;}
21107 { (exit 1); exit 1; }; }
21108fi
John Criswell451f67f2003-10-16 01:45:35 +000021109
21110: ${CONFIG_STATUS=./config.status}
21111ac_clean_files_save=$ac_clean_files
21112ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21113{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21114echo "$as_me: creating $CONFIG_STATUS" >&6;}
21115cat >$CONFIG_STATUS <<_ACEOF
21116#! $SHELL
21117# Generated by $as_me.
21118# Run this file to recreate the current configuration.
21119# Compiler output produced by configure, useful for debugging
21120# configure, is in config.log if it exists.
21121
21122debug=false
21123ac_cs_recheck=false
21124ac_cs_silent=false
21125SHELL=\${CONFIG_SHELL-$SHELL}
21126_ACEOF
21127
21128cat >>$CONFIG_STATUS <<\_ACEOF
21129## --------------------- ##
21130## M4sh Initialization. ##
21131## --------------------- ##
21132
Dan Gohman324f6082009-03-25 00:52:11 +000021133# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021134if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21135 emulate sh
21136 NULLCMD=:
21137 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21138 # is contrary to our usage. Disable this feature.
21139 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021140 setopt NO_GLOB_SUBST
21141else
21142 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021143fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021144BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021145DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021146
John Criswell451f67f2003-10-16 01:45:35 +000021147
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021148# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021149# Avoid depending upon Character Ranges.
21150as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21151as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21152as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21153as_cr_digits='0123456789'
21154as_cr_alnum=$as_cr_Letters$as_cr_digits
21155
21156# The user is always right.
21157if test "${PATH_SEPARATOR+set}" != set; then
21158 echo "#! /bin/sh" >conf$$.sh
21159 echo "exit 0" >>conf$$.sh
21160 chmod +x conf$$.sh
21161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21162 PATH_SEPARATOR=';'
21163 else
21164 PATH_SEPARATOR=:
21165 fi
21166 rm -f conf$$.sh
21167fi
21168
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021169# Support unset when possible.
21170if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21171 as_unset=unset
21172else
21173 as_unset=false
21174fi
John Criswell451f67f2003-10-16 01:45:35 +000021175
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021176
21177# IFS
21178# We need space, tab and new line, in precisely that order. Quoting is
21179# there to prevent editors from complaining about space-tab.
21180# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21181# splitting by setting IFS to empty value.)
21182as_nl='
21183'
21184IFS=" "" $as_nl"
21185
21186# Find who we are. Look in the path if we contain no directory separator.
21187case $0 in
21188 *[\\/]* ) as_myself=$0 ;;
21189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021190for as_dir in $PATH
21191do
21192 IFS=$as_save_IFS
21193 test -z "$as_dir" && as_dir=.
21194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21195done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021196IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021197
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021198 ;;
21199esac
21200# We did not find ourselves, most probably we were run as `sh COMMAND'
21201# in which case we are not to be found in the path.
21202if test "x$as_myself" = x; then
21203 as_myself=$0
21204fi
21205if test ! -f "$as_myself"; then
21206 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21207 { (exit 1); exit 1; }
21208fi
21209
21210# Work around bugs in pre-3.0 UWIN ksh.
21211for as_var in ENV MAIL MAILPATH
21212do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21213done
21214PS1='$ '
21215PS2='> '
21216PS4='+ '
21217
21218# NLS nuisances.
21219for as_var in \
21220 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21221 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21222 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021223do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021224 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21225 eval $as_var=C; export $as_var
21226 else
21227 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21228 fi
21229done
21230
21231# Required to use basename.
21232if expr a : '\(a\)' >/dev/null 2>&1 &&
21233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21234 as_expr=expr
21235else
21236 as_expr=false
21237fi
21238
21239if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21240 as_basename=basename
21241else
21242 as_basename=false
21243fi
21244
21245
21246# Name of the executable.
21247as_me=`$as_basename -- "$0" ||
21248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21249 X"$0" : 'X\(//\)$' \| \
21250 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21251echo X/"$0" |
21252 sed '/^.*\/\([^/][^/]*\)\/*$/{
21253 s//\1/
21254 q
21255 }
21256 /^X\/\(\/\/\)$/{
21257 s//\1/
21258 q
21259 }
21260 /^X\/\(\/\).*/{
21261 s//\1/
21262 q
21263 }
21264 s/.*/./; q'`
21265
21266# CDPATH.
21267$as_unset CDPATH
21268
21269
21270
John Criswell451f67f2003-10-16 01:45:35 +000021271 as_lineno_1=$LINENO
21272 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021273 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021274 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021275
21276 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21277 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021278 # line-number line after each line using $LINENO; the second 'sed'
21279 # does the real work. The second script uses 'N' to pair each
21280 # line-number line with the line containing $LINENO, and appends
21281 # trailing '-' during substitution so that $LINENO is not a special
21282 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021283 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021284 # scripts with optimization help from Paolo Bonzini. Blame Lee
21285 # E. McMahon (1931-1989) for sed's syntax. :-)
21286 sed -n '
21287 p
21288 /[$]LINENO/=
21289 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021290 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021291 s/[$]LINENO.*/&-/
21292 t lineno
21293 b
21294 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021295 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021296 :loop
21297 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021298 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021299 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021300 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021301 chmod +x "$as_me.lineno" ||
21302 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021303 { (exit 1); exit 1; }; }
21304
21305 # Don't try to exec as it changes $[0], causing all sort of problems
21306 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021307 # original and so on. Autoconf is especially sensitive to this).
21308 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021309 # Exit status is that of the last command.
21310 exit
21311}
21312
21313
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021314if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21315 as_dirname=dirname
21316else
21317 as_dirname=false
21318fi
21319
21320ECHO_C= ECHO_N= ECHO_T=
21321case `echo -n x` in
21322-n*)
21323 case `echo 'x\c'` in
21324 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21325 *) ECHO_C='\c';;
21326 esac;;
21327*)
21328 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021329esac
21330
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021331if expr a : '\(a\)' >/dev/null 2>&1 &&
21332 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021333 as_expr=expr
21334else
21335 as_expr=false
21336fi
21337
21338rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021339if test -d conf$$.dir; then
21340 rm -f conf$$.dir/conf$$.file
21341else
21342 rm -f conf$$.dir
21343 mkdir conf$$.dir
21344fi
John Criswell451f67f2003-10-16 01:45:35 +000021345echo >conf$$.file
21346if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021347 as_ln_s='ln -s'
21348 # ... but there are two gotchas:
21349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21351 # In both cases, we have to default to `cp -p'.
21352 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021353 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021354elif ln conf$$.file conf$$ 2>/dev/null; then
21355 as_ln_s=ln
21356else
21357 as_ln_s='cp -p'
21358fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021359rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21360rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021361
21362if mkdir -p . 2>/dev/null; then
21363 as_mkdir_p=:
21364else
Reid Spencer9964cd82005-01-01 09:26:55 +000021365 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021366 as_mkdir_p=false
21367fi
21368
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021369# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21370# systems may use methods other than mode bits to determine executability.
21371cat >conf$$.file <<_ASEOF
21372#! /bin/sh
21373exit 0
21374_ASEOF
21375chmod +x conf$$.file
21376if test -x conf$$.file >/dev/null 2>&1; then
21377 as_executable_p="test -x"
21378else
21379 as_executable_p=:
21380fi
21381rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021382
21383# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021384as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021385
21386# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021387as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021388
21389
John Criswell451f67f2003-10-16 01:45:35 +000021390exec 6>&1
21391
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021392# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021393# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021394# values after options handling.
21395ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021396This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021397generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021398
21399 CONFIG_FILES = $CONFIG_FILES
21400 CONFIG_HEADERS = $CONFIG_HEADERS
21401 CONFIG_LINKS = $CONFIG_LINKS
21402 CONFIG_COMMANDS = $CONFIG_COMMANDS
21403 $ $0 $@
21404
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021405on `(hostname || uname -n) 2>/dev/null | sed 1q`
21406"
21407
John Criswell451f67f2003-10-16 01:45:35 +000021408_ACEOF
21409
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021410cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021411# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021412config_files="$ac_config_files"
21413config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021414
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021415_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021416
21417cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021418ac_cs_usage="\
21419\`$as_me' instantiates files from templates according to the
21420current configuration.
21421
21422Usage: $0 [OPTIONS] [FILE]...
21423
21424 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021425 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021426 -q, --quiet do not print progress messages
21427 -d, --debug don't remove temporary files
21428 --recheck update $as_me by reconfiguring in the same conditions
21429 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021430 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021431
21432Configuration files:
21433$config_files
21434
21435Configuration commands:
21436$config_commands
21437
21438Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021439
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021440_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021441cat >>$CONFIG_STATUS <<_ACEOF
21442ac_cs_version="\\
21443[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021444configured by $0, generated by GNU Autoconf 2.60,
21445 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021446
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021447Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021448This config.status script is free software; the Free Software Foundation
21449gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021450
21451ac_pwd='$ac_pwd'
21452srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021453INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021454_ACEOF
21455
21456cat >>$CONFIG_STATUS <<\_ACEOF
21457# If no file are specified by the user, then we need to provide default
21458# value. By we need to know if files were specified by the user.
21459ac_need_defaults=:
21460while test $# != 0
21461do
21462 case $1 in
21463 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021464 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21465 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021466 ac_shift=:
21467 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021468 *)
John Criswell451f67f2003-10-16 01:45:35 +000021469 ac_option=$1
21470 ac_optarg=$2
21471 ac_shift=shift
21472 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021473 esac
21474
21475 case $ac_option in
21476 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21478 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021479 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21480 echo "$ac_cs_version"; exit ;;
21481 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021482 debug=: ;;
21483 --file | --fil | --fi | --f )
21484 $ac_shift
21485 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21486 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021487 --he | --h | --help | --hel | -h )
21488 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21490 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21491 ac_cs_silent=: ;;
21492
21493 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021494 -*) { echo "$as_me: error: unrecognized option: $1
21495Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021496 { (exit 1); exit 1; }; } ;;
21497
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021498 *) ac_config_targets="$ac_config_targets $1"
21499 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021500
21501 esac
21502 shift
21503done
21504
21505ac_configure_extra_args=
21506
21507if $ac_cs_silent; then
21508 exec 6>/dev/null
21509 ac_configure_extra_args="$ac_configure_extra_args --silent"
21510fi
21511
21512_ACEOF
21513cat >>$CONFIG_STATUS <<_ACEOF
21514if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021515 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21516 CONFIG_SHELL=$SHELL
21517 export CONFIG_SHELL
21518 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021519fi
21520
21521_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021522cat >>$CONFIG_STATUS <<\_ACEOF
21523exec 5>>config.log
21524{
21525 echo
21526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21527## Running $as_me. ##
21528_ASBOX
21529 echo "$ac_log"
21530} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021531
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021532_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021533cat >>$CONFIG_STATUS <<_ACEOF
21534#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021535# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021536#
Reid Spencer421ec052005-02-24 18:53:47 +000021537llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021538
21539_ACEOF
21540
Dan Gohman324f6082009-03-25 00:52:11 +000021541cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021542
21543# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021544for ac_config_target in $ac_config_targets
21545do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021546 case $ac_config_target in
21547 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21548 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021549 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021550 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21551 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21552 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21553 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21554 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21555
John Criswell451f67f2003-10-16 01:45:35 +000021556 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21557echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21558 { (exit 1); exit 1; }; };;
21559 esac
21560done
21561
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021562
John Criswell451f67f2003-10-16 01:45:35 +000021563# If the user did not use the arguments to specify the items to instantiate,
21564# then the envvar interface is used. Set only those that are not.
21565# We use the long form for the default assignment because of an extremely
21566# bizarre bug on SunOS 4.1.3.
21567if $ac_need_defaults; then
21568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21570fi
21571
21572# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021573# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021574# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021575# Hook for its removal unless debugging.
21576# Note that there is a small window in which the directory will not be cleaned:
21577# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021578$debug ||
21579{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021580 tmp=
21581 trap 'exit_status=$?
21582 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21583' 0
John Criswell451f67f2003-10-16 01:45:35 +000021584 trap '{ (exit 1); exit 1; }' 1 2 13 15
21585}
John Criswell451f67f2003-10-16 01:45:35 +000021586# Create a (secure) tmp directory for tmp files.
21587
21588{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021590 test -n "$tmp" && test -d "$tmp"
21591} ||
21592{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021593 tmp=./conf$$-$RANDOM
21594 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021595} ||
21596{
21597 echo "$me: cannot create a temporary directory in ." >&2
21598 { (exit 1); exit 1; }
21599}
21600
John Criswell451f67f2003-10-16 01:45:35 +000021601#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021602# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021603#
21604
21605# No need to generate the scripts if there are no CONFIG_FILES.
21606# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021607if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021608
21609_ACEOF
21610
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021611
21612
21613ac_delim='%!_!# '
21614for ac_last_try in false false false false false :; do
21615 cat >conf$$subs.sed <<_ACEOF
21616SHELL!$SHELL$ac_delim
21617PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21618PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21619PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21620PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21621PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21622PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21623exec_prefix!$exec_prefix$ac_delim
21624prefix!$prefix$ac_delim
21625program_transform_name!$program_transform_name$ac_delim
21626bindir!$bindir$ac_delim
21627sbindir!$sbindir$ac_delim
21628libexecdir!$libexecdir$ac_delim
21629datarootdir!$datarootdir$ac_delim
21630datadir!$datadir$ac_delim
21631sysconfdir!$sysconfdir$ac_delim
21632sharedstatedir!$sharedstatedir$ac_delim
21633localstatedir!$localstatedir$ac_delim
21634includedir!$includedir$ac_delim
21635oldincludedir!$oldincludedir$ac_delim
21636docdir!$docdir$ac_delim
21637infodir!$infodir$ac_delim
21638htmldir!$htmldir$ac_delim
21639dvidir!$dvidir$ac_delim
21640pdfdir!$pdfdir$ac_delim
21641psdir!$psdir$ac_delim
21642libdir!$libdir$ac_delim
21643localedir!$localedir$ac_delim
21644mandir!$mandir$ac_delim
21645DEFS!$DEFS$ac_delim
21646ECHO_C!$ECHO_C$ac_delim
21647ECHO_N!$ECHO_N$ac_delim
21648ECHO_T!$ECHO_T$ac_delim
21649LIBS!$LIBS$ac_delim
21650build_alias!$build_alias$ac_delim
21651host_alias!$host_alias$ac_delim
21652target_alias!$target_alias$ac_delim
21653LLVM_SRC!$LLVM_SRC$ac_delim
21654LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021655LLVM_VERSION!$LLVM_VERSION$ac_delim
21656CC!$CC$ac_delim
21657CFLAGS!$CFLAGS$ac_delim
21658LDFLAGS!$LDFLAGS$ac_delim
21659CPPFLAGS!$CPPFLAGS$ac_delim
21660ac_ct_CC!$ac_ct_CC$ac_delim
21661EXEEXT!$EXEEXT$ac_delim
21662OBJEXT!$OBJEXT$ac_delim
21663CXX!$CXX$ac_delim
21664CXXFLAGS!$CXXFLAGS$ac_delim
21665ac_ct_CXX!$ac_ct_CXX$ac_delim
21666CPP!$CPP$ac_delim
21667ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21668LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21669subdirs!$subdirs$ac_delim
21670build!$build$ac_delim
21671build_cpu!$build_cpu$ac_delim
21672build_vendor!$build_vendor$ac_delim
21673build_os!$build_os$ac_delim
21674host!$host$ac_delim
21675host_cpu!$host_cpu$ac_delim
21676host_vendor!$host_vendor$ac_delim
21677host_os!$host_os$ac_delim
21678target!$target$ac_delim
21679target_cpu!$target_cpu$ac_delim
21680target_vendor!$target_vendor$ac_delim
21681target_os!$target_os$ac_delim
21682OS!$OS$ac_delim
21683HOST_OS!$HOST_OS$ac_delim
21684TARGET_OS!$TARGET_OS$ac_delim
21685LINKALL!$LINKALL$ac_delim
21686NOLINKALL!$NOLINKALL$ac_delim
21687LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21688LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21689ARCH!$ARCH$ac_delim
21690ENDIAN!$ENDIAN$ac_delim
21691GREP!$GREP$ac_delim
21692EGREP!$EGREP$ac_delim
21693LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21694BUILD_CC!$BUILD_CC$ac_delim
21695BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21696BUILD_CXX!$BUILD_CXX$ac_delim
21697CVSBUILD!$CVSBUILD$ac_delim
21698ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21699ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21700DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21701ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21702EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21703DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21704DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21705JIT!$JIT$ac_delim
21706TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21707ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21708ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21709ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21710ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21711ENABLE_PIC!$ENABLE_PIC$ac_delim
21712ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021713_ACEOF
21714
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021715 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021716 break
21717 elif $ac_last_try; then
21718 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21719echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21720 { (exit 1); exit 1; }; }
21721 else
21722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021723 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021724done
21725
21726ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21727if test -n "$ac_eof"; then
21728 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21729 ac_eof=`expr $ac_eof + 1`
21730fi
21731
21732cat >>$CONFIG_STATUS <<_ACEOF
21733cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021734/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21735_ACEOF
21736sed '
21737s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21738s/^/s,@/; s/!/@,|#_!!_#|/
21739:n
21740t n
21741s/'"$ac_delim"'$/,g/; t
21742s/$/\\/; p
21743N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21744' >>$CONFIG_STATUS <conf$$subs.sed
21745rm -f conf$$subs.sed
21746cat >>$CONFIG_STATUS <<_ACEOF
21747CEOF$ac_eof
21748_ACEOF
21749
21750
21751ac_delim='%!_!# '
21752for ac_last_try in false false false false false :; do
21753 cat >conf$$subs.sed <<_ACEOF
21754ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21755ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21756TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21757LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21758LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21759LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21760LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21761ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21762OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21763EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21764EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21765BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21766NM!$NM$ac_delim
21767ifGNUmake!$ifGNUmake$ac_delim
21768LN_S!$LN_S$ac_delim
21769CMP!$CMP$ac_delim
21770CP!$CP$ac_delim
21771DATE!$DATE$ac_delim
21772FIND!$FIND$ac_delim
21773MKDIR!$MKDIR$ac_delim
21774MV!$MV$ac_delim
21775RANLIB!$RANLIB$ac_delim
21776AR!$AR$ac_delim
21777RM!$RM$ac_delim
21778SED!$SED$ac_delim
21779TAR!$TAR$ac_delim
21780BINPWD!$BINPWD$ac_delim
21781GRAPHVIZ!$GRAPHVIZ$ac_delim
21782DOT!$DOT$ac_delim
21783FDP!$FDP$ac_delim
21784NEATO!$NEATO$ac_delim
21785TWOPI!$TWOPI$ac_delim
21786CIRCO!$CIRCO$ac_delim
21787GV!$GV$ac_delim
21788DOTTY!$DOTTY$ac_delim
21789XDOT_PY!$XDOT_PY$ac_delim
21790PERL!$PERL$ac_delim
21791HAVE_PERL!$HAVE_PERL$ac_delim
21792INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21793INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21794INSTALL_DATA!$INSTALL_DATA$ac_delim
21795BZIP2!$BZIP2$ac_delim
21796CAT!$CAT$ac_delim
21797DOXYGEN!$DOXYGEN$ac_delim
21798GROFF!$GROFF$ac_delim
21799GZIPBIN!$GZIPBIN$ac_delim
21800POD2HTML!$POD2HTML$ac_delim
21801POD2MAN!$POD2MAN$ac_delim
21802PDFROFF!$PDFROFF$ac_delim
21803RUNTEST!$RUNTEST$ac_delim
21804TCLSH!$TCLSH$ac_delim
21805ZIP!$ZIP$ac_delim
21806OCAMLC!$OCAMLC$ac_delim
21807OCAMLOPT!$OCAMLOPT$ac_delim
21808OCAMLDEP!$OCAMLDEP$ac_delim
21809OCAMLDOC!$OCAMLDOC$ac_delim
21810GAS!$GAS$ac_delim
21811HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21812INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21813INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21814CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21815CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21816LIBADD_DL!$LIBADD_DL$ac_delim
21817NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21818NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21819USE_UDIS86!$USE_UDIS86$ac_delim
21820USE_OPROFILE!$USE_OPROFILE$ac_delim
21821HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21822HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21823MMAP_FILE!$MMAP_FILE$ac_delim
21824SHLIBEXT!$SHLIBEXT$ac_delim
21825SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21826LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21827LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21828LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21829LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21830LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21831LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21832LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21833LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21834LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21835LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21836BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21837ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21838OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21839ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21840RPATH!$RPATH$ac_delim
21841RDYNAMIC!$RDYNAMIC$ac_delim
21842LIBOBJS!$LIBOBJS$ac_delim
21843LTLIBOBJS!$LTLIBOBJS$ac_delim
21844_ACEOF
21845
21846 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21847 break
21848 elif $ac_last_try; then
21849 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21850echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21851 { (exit 1); exit 1; }; }
21852 else
21853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21854 fi
21855done
21856
21857ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21858if test -n "$ac_eof"; then
21859 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21860 ac_eof=`expr $ac_eof + 1`
21861fi
21862
21863cat >>$CONFIG_STATUS <<_ACEOF
21864cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021865/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21866_ACEOF
21867sed '
21868s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21869s/^/s,@/; s/!/@,|#_!!_#|/
21870:n
21871t n
21872s/'"$ac_delim"'$/,g/; t
21873s/$/\\/; p
21874N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21875' >>$CONFIG_STATUS <conf$$subs.sed
21876rm -f conf$$subs.sed
21877cat >>$CONFIG_STATUS <<_ACEOF
21878:end
21879s/|#_!!_#|//g
21880CEOF$ac_eof
21881_ACEOF
21882
21883
21884# VPATH may cause trouble with some makes, so we remove $(srcdir),
21885# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21886# trailing colons and then remove the whole line if VPATH becomes empty
21887# (actually we leave an empty line to preserve line numbers).
21888if test "x$srcdir" = x.; then
21889 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21890s/:*\$(srcdir):*/:/
21891s/:*\${srcdir}:*/:/
21892s/:*@srcdir@:*/:/
21893s/^\([^=]*=[ ]*\):*/\1/
21894s/:*$//
21895s/^[^=]*=[ ]*$//
21896}'
21897fi
21898
21899cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021900fi # test -n "$CONFIG_FILES"
21901
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021902
21903for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21904do
21905 case $ac_tag in
21906 :[FHLC]) ac_mode=$ac_tag; continue;;
21907 esac
21908 case $ac_mode$ac_tag in
21909 :[FHL]*:*);;
21910 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21911echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21912 { (exit 1); exit 1; }; };;
21913 :[FH]-) ac_tag=-:-;;
21914 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21915 esac
21916 ac_save_IFS=$IFS
21917 IFS=:
21918 set x $ac_tag
21919 IFS=$ac_save_IFS
21920 shift
21921 ac_file=$1
21922 shift
21923
21924 case $ac_mode in
21925 :L) ac_source=$1;;
21926 :[FH])
21927 ac_file_inputs=
21928 for ac_f
21929 do
21930 case $ac_f in
21931 -) ac_f="$tmp/stdin";;
21932 *) # Look for the file first in the build tree, then in the source tree
21933 # (if the path is not absolute). The absolute path cannot be DOS-style,
21934 # because $ac_f cannot contain `:'.
21935 test -f "$ac_f" ||
21936 case $ac_f in
21937 [\\/$]*) false;;
21938 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21939 esac ||
21940 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21941echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21942 { (exit 1); exit 1; }; };;
21943 esac
21944 ac_file_inputs="$ac_file_inputs $ac_f"
21945 done
21946
21947 # Let's still pretend it is `configure' which instantiates (i.e., don't
21948 # use $as_me), people would be surprised to read:
21949 # /* config.h. Generated by config.status. */
21950 configure_input="Generated from "`IFS=:
21951 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21952 if test x"$ac_file" != x-; then
21953 configure_input="$ac_file. $configure_input"
21954 { echo "$as_me:$LINENO: creating $ac_file" >&5
21955echo "$as_me: creating $ac_file" >&6;}
21956 fi
21957
21958 case $ac_tag in
21959 *:-:* | *:-) cat >"$tmp/stdin";;
21960 esac
21961 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021962 esac
21963
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021964 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021965$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021966 X"$ac_file" : 'X\(//\)[^/]' \| \
21967 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021969echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21971 s//\1/
21972 q
21973 }
21974 /^X\(\/\/\)[^/].*/{
21975 s//\1/
21976 q
21977 }
21978 /^X\(\/\/\)$/{
21979 s//\1/
21980 q
21981 }
21982 /^X\(\/\).*/{
21983 s//\1/
21984 q
21985 }
21986 s/.*/./; q'`
21987 { as_dir="$ac_dir"
21988 case $as_dir in #(
21989 -*) as_dir=./$as_dir;;
21990 esac
21991 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021992 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021993 while :; do
21994 case $as_dir in #(
21995 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21996 *) as_qdir=$as_dir;;
21997 esac
21998 as_dirs="'$as_qdir' $as_dirs"
21999 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000022000$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022001 X"$as_dir" : 'X\(//\)[^/]' \| \
22002 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022004echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22006 s//\1/
22007 q
22008 }
22009 /^X\(\/\/\)[^/].*/{
22010 s//\1/
22011 q
22012 }
22013 /^X\(\/\/\)$/{
22014 s//\1/
22015 q
22016 }
22017 /^X\(\/\).*/{
22018 s//\1/
22019 q
22020 }
22021 s/.*/./; q'`
22022 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000022023 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022024 test -z "$as_dirs" || eval "mkdir $as_dirs"
22025 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22026echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022027 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000022028 ac_builddir=.
22029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022030case "$ac_dir" in
22031.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22032*)
John Criswell451f67f2003-10-16 01:45:35 +000022033 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022034 # A ".." for each directory in $ac_dir_suffix.
22035 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22036 case $ac_top_builddir_sub in
22037 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22038 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22039 esac ;;
22040esac
22041ac_abs_top_builddir=$ac_pwd
22042ac_abs_builddir=$ac_pwd$ac_dir_suffix
22043# for backward compatibility:
22044ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000022045
22046case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022047 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000022048 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022049 ac_top_srcdir=$ac_top_builddir_sub
22050 ac_abs_top_srcdir=$ac_pwd ;;
22051 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022052 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022053 ac_top_srcdir=$srcdir
22054 ac_abs_top_srcdir=$srcdir ;;
22055 *) # Relative name.
22056 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22057 ac_top_srcdir=$ac_top_build_prefix$srcdir
22058 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022059esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022060ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022061
Dan Gohman324f6082009-03-25 00:52:11 +000022062
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022063 case $ac_mode in
22064 :F)
22065 #
22066 # CONFIG_FILE
22067 #
Dan Gohman324f6082009-03-25 00:52:11 +000022068
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022069 case $INSTALL in
22070 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22071 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22072 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022073_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022074
22075cat >>$CONFIG_STATUS <<\_ACEOF
22076# If the template does not know about datarootdir, expand it.
22077# FIXME: This hack should be removed a few years after 2.60.
22078ac_datarootdir_hack=; ac_datarootdir_seen=
22079
22080case `sed -n '/datarootdir/ {
22081 p
22082 q
22083}
22084/@datadir@/p
22085/@docdir@/p
22086/@infodir@/p
22087/@localedir@/p
22088/@mandir@/p
22089' $ac_file_inputs` in
22090*datarootdir*) ac_datarootdir_seen=yes;;
22091*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22092 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22093echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22094_ACEOF
22095cat >>$CONFIG_STATUS <<_ACEOF
22096 ac_datarootdir_hack='
22097 s&@datadir@&$datadir&g
22098 s&@docdir@&$docdir&g
22099 s&@infodir@&$infodir&g
22100 s&@localedir@&$localedir&g
22101 s&@mandir@&$mandir&g
22102 s&\\\${datarootdir}&$datarootdir&g' ;;
22103esac
22104_ACEOF
22105
22106# Neutralize VPATH when `$srcdir' = `.'.
22107# Shell code in configure.ac might set extrasub.
22108# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022109cat >>$CONFIG_STATUS <<_ACEOF
22110 sed "$ac_vpsub
22111$extrasub
22112_ACEOF
22113cat >>$CONFIG_STATUS <<\_ACEOF
22114:t
22115/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022116s&@configure_input@&$configure_input&;t t
22117s&@top_builddir@&$ac_top_builddir_sub&;t t
22118s&@srcdir@&$ac_srcdir&;t t
22119s&@abs_srcdir@&$ac_abs_srcdir&;t t
22120s&@top_srcdir@&$ac_top_srcdir&;t t
22121s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22122s&@builddir@&$ac_builddir&;t t
22123s&@abs_builddir@&$ac_abs_builddir&;t t
22124s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022125s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022126$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022127" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022128
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022129test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22130 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22131 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22132 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22133which seems to be undefined. Please make sure it is defined." >&5
22134echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22135which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022136
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022137 rm -f "$tmp/stdin"
22138 case $ac_file in
22139 -) cat "$tmp/out"; rm -f "$tmp/out";;
22140 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022141 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022142 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022143
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022144
22145 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22146echo "$as_me: executing $ac_file commands" >&6;}
22147 ;;
22148 esac
22149
22150
22151 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022152 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22153 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22154 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22155 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22156 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22157 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22158 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22159 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22160 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22161 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022162
22163 esac
22164done # for ac_tag
22165
John Criswell451f67f2003-10-16 01:45:35 +000022166
22167{ (exit 0); exit 0; }
22168_ACEOF
22169chmod +x $CONFIG_STATUS
22170ac_clean_files=$ac_clean_files_save
22171
22172
22173# configure is writing to config.log, and then calls config.status.
22174# config.status does its own redirection, appending to config.log.
22175# Unfortunately, on DOS this fails, as config.log is still kept open
22176# by configure, so config.status won't be able to write to it; its
22177# output is simply discarded. So we exec the FD to /dev/null,
22178# effectively closing config.log, so it can be properly (re)opened and
22179# appended to by config.status. When coming back to configure, we
22180# need to make the FD available again.
22181if test "$no_create" != yes; then
22182 ac_cs_success=:
22183 ac_config_status_args=
22184 test "$silent" = yes &&
22185 ac_config_status_args="$ac_config_status_args --quiet"
22186 exec 5>/dev/null
22187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22188 exec 5>>config.log
22189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22190 # would make configure fail if this is the last instruction.
22191 $ac_cs_success || { (exit 1); exit 1; }
22192fi
22193
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022194#
22195# CONFIG_SUBDIRS section.
22196#
22197if test "$no_recursion" != yes; then
22198
22199 # Remove --cache-file and --srcdir arguments so they do not pile up.
22200 ac_sub_configure_args=
22201 ac_prev=
22202 eval "set x $ac_configure_args"
22203 shift
22204 for ac_arg
22205 do
22206 if test -n "$ac_prev"; then
22207 ac_prev=
22208 continue
22209 fi
22210 case $ac_arg in
22211 -cache-file | --cache-file | --cache-fil | --cache-fi \
22212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22213 ac_prev=cache_file ;;
22214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22216 | --c=*)
22217 ;;
22218 --config-cache | -C)
22219 ;;
22220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22221 ac_prev=srcdir ;;
22222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22223 ;;
22224 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22225 ac_prev=prefix ;;
22226 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22227 ;;
22228 *)
22229 case $ac_arg in
22230 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22231 esac
22232 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22233 esac
22234 done
22235
22236 # Always prepend --prefix to ensure using the same prefix
22237 # in subdir configurations.
22238 ac_arg="--prefix=$prefix"
22239 case $ac_arg in
22240 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22241 esac
22242 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22243
22244 ac_popdir=`pwd`
22245 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22246
22247 # Do not complain, so a configure script can configure whichever
22248 # parts of a large source tree are present.
22249 test -d "$srcdir/$ac_dir" || continue
22250
22251 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22252 echo "$as_me:$LINENO: $ac_msg" >&5
22253 echo "$ac_msg" >&6
22254 { as_dir="$ac_dir"
22255 case $as_dir in #(
22256 -*) as_dir=./$as_dir;;
22257 esac
22258 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22259 as_dirs=
22260 while :; do
22261 case $as_dir in #(
22262 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22263 *) as_qdir=$as_dir;;
22264 esac
22265 as_dirs="'$as_qdir' $as_dirs"
22266 as_dir=`$as_dirname -- "$as_dir" ||
22267$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22268 X"$as_dir" : 'X\(//\)[^/]' \| \
22269 X"$as_dir" : 'X\(//\)$' \| \
22270 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22271echo X"$as_dir" |
22272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22273 s//\1/
22274 q
22275 }
22276 /^X\(\/\/\)[^/].*/{
22277 s//\1/
22278 q
22279 }
22280 /^X\(\/\/\)$/{
22281 s//\1/
22282 q
22283 }
22284 /^X\(\/\).*/{
22285 s//\1/
22286 q
22287 }
22288 s/.*/./; q'`
22289 test -d "$as_dir" && break
22290 done
22291 test -z "$as_dirs" || eval "mkdir $as_dirs"
22292 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22293echo "$as_me: error: cannot create directory $as_dir" >&2;}
22294 { (exit 1); exit 1; }; }; }
22295 ac_builddir=.
22296
22297case "$ac_dir" in
22298.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22299*)
22300 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22301 # A ".." for each directory in $ac_dir_suffix.
22302 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22303 case $ac_top_builddir_sub in
22304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22306 esac ;;
22307esac
22308ac_abs_top_builddir=$ac_pwd
22309ac_abs_builddir=$ac_pwd$ac_dir_suffix
22310# for backward compatibility:
22311ac_top_builddir=$ac_top_build_prefix
22312
22313case $srcdir in
22314 .) # We are building in place.
22315 ac_srcdir=.
22316 ac_top_srcdir=$ac_top_builddir_sub
22317 ac_abs_top_srcdir=$ac_pwd ;;
22318 [\\/]* | ?:[\\/]* ) # Absolute name.
22319 ac_srcdir=$srcdir$ac_dir_suffix;
22320 ac_top_srcdir=$srcdir
22321 ac_abs_top_srcdir=$srcdir ;;
22322 *) # Relative name.
22323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22324 ac_top_srcdir=$ac_top_build_prefix$srcdir
22325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22326esac
22327ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22328
22329
22330 cd "$ac_dir"
22331
22332 # Check for guested configure; otherwise get Cygnus style configure.
22333 if test -f "$ac_srcdir/configure.gnu"; then
22334 ac_sub_configure=$ac_srcdir/configure.gnu
22335 elif test -f "$ac_srcdir/configure"; then
22336 ac_sub_configure=$ac_srcdir/configure
22337 elif test -f "$ac_srcdir/configure.in"; then
22338 # This should be Cygnus configure.
22339 ac_sub_configure=$ac_aux_dir/configure
22340 else
22341 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22342echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22343 ac_sub_configure=
22344 fi
22345
22346 # The recursion is here.
22347 if test -n "$ac_sub_configure"; then
22348 # Make the cache file name correct relative to the subdirectory.
22349 case $cache_file in
22350 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22351 *) # Relative name.
22352 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22353 esac
22354
22355 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22356echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22357 # The eval makes quoting arguments work.
22358 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22359 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22360 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22361echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22362 { (exit 1); exit 1; }; }
22363 fi
22364
22365 cd "$ac_popdir"
22366 done
22367fi
22368