blob: 539e27d854591b534a213013a1562b0d87b4b0e1 [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherb2bc6e42012-03-26 02:09:01 +0000685ENABLE_LIBCPP
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
695ENABLE_DOCS
696ENABLE_DOXYGEN
697ENABLE_THREADS
698ENABLE_PTHREADS
699ENABLE_PIC
700ENABLE_SHARED
701ENABLE_EMBED_STDCXX
702ENABLE_TIMESTAMPS
703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711BINUTILS_INCDIR
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
735XDOT_PY
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
740CAT
741DOXYGEN
742GROFF
743GZIPBIN
744POD2HTML
745POD2MAN
746PDFROFF
747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
755HAVE_LINK_VERSION_SCRIPT
756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000763COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769SHLIBEXT
770SHLIBPATH_VAR
771LLVM_PREFIX
772LLVM_BINDIR
773LLVM_LIBDIR
774LLVM_DATADIR
775LLVM_DOCSDIR
776LLVM_ETCDIR
777LLVM_INCLUDEDIR
778LLVM_INFODIR
779LLVM_MANDIR
780LLVM_CONFIGTIME
781BINDINGS_TO_BUILD
782ALL_BINDINGS
783OCAML_LIBDIR
784ENABLE_VISIBILITY_INLINES_HIDDEN
785RPATH
786RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000787LIBOBJS
788LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000789ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000790 ac_precious_vars='build_alias
791host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000792target_alias
793CC
794CFLAGS
795LDFLAGS
796CPPFLAGS
797CXX
798CXXFLAGS
799CCC
800CPP'
801ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000828# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000837includedir='${prefix}/include'
838oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000848
849ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000850ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000855 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000856 ac_prev=
857 continue
858 fi
859
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
John Criswell451f67f2003-10-16 01:45:35 +0000864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000891 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000892 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000894 datadir=$ac_optarg ;;
895
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
John Criswell451f67f2003-10-16 01:45:35 +0000903 -disable-* | --disable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000906 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000909 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000910 eval enable_$ac_feature=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000921
922 -enable-* | --enable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000929 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
John Criswell451f67f2003-10-16 01:45:35 +0000962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
John Criswell451f67f2003-10-16 01:45:35 +0000991 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000992 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
John Criswell451f67f2003-10-16 01:45:35 +00001070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001122 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001125 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001126 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001127
1128 -without-* | --without-*)
1129 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001134 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001135 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) { echo "$as_me: error: unrecognized option: $ac_option
1156Try \`$0 --help' for more information." >&2
1157 { (exit 1); exit 1; }; }
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001166 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 ;;
1176
1177 esac
1178done
1179
1180if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 { echo "$as_me: error: missing argument to $ac_option" >&2
1183 { (exit 1); exit 1; }; }
1184fi
1185
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001186# Be sure to have absolute directory names.
1187for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001191do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001192 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001193 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001196 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001197 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { echo "$as_me: error: Working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1233
1234
John Criswell451f67f2003-10-16 01:45:35 +00001235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001240$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001241 X"$0" : 'X\(//\)[^/]' \| \
1242 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001244echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\/\)[^/].*/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\).*/{
1258 s//\1/
1259 q
1260 }
1261 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001262 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001263 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001264 srcdir=..
1265 fi
1266else
1267 ac_srcdir_defaulted=no
1268fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001269if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001272 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001273fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001277 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001278 pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
John Criswell451f67f2003-10-16 01:45:35 +00001295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
John Criswell451f67f2003-10-16 01:45:35 +00001323Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001325 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001327 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001356_ACEOF
1357
1358 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001359
1360System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1370 esac
1371 cat <<\_ACEOF
1372
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001373Optional Features:
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-polly Use polly if available (default is YES)
Eric Christopherb2bc6e42012-03-26 02:09:01 +00001377 --enable-libcpp Use libc++ if available (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1381 YES)
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1384 is NO)
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1386 NO)
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1395 is YES)
1396 --enable-shared Build a shared library and link tools against it
1397 (default is NO)
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1401 (default is YES)
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001404 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405 xcore, msp430, ptx, cbe, and cpp (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001406 --enable-bindings Build specific language bindings:
1407 all,auto,none,{binding-name} (default=auto)
1408 --enable-libffi Check for the presence of libffi (default is NO)
1409 --enable-ltdl-install install libltdl
1410
John Criswell451f67f2003-10-16 01:45:35 +00001411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-llvmsrc Location of LLVM Source Code
1415 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001416 --with-optimize-option Select the compiler options to use for optimized
1417 builds
1418 --with-extra-options Specify additional options to compile LLVM with
1419 --with-extra-ld-options Specify additional options to link LLVM with
1420 --with-ocaml-libdir Specify install location for ocaml bindings (default
1421 is stdlib)
1422 --with-clang-resource-dir
1423 Relative directory from the Clang binary for
1424 resource files
1425 --with-c-include-dirs Colon separated list of directories clang will
1426 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001427 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001428 --with-binutils-include Specify path to binutils/include/ containing
1429 plugin-api.h file for gold plugin.
1430 --with-bug-report-url Specify the URL where bug reports should be
1431 submitted (default=http://llvm.org/bugs/)
1432 --with-tclinclude directory where tcl headers are
1433 --with-udis86=<path> Use udis86 external x86 disassembler library
1434 --with-oprofile=<prefix>
1435 Tell OProfile >= 0.9.4 how to symbolize JIT output
1436
1437Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1444 CXX C++ compiler command
1445 CXXFLAGS C++ compiler flags
1446 CPP C preprocessor
1447
1448Use these variables to override the choices made by `configure' or to help
1449it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001450
1451Report bugs to <bugs@yourdomain>.
1452_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001453ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001454fi
1455
1456if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001459 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001460 ac_builddir=.
1461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
John Criswell451f67f2003-10-16 01:45:35 +00001465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001477
1478case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001479 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001480 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001484 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001491esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001493
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001502 else
1503 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001506 done
1507fi
1508
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001509test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001510if $ac_init_version; then
1511 cat <<\_ACEOF
1512[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001513generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001514
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001515Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15162002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001520 exit
John Criswell451f67f2003-10-16 01:45:35 +00001521fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001522cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001523This file contains any messages produced by compilers while
1524running configure, to aid debugging if configure makes a mistake.
1525
1526It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001527generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001528
1529 $ $0 $@
1530
1531_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001532exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001533{
1534cat <<_ASUNAME
1535## --------- ##
1536## Platform. ##
1537## --------- ##
1538
1539hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1540uname -m = `(uname -m) 2>/dev/null || echo unknown`
1541uname -r = `(uname -r) 2>/dev/null || echo unknown`
1542uname -s = `(uname -s) 2>/dev/null || echo unknown`
1543uname -v = `(uname -v) 2>/dev/null || echo unknown`
1544
1545/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1546/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1547
1548/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1549/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1550/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001551/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001552/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1553/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1554/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1555
1556_ASUNAME
1557
1558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559for as_dir in $PATH
1560do
1561 IFS=$as_save_IFS
1562 test -z "$as_dir" && as_dir=.
1563 echo "PATH: $as_dir"
1564done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001565IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001566
1567} >&5
1568
1569cat >&5 <<_ACEOF
1570
1571
1572## ----------- ##
1573## Core tests. ##
1574## ----------- ##
1575
1576_ACEOF
1577
1578
1579# Keep a trace of the command line.
1580# Strip out --no-create and --no-recursion so they do not pile up.
1581# Strip out --silent because we don't want to record it for future runs.
1582# Also quote any args containing shell meta-characters.
1583# Make two passes to allow for proper duplicate-argument suppression.
1584ac_configure_args=
1585ac_configure_args0=
1586ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001587ac_must_keep_next=false
1588for ac_pass in 1 2
1589do
1590 for ac_arg
1591 do
1592 case $ac_arg in
1593 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1595 | -silent | --silent | --silen | --sile | --sil)
1596 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001597 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001598 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1599 esac
1600 case $ac_pass in
1601 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1602 2)
1603 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1604 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001605 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001606 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001607 case $ac_arg in
1608 *=* | --config-cache | -C | -disable-* | --disable-* \
1609 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1610 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1611 | -with-* | --with-* | -without-* | --without-* | --x)
1612 case "$ac_configure_args0 " in
1613 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1614 esac
1615 ;;
1616 -* ) ac_must_keep_next=true ;;
1617 esac
John Criswell451f67f2003-10-16 01:45:35 +00001618 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001619 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001620 ;;
1621 esac
1622 done
1623done
1624$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1625$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1626
1627# When interrupted or exit'd, cleanup temporary files, and complete
1628# config.log. We remove comments because anyway the quotes in there
1629# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001630# WARNING: Use '\'' to represent an apostrophe within the trap.
1631# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001632trap 'exit_status=$?
1633 # Save into config.log some information that might help in debugging.
1634 {
1635 echo
1636
1637 cat <<\_ASBOX
1638## ---------------- ##
1639## Cache variables. ##
1640## ---------------- ##
1641_ASBOX
1642 echo
1643 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001644(
1645 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1646 eval ac_val=\$$ac_var
1647 case $ac_val in #(
1648 *${as_nl}*)
1649 case $ac_var in #(
1650 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1651echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1652 esac
1653 case $ac_var in #(
1654 _ | IFS | as_nl) ;; #(
1655 *) $as_unset $ac_var ;;
1656 esac ;;
1657 esac
1658 done
John Criswell451f67f2003-10-16 01:45:35 +00001659 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001660 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1661 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001662 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001663 "s/'\''/'\''\\\\'\'''\''/g;
1664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1665 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001666 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001668 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001669 esac |
1670 sort
1671)
John Criswell451f67f2003-10-16 01:45:35 +00001672 echo
1673
1674 cat <<\_ASBOX
1675## ----------------- ##
1676## Output variables. ##
1677## ----------------- ##
1678_ASBOX
1679 echo
1680 for ac_var in $ac_subst_vars
1681 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001682 eval ac_val=\$$ac_var
1683 case $ac_val in
1684 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1685 esac
1686 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001687 done | sort
1688 echo
1689
1690 if test -n "$ac_subst_files"; then
1691 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001692## ------------------- ##
1693## File substitutions. ##
1694## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001695_ASBOX
1696 echo
1697 for ac_var in $ac_subst_files
1698 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001699 eval ac_val=\$$ac_var
1700 case $ac_val in
1701 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1702 esac
1703 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001704 done | sort
1705 echo
1706 fi
1707
1708 if test -s confdefs.h; then
1709 cat <<\_ASBOX
1710## ----------- ##
1711## confdefs.h. ##
1712## ----------- ##
1713_ASBOX
1714 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001715 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001716 echo
1717 fi
1718 test "$ac_signal" != 0 &&
1719 echo "$as_me: caught signal $ac_signal"
1720 echo "$as_me: exit $exit_status"
1721 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001722 rm -f core *.core core.conftest.* &&
1723 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001724 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001725' 0
John Criswell451f67f2003-10-16 01:45:35 +00001726for ac_signal in 1 2 13 15; do
1727 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1728done
1729ac_signal=0
1730
1731# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001732rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001733
1734# Predefined preprocessor variables.
1735
1736cat >>confdefs.h <<_ACEOF
1737#define PACKAGE_NAME "$PACKAGE_NAME"
1738_ACEOF
1739
1740
1741cat >>confdefs.h <<_ACEOF
1742#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1743_ACEOF
1744
1745
1746cat >>confdefs.h <<_ACEOF
1747#define PACKAGE_VERSION "$PACKAGE_VERSION"
1748_ACEOF
1749
1750
1751cat >>confdefs.h <<_ACEOF
1752#define PACKAGE_STRING "$PACKAGE_STRING"
1753_ACEOF
1754
1755
1756cat >>confdefs.h <<_ACEOF
1757#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1758_ACEOF
1759
1760
1761# Let the site file select an alternate cache file if it wants to.
1762# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001763if test -n "$CONFIG_SITE"; then
1764 set x "$CONFIG_SITE"
1765elif test "x$prefix" != xNONE; then
1766 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1767else
1768 set x "$ac_default_prefix/share/config.site" \
1769 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001770fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001771shift
1772for ac_site_file
1773do
John Criswell451f67f2003-10-16 01:45:35 +00001774 if test -r "$ac_site_file"; then
1775 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1776echo "$as_me: loading site script $ac_site_file" >&6;}
1777 sed 's/^/| /' "$ac_site_file" >&5
1778 . "$ac_site_file"
1779 fi
1780done
1781
1782if test -r "$cache_file"; then
1783 # Some versions of bash will fail to source /dev/null (special
1784 # files actually), so we avoid doing that.
1785 if test -f "$cache_file"; then
1786 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1787echo "$as_me: loading cache $cache_file" >&6;}
1788 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001789 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1790 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001791 esac
1792 fi
1793else
1794 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1795echo "$as_me: creating cache $cache_file" >&6;}
1796 >$cache_file
1797fi
1798
1799# Check that the precious variables saved in the cache have kept the same
1800# value.
1801ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001802for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001803 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1804 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001805 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1806 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001807 case $ac_old_set,$ac_new_set in
1808 set,)
1809 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1810echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1811 ac_cache_corrupted=: ;;
1812 ,set)
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1814echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1816 ,);;
1817 *)
1818 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001819 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001820echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001821 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001822echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001823 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001824echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001825 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001826 fi;;
1827 esac
1828 # Pass precious variables to config.status.
1829 if test "$ac_new_set" = set; then
1830 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001831 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001832 *) ac_arg=$ac_var=$ac_new_val ;;
1833 esac
1834 case " $ac_configure_args " in
1835 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1836 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1837 esac
1838 fi
1839done
1840if $ac_cache_corrupted; then
1841 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1842echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1843 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1844echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1845 { (exit 1); exit 1; }; }
1846fi
1847
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
John Criswell451f67f2003-10-16 01:45:35 +00001872ac_ext=c
1873ac_cpp='$CPP $CPPFLAGS'
1874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877
1878
1879
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001880LLVM_SRC_ROOT="../.."
1881LLVM_OBJ_ROOT="../.."
1882
1883LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1884LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001885
1886
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001887# Check whether --with-llvmsrc was given.
1888if test "${with_llvmsrc+set}" = set; then
1889 withval=$with_llvmsrc; llvm_src="$withval"
1890else
1891 llvm_src="$LLVM_ABS_SRC_ROOT"
1892fi
1893
1894 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001895
1896
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001897# Check whether --with-llvmobj was given.
1898if test "${with_llvmobj+set}" = set; then
1899 withval=$with_llvmobj; llvm_obj="$withval"
1900else
1901 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1902fi
Dan Gohman324f6082009-03-25 00:52:11 +00001903
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001904 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001905
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001906 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001907
1908
1909
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001910{ echo "$as_me:$LINENO: checking llvm-config" >&5
1911echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1912llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1913if ! test -f "$llvm_config_path" ; then
1914 llvm_config_path="no"
1915fi
1916{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1917echo "${ECHO_T}$llvm_config_path" >&6; }
1918
1919{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1920echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1921if test "$llvm_config_path" != no ; then
1922 llvm_package_version=`$llvm_config_path --version`
1923else
1924 llvm_package_version="unknown";
1925fi
1926{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1927echo "${ECHO_T}$llvm_package_version" >&6; }
1928LLVM_VERSION=$llvm_package_version
1929
1930
1931
1932
John Criswell451f67f2003-10-16 01:45:35 +00001933ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001934for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001935 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1938 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001939 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1942 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001943 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 break
1947 fi
1948done
1949if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1951echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001952 { (exit 1); exit 1; }; }
1953fi
John Criswell451f67f2003-10-16 01:45:35 +00001954
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001955# These three variables are undocumented and unsupported,
1956# and are intended to be withdrawn in a future Autoconf release.
1957# They can cause serious problems if a builder's source tree is in a directory
1958# whose full name contains unusual characters.
1959ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001962
1963
1964
1965
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001966ac_ext=c
1967ac_cpp='$CPP $CPPFLAGS'
1968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971if test -n "$ac_tool_prefix"; then
1972 for ac_prog in clang llvm-gcc gcc
1973 do
1974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1983else
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1994 fi
1995done
1996done
1997IFS=$as_save_IFS
1998
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003 { echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6; }
2005else
2006 { echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6; }
2008fi
2009
2010
2011 test -n "$CC" && break
2012 done
2013fi
2014if test -z "$CC"; then
2015 ac_ct_CC=$CC
2016 for ac_prog in clang llvm-gcc gcc
2017do
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019set dummy $ac_prog; ac_word=$2
2020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_ac_ct_CC="$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039done
2040done
2041IFS=$as_save_IFS
2042
2043fi
2044fi
2045ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046if test -n "$ac_ct_CC"; then
2047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048echo "${ECHO_T}$ac_ct_CC" >&6; }
2049else
2050 { echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6; }
2052fi
2053
2054
2055 test -n "$ac_ct_CC" && break
2056done
2057
2058 if test "x$ac_ct_CC" = x; then
2059 CC=""
2060 else
2061 case $cross_compiling:$ac_tool_warned in
2062yes:)
2063{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2064whose name does not start with the host triplet. If you think this
2065configuration is useful to you, please write to autoconf@gnu.org." >&5
2066echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2067whose name does not start with the host triplet. If you think this
2068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2069ac_tool_warned=yes ;;
2070esac
2071 CC=$ac_ct_CC
2072 fi
2073fi
2074
2075
2076test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077See \`config.log' for more details." >&5
2078echo "$as_me: error: no acceptable C compiler found in \$PATH
2079See \`config.log' for more details." >&2;}
2080 { (exit 1); exit 1; }; }
2081
2082# Provide some information about the compiler.
2083echo "$as_me:$LINENO: checking for C compiler version" >&5
2084ac_compiler=`set X $ac_compile; echo $2`
2085{ (ac_try="$ac_compiler --version >&5"
2086case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089esac
2090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2091 (eval "$ac_compiler --version >&5") 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095{ (ac_try="$ac_compiler -v >&5"
2096case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099esac
2100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler -v >&5") 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105{ (ac_try="$ac_compiler -V >&5"
2106case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109esac
2110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -V >&5") 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115
2116cat >conftest.$ac_ext <<_ACEOF
2117/* confdefs.h. */
2118_ACEOF
2119cat confdefs.h >>conftest.$ac_ext
2120cat >>conftest.$ac_ext <<_ACEOF
2121/* end confdefs.h. */
2122
2123int
2124main ()
2125{
2126
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131ac_clean_files_save=$ac_clean_files
2132ac_clean_files="$ac_clean_files a.out a.exe b.out"
2133# Try to create an executable without -o first, disregard a.out.
2134# It will help us diagnose broken compilers, and finding out an intuition
2135# of exeext.
2136{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2138ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139#
2140# List of possible output files, starting from the most likely.
2141# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2142# only as a last resort. b.out is created by i960 compilers.
2143ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2144#
2145# The IRIX 6 linker writes into existing files which may not be
2146# executable, retaining their permissions. Remove them first so a
2147# subsequent execution test works.
2148ac_rmfiles=
2149for ac_file in $ac_files
2150do
2151 case $ac_file in
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2153 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154 esac
2155done
2156rm -f $ac_rmfiles
2157
2158if { (ac_try="$ac_link_default"
2159case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2162esac
2163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164 (eval "$ac_link_default") 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2169# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2170# in a Makefile. We should not override ac_cv_exeext if it was cached,
2171# so that the user can short-circuit this test for compilers unknown to
2172# Autoconf.
2173for ac_file in $ac_files
2174do
2175 test -f "$ac_file" || continue
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2178 ;;
2179 [ab].out )
2180 # We found the default executable, but exeext='' is most
2181 # certainly right.
2182 break;;
2183 *.* )
2184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2185 then :; else
2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187 fi
2188 # We set ac_cv_exeext here because the later test for it is not
2189 # safe: cross compilers may not add the suffix if given an `-o'
2190 # argument, so we may need to know it at that point already.
2191 # Even if this section looks crufty: it has the advantage of
2192 # actually working.
2193 break;;
2194 * )
2195 break;;
2196 esac
2197done
2198test "$ac_cv_exeext" = no && ac_cv_exeext=
2199
2200else
2201 echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: C compiler cannot create executables
2207See \`config.log' for more details." >&2;}
2208 { (exit 77); exit 77; }; }
2209fi
2210
2211ac_exeext=$ac_cv_exeext
2212{ echo "$as_me:$LINENO: result: $ac_file" >&5
2213echo "${ECHO_T}$ac_file" >&6; }
2214
2215# Check that the compiler produces executables we can run. If not, either
2216# the compiler is broken, or we cross compile.
2217{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2219# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220# If not cross compiling, check that we can run a simple program.
2221if test "$cross_compiling" != yes; then
2222 if { ac_try='./$ac_file'
2223 { (case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226esac
2227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_try") 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 cross_compiling=no
2233 else
2234 if test "$cross_compiling" = maybe; then
2235 cross_compiling=yes
2236 else
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&5
2240echo "$as_me: error: cannot run C compiled programs.
2241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2244 fi
2245 fi
2246fi
2247{ echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6; }
2249
2250rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251ac_clean_files=$ac_clean_files_save
2252# Check that the compiler produces executables we can run. If not, either
2253# the compiler is broken, or we cross compile.
2254{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2256{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257echo "${ECHO_T}$cross_compiling" >&6; }
2258
2259{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2261if { (ac_try="$ac_link"
2262case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265esac
2266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_link") 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
2275for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2277 case $ac_file in
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 break;;
2281 * ) break;;
2282 esac
2283done
2284else
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2288See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2290fi
2291
2292rm -f conftest$ac_cv_exeext
2293{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2294echo "${ECHO_T}$ac_cv_exeext" >&6; }
2295
2296rm -f conftest.$ac_ext
2297EXEEXT=$ac_cv_exeext
2298ac_exeext=$EXEEXT
2299{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2301if test "${ac_cv_objext+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 cat >conftest.$ac_ext <<_ACEOF
2305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h. */
2310
2311int
2312main ()
2313{
2314
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319rm -f conftest.o conftest.obj
2320if { (ac_try="$ac_compile"
2321case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324esac
2325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_compile") 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
2330 for ac_file in conftest.o conftest.obj conftest.*; do
2331 test -f "$ac_file" || continue;
2332 case $ac_file in
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 break;;
2336 esac
2337done
2338else
2339 echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&5
2344echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2347fi
2348
2349rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350fi
2351{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352echo "${ECHO_T}$ac_cv_objext" >&6; }
2353OBJEXT=$ac_cv_objext
2354ac_objext=$OBJEXT
2355{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2357if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360 cat >conftest.$ac_ext <<_ACEOF
2361/* confdefs.h. */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h. */
2366
2367int
2368main ()
2369{
2370#ifndef __GNUC__
2371 choke me
2372#endif
2373
2374 ;
2375 return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (ac_try="$ac_compile"
2380case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383esac
2384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compile") 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396esac
2397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_try") 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406esac
2407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_compiler_gnu=yes
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_compiler_gnu=no
2418fi
2419
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
2424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
2429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2436 ac_cv_prog_cc_g=no
2437 CFLAGS="-g"
2438 cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444
2445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
2454if { (ac_try="$ac_compile"
2455case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458esac
2459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471esac
2472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_try") 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 ac_cv_prog_cc_g=yes
2488else
2489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 CFLAGS=""
2493 cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h. */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h. */
2499
2500int
2501main ()
2502{
2503
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508rm -f conftest.$ac_objext
2509if { (ac_try="$ac_compile"
2510case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513esac
2514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_compile") 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523 { (case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_try") 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536esac
2537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 :
2543else
2544 echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_c_werror_flag=$ac_save_c_werror_flag
2548 CFLAGS="-g"
2549 cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556int
2557main ()
2558{
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (ac_try="$ac_compile"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compile") 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579 { (case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_try") 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 ac_cv_prog_cc_g=yes
2599else
2600 echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603
2604fi
2605
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611
2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_c_werror_flag=$ac_save_c_werror_flag
2614fi
2615{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2617if test "$ac_test_CFLAGS" = set; then
2618 CFLAGS=$ac_save_CFLAGS
2619elif test $ac_cv_prog_cc_g = yes; then
2620 if test "$GCC" = yes; then
2621 CFLAGS="-g -O2"
2622 else
2623 CFLAGS="-g"
2624 fi
2625else
2626 if test "$GCC" = yes; then
2627 CFLAGS="-O2"
2628 else
2629 CFLAGS=
2630 fi
2631fi
2632{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2633echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_cc_c89+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 ac_cv_prog_cc_c89=no
2638ac_save_CC=$CC
2639cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
2645#include <stdarg.h>
2646#include <stdio.h>
2647#include <sys/types.h>
2648#include <sys/stat.h>
2649/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650struct buf { int x; };
2651FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652static char *e (p, i)
2653 char **p;
2654 int i;
2655{
2656 return p[i];
2657}
2658static char *f (char * (*g) (char **, int), char **p, ...)
2659{
2660 char *s;
2661 va_list v;
2662 va_start (v,p);
2663 s = g (p, va_arg (v,int));
2664 va_end (v);
2665 return s;
2666}
2667
2668/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2669 function prototypes and stuff, but not '\xHH' hex character constants.
2670 These don't provoke an error unfortunately, instead are silently treated
2671 as 'x'. The following induces an error, until -std is added to get
2672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2673 array size at least. It's necessary to write '\x00'==0 to get something
2674 that's true only with -std. */
2675int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2676
2677/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2678 inside strings and character constants. */
2679#define FOO(x) 'x'
2680int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2681
2682int test (int i, double x);
2683struct s1 {int (*f) (int a);};
2684struct s2 {int (*f) (double a);};
2685int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686int argc;
2687char **argv;
2688int
2689main ()
2690{
2691return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2698do
2699 CC="$ac_save_CC $ac_arg"
2700 rm -f conftest.$ac_objext
2701if { (ac_try="$ac_compile"
2702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715 { (case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_try") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_cv_prog_cc_c89=$ac_arg
2735else
2736 echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739
2740fi
2741
2742rm -f core conftest.err conftest.$ac_objext
2743 test "x$ac_cv_prog_cc_c89" != "xno" && break
2744done
2745rm -f conftest.$ac_ext
2746CC=$ac_save_CC
2747
2748fi
2749# AC_CACHE_VAL
2750case "x$ac_cv_prog_cc_c89" in
2751 x)
2752 { echo "$as_me:$LINENO: result: none needed" >&5
2753echo "${ECHO_T}none needed" >&6; } ;;
2754 xno)
2755 { echo "$as_me:$LINENO: result: unsupported" >&5
2756echo "${ECHO_T}unsupported" >&6; } ;;
2757 *)
2758 CC="$CC $ac_cv_prog_cc_c89"
2759 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2760echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2761esac
2762
2763
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770ac_ext=cpp
2771ac_cpp='$CXXCPP $CPPFLAGS'
2772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2775if test -z "$CXX"; then
2776 if test -n "$CCC"; then
2777 CXX=$CCC
2778 else
2779 if test -n "$ac_tool_prefix"; then
2780 for ac_prog in clang++ llvm-g++ g++
2781 do
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786if test "${ac_cv_prog_CXX+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788else
2789 if test -n "$CXX"; then
2790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809CXX=$ac_cv_prog_CXX
2810if test -n "$CXX"; then
2811 { echo "$as_me:$LINENO: result: $CXX" >&5
2812echo "${ECHO_T}$CXX" >&6; }
2813else
2814 { echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6; }
2816fi
2817
2818
2819 test -n "$CXX" && break
2820 done
2821fi
2822if test -z "$CXX"; then
2823 ac_ct_CXX=$CXX
2824 for ac_prog in clang++ llvm-g++ g++
2825do
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827set dummy $ac_prog; ac_word=$2
2828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833 if test -n "$ac_ct_CXX"; then
2834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_CXX="$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847done
2848done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2854if test -n "$ac_ct_CXX"; then
2855 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2856echo "${ECHO_T}$ac_ct_CXX" >&6; }
2857else
2858 { echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6; }
2860fi
2861
2862
2863 test -n "$ac_ct_CXX" && break
2864done
2865
2866 if test "x$ac_ct_CXX" = x; then
2867 CXX="g++"
2868 else
2869 case $cross_compiling:$ac_tool_warned in
2870yes:)
2871{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2872whose name does not start with the host triplet. If you think this
2873configuration is useful to you, please write to autoconf@gnu.org." >&5
2874echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2875whose name does not start with the host triplet. If you think this
2876configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2877ac_tool_warned=yes ;;
2878esac
2879 CXX=$ac_ct_CXX
2880 fi
2881fi
2882
2883 fi
2884fi
2885# Provide some information about the compiler.
2886echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2887ac_compiler=`set X $ac_compile; echo $2`
2888{ (ac_try="$ac_compiler --version >&5"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compiler --version >&5") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2898{ (ac_try="$ac_compiler -v >&5"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler -v >&5") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908{ (ac_try="$ac_compiler -V >&5"
2909case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -V >&5") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918
2919{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2920echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2921if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924 cat >conftest.$ac_ext <<_ACEOF
2925/* confdefs.h. */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h. */
2930
2931int
2932main ()
2933{
2934#ifndef __GNUC__
2935 choke me
2936#endif
2937
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (ac_try="$ac_compile"
2944case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2957 { (case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_try") 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_compiler_gnu=yes
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 ac_compiler_gnu=no
2982fi
2983
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986
2987fi
2988{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2989echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2990GXX=`test $ac_compiler_gnu = yes && echo yes`
2991ac_test_CXXFLAGS=${CXXFLAGS+set}
2992ac_save_CXXFLAGS=$CXXFLAGS
2993{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2994echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2995if test "${ac_cv_prog_cxx_g+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2999 ac_cxx_werror_flag=yes
3000 ac_cv_prog_cxx_g=no
3001 CXXFLAGS="-g"
3002 cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017rm -f conftest.$ac_objext
3018if { (ac_try="$ac_compile"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3052else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 CXXFLAGS=""
3057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
3063
3064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext
3073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 :
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3112 CXXFLAGS="-g"
3113 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119
3120int
3121main ()
3122{
3123
3124 ;
3125 return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext
3129if { (ac_try="$ac_compile"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_prog_cxx_g=yes
3163else
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3178fi
3179{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3180echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3181if test "$ac_test_CXXFLAGS" = set; then
3182 CXXFLAGS=$ac_save_CXXFLAGS
3183elif test $ac_cv_prog_cxx_g = yes; then
3184 if test "$GXX" = yes; then
3185 CXXFLAGS="-g -O2"
3186 else
3187 CXXFLAGS="-g"
3188 fi
3189else
3190 if test "$GXX" = yes; then
3191 CXXFLAGS="-O2"
3192 else
3193 CXXFLAGS=
3194 fi
3195fi
3196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201
3202ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3209# On Suns, sometimes $CPP names a directory.
3210if test -n "$CPP" && test -d "$CPP"; then
3211 CPP=
3212fi
3213if test -z "$CPP"; then
3214 if test "${ac_cv_prog_CPP+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216else
3217 # Double quotes because CPP needs to be expanded
3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219 do
3220 ac_preproc_ok=false
3221for ac_c_preproc_warn_flag in '' yes
3222do
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h. */
3235#ifdef __STDC__
3236# include <limits.h>
3237#else
3238# include <assert.h>
3239#endif
3240 Syntax error
3241_ACEOF
3242if { (ac_try="$ac_cpp conftest.$ac_ext"
3243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null; then
3255 if test -s conftest.err; then
3256 ac_cpp_err=$ac_c_preproc_warn_flag
3257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258 else
3259 ac_cpp_err=
3260 fi
3261else
3262 ac_cpp_err=yes
3263fi
3264if test -z "$ac_cpp_err"; then
3265 :
3266else
3267 echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 # Broken: fails on valid input.
3271continue
3272fi
3273
3274rm -f conftest.err conftest.$ac_ext
3275
3276 # OK, works on sane cases. Now check whether nonexistent headers
3277 # can be detected and how.
3278 cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h. */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h. */
3284#include <ac_nonexistent.h>
3285_ACEOF
3286if { (ac_try="$ac_cpp conftest.$ac_ext"
3287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302 else
3303 ac_cpp_err=
3304 fi
3305else
3306 ac_cpp_err=yes
3307fi
3308if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input.
3310continue
3311else
3312 echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 # Passes both tests.
3316ac_preproc_ok=:
3317break
3318fi
3319
3320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326 break
3327fi
3328
3329 done
3330 ac_cv_prog_CPP=$CPP
3331
3332fi
3333 CPP=$ac_cv_prog_CPP
3334else
3335 ac_cv_prog_CPP=$CPP
3336fi
3337{ echo "$as_me:$LINENO: result: $CPP" >&5
3338echo "${ECHO_T}$CPP" >&6; }
3339ac_preproc_ok=false
3340for ac_c_preproc_warn_flag in '' yes
3341do
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354#ifdef __STDC__
3355# include <limits.h>
3356#else
3357# include <assert.h>
3358#endif
3359 Syntax error
3360_ACEOF
3361if { (ac_try="$ac_cpp conftest.$ac_ext"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null; then
3374 if test -s conftest.err; then
3375 ac_cpp_err=$ac_c_preproc_warn_flag
3376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377 else
3378 ac_cpp_err=
3379 fi
3380else
3381 ac_cpp_err=yes
3382fi
3383if test -z "$ac_cpp_err"; then
3384 :
3385else
3386 echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 # Broken: fails on valid input.
3390continue
3391fi
3392
3393rm -f conftest.err conftest.$ac_ext
3394
3395 # OK, works on sane cases. Now check whether nonexistent headers
3396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
3403#include <ac_nonexistent.h>
3404_ACEOF
3405if { (ac_try="$ac_cpp conftest.$ac_ext"
3406case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 else
3422 ac_cpp_err=
3423 fi
3424else
3425 ac_cpp_err=yes
3426fi
3427if test -z "$ac_cpp_err"; then
3428 # Broken: success on invalid input.
3429continue
3430else
3431 echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 # Passes both tests.
3435ac_preproc_ok=:
3436break
3437fi
3438
3439rm -f conftest.err conftest.$ac_ext
3440
3441done
3442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443rm -f conftest.err conftest.$ac_ext
3444if $ac_preproc_ok; then
3445 :
3446else
3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3452fi
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
3461
3462
3463# Check whether --enable-polly was given.
3464if test "${enable_polly+set}" = set; then
3465 enableval=$enable_polly;
3466else
3467 enableval=default
3468fi
3469
3470case "$enableval" in
3471 yes) ENABLE_POLLY=1
3472 ;;
3473 no) ENABLE_POLLY=0
3474 ;;
3475 default) ENABLE_POLLY=1
3476 ;;
3477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3478echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3479 { (exit 1); exit 1; }; } ;;
3480esac
3481
3482
3483if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3484 LLVM_HAS_POLLY=1
3485
3486 subdirs="$subdirs tools/polly"
3487
3488fi
3489
3490
3491# Make sure we can run config.sub.
3492$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3493 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3494echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3495 { (exit 1); exit 1; }; }
3496
3497{ echo "$as_me:$LINENO: checking build system type" >&5
3498echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3499if test "${ac_cv_build+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
3502 ac_build_alias=$build_alias
3503test "x$ac_build_alias" = x &&
3504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3505test "x$ac_build_alias" = x &&
3506 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3507echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3508 { (exit 1); exit 1; }; }
3509ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3510 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3511echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3512 { (exit 1); exit 1; }; }
3513
3514fi
3515{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3516echo "${ECHO_T}$ac_cv_build" >&6; }
3517case $ac_cv_build in
3518*-*-*) ;;
3519*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3520echo "$as_me: error: invalid value of canonical build" >&2;}
3521 { (exit 1); exit 1; }; };;
3522esac
3523build=$ac_cv_build
3524ac_save_IFS=$IFS; IFS='-'
3525set x $ac_cv_build
3526shift
3527build_cpu=$1
3528build_vendor=$2
3529shift; shift
3530# Remember, the first character of IFS is used to create $*,
3531# except with old shells:
3532build_os=$*
3533IFS=$ac_save_IFS
3534case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3535
3536
3537{ echo "$as_me:$LINENO: checking host system type" >&5
3538echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3539if test "${ac_cv_host+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 if test "x$host_alias" = x; then
3543 ac_cv_host=$ac_cv_build
3544else
3545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3546 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3547echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3548 { (exit 1); exit 1; }; }
3549fi
3550
3551fi
3552{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3553echo "${ECHO_T}$ac_cv_host" >&6; }
3554case $ac_cv_host in
3555*-*-*) ;;
3556*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3557echo "$as_me: error: invalid value of canonical host" >&2;}
3558 { (exit 1); exit 1; }; };;
3559esac
3560host=$ac_cv_host
3561ac_save_IFS=$IFS; IFS='-'
3562set x $ac_cv_host
3563shift
3564host_cpu=$1
3565host_vendor=$2
3566shift; shift
3567# Remember, the first character of IFS is used to create $*,
3568# except with old shells:
3569host_os=$*
3570IFS=$ac_save_IFS
3571case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3572
3573
3574{ echo "$as_me:$LINENO: checking target system type" >&5
3575echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3576if test "${ac_cv_target+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 if test "x$target_alias" = x; then
3580 ac_cv_target=$ac_cv_host
3581else
3582 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3583 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3584echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3585 { (exit 1); exit 1; }; }
3586fi
3587
3588fi
3589{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3590echo "${ECHO_T}$ac_cv_target" >&6; }
3591case $ac_cv_target in
3592*-*-*) ;;
3593*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3594echo "$as_me: error: invalid value of canonical target" >&2;}
3595 { (exit 1); exit 1; }; };;
3596esac
3597target=$ac_cv_target
3598ac_save_IFS=$IFS; IFS='-'
3599set x $ac_cv_target
3600shift
3601target_cpu=$1
3602target_vendor=$2
3603shift; shift
3604# Remember, the first character of IFS is used to create $*,
3605# except with old shells:
3606target_os=$*
3607IFS=$ac_save_IFS
3608case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3609
3610
3611# The aliases save the names the user supplied, while $host etc.
3612# will get canonicalized.
3613test -n "$target_alias" &&
3614 test "$program_prefix$program_suffix$program_transform_name" = \
3615 NONENONEs,x,x, &&
3616 program_prefix=${target_alias}-
3617
3618{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3619echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3620if test "${llvm_cv_os_type+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 case $host in
3624 *-*-aix*)
3625 llvm_cv_link_all_option="-Wl,--whole-archive"
3626 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3627 llvm_cv_os_type="AIX"
3628 llvm_cv_platform_type="Unix" ;;
3629 *-*-irix*)
3630 llvm_cv_link_all_option="-Wl,--whole-archive"
3631 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3632 llvm_cv_os_type="IRIX"
3633 llvm_cv_platform_type="Unix" ;;
3634 *-*-cygwin*)
3635 llvm_cv_link_all_option="-Wl,--whole-archive"
3636 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3637 llvm_cv_os_type="Cygwin"
3638 llvm_cv_platform_type="Unix" ;;
3639 *-*-darwin*)
3640 llvm_cv_link_all_option="-Wl,-all_load"
3641 llvm_cv_no_link_all_option="-Wl,-noall_load"
3642 llvm_cv_os_type="Darwin"
3643 llvm_cv_platform_type="Unix" ;;
3644 *-*-minix*)
3645 llvm_cv_link_all_option="-Wl,-all_load"
3646 llvm_cv_no_link_all_option="-Wl,-noall_load"
3647 llvm_cv_os_type="Minix"
3648 llvm_cv_platform_type="Unix" ;;
3649 *-*-freebsd*)
3650 llvm_cv_link_all_option="-Wl,--whole-archive"
3651 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3652 llvm_cv_os_type="FreeBSD"
3653 llvm_cv_platform_type="Unix" ;;
3654 *-*-openbsd*)
3655 llvm_cv_link_all_option="-Wl,--whole-archive"
3656 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3657 llvm_cv_os_type="OpenBSD"
3658 llvm_cv_platform_type="Unix" ;;
3659 *-*-netbsd*)
3660 llvm_cv_link_all_option="-Wl,--whole-archive"
3661 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3662 llvm_cv_os_type="NetBSD"
3663 llvm_cv_platform_type="Unix" ;;
3664 *-*-dragonfly*)
3665 llvm_cv_link_all_option="-Wl,--whole-archive"
3666 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3667 llvm_cv_os_type="DragonFly"
3668 llvm_cv_platform_type="Unix" ;;
3669 *-*-hpux*)
3670 llvm_cv_link_all_option="-Wl,--whole-archive"
3671 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3672 llvm_cv_os_type="HP-UX"
3673 llvm_cv_platform_type="Unix" ;;
3674 *-*-interix*)
3675 llvm_cv_link_all_option="-Wl,--whole-archive"
3676 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677 llvm_cv_os_type="Interix"
3678 llvm_cv_platform_type="Unix" ;;
3679 *-*-linux*)
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="Linux"
3683 llvm_cv_platform_type="Unix" ;;
3684 *-*-solaris*)
3685 llvm_cv_link_all_option="-Wl,-z,allextract"
3686 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3687 llvm_cv_os_type="SunOS"
3688 llvm_cv_platform_type="Unix" ;;
3689 *-*-auroraux*)
3690 llvm_cv_link_all_option="-Wl,-z,allextract"
3691 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3692 llvm_cv_os_type="AuroraUX"
3693 llvm_cv_platform_type="Unix" ;;
3694 *-*-win32*)
3695 llvm_cv_link_all_option="-Wl,--whole-archive"
3696 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3697 llvm_cv_os_type="Win32"
3698 llvm_cv_platform_type="Win32" ;;
3699 *-*-mingw*)
3700 llvm_cv_link_all_option="-Wl,--whole-archive"
3701 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3702 llvm_cv_os_type="MingW"
3703 llvm_cv_platform_type="Win32" ;;
3704 *-*-haiku*)
3705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="Haiku"
3708 llvm_cv_platform_type="Unix" ;;
3709 *-unknown-eabi*)
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="Freestanding"
3713 llvm_cv_platform_type="Unix" ;;
3714 *-unknown-elf*)
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="Freestanding"
3718 llvm_cv_platform_type="Unix" ;;
3719 *)
3720 llvm_cv_link_all_option=""
3721 llvm_cv_no_link_all_option=""
3722 llvm_cv_os_type="Unknown"
3723 llvm_cv_platform_type="Unknown" ;;
3724esac
3725fi
3726{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3727echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3728
3729{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3730echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3731if test "${llvm_cv_target_os_type+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
3734 case $target in
3735 *-*-aix*)
3736 llvm_cv_target_os_type="AIX" ;;
3737 *-*-irix*)
3738 llvm_cv_target_os_type="IRIX" ;;
3739 *-*-cygwin*)
3740 llvm_cv_target_os_type="Cygwin" ;;
3741 *-*-darwin*)
3742 llvm_cv_target_os_type="Darwin" ;;
3743 *-*-minix*)
3744 llvm_cv_target_os_type="Minix" ;;
3745 *-*-freebsd*)
3746 llvm_cv_target_os_type="FreeBSD" ;;
3747 *-*-openbsd*)
3748 llvm_cv_target_os_type="OpenBSD" ;;
3749 *-*-netbsd*)
3750 llvm_cv_target_os_type="NetBSD" ;;
3751 *-*-dragonfly*)
3752 llvm_cv_target_os_type="DragonFly" ;;
3753 *-*-hpux*)
3754 llvm_cv_target_os_type="HP-UX" ;;
3755 *-*-interix*)
3756 llvm_cv_target_os_type="Interix" ;;
3757 *-*-linux*)
3758 llvm_cv_target_os_type="Linux" ;;
3759 *-*-solaris*)
3760 llvm_cv_target_os_type="SunOS" ;;
3761 *-*-auroraux*)
3762 llvm_cv_target_os_type="AuroraUX" ;;
3763 *-*-win32*)
3764 llvm_cv_target_os_type="Win32" ;;
3765 *-*-mingw*)
3766 llvm_cv_target_os_type="MingW" ;;
3767 *-*-haiku*)
3768 llvm_cv_target_os_type="Haiku" ;;
3769 *-*-rtems*)
3770 llvm_cv_target_os_type="RTEMS" ;;
3771 *-*-nacl*)
3772 llvm_cv_target_os_type="NativeClient" ;;
3773 *-unknown-eabi*)
3774 llvm_cv_target_os_type="Freestanding" ;;
3775 *)
3776 llvm_cv_target_os_type="Unknown" ;;
3777esac
3778fi
3779{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3780echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3781
3782if test "$llvm_cv_os_type" = "Unknown" ; then
3783 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3784echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3785 { (exit 1); exit 1; }; }
3786fi
3787
3788OS=$llvm_cv_os_type
3789
3790HOST_OS=$llvm_cv_os_type
3791
3792TARGET_OS=$llvm_cv_target_os_type
3793
3794
3795LINKALL=$llvm_cv_link_all_option
3796
3797NOLINKALL=$llvm_cv_no_link_all_option
3798
3799
3800case $llvm_cv_platform_type in
3801 Unix)
3802
3803cat >>confdefs.h <<\_ACEOF
3804#define LLVM_ON_UNIX 1
3805_ACEOF
3806
3807 LLVM_ON_UNIX=1
3808
3809 LLVM_ON_WIN32=0
3810
3811 ;;
3812 Win32)
3813
3814cat >>confdefs.h <<\_ACEOF
3815#define LLVM_ON_WIN32 1
3816_ACEOF
3817
3818 LLVM_ON_UNIX=0
3819
3820 LLVM_ON_WIN32=1
3821
3822 ;;
3823esac
3824
3825{ echo "$as_me:$LINENO: checking target architecture" >&5
3826echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3827if test "${llvm_cv_target_arch+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 case $target in
3831 i?86-*) llvm_cv_target_arch="x86" ;;
3832 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3833 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3834 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003835 arm*-*) llvm_cv_target_arch="ARM" ;;
3836 mips-*) llvm_cv_target_arch="Mips" ;;
3837 xcore-*) llvm_cv_target_arch="XCore" ;;
3838 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003839 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003840 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3841 ptx-*) llvm_cv_target_arch="PTX" ;;
3842 *) llvm_cv_target_arch="Unknown" ;;
3843esac
3844fi
3845{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3846echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3847
3848if test "$llvm_cv_target_arch" = "Unknown" ; then
3849 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3850echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3851fi
3852
3853# Determine the LLVM native architecture for the target
3854case "$llvm_cv_target_arch" in
3855 x86) LLVM_NATIVE_ARCH="X86" ;;
3856 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3857 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3858esac
3859
3860ARCH=$llvm_cv_target_arch
3861
3862
3863
3864
3865{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3866echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3867if test "${ac_cv_path_GREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 # Extract the first word of "grep ggrep" to use in msg output
3871if test -z "$GREP"; then
3872set dummy grep ggrep; ac_prog_name=$2
3873if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 ac_path_GREP_found=false
3877# Loop through the user's path and test for each of PROGNAME-LIST
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in grep ggrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3887 # Check for GNU ac_path_GREP and select it if it is found.
3888 # Check for GNU $ac_path_GREP
3889case `"$ac_path_GREP" --version 2>&1` in
3890*GNU*)
3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3892*)
3893 ac_count=0
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 while :
3896 do
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 echo 'GREP' >> "conftest.nl"
3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 ac_count=`expr $ac_count + 1`
3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_GREP="$ac_path_GREP"
3907 ac_path_GREP_max=$ac_count
3908 fi
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3911 done
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913esac
3914
3915
3916 $ac_path_GREP_found && break 3
3917 done
3918done
3919
3920done
3921IFS=$as_save_IFS
3922
3923
3924fi
3925
3926GREP="$ac_cv_path_GREP"
3927if test -z "$GREP"; then
3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3931fi
3932
3933else
3934 ac_cv_path_GREP=$GREP
3935fi
3936
3937
3938fi
3939{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3940echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3941 GREP="$ac_cv_path_GREP"
3942
3943
3944{ echo "$as_me:$LINENO: checking for egrep" >&5
3945echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3946if test "${ac_cv_path_EGREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950 then ac_cv_path_EGREP="$GREP -E"
3951 else
3952 # Extract the first word of "egrep" to use in msg output
3953if test -z "$EGREP"; then
3954set dummy egrep; ac_prog_name=$2
3955if test "${ac_cv_path_EGREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958 ac_path_EGREP_found=false
3959# Loop through the user's path and test for each of PROGNAME-LIST
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in egrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3969 # Check for GNU ac_path_EGREP and select it if it is found.
3970 # Check for GNU $ac_path_EGREP
3971case `"$ac_path_EGREP" --version 2>&1` in
3972*GNU*)
3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3974*)
3975 ac_count=0
3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977 while :
3978 do
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 echo 'EGREP' >> "conftest.nl"
3983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_EGREP="$ac_path_EGREP"
3989 ac_path_EGREP_max=$ac_count
3990 fi
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995esac
3996
3997
3998 $ac_path_EGREP_found && break 3
3999 done
4000done
4001
4002done
4003IFS=$as_save_IFS
4004
4005
4006fi
4007
4008EGREP="$ac_cv_path_EGREP"
4009if test -z "$EGREP"; then
4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012 { (exit 1); exit 1; }; }
4013fi
4014
4015else
4016 ac_cv_path_EGREP=$EGREP
4017fi
4018
4019
4020 fi
4021fi
4022{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4023echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4024 EGREP="$ac_cv_path_EGREP"
4025
4026
4027{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4028echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4029if test "${ac_cv_header_stdc+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031else
4032 cat >conftest.$ac_ext <<_ACEOF
4033/* confdefs.h. */
4034_ACEOF
4035cat confdefs.h >>conftest.$ac_ext
4036cat >>conftest.$ac_ext <<_ACEOF
4037/* end confdefs.h. */
4038#include <stdlib.h>
4039#include <stdarg.h>
4040#include <string.h>
4041#include <float.h>
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
4051rm -f conftest.$ac_objext
4052if { (ac_try="$ac_compile"
4053case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_compile") 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066 { (case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_try") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_try") 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 ac_cv_header_stdc=yes
4086else
4087 echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 ac_cv_header_stdc=no
4091fi
4092
4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094
4095if test $ac_cv_header_stdc = yes; then
4096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4097 cat >conftest.$ac_ext <<_ACEOF
4098/* confdefs.h. */
4099_ACEOF
4100cat confdefs.h >>conftest.$ac_ext
4101cat >>conftest.$ac_ext <<_ACEOF
4102/* end confdefs.h. */
4103#include <string.h>
4104
4105_ACEOF
4106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107 $EGREP "memchr" >/dev/null 2>&1; then
4108 :
4109else
4110 ac_cv_header_stdc=no
4111fi
4112rm -f conftest*
4113
4114fi
4115
4116if test $ac_cv_header_stdc = yes; then
4117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4118 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h. */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h. */
4124#include <stdlib.h>
4125
4126_ACEOF
4127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4128 $EGREP "free" >/dev/null 2>&1; then
4129 :
4130else
4131 ac_cv_header_stdc=no
4132fi
4133rm -f conftest*
4134
4135fi
4136
4137if test $ac_cv_header_stdc = yes; then
4138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4139 if test "$cross_compiling" = yes; then
4140 :
4141else
4142 cat >conftest.$ac_ext <<_ACEOF
4143/* confdefs.h. */
4144_ACEOF
4145cat confdefs.h >>conftest.$ac_ext
4146cat >>conftest.$ac_ext <<_ACEOF
4147/* end confdefs.h. */
4148#include <ctype.h>
4149#include <stdlib.h>
4150#if ((' ' & 0x0FF) == 0x020)
4151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4153#else
4154# define ISLOWER(c) \
4155 (('a' <= (c) && (c) <= 'i') \
4156 || ('j' <= (c) && (c) <= 'r') \
4157 || ('s' <= (c) && (c) <= 'z'))
4158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4159#endif
4160
4161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4162int
4163main ()
4164{
4165 int i;
4166 for (i = 0; i < 256; i++)
4167 if (XOR (islower (i), ISLOWER (i))
4168 || toupper (i) != TOUPPER (i))
4169 return 2;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest$ac_exeext
4174if { (ac_try="$ac_link"
4175case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_link") 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 :
4194else
4195 echo "$as_me: program exited with status $ac_status" >&5
4196echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199( exit $ac_status )
4200ac_cv_header_stdc=no
4201fi
4202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203fi
4204
4205
4206fi
4207fi
4208{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4209echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4210if test $ac_cv_header_stdc = yes; then
4211
4212cat >>confdefs.h <<\_ACEOF
4213#define STDC_HEADERS 1
4214_ACEOF
4215
4216fi
4217
4218# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4229 inttypes.h stdint.h unistd.h
4230do
4231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4232{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236else
4237 cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h. */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h. */
4243$ac_includes_default
4244
4245#include <$ac_header>
4246_ACEOF
4247rm -f conftest.$ac_objext
4248if { (ac_try="$ac_compile"
4249case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_compile") 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 eval "$as_ac_Header=yes"
4282else
4283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 eval "$as_ac_Header=no"
4287fi
4288
4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290fi
4291ac_res=`eval echo '${'$as_ac_Header'}'`
4292 { echo "$as_me:$LINENO: result: $ac_res" >&5
4293echo "${ECHO_T}$ac_res" >&6; }
4294if test `eval echo '${'$as_ac_Header'}'` = yes; then
4295 cat >>confdefs.h <<_ACEOF
4296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297_ACEOF
4298
4299fi
4300
4301done
4302
4303
4304{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4305echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4306if test "${ac_cv_c_bigendian+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309 # See if sys/param.h defines the BYTE_ORDER macro.
4310cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316#include <sys/types.h>
4317#include <sys/param.h>
4318
4319int
4320main ()
4321{
4322#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4323 bogus endian macros
4324#endif
4325
4326 ;
4327 return 0;
4328}
4329_ACEOF
4330rm -f conftest.$ac_objext
4331if { (ac_try="$ac_compile"
4332case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_compile") 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4345 { (case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_try") 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
4359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_try") 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 # It does; now see whether it defined to BIG_ENDIAN or not.
4365cat >conftest.$ac_ext <<_ACEOF
4366/* confdefs.h. */
4367_ACEOF
4368cat confdefs.h >>conftest.$ac_ext
4369cat >>conftest.$ac_ext <<_ACEOF
4370/* end confdefs.h. */
4371#include <sys/types.h>
4372#include <sys/param.h>
4373
4374int
4375main ()
4376{
4377#if BYTE_ORDER != BIG_ENDIAN
4378 not big endian
4379#endif
4380
4381 ;
4382 return 0;
4383}
4384_ACEOF
4385rm -f conftest.$ac_objext
4386if { (ac_try="$ac_compile"
4387case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390esac
4391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_compile") 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; } &&
4409 { ac_try='test -s conftest.$ac_objext'
4410 { (case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413esac
4414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_try") 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 ac_cv_c_bigendian=yes
4420else
4421 echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ac_cv_c_bigendian=no
4425fi
4426
4427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428else
4429 echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 # It does not; compile a test program.
4433if test "$cross_compiling" = yes; then
4434 # try to guess the endianness by grepping values into an object file
4435 ac_cv_c_bigendian=unknown
4436 cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4443short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4444void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4445short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4446short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4447void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4448int
4449main ()
4450{
4451 _ascii (); _ebcdic ();
4452 ;
4453 return 0;
4454}
4455_ACEOF
4456rm -f conftest.$ac_objext
4457if { (ac_try="$ac_compile"
4458case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_compile") 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474esac
4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_try") 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484esac
4485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_try") 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4491 ac_cv_c_bigendian=yes
4492fi
4493if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4494 if test "$ac_cv_c_bigendian" = unknown; then
4495 ac_cv_c_bigendian=no
4496 else
4497 # finding both strings is unlikely to happen, but who knows?
4498 ac_cv_c_bigendian=unknown
4499 fi
4500fi
4501else
4502 echo "$as_me: failed program was:" >&5
4503sed 's/^/| /' conftest.$ac_ext >&5
4504
4505
4506fi
4507
4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509else
4510 cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516$ac_includes_default
4517int
4518main ()
4519{
4520
4521 /* Are we little or big endian? From Harbison&Steele. */
4522 union
4523 {
4524 long int l;
4525 char c[sizeof (long int)];
4526 } u;
4527 u.l = 1;
4528 return u.c[sizeof (long int) - 1] == 1;
4529
4530 ;
4531 return 0;
4532}
4533_ACEOF
4534rm -f conftest$ac_exeext
4535if { (ac_try="$ac_link"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541 (eval "$ac_link") 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4545 { (case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_try") 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_cv_c_bigendian=no
4555else
4556 echo "$as_me: program exited with status $ac_status" >&5
4557echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560( exit $ac_status )
4561ac_cv_c_bigendian=yes
4562fi
4563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4564fi
4565
4566
4567fi
4568
4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570fi
4571{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4572echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4573case $ac_cv_c_bigendian in
4574 yes)
4575 ENDIAN=big
4576 ;;
4577 no)
4578 ENDIAN=little
4579 ;;
4580 *)
4581 { { echo "$as_me:$LINENO: error: unknown endianness
4582presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4583echo "$as_me: error: unknown endianness
4584presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4585 { (exit 1); exit 1; }; } ;;
4586esac
4587
4588
4589if test "$cross_compiling" = yes; then
4590 LLVM_CROSS_COMPILING=1
4591
4592
4593{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4594echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4595if test "${ac_cv_build_exeext+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4599 ac_cv_build_exeext=.exe
4600else
4601 ac_build_prefix=${build_alias}-
4602
4603 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4604set dummy ${ac_build_prefix}gcc; ac_word=$2
4605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610 if test -n "$BUILD_CC"; then
4611 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4612else
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624done
4625done
4626IFS=$as_save_IFS
4627
4628fi
4629fi
4630BUILD_CC=$ac_cv_prog_BUILD_CC
4631if test -n "$BUILD_CC"; then
4632 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4633echo "${ECHO_T}$BUILD_CC" >&6; }
4634else
4635 { echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6; }
4637fi
4638
4639
4640 if test -z "$BUILD_CC"; then
4641 # Extract the first word of "gcc", so it can be a program name with args.
4642set dummy gcc; ac_word=$2
4643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 if test -n "$BUILD_CC"; then
4649 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_BUILD_CC="gcc"
4659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4661 fi
4662done
4663done
4664IFS=$as_save_IFS
4665
4666fi
4667fi
4668BUILD_CC=$ac_cv_prog_BUILD_CC
4669if test -n "$BUILD_CC"; then
4670 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4671echo "${ECHO_T}$BUILD_CC" >&6; }
4672else
4673 { echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6; }
4675fi
4676
4677
4678 if test -z "$BUILD_CC"; then
4679 # Extract the first word of "cc", so it can be a program name with args.
4680set dummy cc; ac_word=$2
4681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686 if test -n "$BUILD_CC"; then
4687 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4688else
4689 ac_prog_rejected=no
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4698 ac_prog_rejected=yes
4699 continue
4700 fi
4701 ac_cv_prog_BUILD_CC="cc"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705done
4706done
4707IFS=$as_save_IFS
4708
4709if test $ac_prog_rejected = yes; then
4710 # We found a bogon in the path, so make sure we never use it.
4711 set dummy $ac_cv_prog_BUILD_CC
4712 shift
4713 if test $# != 0; then
4714 # We chose a different compiler from the bogus one.
4715 # However, it has the same basename, so the bogon will be chosen
4716 # first if we set BUILD_CC to just the basename; use the full file name.
4717 shift
4718 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4719 fi
4720fi
4721fi
4722fi
4723BUILD_CC=$ac_cv_prog_BUILD_CC
4724if test -n "$BUILD_CC"; then
4725 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4726echo "${ECHO_T}$BUILD_CC" >&6; }
4727else
4728 { echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6; }
4730fi
4731
4732
4733 fi
4734 fi
4735 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4736echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4737 { (exit 1); exit 1; }; }
4738 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4739 rm -f conftest*
4740 echo 'int main () { return 0; }' > conftest.$ac_ext
4741 ac_cv_build_exeext=
4742 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4743 (eval $ac_build_link) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; then
4747 for file in conftest.*; do
4748 case $file in
4749 *.c | *.o | *.obj | *.dSYM) ;;
4750 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4751 esac
4752 done
4753 else
4754 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4755echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4756 { (exit 1); exit 1; }; }
4757 fi
4758 rm -f conftest*
4759 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4760fi
4761fi
4762
4763BUILD_EXEEXT=""
4764test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4765{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4766echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4767ac_build_exeext=$BUILD_EXEEXT
4768
4769 ac_build_prefix=${build_alias}-
4770 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4771set dummy ${ac_build_prefix}g++; ac_word=$2
4772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4774if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777 if test -n "$BUILD_CXX"; then
4778 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795fi
4796fi
4797BUILD_CXX=$ac_cv_prog_BUILD_CXX
4798if test -n "$BUILD_CXX"; then
4799 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4800echo "${ECHO_T}$BUILD_CXX" >&6; }
4801else
4802 { echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6; }
4804fi
4805
4806
4807 if test -z "$BUILD_CXX"; then
4808 # Extract the first word of "g++", so it can be a program name with args.
4809set dummy g++; ac_word=$2
4810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 if test -n "$BUILD_CXX"; then
4816 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4817else
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_BUILD_CXX="g++"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
4830done
4831IFS=$as_save_IFS
4832
4833fi
4834fi
4835BUILD_CXX=$ac_cv_prog_BUILD_CXX
4836if test -n "$BUILD_CXX"; then
4837 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4838echo "${ECHO_T}$BUILD_CXX" >&6; }
4839else
4840 { echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6; }
4842fi
4843
4844
4845 if test -z "$BUILD_CXX"; then
4846 # Extract the first word of "c++", so it can be a program name with args.
4847set dummy c++; ac_word=$2
4848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4850if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 if test -n "$BUILD_CXX"; then
4854 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4855else
4856 ac_prog_rejected=no
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4865 ac_prog_rejected=yes
4866 continue
4867 fi
4868 ac_cv_prog_BUILD_CXX="c++"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872done
4873done
4874IFS=$as_save_IFS
4875
4876if test $ac_prog_rejected = yes; then
4877 # We found a bogon in the path, so make sure we never use it.
4878 set dummy $ac_cv_prog_BUILD_CXX
4879 shift
4880 if test $# != 0; then
4881 # We chose a different compiler from the bogus one.
4882 # However, it has the same basename, so the bogon will be chosen
4883 # first if we set BUILD_CXX to just the basename; use the full file name.
4884 shift
4885 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4886 fi
4887fi
4888fi
4889fi
4890BUILD_CXX=$ac_cv_prog_BUILD_CXX
4891if test -n "$BUILD_CXX"; then
4892 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4893echo "${ECHO_T}$BUILD_CXX" >&6; }
4894else
4895 { echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6; }
4897fi
4898
4899
4900 fi
4901 fi
4902else
4903 LLVM_CROSS_COMPILING=0
4904
4905fi
4906
4907if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4908 cvsbuild="yes"
4909 optimize="no"
4910 CVSBUILD=CVSBUILD=1
4911
4912else
4913 cvsbuild="no"
4914 optimize="yes"
4915fi
4916
4917
Eric Christopherb2bc6e42012-03-26 02:09:01 +00004918# Check whether --enable-libcpp was given.
4919if test "${enable_libcpp+set}" = set; then
4920 enableval=$enable_libcpp;
4921else
4922 enableval=default
4923fi
4924
4925case "$enableval" in
4926 yes) ENABLE_LIBCPP=1
4927 ;;
4928 no) ENABLE_LIBCPP=0
4929 ;;
4930 default) ENABLE_LIBCPP=0
4931;;
4932 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4933echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4934 { (exit 1); exit 1; }; } ;;
4935esac
4936
Daniel Dunbarbf79f912011-10-18 23:10:58 +00004937# Check whether --enable-optimized was given.
4938if test "${enable_optimized+set}" = set; then
4939 enableval=$enable_optimized;
4940else
4941 enableval=$optimize
4942fi
4943
4944if test ${enableval} = "no" ; then
4945 ENABLE_OPTIMIZED=
4946
4947else
4948 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4949
4950fi
4951
4952# Check whether --enable-profiling was given.
4953if test "${enable_profiling+set}" = set; then
4954 enableval=$enable_profiling;
4955else
4956 enableval="no"
4957fi
4958
4959if test ${enableval} = "no" ; then
4960 ENABLE_PROFILING=
4961
4962else
4963 ENABLE_PROFILING=ENABLE_PROFILING=1
4964
4965fi
4966
4967# Check whether --enable-assertions was given.
4968if test "${enable_assertions+set}" = set; then
4969 enableval=$enable_assertions;
4970else
4971 enableval="yes"
4972fi
4973
4974if test ${enableval} = "yes" ; then
4975 DISABLE_ASSERTIONS=
4976
4977else
4978 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4979
4980fi
4981
4982# Check whether --enable-expensive-checks was given.
4983if test "${enable_expensive_checks+set}" = set; then
4984 enableval=$enable_expensive_checks;
4985else
4986 enableval="no"
4987fi
4988
4989if test ${enableval} = "yes" ; then
4990 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4991
4992 EXPENSIVE_CHECKS=yes
4993
4994else
4995 ENABLE_EXPENSIVE_CHECKS=
4996
4997 EXPENSIVE_CHECKS=no
4998
4999fi
5000
5001# Check whether --enable-debug-runtime was given.
5002if test "${enable_debug_runtime+set}" = set; then
5003 enableval=$enable_debug_runtime;
5004else
5005 enableval=no
5006fi
5007
5008if test ${enableval} = "no" ; then
5009 DEBUG_RUNTIME=
5010
5011else
5012 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5013
5014fi
5015
5016# Check whether --enable-debug-symbols was given.
5017if test "${enable_debug_symbols+set}" = set; then
5018 enableval=$enable_debug_symbols;
5019else
5020 enableval=no
5021fi
5022
5023if test ${enableval} = "no" ; then
5024 DEBUG_SYMBOLS=
5025
5026else
5027 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5028
5029fi
5030
5031# Check whether --enable-jit was given.
5032if test "${enable_jit+set}" = set; then
5033 enableval=$enable_jit;
5034else
5035 enableval=default
5036fi
5037
5038if test ${enableval} = "no"
5039then
5040 JIT=
5041
5042else
5043 case "$llvm_cv_target_arch" in
5044 x86) TARGET_HAS_JIT=1
5045 ;;
5046 Sparc) TARGET_HAS_JIT=0
5047 ;;
5048 PowerPC) TARGET_HAS_JIT=1
5049 ;;
5050 x86_64) TARGET_HAS_JIT=1
5051 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005052 ARM) TARGET_HAS_JIT=1
5053 ;;
5054 Mips) TARGET_HAS_JIT=1
5055 ;;
5056 XCore) TARGET_HAS_JIT=0
5057 ;;
5058 MSP430) TARGET_HAS_JIT=0
5059 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005060 Hexagon) TARGET_HAS_JIT=0
5061 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005062 MBlaze) TARGET_HAS_JIT=0
5063 ;;
5064 PTX) TARGET_HAS_JIT=0
5065 ;;
5066 *) TARGET_HAS_JIT=0
5067 ;;
5068 esac
5069fi
5070
5071# Check whether --enable-docs was given.
5072if test "${enable_docs+set}" = set; then
5073 enableval=$enable_docs;
5074else
5075 enableval=default
5076fi
5077
5078case "$enableval" in
5079 yes) ENABLE_DOCS=1
5080 ;;
5081 no) ENABLE_DOCS=0
5082 ;;
5083 default) ENABLE_DOCS=1
5084 ;;
5085 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5086echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5087 { (exit 1); exit 1; }; } ;;
5088esac
5089
5090# Check whether --enable-doxygen was given.
5091if test "${enable_doxygen+set}" = set; then
5092 enableval=$enable_doxygen;
5093else
5094 enableval=default
5095fi
5096
5097case "$enableval" in
5098 yes) ENABLE_DOXYGEN=1
5099 ;;
5100 no) ENABLE_DOXYGEN=0
5101 ;;
5102 default) ENABLE_DOXYGEN=0
5103 ;;
5104 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5105echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5106 { (exit 1); exit 1; }; } ;;
5107esac
5108
5109# Check whether --enable-threads was given.
5110if test "${enable_threads+set}" = set; then
5111 enableval=$enable_threads;
5112else
5113 enableval=default
5114fi
5115
5116case "$enableval" in
5117 yes) ENABLE_THREADS=1
5118 ;;
5119 no) ENABLE_THREADS=0
5120 ;;
5121 default) ENABLE_THREADS=1
5122 ;;
5123 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5124echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5125 { (exit 1); exit 1; }; } ;;
5126esac
5127
5128cat >>confdefs.h <<_ACEOF
5129#define ENABLE_THREADS $ENABLE_THREADS
5130_ACEOF
5131
5132
5133# Check whether --enable-pthreads was given.
5134if test "${enable_pthreads+set}" = set; then
5135 enableval=$enable_pthreads;
5136else
5137 enableval=default
5138fi
5139
5140case "$enableval" in
5141 yes) ENABLE_PTHREADS=1
5142 ;;
5143 no) ENABLE_PTHREADS=0
5144 ;;
5145 default) ENABLE_PTHREADS=1
5146 ;;
5147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5148echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
5150esac
5151
5152# Check whether --enable-pic was given.
5153if test "${enable_pic+set}" = set; then
5154 enableval=$enable_pic;
5155else
5156 enableval=default
5157fi
5158
5159case "$enableval" in
5160 yes) ENABLE_PIC=1
5161 ;;
5162 no) ENABLE_PIC=0
5163 ;;
5164 default) ENABLE_PIC=1
5165 ;;
5166 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5167echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5168 { (exit 1); exit 1; }; } ;;
5169esac
5170
5171cat >>confdefs.h <<_ACEOF
5172#define ENABLE_PIC $ENABLE_PIC
5173_ACEOF
5174
5175
5176# Check whether --enable-shared was given.
5177if test "${enable_shared+set}" = set; then
5178 enableval=$enable_shared;
5179else
5180 enableval=default
5181fi
5182
5183case "$enableval" in
5184 yes) ENABLE_SHARED=1
5185 ;;
5186 no) ENABLE_SHARED=0
5187 ;;
5188 default) ENABLE_SHARED=0
5189 ;;
5190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5191echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
5193esac
5194
5195# Check whether --enable-embed-stdcxx was given.
5196if test "${enable_embed_stdcxx+set}" = set; then
5197 enableval=$enable_embed_stdcxx;
5198else
5199 enableval=default
5200fi
5201
5202case "$enableval" in
5203 yes) ENABLE_EMBED_STDCXX=1
5204 ;;
5205 no) ENABLE_EMBED_STDCXX=0
5206 ;;
5207 default) ENABLE_EMBED_STDCXX=1
5208 ;;
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5210echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
5212esac
5213
5214# Check whether --enable-timestamps was given.
5215if test "${enable_timestamps+set}" = set; then
5216 enableval=$enable_timestamps;
5217else
5218 enableval=default
5219fi
5220
5221case "$enableval" in
5222 yes) ENABLE_TIMESTAMPS=1
5223 ;;
5224 no) ENABLE_TIMESTAMPS=0
5225 ;;
5226 default) ENABLE_TIMESTAMPS=1
5227 ;;
5228 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5229echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5230 { (exit 1); exit 1; }; } ;;
5231esac
5232
5233cat >>confdefs.h <<_ACEOF
5234#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5235_ACEOF
5236
5237
5238TARGETS_TO_BUILD=""
5239# Check whether --enable-targets was given.
5240if test "${enable_targets+set}" = set; then
5241 enableval=$enable_targets;
5242else
5243 enableval=all
5244fi
5245
5246if test "$enableval" = host-only ; then
5247 enableval=host
5248fi
5249case "$enableval" in
Eric Christophera443e5b2012-03-23 05:50:46 +00005250 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005251 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5252 case "$a_target" in
5253 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5254 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5255 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5256 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005257 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5258 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5259 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5260 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5261 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005262 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005263 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5264 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5265 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5266 host) case "$llvm_cv_target_arch" in
5267 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5268 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5269 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5270 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005271 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5272 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5273 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5274 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5275 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5276 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005277 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005278 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5279 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5280echo "$as_me: error: Can not set target to build" >&2;}
5281 { (exit 1); exit 1; }; } ;;
5282 esac ;;
5283 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5284echo "$as_me: error: Unrecognized target $a_target" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5286 esac
5287 done
5288 ;;
5289esac
5290TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5291
5292
5293# Determine whether we are building LLVM support for the native architecture.
5294# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5295for a_target in $TARGETS_TO_BUILD; do
5296 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5297
5298cat >>confdefs.h <<_ACEOF
5299#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5300_ACEOF
5301
5302 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5303 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5304 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5305 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5306 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5307 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5308 fi
5309
5310cat >>confdefs.h <<_ACEOF
5311#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5312_ACEOF
5313
5314
5315cat >>confdefs.h <<_ACEOF
5316#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5317_ACEOF
5318
5319
5320cat >>confdefs.h <<_ACEOF
5321#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5322_ACEOF
5323
5324
5325cat >>confdefs.h <<_ACEOF
5326#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5327_ACEOF
5328
5329 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5330
5331cat >>confdefs.h <<_ACEOF
5332#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5333_ACEOF
5334
5335 fi
5336 fi
5337done
5338
5339# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5340# target feature def files.
5341LLVM_ENUM_TARGETS=""
5342LLVM_ENUM_ASM_PRINTERS=""
5343LLVM_ENUM_ASM_PARSERS=""
5344LLVM_ENUM_DISASSEMBLERS=""
5345for target_to_build in $TARGETS_TO_BUILD; do
5346 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5347 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5348 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5349 fi
5350 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5351 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5352 fi
5353 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5354 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5355 fi
5356done
5357
5358
5359
5360
5361
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005362
5363# Check whether --with-optimize-option was given.
5364if test "${with_optimize_option+set}" = set; then
5365 withval=$with_optimize_option;
5366else
5367 withval=default
5368fi
5369
5370{ echo "$as_me:$LINENO: checking optimization flags" >&5
5371echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5372case "$withval" in
5373 default)
5374 case "$llvm_cv_os_type" in
5375 FreeBSD) optimize_option=-O2 ;;
5376 MingW) optimize_option=-O2 ;;
5377 *) optimize_option=-O3 ;;
5378 esac ;;
5379 *) optimize_option="$withval" ;;
5380esac
5381OPTIMIZE_OPTION=$optimize_option
5382
5383{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5384echo "${ECHO_T}$optimize_option" >&6; }
5385
5386
5387# Check whether --with-extra-options was given.
5388if test "${with_extra_options+set}" = set; then
5389 withval=$with_extra_options;
5390else
5391 withval=default
5392fi
5393
5394case "$withval" in
5395 default) EXTRA_OPTIONS= ;;
5396 *) EXTRA_OPTIONS=$withval ;;
5397esac
5398EXTRA_OPTIONS=$EXTRA_OPTIONS
5399
5400
5401
5402# Check whether --with-extra-ld-options was given.
5403if test "${with_extra_ld_options+set}" = set; then
5404 withval=$with_extra_ld_options;
5405else
5406 withval=default
5407fi
5408
5409case "$withval" in
5410 default) EXTRA_LD_OPTIONS= ;;
5411 *) EXTRA_LD_OPTIONS=$withval ;;
5412esac
5413EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5414
5415
5416# Check whether --enable-bindings was given.
5417if test "${enable_bindings+set}" = set; then
5418 enableval=$enable_bindings;
5419else
5420 enableval=default
5421fi
5422
5423BINDINGS_TO_BUILD=""
5424case "$enableval" in
5425 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5426 all ) BINDINGS_TO_BUILD="ocaml" ;;
5427 none | no) BINDINGS_TO_BUILD="" ;;
5428 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5429 case "$a_binding" in
5430 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5431 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5432echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5434 esac
5435 done
5436 ;;
5437esac
5438
5439
5440# Check whether --with-ocaml-libdir was given.
5441if test "${with_ocaml_libdir+set}" = set; then
5442 withval=$with_ocaml_libdir;
5443else
5444 withval=auto
5445fi
5446
5447case "$withval" in
5448 auto) with_ocaml_libdir="$withval" ;;
5449 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5450 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5451echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5453esac
5454
5455
5456# Check whether --with-clang-resource-dir was given.
5457if test "${with_clang_resource_dir+set}" = set; then
5458 withval=$with_clang_resource_dir;
5459else
5460 withval=""
5461fi
5462
5463
5464cat >>confdefs.h <<_ACEOF
5465#define CLANG_RESOURCE_DIR "$withval"
5466_ACEOF
5467
5468
5469
5470# Check whether --with-c-include-dirs was given.
5471if test "${with_c_include_dirs+set}" = set; then
5472 withval=$with_c_include_dirs;
5473else
5474 withval=""
5475fi
5476
5477
5478cat >>confdefs.h <<_ACEOF
5479#define C_INCLUDE_DIRS "$withval"
5480_ACEOF
5481
5482
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005483# Clang normally uses the system c++ headers and libraries. With this option,
5484# clang will use the ones provided by a gcc installation instead. This option should
5485# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005486
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005487# Check whether --with-gcc-toolchain was given.
5488if test "${with_gcc_toolchain+set}" = set; then
5489 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005490else
5491 withval=""
5492fi
5493
5494
5495cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005496#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005497_ACEOF
5498
5499
5500
5501# Check whether --with-binutils-include was given.
5502if test "${with_binutils_include+set}" = set; then
5503 withval=$with_binutils_include;
5504else
5505 withval=default
5506fi
5507
5508case "$withval" in
5509 default) WITH_BINUTILS_INCDIR=default ;;
5510 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5511 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5512echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5513 { (exit 1); exit 1; }; } ;;
5514esac
5515if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5516 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5517
5518 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5519 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5520 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5521echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5522 { (exit 1); exit 1; }; };
5523 fi
5524fi
5525
5526
5527# Check whether --with-bug-report-url was given.
5528if test "${with_bug_report_url+set}" = set; then
5529 withval=$with_bug_report_url;
5530else
5531 withval="http://llvm.org/bugs/"
5532fi
5533
5534
5535cat >>confdefs.h <<_ACEOF
5536#define BUG_REPORT_URL "$withval"
5537_ACEOF
5538
5539
5540# Check whether --enable-libffi was given.
5541if test "${enable_libffi+set}" = set; then
5542 enableval=$enable_libffi; case "$enableval" in
5543 yes) llvm_cv_enable_libffi="yes" ;;
5544 no) llvm_cv_enable_libffi="no" ;;
5545 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5546echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5547 { (exit 1); exit 1; }; } ;;
5548 esac
5549else
5550 llvm_cv_enable_libffi=no
5551fi
5552
5553
5554
5555{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5556echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5557if test "${lt_cv_path_NM+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559else
5560 if test -n "$NM"; then
5561 # Let the user override the test.
5562 lt_cv_path_NM="$NM"
5563else
5564 lt_nm_to_check="${ac_tool_prefix}nm"
5565 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5566 lt_nm_to_check="$lt_nm_to_check nm"
5567 fi
5568 for lt_tmp_nm in $lt_nm_to_check; do
5569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5570 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5571 IFS="$lt_save_ifs"
5572 test -z "$ac_dir" && ac_dir=.
5573 tmp_nm="$ac_dir/$lt_tmp_nm"
5574 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5575 # Check to see if the nm accepts a BSD-compat flag.
5576 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5577 # nm: unknown option "B" ignored
5578 # Tru64's nm complains that /dev/null is an invalid object file
5579 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5580 */dev/null* | *'Invalid file or object type'*)
5581 lt_cv_path_NM="$tmp_nm -B"
5582 break
5583 ;;
5584 *)
5585 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5586 */dev/null*)
5587 lt_cv_path_NM="$tmp_nm -p"
5588 break
5589 ;;
5590 *)
5591 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5592 continue # so that we can try to find one that supports BSD flags
5593 ;;
5594 esac
5595 ;;
5596 esac
5597 fi
5598 done
5599 IFS="$lt_save_ifs"
5600 done
5601 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5602fi
5603fi
5604{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5605echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5606NM="$lt_cv_path_NM"
5607
5608
5609
5610{ echo "$as_me:$LINENO: checking for GNU make" >&5
5611echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5612if test "${llvm_cv_gnu_make_command+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614else
5615 llvm_cv_gnu_make_command=''
5616 for a in "$MAKE" make gmake gnumake ; do
5617 if test -z "$a" ; then continue ; fi ;
5618 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5619 then
5620 llvm_cv_gnu_make_command=$a ;
5621 break;
5622 fi
5623 done
5624fi
5625{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5626echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5627 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5628 ifGNUmake='' ;
5629 else
5630 ifGNUmake='#' ;
5631 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5632echo "${ECHO_T}\"Not found\"" >&6; };
5633 fi
5634
5635
5636{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5637echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5638LN_S=$as_ln_s
5639if test "$LN_S" = "ln -s"; then
5640 { echo "$as_me:$LINENO: result: yes" >&5
5641echo "${ECHO_T}yes" >&6; }
5642else
5643 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5644echo "${ECHO_T}no, using $LN_S" >&6; }
5645fi
5646
5647# Extract the first word of "cmp", so it can be a program name with args.
5648set dummy cmp; ac_word=$2
5649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5651if test "${ac_cv_path_CMP+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654 case $CMP in
5655 [\\/]* | ?:[\\/]*)
5656 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5657 ;;
5658 *)
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670done
5671done
5672IFS=$as_save_IFS
5673
5674 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5675 ;;
5676esac
5677fi
5678CMP=$ac_cv_path_CMP
5679if test -n "$CMP"; then
5680 { echo "$as_me:$LINENO: result: $CMP" >&5
5681echo "${ECHO_T}$CMP" >&6; }
5682else
5683 { echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6; }
5685fi
5686
5687
5688# Extract the first word of "cp", so it can be a program name with args.
5689set dummy cp; ac_word=$2
5690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5692if test "${ac_cv_path_CP+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695 case $CP in
5696 [\\/]* | ?:[\\/]*)
5697 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5698 ;;
5699 *)
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711done
5712done
5713IFS=$as_save_IFS
5714
5715 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5716 ;;
5717esac
5718fi
5719CP=$ac_cv_path_CP
5720if test -n "$CP"; then
5721 { echo "$as_me:$LINENO: result: $CP" >&5
5722echo "${ECHO_T}$CP" >&6; }
5723else
5724 { echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6; }
5726fi
5727
5728
5729# Extract the first word of "date", so it can be a program name with args.
5730set dummy date; ac_word=$2
5731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5733if test "${ac_cv_path_DATE+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736 case $DATE in
5737 [\\/]* | ?:[\\/]*)
5738 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5739 ;;
5740 *)
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5751 fi
5752done
5753done
5754IFS=$as_save_IFS
5755
5756 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5757 ;;
5758esac
5759fi
5760DATE=$ac_cv_path_DATE
5761if test -n "$DATE"; then
5762 { echo "$as_me:$LINENO: result: $DATE" >&5
5763echo "${ECHO_T}$DATE" >&6; }
5764else
5765 { echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6; }
5767fi
5768
5769
5770# Extract the first word of "find", so it can be a program name with args.
5771set dummy find; ac_word=$2
5772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5774if test "${ac_cv_path_FIND+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777 case $FIND in
5778 [\\/]* | ?:[\\/]*)
5779 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5780 ;;
5781 *)
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793done
5794done
5795IFS=$as_save_IFS
5796
5797 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5798 ;;
5799esac
5800fi
5801FIND=$ac_cv_path_FIND
5802if test -n "$FIND"; then
5803 { echo "$as_me:$LINENO: result: $FIND" >&5
5804echo "${ECHO_T}$FIND" >&6; }
5805else
5806 { echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6; }
5808fi
5809
5810
5811# Extract the first word of "grep", so it can be a program name with args.
5812set dummy grep; ac_word=$2
5813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815if test "${ac_cv_path_GREP+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 case $GREP in
5819 [\\/]* | ?:[\\/]*)
5820 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5821 ;;
5822 *)
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834done
5835done
5836IFS=$as_save_IFS
5837
5838 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5839 ;;
5840esac
5841fi
5842GREP=$ac_cv_path_GREP
5843if test -n "$GREP"; then
5844 { echo "$as_me:$LINENO: result: $GREP" >&5
5845echo "${ECHO_T}$GREP" >&6; }
5846else
5847 { echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6; }
5849fi
5850
5851
5852# Extract the first word of "mkdir", so it can be a program name with args.
5853set dummy mkdir; ac_word=$2
5854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5856if test "${ac_cv_path_MKDIR+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859 case $MKDIR in
5860 [\\/]* | ?:[\\/]*)
5861 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5862 ;;
5863 *)
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875done
5876done
5877IFS=$as_save_IFS
5878
5879 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5880 ;;
5881esac
5882fi
5883MKDIR=$ac_cv_path_MKDIR
5884if test -n "$MKDIR"; then
5885 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5886echo "${ECHO_T}$MKDIR" >&6; }
5887else
5888 { echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6; }
5890fi
5891
5892
5893# Extract the first word of "mv", so it can be a program name with args.
5894set dummy mv; ac_word=$2
5895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5897if test "${ac_cv_path_MV+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899else
5900 case $MV in
5901 [\\/]* | ?:[\\/]*)
5902 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5903 ;;
5904 *)
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916done
5917done
5918IFS=$as_save_IFS
5919
5920 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5921 ;;
5922esac
5923fi
5924MV=$ac_cv_path_MV
5925if test -n "$MV"; then
5926 { echo "$as_me:$LINENO: result: $MV" >&5
5927echo "${ECHO_T}$MV" >&6; }
5928else
5929 { echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6; }
5931fi
5932
5933
5934if test -n "$ac_tool_prefix"; then
5935 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5936set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939if test "${ac_cv_prog_RANLIB+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 if test -n "$RANLIB"; then
5943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956done
5957done
5958IFS=$as_save_IFS
5959
5960fi
5961fi
5962RANLIB=$ac_cv_prog_RANLIB
5963if test -n "$RANLIB"; then
5964 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5965echo "${ECHO_T}$RANLIB" >&6; }
5966else
5967 { echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6; }
5969fi
5970
5971
5972fi
5973if test -z "$ac_cv_prog_RANLIB"; then
5974 ac_ct_RANLIB=$RANLIB
5975 # Extract the first word of "ranlib", so it can be a program name with args.
5976set dummy ranlib; ac_word=$2
5977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982 if test -n "$ac_ct_RANLIB"; then
5983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_prog_ac_ct_RANLIB="ranlib"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996done
5997done
5998IFS=$as_save_IFS
5999
6000fi
6001fi
6002ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6003if test -n "$ac_ct_RANLIB"; then
6004 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6005echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6006else
6007 { echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6; }
6009fi
6010
6011 if test "x$ac_ct_RANLIB" = x; then
6012 RANLIB=":"
6013 else
6014 case $cross_compiling:$ac_tool_warned in
6015yes:)
6016{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6017whose name does not start with the host triplet. If you think this
6018configuration is useful to you, please write to autoconf@gnu.org." >&5
6019echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6020whose name does not start with the host triplet. If you think this
6021configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6022ac_tool_warned=yes ;;
6023esac
6024 RANLIB=$ac_ct_RANLIB
6025 fi
6026else
6027 RANLIB="$ac_cv_prog_RANLIB"
6028fi
6029
6030if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6032set dummy ${ac_tool_prefix}ar; ac_word=$2
6033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035if test "${ac_cv_prog_AR+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR="$AR" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_AR="${ac_tool_prefix}ar"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058AR=$ac_cv_prog_AR
6059if test -n "$AR"; then
6060 { echo "$as_me:$LINENO: result: $AR" >&5
6061echo "${ECHO_T}$AR" >&6; }
6062else
6063 { echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6; }
6065fi
6066
6067
6068fi
6069if test -z "$ac_cv_prog_AR"; then
6070 ac_ct_AR=$AR
6071 # Extract the first word of "ar", so it can be a program name with args.
6072set dummy ar; ac_word=$2
6073{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_AR="ar"
6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092done
6093done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098ac_ct_AR=$ac_cv_prog_ac_ct_AR
6099if test -n "$ac_ct_AR"; then
6100 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6101echo "${ECHO_T}$ac_ct_AR" >&6; }
6102else
6103 { echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6; }
6105fi
6106
6107 if test "x$ac_ct_AR" = x; then
6108 AR="false"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111yes:)
6112{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6113whose name does not start with the host triplet. If you think this
6114configuration is useful to you, please write to autoconf@gnu.org." >&5
6115echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6116whose name does not start with the host triplet. If you think this
6117configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6118ac_tool_warned=yes ;;
6119esac
6120 AR=$ac_ct_AR
6121 fi
6122else
6123 AR="$ac_cv_prog_AR"
6124fi
6125
6126# Extract the first word of "rm", so it can be a program name with args.
6127set dummy rm; ac_word=$2
6128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6130if test "${ac_cv_path_RM+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133 case $RM in
6134 [\\/]* | ?:[\\/]*)
6135 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6136 ;;
6137 *)
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149done
6150done
6151IFS=$as_save_IFS
6152
6153 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6154 ;;
6155esac
6156fi
6157RM=$ac_cv_path_RM
6158if test -n "$RM"; then
6159 { echo "$as_me:$LINENO: result: $RM" >&5
6160echo "${ECHO_T}$RM" >&6; }
6161else
6162 { echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6; }
6164fi
6165
6166
6167# Extract the first word of "sed", so it can be a program name with args.
6168set dummy sed; ac_word=$2
6169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171if test "${ac_cv_path_SED+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174 case $SED in
6175 [\\/]* | ?:[\\/]*)
6176 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6177 ;;
6178 *)
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190done
6191done
6192IFS=$as_save_IFS
6193
6194 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6195 ;;
6196esac
6197fi
6198SED=$ac_cv_path_SED
6199if test -n "$SED"; then
6200 { echo "$as_me:$LINENO: result: $SED" >&5
6201echo "${ECHO_T}$SED" >&6; }
6202else
6203 { echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6; }
6205fi
6206
6207
6208# Extract the first word of "tar", so it can be a program name with args.
6209set dummy tar; ac_word=$2
6210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6212if test "${ac_cv_path_TAR+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215 case $TAR in
6216 [\\/]* | ?:[\\/]*)
6217 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6218 ;;
6219 *)
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231done
6232done
6233IFS=$as_save_IFS
6234
6235 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6236 ;;
6237esac
6238fi
6239TAR=$ac_cv_path_TAR
6240if test -n "$TAR"; then
6241 { echo "$as_me:$LINENO: result: $TAR" >&5
6242echo "${ECHO_T}$TAR" >&6; }
6243else
6244 { echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6; }
6246fi
6247
6248
6249# Extract the first word of "pwd", so it can be a program name with args.
6250set dummy pwd; ac_word=$2
6251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253if test "${ac_cv_path_BINPWD+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256 case $BINPWD in
6257 [\\/]* | ?:[\\/]*)
6258 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6259 ;;
6260 *)
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6271 fi
6272done
6273done
6274IFS=$as_save_IFS
6275
6276 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6277 ;;
6278esac
6279fi
6280BINPWD=$ac_cv_path_BINPWD
6281if test -n "$BINPWD"; then
6282 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6283echo "${ECHO_T}$BINPWD" >&6; }
6284else
6285 { echo "$as_me:$LINENO: result: no" >&5
6286echo "${ECHO_T}no" >&6; }
6287fi
6288
6289
6290
6291# Extract the first word of "Graphviz", so it can be a program name with args.
6292set dummy Graphviz; ac_word=$2
6293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298 case $GRAPHVIZ in
6299 [\\/]* | ?:[\\/]*)
6300 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6301 ;;
6302 *)
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314done
6315done
6316IFS=$as_save_IFS
6317
6318 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6319 ;;
6320esac
6321fi
6322GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6323if test -n "$GRAPHVIZ"; then
6324 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6325echo "${ECHO_T}$GRAPHVIZ" >&6; }
6326else
6327 { echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6; }
6329fi
6330
6331
6332if test "$GRAPHVIZ" != "echo Graphviz" ; then
6333
6334cat >>confdefs.h <<\_ACEOF
6335#define HAVE_GRAPHVIZ 1
6336_ACEOF
6337
6338 if test "$llvm_cv_os_type" = "MingW" ; then
6339 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6340 fi
6341
6342cat >>confdefs.h <<_ACEOF
6343#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6344_ACEOF
6345
6346fi
6347# Extract the first word of "dot", so it can be a program name with args.
6348set dummy dot; ac_word=$2
6349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351if test "${ac_cv_path_DOT+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354 case $DOT in
6355 [\\/]* | ?:[\\/]*)
6356 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6357 ;;
6358 *)
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370done
6371done
6372IFS=$as_save_IFS
6373
6374 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6375 ;;
6376esac
6377fi
6378DOT=$ac_cv_path_DOT
6379if test -n "$DOT"; then
6380 { echo "$as_me:$LINENO: result: $DOT" >&5
6381echo "${ECHO_T}$DOT" >&6; }
6382else
6383 { echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6; }
6385fi
6386
6387
6388if test "$DOT" != "echo dot" ; then
6389
6390cat >>confdefs.h <<\_ACEOF
6391#define HAVE_DOT 1
6392_ACEOF
6393
6394 if test "$llvm_cv_os_type" = "MingW" ; then
6395 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6396 fi
6397
6398cat >>confdefs.h <<_ACEOF
6399#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6400_ACEOF
6401
6402fi
6403# Extract the first word of "fdp", so it can be a program name with args.
6404set dummy fdp; ac_word=$2
6405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407if test "${ac_cv_path_FDP+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409else
6410 case $FDP in
6411 [\\/]* | ?:[\\/]*)
6412 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6413 ;;
6414 *)
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426done
6427done
6428IFS=$as_save_IFS
6429
6430 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6431 ;;
6432esac
6433fi
6434FDP=$ac_cv_path_FDP
6435if test -n "$FDP"; then
6436 { echo "$as_me:$LINENO: result: $FDP" >&5
6437echo "${ECHO_T}$FDP" >&6; }
6438else
6439 { echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6; }
6441fi
6442
6443
6444if test "$FDP" != "echo fdp" ; then
6445
6446cat >>confdefs.h <<\_ACEOF
6447#define HAVE_FDP 1
6448_ACEOF
6449
6450 if test "$llvm_cv_os_type" = "MingW" ; then
6451 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6452 fi
6453
6454cat >>confdefs.h <<_ACEOF
6455#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6456_ACEOF
6457
6458fi
6459# Extract the first word of "neato", so it can be a program name with args.
6460set dummy neato; ac_word=$2
6461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6463if test "${ac_cv_path_NEATO+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466 case $NEATO in
6467 [\\/]* | ?:[\\/]*)
6468 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6469 ;;
6470 *)
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482done
6483done
6484IFS=$as_save_IFS
6485
6486 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6487 ;;
6488esac
6489fi
6490NEATO=$ac_cv_path_NEATO
6491if test -n "$NEATO"; then
6492 { echo "$as_me:$LINENO: result: $NEATO" >&5
6493echo "${ECHO_T}$NEATO" >&6; }
6494else
6495 { echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6; }
6497fi
6498
6499
6500if test "$NEATO" != "echo neato" ; then
6501
6502cat >>confdefs.h <<\_ACEOF
6503#define HAVE_NEATO 1
6504_ACEOF
6505
6506 if test "$llvm_cv_os_type" = "MingW" ; then
6507 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6508 fi
6509
6510cat >>confdefs.h <<_ACEOF
6511#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6512_ACEOF
6513
6514fi
6515# Extract the first word of "twopi", so it can be a program name with args.
6516set dummy twopi; ac_word=$2
6517{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519if test "${ac_cv_path_TWOPI+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else
6522 case $TWOPI in
6523 [\\/]* | ?:[\\/]*)
6524 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6525 ;;
6526 *)
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6534 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538done
6539done
6540IFS=$as_save_IFS
6541
6542 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6543 ;;
6544esac
6545fi
6546TWOPI=$ac_cv_path_TWOPI
6547if test -n "$TWOPI"; then
6548 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6549echo "${ECHO_T}$TWOPI" >&6; }
6550else
6551 { echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6; }
6553fi
6554
6555
6556if test "$TWOPI" != "echo twopi" ; then
6557
6558cat >>confdefs.h <<\_ACEOF
6559#define HAVE_TWOPI 1
6560_ACEOF
6561
6562 if test "$llvm_cv_os_type" = "MingW" ; then
6563 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6564 fi
6565
6566cat >>confdefs.h <<_ACEOF
6567#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6568_ACEOF
6569
6570fi
6571# Extract the first word of "circo", so it can be a program name with args.
6572set dummy circo; ac_word=$2
6573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575if test "${ac_cv_path_CIRCO+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578 case $CIRCO in
6579 [\\/]* | ?:[\\/]*)
6580 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6581 ;;
6582 *)
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594done
6595done
6596IFS=$as_save_IFS
6597
6598 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6599 ;;
6600esac
6601fi
6602CIRCO=$ac_cv_path_CIRCO
6603if test -n "$CIRCO"; then
6604 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6605echo "${ECHO_T}$CIRCO" >&6; }
6606else
6607 { echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6; }
6609fi
6610
6611
6612if test "$CIRCO" != "echo circo" ; then
6613
6614cat >>confdefs.h <<\_ACEOF
6615#define HAVE_CIRCO 1
6616_ACEOF
6617
6618 if test "$llvm_cv_os_type" = "MingW" ; then
6619 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6620 fi
6621
6622cat >>confdefs.h <<_ACEOF
6623#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6624_ACEOF
6625
6626fi
6627for ac_prog in gv gsview32
6628do
6629 # Extract the first word of "$ac_prog", so it can be a program name with args.
6630set dummy $ac_prog; ac_word=$2
6631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633if test "${ac_cv_path_GV+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636 case $GV in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6639 ;;
6640 *)
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652done
6653done
6654IFS=$as_save_IFS
6655
6656 ;;
6657esac
6658fi
6659GV=$ac_cv_path_GV
6660if test -n "$GV"; then
6661 { echo "$as_me:$LINENO: result: $GV" >&5
6662echo "${ECHO_T}$GV" >&6; }
6663else
6664 { echo "$as_me:$LINENO: result: no" >&5
6665echo "${ECHO_T}no" >&6; }
6666fi
6667
6668
6669 test -n "$GV" && break
6670done
6671test -n "$GV" || GV="echo gv"
6672
6673if test "$GV" != "echo gv" ; then
6674
6675cat >>confdefs.h <<\_ACEOF
6676#define HAVE_GV 1
6677_ACEOF
6678
6679 if test "$llvm_cv_os_type" = "MingW" ; then
6680 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6681 fi
6682
6683cat >>confdefs.h <<_ACEOF
6684#define LLVM_PATH_GV "$GV${EXEEXT}"
6685_ACEOF
6686
6687fi
6688# Extract the first word of "dotty", so it can be a program name with args.
6689set dummy dotty; ac_word=$2
6690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6692if test "${ac_cv_path_DOTTY+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695 case $DOTTY in
6696 [\\/]* | ?:[\\/]*)
6697 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6698 ;;
6699 *)
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711done
6712done
6713IFS=$as_save_IFS
6714
6715 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6716 ;;
6717esac
6718fi
6719DOTTY=$ac_cv_path_DOTTY
6720if test -n "$DOTTY"; then
6721 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6722echo "${ECHO_T}$DOTTY" >&6; }
6723else
6724 { echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6; }
6726fi
6727
6728
6729if test "$DOTTY" != "echo dotty" ; then
6730
6731cat >>confdefs.h <<\_ACEOF
6732#define HAVE_DOTTY 1
6733_ACEOF
6734
6735 if test "$llvm_cv_os_type" = "MingW" ; then
6736 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6737 fi
6738
6739cat >>confdefs.h <<_ACEOF
6740#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6741_ACEOF
6742
6743fi
6744# Extract the first word of "xdot.py", so it can be a program name with args.
6745set dummy xdot.py; ac_word=$2
6746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6748if test "${ac_cv_path_XDOT_PY+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750else
6751 case $XDOT_PY in
6752 [\\/]* | ?:[\\/]*)
6753 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6754 ;;
6755 *)
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767done
6768done
6769IFS=$as_save_IFS
6770
6771 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6772 ;;
6773esac
6774fi
6775XDOT_PY=$ac_cv_path_XDOT_PY
6776if test -n "$XDOT_PY"; then
6777 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6778echo "${ECHO_T}$XDOT_PY" >&6; }
6779else
6780 { echo "$as_me:$LINENO: result: no" >&5
6781echo "${ECHO_T}no" >&6; }
6782fi
6783
6784
6785if test "$XDOT_PY" != "echo xdot.py" ; then
6786
6787cat >>confdefs.h <<\_ACEOF
6788#define HAVE_XDOT_PY 1
6789_ACEOF
6790
6791 if test "$llvm_cv_os_type" = "MingW" ; then
6792 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6793 fi
6794
6795cat >>confdefs.h <<_ACEOF
6796#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6797_ACEOF
6798
6799fi
6800
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006801# Find a good install program. We prefer a C program (faster),
6802# so one script is as good as another. But avoid the broken or
6803# incompatible versions:
6804# SysV /etc/install, /usr/sbin/install
6805# SunOS /usr/etc/install
6806# IRIX /sbin/install
6807# AIX /bin/install
6808# AmigaOS /C/install, which installs bootblocks on floppy discs
6809# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6810# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6811# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6812# OS/2's system install, which has a completely different semantic
6813# ./install, which can be erroneously created by make from ./install.sh.
6814{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6815echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6816if test -z "$INSTALL"; then
6817if test "${ac_cv_path_install+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 # Account for people who put trailing slashes in PATH elements.
6826case $as_dir/ in
6827 ./ | .// | /cC/* | \
6828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6829 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6830 /usr/ucb/* ) ;;
6831 *)
6832 # OSF1 and SCO ODT 3.0 have their own names for install.
6833 # Don't use installbsd from OSF since it installs stuff as root
6834 # by default.
6835 for ac_prog in ginstall scoinst install; do
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6838 if test $ac_prog = install &&
6839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6840 # AIX install. It has an incompatible calling convention.
6841 :
6842 elif test $ac_prog = install &&
6843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6844 # program-specific install script used by HP pwplus--don't use.
6845 :
6846 else
6847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6848 break 3
6849 fi
6850 fi
6851 done
6852 done
6853 ;;
6854esac
6855done
6856IFS=$as_save_IFS
6857
6858
6859fi
6860 if test "${ac_cv_path_install+set}" = set; then
6861 INSTALL=$ac_cv_path_install
6862 else
6863 # As a last resort, use the slow shell script. Don't cache a
6864 # value for INSTALL within a source directory, because that will
6865 # break other packages using the cache if that directory is
6866 # removed, or if the value is a relative name.
6867 INSTALL=$ac_install_sh
6868 fi
6869fi
6870{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6871echo "${ECHO_T}$INSTALL" >&6; }
6872
6873# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6874# It thinks the first close brace ends the variable substitution.
6875test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6876
6877test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6878
6879test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6880
6881case "$INSTALL" in
6882 [\\/$]* | ?:[\\/]* ) ;;
6883 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6884esac
6885
6886# Extract the first word of "bzip2", so it can be a program name with args.
6887set dummy bzip2; ac_word=$2
6888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890if test "${ac_cv_path_BZIP2+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893 case $BZIP2 in
6894 [\\/]* | ?:[\\/]*)
6895 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6896 ;;
6897 *)
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910done
6911IFS=$as_save_IFS
6912
6913 ;;
6914esac
6915fi
6916BZIP2=$ac_cv_path_BZIP2
6917if test -n "$BZIP2"; then
6918 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6919echo "${ECHO_T}$BZIP2" >&6; }
6920else
6921 { echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6; }
6923fi
6924
6925
6926# Extract the first word of "cat", so it can be a program name with args.
6927set dummy cat; ac_word=$2
6928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930if test "${ac_cv_path_CAT+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932else
6933 case $CAT in
6934 [\\/]* | ?:[\\/]*)
6935 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6936 ;;
6937 *)
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949done
6950done
6951IFS=$as_save_IFS
6952
6953 ;;
6954esac
6955fi
6956CAT=$ac_cv_path_CAT
6957if test -n "$CAT"; then
6958 { echo "$as_me:$LINENO: result: $CAT" >&5
6959echo "${ECHO_T}$CAT" >&6; }
6960else
6961 { echo "$as_me:$LINENO: result: no" >&5
6962echo "${ECHO_T}no" >&6; }
6963fi
6964
6965
6966# Extract the first word of "doxygen", so it can be a program name with args.
6967set dummy doxygen; ac_word=$2
6968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970if test "${ac_cv_path_DOXYGEN+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972else
6973 case $DOXYGEN in
6974 [\\/]* | ?:[\\/]*)
6975 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6976 ;;
6977 *)
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989done
6990done
6991IFS=$as_save_IFS
6992
6993 ;;
6994esac
6995fi
6996DOXYGEN=$ac_cv_path_DOXYGEN
6997if test -n "$DOXYGEN"; then
6998 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6999echo "${ECHO_T}$DOXYGEN" >&6; }
7000else
7001 { echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6; }
7003fi
7004
7005
7006# Extract the first word of "groff", so it can be a program name with args.
7007set dummy groff; ac_word=$2
7008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010if test "${ac_cv_path_GROFF+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013 case $GROFF in
7014 [\\/]* | ?:[\\/]*)
7015 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7016 ;;
7017 *)
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030done
7031IFS=$as_save_IFS
7032
7033 ;;
7034esac
7035fi
7036GROFF=$ac_cv_path_GROFF
7037if test -n "$GROFF"; then
7038 { echo "$as_me:$LINENO: result: $GROFF" >&5
7039echo "${ECHO_T}$GROFF" >&6; }
7040else
7041 { echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6; }
7043fi
7044
7045
7046# Extract the first word of "gzip", so it can be a program name with args.
7047set dummy gzip; ac_word=$2
7048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050if test "${ac_cv_path_GZIPBIN+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 case $GZIPBIN in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7056 ;;
7057 *)
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069done
7070done
7071IFS=$as_save_IFS
7072
7073 ;;
7074esac
7075fi
7076GZIPBIN=$ac_cv_path_GZIPBIN
7077if test -n "$GZIPBIN"; then
7078 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7079echo "${ECHO_T}$GZIPBIN" >&6; }
7080else
7081 { echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6; }
7083fi
7084
7085
7086# Extract the first word of "pod2html", so it can be a program name with args.
7087set dummy pod2html; ac_word=$2
7088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090if test "${ac_cv_path_POD2HTML+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093 case $POD2HTML in
7094 [\\/]* | ?:[\\/]*)
7095 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7096 ;;
7097 *)
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109done
7110done
7111IFS=$as_save_IFS
7112
7113 ;;
7114esac
7115fi
7116POD2HTML=$ac_cv_path_POD2HTML
7117if test -n "$POD2HTML"; then
7118 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7119echo "${ECHO_T}$POD2HTML" >&6; }
7120else
7121 { echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6; }
7123fi
7124
7125
7126# Extract the first word of "pod2man", so it can be a program name with args.
7127set dummy pod2man; ac_word=$2
7128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130if test "${ac_cv_path_POD2MAN+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132else
7133 case $POD2MAN in
7134 [\\/]* | ?:[\\/]*)
7135 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7136 ;;
7137 *)
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149done
7150done
7151IFS=$as_save_IFS
7152
7153 ;;
7154esac
7155fi
7156POD2MAN=$ac_cv_path_POD2MAN
7157if test -n "$POD2MAN"; then
7158 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7159echo "${ECHO_T}$POD2MAN" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
7166# Extract the first word of "pdfroff", so it can be a program name with args.
7167set dummy pdfroff; ac_word=$2
7168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170if test "${ac_cv_path_PDFROFF+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172else
7173 case $PDFROFF in
7174 [\\/]* | ?:[\\/]*)
7175 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7176 ;;
7177 *)
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189done
7190done
7191IFS=$as_save_IFS
7192
7193 ;;
7194esac
7195fi
7196PDFROFF=$ac_cv_path_PDFROFF
7197if test -n "$PDFROFF"; then
7198 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7199echo "${ECHO_T}$PDFROFF" >&6; }
7200else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6; }
7203fi
7204
7205
7206# Extract the first word of "runtest", so it can be a program name with args.
7207set dummy runtest; ac_word=$2
7208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210if test "${ac_cv_path_RUNTEST+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 case $RUNTEST in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7216 ;;
7217 *)
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230done
7231IFS=$as_save_IFS
7232
7233 ;;
7234esac
7235fi
7236RUNTEST=$ac_cv_path_RUNTEST
7237if test -n "$RUNTEST"; then
7238 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7239echo "${ECHO_T}$RUNTEST" >&6; }
7240else
7241 { echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6; }
7243fi
7244
7245
7246
7247no_itcl=true
7248{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7249echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7250
7251# Check whether --with-tclinclude was given.
7252if test "${with_tclinclude+set}" = set; then
7253 withval=$with_tclinclude; with_tclinclude=${withval}
7254else
7255 with_tclinclude=''
7256fi
7257
7258if test "${ac_cv_path_tclsh+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260else
7261
7262if test x"${with_tclinclude}" != x ; then
7263 if test -f ${with_tclinclude}/tclsh ; then
7264 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7265 elif test -f ${with_tclinclude}/src/tclsh ; then
7266 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7267 else
7268 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7269echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7270 { (exit 1); exit 1; }; }
7271 fi
7272fi
7273fi
7274
7275
7276if test x"${ac_cv_path_tclsh}" = x ; then
7277 { echo "$as_me:$LINENO: result: none" >&5
7278echo "${ECHO_T}none" >&6; }
7279 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
7280do
7281 # Extract the first word of "$ac_prog", so it can be a program name with args.
7282set dummy $ac_prog; 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_TCLSH+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288 case $TCLSH in
7289 [\\/]* | ?:[\\/]*)
7290 ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$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
7311TCLSH=$ac_cv_path_TCLSH
7312if test -n "$TCLSH"; then
7313 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7314echo "${ECHO_T}$TCLSH" >&6; }
7315else
7316 { echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6; }
7318fi
7319
7320
7321 test -n "$TCLSH" && break
7322done
7323
7324 if test x"${TCLSH}" = x ; then
7325 ac_cv_path_tclsh='';
7326 else
7327 ac_cv_path_tclsh="${TCLSH}";
7328 fi
7329else
7330 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7331echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7332 TCLSH="${ac_cv_path_tclsh}"
7333
7334fi
7335
7336# Extract the first word of "zip", so it can be a program name with args.
7337set dummy zip; ac_word=$2
7338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340if test "${ac_cv_path_ZIP+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7342else
7343 case $ZIP in
7344 [\\/]* | ?:[\\/]*)
7345 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7346 ;;
7347 *)
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359done
7360done
7361IFS=$as_save_IFS
7362
7363 ;;
7364esac
7365fi
7366ZIP=$ac_cv_path_ZIP
7367if test -n "$ZIP"; then
7368 { echo "$as_me:$LINENO: result: $ZIP" >&5
7369echo "${ECHO_T}$ZIP" >&6; }
7370else
7371 { echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6; }
7373fi
7374
7375
7376for ac_prog in ocamlc
7377do
7378 # Extract the first word of "$ac_prog", so it can be a program name with args.
7379set dummy $ac_prog; ac_word=$2
7380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7382if test "${ac_cv_path_OCAMLC+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385 case $OCAMLC in
7386 [\\/]* | ?:[\\/]*)
7387 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7388 ;;
7389 *)
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401done
7402done
7403IFS=$as_save_IFS
7404
7405 ;;
7406esac
7407fi
7408OCAMLC=$ac_cv_path_OCAMLC
7409if test -n "$OCAMLC"; then
7410 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7411echo "${ECHO_T}$OCAMLC" >&6; }
7412else
7413 { echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6; }
7415fi
7416
7417
7418 test -n "$OCAMLC" && break
7419done
7420
7421for ac_prog in ocamlopt
7422do
7423 # Extract the first word of "$ac_prog", so it can be a program name with args.
7424set dummy $ac_prog; ac_word=$2
7425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430 case $OCAMLOPT in
7431 [\\/]* | ?:[\\/]*)
7432 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7433 ;;
7434 *)
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446done
7447done
7448IFS=$as_save_IFS
7449
7450 ;;
7451esac
7452fi
7453OCAMLOPT=$ac_cv_path_OCAMLOPT
7454if test -n "$OCAMLOPT"; then
7455 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7456echo "${ECHO_T}$OCAMLOPT" >&6; }
7457else
7458 { echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6; }
7460fi
7461
7462
7463 test -n "$OCAMLOPT" && break
7464done
7465
7466for ac_prog in ocamldep
7467do
7468 # Extract the first word of "$ac_prog", so it can be a program name with args.
7469set dummy $ac_prog; ac_word=$2
7470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 case $OCAMLDEP in
7476 [\\/]* | ?:[\\/]*)
7477 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7478 ;;
7479 *)
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492done
7493IFS=$as_save_IFS
7494
7495 ;;
7496esac
7497fi
7498OCAMLDEP=$ac_cv_path_OCAMLDEP
7499if test -n "$OCAMLDEP"; then
7500 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7501echo "${ECHO_T}$OCAMLDEP" >&6; }
7502else
7503 { echo "$as_me:$LINENO: result: no" >&5
7504echo "${ECHO_T}no" >&6; }
7505fi
7506
7507
7508 test -n "$OCAMLDEP" && break
7509done
7510
7511for ac_prog in ocamldoc
7512do
7513 # Extract the first word of "$ac_prog", so it can be a program name with args.
7514set dummy $ac_prog; ac_word=$2
7515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 case $OCAMLDOC in
7521 [\\/]* | ?:[\\/]*)
7522 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7523 ;;
7524 *)
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536done
7537done
7538IFS=$as_save_IFS
7539
7540 ;;
7541esac
7542fi
7543OCAMLDOC=$ac_cv_path_OCAMLDOC
7544if test -n "$OCAMLDOC"; then
7545 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7546echo "${ECHO_T}$OCAMLDOC" >&6; }
7547else
7548 { echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6; }
7550fi
7551
7552
7553 test -n "$OCAMLDOC" && break
7554done
7555
7556for ac_prog in gas as
7557do
7558 # Extract the first word of "$ac_prog", so it can be a program name with args.
7559set dummy $ac_prog; ac_word=$2
7560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562if test "${ac_cv_path_GAS+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564else
7565 case $GAS in
7566 [\\/]* | ?:[\\/]*)
7567 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7568 ;;
7569 *)
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571for as_dir in $PATH
7572do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7580 fi
7581done
7582done
7583IFS=$as_save_IFS
7584
7585 ;;
7586esac
7587fi
7588GAS=$ac_cv_path_GAS
7589if test -n "$GAS"; then
7590 { echo "$as_me:$LINENO: result: $GAS" >&5
7591echo "${ECHO_T}$GAS" >&6; }
7592else
7593 { echo "$as_me:$LINENO: result: no" >&5
7594echo "${ECHO_T}no" >&6; }
7595fi
7596
7597
7598 test -n "$GAS" && break
7599done
7600
7601
7602{ echo "$as_me:$LINENO: checking for linker version" >&5
7603echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7604if test "${llvm_cv_link_version+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607
7608 version_string="$(ld -v 2>&1 | head -1)"
7609
7610 # Check for ld64.
7611 if (echo "$version_string" | grep -q "ld64"); then
7612 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7613 else
7614 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7615 fi
7616
7617fi
7618{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7619echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7620
7621cat >>confdefs.h <<_ACEOF
7622#define HOST_LINK_VERSION "$llvm_cv_link_version"
7623_ACEOF
7624
7625
7626
7627{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7628echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7629if test "${llvm_cv_link_use_r+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632 ac_ext=c
7633ac_cpp='$CPP $CPPFLAGS'
7634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637
7638 oldcflags="$CFLAGS"
7639 CFLAGS="$CFLAGS -Wl,-R."
7640 cat >conftest.$ac_ext <<_ACEOF
7641/* confdefs.h. */
7642_ACEOF
7643cat confdefs.h >>conftest.$ac_ext
7644cat >>conftest.$ac_ext <<_ACEOF
7645/* end confdefs.h. */
7646
7647int
7648main ()
7649{
7650
7651 ;
7652 return 0;
7653}
7654_ACEOF
7655rm -f conftest.$ac_objext conftest$ac_exeext
7656if { (ac_try="$ac_link"
7657case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660esac
7661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_link") 2>conftest.er1
7663 ac_status=$?
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7670 { (case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673esac
7674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_try") 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; } &&
7679 { ac_try='test -s conftest$ac_exeext'
7680 { (case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7683esac
7684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_try") 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 llvm_cv_link_use_r=yes
7690else
7691 echo "$as_me: failed program was:" >&5
7692sed 's/^/| /' conftest.$ac_ext >&5
7693
7694 llvm_cv_link_use_r=no
7695fi
7696
7697rm -f core conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
7699 CFLAGS="$oldcflags"
7700 ac_ext=c
7701ac_cpp='$CPP $CPPFLAGS'
7702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707fi
7708{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7709echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7710if test "$llvm_cv_link_use_r" = yes ; then
7711
7712cat >>confdefs.h <<\_ACEOF
7713#define HAVE_LINK_R 1
7714_ACEOF
7715
7716 fi
7717
7718
7719{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7720echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7721if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724 ac_ext=c
7725ac_cpp='$CPP $CPPFLAGS'
7726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729
7730 oldcflags="$CFLAGS"
7731 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7732 cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
7738
7739int
7740main ()
7741{
7742
7743 ;
7744 return 0;
7745}
7746_ACEOF
7747rm -f conftest.$ac_objext conftest$ac_exeext
7748if { (ac_try="$ac_link"
7749case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752esac
7753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_link") 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7762 { (case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765esac
7766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_try") 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest$ac_exeext'
7772 { (case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775esac
7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_try") 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 llvm_cv_link_use_export_dynamic=yes
7782else
7783 echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 llvm_cv_link_use_export_dynamic=no
7787fi
7788
7789rm -f core conftest.err conftest.$ac_objext \
7790 conftest$ac_exeext conftest.$ac_ext
7791 CFLAGS="$oldcflags"
7792 ac_ext=c
7793ac_cpp='$CPP $CPPFLAGS'
7794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7796ac_compiler_gnu=$ac_cv_c_compiler_gnu
7797
7798
7799fi
7800{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7801echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7802if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7803
7804cat >>confdefs.h <<\_ACEOF
7805#define HAVE_LINK_EXPORT_DYNAMIC 1
7806_ACEOF
7807
7808 fi
7809
7810
7811{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7812echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7813if test "${llvm_cv_link_use_version_script+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815else
7816 ac_ext=c
7817ac_cpp='$CPP $CPPFLAGS'
7818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821
7822 oldcflags="$CFLAGS"
7823
7824 # The following code is from the autoconf manual,
7825 # "11.13: Limitations of Usual Tools".
7826 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7827 # Use mktemp if possible; otherwise fall back on mkdir,
7828 # with $RANDOM to make collisions less likely.
7829 : ${TMPDIR=/tmp}
7830 {
7831 tmp=`
7832 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7833 ` &&
7834 test -n "$tmp" && test -d "$tmp"
7835 } || {
7836 tmp=$TMPDIR/foo$$-$RANDOM
7837 (umask 077 && mkdir "$tmp")
7838 } || exit $?
7839
7840 echo "{" > "$tmp/export.map"
7841 echo " global: main;" >> "$tmp/export.map"
7842 echo " local: *;" >> "$tmp/export.map"
7843 echo "};" >> "$tmp/export.map"
7844
7845 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7846 cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h. */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h. */
7852
7853int
7854main ()
7855{
7856
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861rm -f conftest.$ac_objext conftest$ac_exeext
7862if { (ac_try="$ac_link"
7863case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866esac
7867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_link") 2>conftest.er1
7869 ac_status=$?
7870 grep -v '^ *+' conftest.er1 >conftest.err
7871 rm -f conftest.er1
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } &&
7875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879esac
7880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; } &&
7885 { ac_try='test -s conftest$ac_exeext'
7886 { (case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_try") 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 llvm_cv_link_use_version_script=yes
7896else
7897 echo "$as_me: failed program was:" >&5
7898sed 's/^/| /' conftest.$ac_ext >&5
7899
7900 llvm_cv_link_use_version_script=no
7901fi
7902
7903rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 rm "$tmp/export.map"
7906 rmdir "$tmp"
7907 CFLAGS="$oldcflags"
7908 ac_ext=c
7909ac_cpp='$CPP $CPPFLAGS'
7910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914
7915fi
7916{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7917echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7918if test "$llvm_cv_link_use_version_script" = yes ; then
7919 HAVE_LINK_VERSION_SCRIPT=1
7920
7921 fi
7922
7923
7924
7925
7926{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7927echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7928if test "${ac_cv_c_const+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931 cat >conftest.$ac_ext <<_ACEOF
7932/* confdefs.h. */
7933_ACEOF
7934cat confdefs.h >>conftest.$ac_ext
7935cat >>conftest.$ac_ext <<_ACEOF
7936/* end confdefs.h. */
7937
7938int
7939main ()
7940{
7941/* FIXME: Include the comments suggested by Paul. */
7942#ifndef __cplusplus
7943 /* Ultrix mips cc rejects this. */
7944 typedef int charset[2];
7945 const charset x;
7946 /* SunOS 4.1.1 cc rejects this. */
7947 char const *const *ccp;
7948 char **p;
7949 /* NEC SVR4.0.2 mips cc rejects this. */
7950 struct point {int x, y;};
7951 static struct point const zero = {0,0};
7952 /* AIX XL C 1.02.0.0 rejects this.
7953 It does not let you subtract one const X* pointer from another in
7954 an arm of an if-expression whose if-part is not a constant
7955 expression */
7956 const char *g = "string";
7957 ccp = &g + (g ? g-g : 0);
7958 /* HPUX 7.0 cc rejects these. */
7959 ++ccp;
7960 p = (char**) ccp;
7961 ccp = (char const *const *) p;
7962 { /* SCO 3.2v4 cc rejects this. */
7963 char *t;
7964 char const *s = 0 ? (char *) 0 : (char const *) 0;
7965
7966 *t++ = 0;
7967 if (s) return 0;
7968 }
7969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7970 int x[] = {25, 17};
7971 const int *foo = &x[0];
7972 ++foo;
7973 }
7974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7975 typedef const int *iptr;
7976 iptr p = 0;
7977 ++p;
7978 }
7979 { /* AIX XL C 1.02.0.0 rejects this saying
7980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7981 struct s { int j; const int *ap[3]; };
7982 struct s *b; b->j = 5;
7983 }
7984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7985 const int foo = 10;
7986 if (!foo) return 0;
7987 }
7988 return !x[0] && !zero.x;
7989#endif
7990
7991 ;
7992 return 0;
7993}
7994_ACEOF
7995rm -f conftest.$ac_objext
7996if { (ac_try="$ac_compile"
7997case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8000esac
8001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_compile") 2>conftest.er1
8003 ac_status=$?
8004 grep -v '^ *+' conftest.er1 >conftest.err
8005 rm -f conftest.er1
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8010 { (case "(($ac_try" in
8011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8013esac
8014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8015 (eval "$ac_try") 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; } &&
8019 { ac_try='test -s conftest.$ac_objext'
8020 { (case "(($ac_try" in
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8023esac
8024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_try") 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; }; then
8029 ac_cv_c_const=yes
8030else
8031 echo "$as_me: failed program was:" >&5
8032sed 's/^/| /' conftest.$ac_ext >&5
8033
8034 ac_cv_c_const=no
8035fi
8036
8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038fi
8039{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8040echo "${ECHO_T}$ac_cv_c_const" >&6; }
8041if test $ac_cv_c_const = no; then
8042
8043cat >>confdefs.h <<\_ACEOF
8044#define const
8045_ACEOF
8046
8047fi
8048
8049
8050
8051
8052
8053
8054ac_header_dirent=no
8055for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8056 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8057{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8058echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062 cat >conftest.$ac_ext <<_ACEOF
8063/* confdefs.h. */
8064_ACEOF
8065cat confdefs.h >>conftest.$ac_ext
8066cat >>conftest.$ac_ext <<_ACEOF
8067/* end confdefs.h. */
8068#include <sys/types.h>
8069#include <$ac_hdr>
8070
8071int
8072main ()
8073{
8074if ((DIR *) 0)
8075return 0;
8076 ;
8077 return 0;
8078}
8079_ACEOF
8080rm -f conftest.$ac_objext
8081if { (ac_try="$ac_compile"
8082case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8085esac
8086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8104 { ac_try='test -s conftest.$ac_objext'
8105 { (case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108esac
8109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_try") 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 eval "$as_ac_Header=yes"
8115else
8116 echo "$as_me: failed program was:" >&5
8117sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 eval "$as_ac_Header=no"
8120fi
8121
8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123fi
8124ac_res=`eval echo '${'$as_ac_Header'}'`
8125 { echo "$as_me:$LINENO: result: $ac_res" >&5
8126echo "${ECHO_T}$ac_res" >&6; }
8127if test `eval echo '${'$as_ac_Header'}'` = yes; then
8128 cat >>confdefs.h <<_ACEOF
8129#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8130_ACEOF
8131
8132ac_header_dirent=$ac_hdr; break
8133fi
8134
8135done
8136# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8137if test $ac_header_dirent = dirent.h; then
8138 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8139echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8140if test "${ac_cv_search_opendir+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142else
8143 ac_func_search_save_LIBS=$LIBS
8144cat >conftest.$ac_ext <<_ACEOF
8145/* confdefs.h. */
8146_ACEOF
8147cat confdefs.h >>conftest.$ac_ext
8148cat >>conftest.$ac_ext <<_ACEOF
8149/* end confdefs.h. */
8150
8151/* Override any GCC internal prototype to avoid an error.
8152 Use char because int might match the return type of a GCC
8153 builtin and then its argument prototype would still apply. */
8154#ifdef __cplusplus
8155extern "C"
8156#endif
8157char opendir ();
8158int
8159main ()
8160{
8161return opendir ();
8162 ;
8163 return 0;
8164}
8165_ACEOF
8166for ac_lib in '' dir; do
8167 if test -z "$ac_lib"; then
8168 ac_res="none required"
8169 else
8170 ac_res=-l$ac_lib
8171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8172 fi
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174if { (ac_try="$ac_link"
8175case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8178esac
8179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_link") 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8188 { (case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8191esac
8192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_try") 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest$ac_exeext'
8198 { (case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201esac
8202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_try") 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 ac_cv_search_opendir=$ac_res
8208else
8209 echo "$as_me: failed program was:" >&5
8210sed 's/^/| /' conftest.$ac_ext >&5
8211
8212
8213fi
8214
8215rm -f core conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext
8217 if test "${ac_cv_search_opendir+set}" = set; then
8218 break
8219fi
8220done
8221if test "${ac_cv_search_opendir+set}" = set; then
8222 :
8223else
8224 ac_cv_search_opendir=no
8225fi
8226rm conftest.$ac_ext
8227LIBS=$ac_func_search_save_LIBS
8228fi
8229{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8230echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8231ac_res=$ac_cv_search_opendir
8232if test "$ac_res" != no; then
8233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8234
8235fi
8236
8237else
8238 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8239echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8240if test "${ac_cv_search_opendir+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242else
8243 ac_func_search_save_LIBS=$LIBS
8244cat >conftest.$ac_ext <<_ACEOF
8245/* confdefs.h. */
8246_ACEOF
8247cat confdefs.h >>conftest.$ac_ext
8248cat >>conftest.$ac_ext <<_ACEOF
8249/* end confdefs.h. */
8250
8251/* Override any GCC internal prototype to avoid an error.
8252 Use char because int might match the return type of a GCC
8253 builtin and then its argument prototype would still apply. */
8254#ifdef __cplusplus
8255extern "C"
8256#endif
8257char opendir ();
8258int
8259main ()
8260{
8261return opendir ();
8262 ;
8263 return 0;
8264}
8265_ACEOF
8266for ac_lib in '' x; do
8267 if test -z "$ac_lib"; then
8268 ac_res="none required"
8269 else
8270 ac_res=-l$ac_lib
8271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8272 fi
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274if { (ac_try="$ac_link"
8275case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278esac
8279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_link") 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8288 { (case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8291esac
8292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_try") 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301esac
8302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_try") 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_search_opendir=$ac_res
8308else
8309 echo "$as_me: failed program was:" >&5
8310sed 's/^/| /' conftest.$ac_ext >&5
8311
8312
8313fi
8314
8315rm -f core conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext
8317 if test "${ac_cv_search_opendir+set}" = set; then
8318 break
8319fi
8320done
8321if test "${ac_cv_search_opendir+set}" = set; then
8322 :
8323else
8324 ac_cv_search_opendir=no
8325fi
8326rm conftest.$ac_ext
8327LIBS=$ac_func_search_save_LIBS
8328fi
8329{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8330echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8331ac_res=$ac_cv_search_opendir
8332if test "$ac_res" != no; then
8333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8334
8335fi
8336
8337fi
8338
8339
8340for ac_header in dlfcn.h
8341do
8342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348fi
8349ac_res=`eval echo '${'$as_ac_Header'}'`
8350 { echo "$as_me:$LINENO: result: $ac_res" >&5
8351echo "${ECHO_T}$ac_res" >&6; }
8352else
8353 # Is the header compilable?
8354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8356cat >conftest.$ac_ext <<_ACEOF
8357/* confdefs.h. */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h. */
8362$ac_includes_default
8363#include <$ac_header>
8364_ACEOF
8365rm -f conftest.$ac_objext
8366if { (ac_try="$ac_compile"
8367case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370esac
8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_compile") 2>conftest.er1
8373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8380 { (case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8383esac
8384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_try") 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try='test -s conftest.$ac_objext'
8390 { (case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393esac
8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_try") 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_header_compiler=yes
8400else
8401 echo "$as_me: failed program was:" >&5
8402sed 's/^/| /' conftest.$ac_ext >&5
8403
8404 ac_header_compiler=no
8405fi
8406
8407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8409echo "${ECHO_T}$ac_header_compiler" >&6; }
8410
8411# Is the header present?
8412{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8414cat >conftest.$ac_ext <<_ACEOF
8415/* confdefs.h. */
8416_ACEOF
8417cat confdefs.h >>conftest.$ac_ext
8418cat >>conftest.$ac_ext <<_ACEOF
8419/* end confdefs.h. */
8420#include <$ac_header>
8421_ACEOF
8422if { (ac_try="$ac_cpp conftest.$ac_ext"
8423case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426esac
8427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } >/dev/null; then
8435 if test -s conftest.err; then
8436 ac_cpp_err=$ac_c_preproc_warn_flag
8437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8438 else
8439 ac_cpp_err=
8440 fi
8441else
8442 ac_cpp_err=yes
8443fi
8444if test -z "$ac_cpp_err"; then
8445 ac_header_preproc=yes
8446else
8447 echo "$as_me: failed program was:" >&5
8448sed 's/^/| /' conftest.$ac_ext >&5
8449
8450 ac_header_preproc=no
8451fi
8452
8453rm -f conftest.err conftest.$ac_ext
8454{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8455echo "${ECHO_T}$ac_header_preproc" >&6; }
8456
8457# So? What about this header?
8458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8459 yes:no: )
8460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8464 ac_header_preproc=yes
8465 ;;
8466 no:yes:* )
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8470echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8474echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8479 ( cat <<\_ASBOX
8480## ------------------------------ ##
8481## Report this to bugs@yourdomain ##
8482## ------------------------------ ##
8483_ASBOX
8484 ) | sed "s/^/$as_me: WARNING: /" >&2
8485 ;;
8486esac
8487{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491else
8492 eval "$as_ac_Header=\$ac_header_preproc"
8493fi
8494ac_res=`eval echo '${'$as_ac_Header'}'`
8495 { echo "$as_me:$LINENO: result: $ac_res" >&5
8496echo "${ECHO_T}$ac_res" >&6; }
8497
8498fi
8499if test `eval echo '${'$as_ac_Header'}'` = yes; then
8500 cat >>confdefs.h <<_ACEOF
8501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8502_ACEOF
8503
8504fi
8505
8506done
8507
8508# Check whether --enable-ltdl-install was given.
8509if test "${enable_ltdl_install+set}" = set; then
8510 enableval=$enable_ltdl_install;
8511fi
8512
8513
8514
8515
8516if test x"${enable_ltdl_install-no}" != xno; then
8517 INSTALL_LTDL_TRUE=
8518 INSTALL_LTDL_FALSE='#'
8519else
8520 INSTALL_LTDL_TRUE='#'
8521 INSTALL_LTDL_FALSE=
8522fi
8523
8524
8525
8526if test x"${enable_ltdl_convenience-no}" != xno; then
8527 CONVENIENCE_LTDL_TRUE=
8528 CONVENIENCE_LTDL_FALSE='#'
8529else
8530 CONVENIENCE_LTDL_TRUE='#'
8531 CONVENIENCE_LTDL_FALSE=
8532fi
8533
8534
8535{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8536echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8537library_names_spec=
8538libname_spec='lib$name'
8539soname_spec=
8540shrext_cmds=".so"
8541postinstall_cmds=
8542postuninstall_cmds=
8543finish_cmds=
8544finish_eval=
8545shlibpath_var=
8546shlibpath_overrides_runpath=unknown
8547version_type=none
8548dynamic_linker="$host_os ld.so"
8549sys_lib_dlsearch_path_spec="/lib /usr/lib"
8550if test "$GCC" = yes; then
8551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8552 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8553 # if the path contains ";" then we assume it to be the separator
8554 # otherwise default to the standard path separator (i.e. ":") - it is
8555 # assumed that no part of a normal pathname contains ";" but that should
8556 # okay in the real world where ";" in dirpaths is itself problematic.
8557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8558 else
8559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8560 fi
8561else
8562 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8563fi
8564need_lib_prefix=unknown
8565hardcode_into_libs=no
8566
8567# when you set need_version to no, make sure it does not cause -set_version
8568# flags to be left without arguments
8569need_version=unknown
8570
8571case $host_os in
8572aix3*)
8573 version_type=linux
8574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8575 shlibpath_var=LIBPATH
8576
8577 # AIX 3 has no versioning support, so we append a major version to the name.
8578 soname_spec='${libname}${release}${shared_ext}$major'
8579 ;;
8580
8581aix4* | aix5*)
8582 version_type=linux
8583 need_lib_prefix=no
8584 need_version=no
8585 hardcode_into_libs=yes
8586 if test "$host_cpu" = ia64; then
8587 # AIX 5 supports IA64
8588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8589 shlibpath_var=LD_LIBRARY_PATH
8590 else
8591 # With GCC up to 2.95.x, collect2 would create an import file
8592 # for dependence libraries. The import file would start with
8593 # the line `#! .'. This would cause the generated library to
8594 # depend on `.', always an invalid library. This was fixed in
8595 # development snapshots of GCC prior to 3.0.
8596 case $host_os in
8597 aix4 | aix4.[01] | aix4.[01].*)
8598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8599 echo ' yes '
8600 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8601 :
8602 else
8603 can_build_shared=no
8604 fi
8605 ;;
8606 esac
8607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8608 # soname into executable. Probably we can add versioning support to
8609 # collect2, so additional links can be useful in future.
8610 if test "$aix_use_runtimelinking" = yes; then
8611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8612 # instead of lib<name>.a to let people know that these are not
8613 # typical AIX shared libraries.
8614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8615 else
8616 # We preserve .a as extension for shared libraries through AIX4.2
8617 # and later when we are not doing run time linking.
8618 library_names_spec='${libname}${release}.a $libname.a'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 fi
8621 shlibpath_var=LIBPATH
8622 fi
8623 ;;
8624
8625amigaos*)
8626 library_names_spec='$libname.ixlibrary $libname.a'
8627 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8628 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'
8629 ;;
8630
8631beos*)
8632 library_names_spec='${libname}${shared_ext}'
8633 dynamic_linker="$host_os ld.so"
8634 shlibpath_var=LIBRARY_PATH
8635 ;;
8636
8637bsdi[45]*)
8638 version_type=linux
8639 need_version=no
8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8641 soname_spec='${libname}${release}${shared_ext}$major'
8642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8643 shlibpath_var=LD_LIBRARY_PATH
8644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8646 # the default ld.so.conf also contains /usr/contrib/lib and
8647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8648 # libtool to hard-code these into programs
8649 ;;
8650
8651cygwin* | mingw* | pw32*)
8652 version_type=windows
8653 shrext_cmds=".dll"
8654 need_version=no
8655 need_lib_prefix=no
8656
8657 case $GCC,$host_os in
8658 yes,cygwin* | yes,mingw* | yes,pw32*)
8659 library_names_spec='$libname.dll.a'
8660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8661 postinstall_cmds='base_file=`basename \${file}`~
8662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8663 dldir=$destdir/`dirname \$dlpath`~
8664 test -d \$dldir || mkdir -p \$dldir~
8665 $install_prog $dir/$dlname \$dldir/$dlname~
8666 chmod a+x \$dldir/$dlname'
8667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8668 dlpath=$dir/\$dldll~
8669 $rm \$dlpath'
8670 shlibpath_overrides_runpath=yes
8671
8672 case $host_os in
8673 cygwin*)
8674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8677 ;;
8678 mingw*)
8679 # MinGW DLLs use traditional 'lib' prefix
8680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8683 # It is most probably a Windows format PATH printed by
8684 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8685 # path with ; separators, and with drive letters. We can handle the
8686 # drive letters (cygwin fileutils understands them), so leave them,
8687 # especially as we might pass files found there to a mingw objdump,
8688 # which wouldn't understand a cygwinified path. Ahh.
8689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8690 else
8691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8692 fi
8693 ;;
8694 pw32*)
8695 # pw32 DLLs use 'pw' prefix rather than 'lib'
8696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8697 ;;
8698 esac
8699 ;;
8700
8701 *)
8702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8703 ;;
8704 esac
8705 dynamic_linker='Win32 ld.exe'
8706 # FIXME: first we should search . and the directory the executable is in
8707 shlibpath_var=PATH
8708 ;;
8709
8710darwin* | rhapsody*)
8711 dynamic_linker="$host_os dyld"
8712 version_type=darwin
8713 need_lib_prefix=no
8714 need_version=no
8715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8716 soname_spec='${libname}${release}${major}$shared_ext'
8717 shlibpath_overrides_runpath=yes
8718 shlibpath_var=DYLD_LIBRARY_PATH
8719 shrext_cmds='.dylib'
8720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8721 if test "$GCC" = yes; then
8722 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"`
8723 else
8724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8725 fi
8726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8727 ;;
8728
8729dgux*)
8730 version_type=linux
8731 need_lib_prefix=no
8732 need_version=no
8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8734 soname_spec='${libname}${release}${shared_ext}$major'
8735 shlibpath_var=LD_LIBRARY_PATH
8736 ;;
8737
Rafael Espindola48381e52012-01-31 17:18:47 +00008738freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008739 dynamic_linker=no
8740 ;;
8741
8742kfreebsd*-gnu)
8743 version_type=linux
8744 need_lib_prefix=no
8745 need_version=no
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 shlibpath_overrides_runpath=no
8750 hardcode_into_libs=yes
8751 dynamic_linker='GNU ld.so'
8752 ;;
8753
8754freebsd* | dragonfly*)
8755 # DragonFly does not have aout. When/if they implement a new
8756 # versioning mechanism, adjust this.
8757 if test -x /usr/bin/objformat; then
8758 objformat=`/usr/bin/objformat`
8759 else
8760 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008761 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008762 *) objformat=elf ;;
8763 esac
8764 fi
8765 version_type=freebsd-$objformat
8766 case $version_type in
8767 freebsd-elf*)
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8769 need_version=no
8770 need_lib_prefix=no
8771 ;;
8772 freebsd-*)
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8774 need_version=yes
8775 ;;
8776 esac
8777 shlibpath_var=LD_LIBRARY_PATH
8778 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008779 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008780 shlibpath_overrides_runpath=yes
8781 ;;
8782 freebsd3.[01]* | freebsdelf3.[01]*)
8783 shlibpath_overrides_runpath=yes
8784 hardcode_into_libs=yes
8785 ;;
8786 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8787 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8788 shlibpath_overrides_runpath=no
8789 hardcode_into_libs=yes
8790 ;;
8791 freebsd*) # from 4.6 on
8792 shlibpath_overrides_runpath=yes
8793 hardcode_into_libs=yes
8794 ;;
8795 esac
8796 ;;
8797
8798gnu*)
8799 version_type=linux
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 hardcode_into_libs=yes
8806 ;;
8807
8808hpux9* | hpux10* | hpux11*)
8809 # Give a soname corresponding to the major version so that dld.sl refuses to
8810 # link against other versions.
8811 version_type=sunos
8812 need_lib_prefix=no
8813 need_version=no
8814 case $host_cpu in
8815 ia64*)
8816 shrext_cmds='.so'
8817 hardcode_into_libs=yes
8818 dynamic_linker="$host_os dld.so"
8819 shlibpath_var=LD_LIBRARY_PATH
8820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
8824 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8825 else
8826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8827 fi
8828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8829 ;;
8830 hppa*64*)
8831 shrext_cmds='.sl'
8832 hardcode_into_libs=yes
8833 dynamic_linker="$host_os dld.sl"
8834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8840 ;;
8841 *)
8842 shrext_cmds='.sl'
8843 dynamic_linker="$host_os dld.sl"
8844 shlibpath_var=SHLIB_PATH
8845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 ;;
8849 esac
8850 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8851 postinstall_cmds='chmod 555 $lib'
8852 ;;
8853
8854interix3*)
8855 version_type=linux
8856 need_lib_prefix=no
8857 need_version=no
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8861 shlibpath_var=LD_LIBRARY_PATH
8862 shlibpath_overrides_runpath=no
8863 hardcode_into_libs=yes
8864 ;;
8865
8866irix5* | irix6* | nonstopux*)
8867 case $host_os in
8868 nonstopux*) version_type=nonstopux ;;
8869 *)
8870 if test "$lt_cv_prog_gnu_ld" = yes; then
8871 version_type=linux
8872 else
8873 version_type=irix
8874 fi ;;
8875 esac
8876 need_lib_prefix=no
8877 need_version=no
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8880 case $host_os in
8881 irix5* | nonstopux*)
8882 libsuff= shlibsuff=
8883 ;;
8884 *)
8885 case $LD in # libtool.m4 will add one of these switches to LD
8886 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8887 libsuff= shlibsuff= libmagic=32-bit;;
8888 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8889 libsuff=32 shlibsuff=N32 libmagic=N32;;
8890 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8891 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8892 *) libsuff= shlibsuff= libmagic=never-match;;
8893 esac
8894 ;;
8895 esac
8896 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8897 shlibpath_overrides_runpath=no
8898 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8899 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8900 hardcode_into_libs=yes
8901 ;;
8902
8903# No shared lib support for Linux oldld, aout, or coff.
8904linux*oldld* | linux*aout* | linux*coff*)
8905 dynamic_linker=no
8906 ;;
8907
8908# This must be Linux ELF.
8909linux*)
8910 version_type=linux
8911 need_lib_prefix=no
8912 need_version=no
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=no
8918 # This implies no fast_install, which is unacceptable.
8919 # Some rework will be needed to allow for fast_install
8920 # before this can be enabled.
8921 hardcode_into_libs=yes
8922
8923 # Append ld.so.conf contents to the search path
8924 if test -f /etc/ld.so.conf; then
8925 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' ' '`
8926 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8927 fi
8928
8929 # We used to test for /lib/ld.so.1 and disable shared libraries on
8930 # powerpc, because MkLinux only supported shared libraries with the
8931 # GNU dynamic linker. Since this was broken with cross compilers,
8932 # most powerpc-linux boxes support dynamic linking these days and
8933 # people can always --disable-shared, the test was removed, and we
8934 # assume the GNU/Linux dynamic linker is in use.
8935 dynamic_linker='GNU/Linux ld.so'
8936 ;;
8937
8938knetbsd*-gnu)
8939 version_type=linux
8940 need_lib_prefix=no
8941 need_version=no
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=no
8946 hardcode_into_libs=yes
8947 dynamic_linker='GNU ld.so'
8948 ;;
8949
8950netbsd*)
8951 version_type=sunos
8952 need_lib_prefix=no
8953 need_version=no
8954 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8957 dynamic_linker='NetBSD (a.out) ld.so'
8958 else
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8961 dynamic_linker='NetBSD ld.elf_so'
8962 fi
8963 shlibpath_var=LD_LIBRARY_PATH
8964 shlibpath_overrides_runpath=yes
8965 hardcode_into_libs=yes
8966 ;;
8967
8968newsos6)
8969 version_type=linux
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=yes
8973 ;;
8974
8975nto-qnx*)
8976 version_type=linux
8977 need_lib_prefix=no
8978 need_version=no
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=yes
8983 ;;
8984
8985openbsd*)
8986 version_type=sunos
8987 sys_lib_dlsearch_path_spec="/usr/lib"
8988 need_lib_prefix=no
8989 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8990 case $host_os in
8991 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8992 *) need_version=no ;;
8993 esac
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8998 case $host_os in
8999 openbsd2.[89] | openbsd2.[89].*)
9000 shlibpath_overrides_runpath=no
9001 ;;
9002 *)
9003 shlibpath_overrides_runpath=yes
9004 ;;
9005 esac
9006 else
9007 shlibpath_overrides_runpath=yes
9008 fi
9009 ;;
9010
9011os2*)
9012 libname_spec='$name'
9013 shrext_cmds=".dll"
9014 need_lib_prefix=no
9015 library_names_spec='$libname${shared_ext} $libname.a'
9016 dynamic_linker='OS/2 ld.exe'
9017 shlibpath_var=LIBPATH
9018 ;;
9019
9020osf3* | osf4* | osf5*)
9021 version_type=osf
9022 need_lib_prefix=no
9023 need_version=no
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9028 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9029 ;;
9030
9031solaris*)
9032 version_type=linux
9033 need_lib_prefix=no
9034 need_version=no
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9040 # ldd complains unless libraries are executable
9041 postinstall_cmds='chmod +x $lib'
9042 ;;
9043
9044sunos4*)
9045 version_type=sunos
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9050 if test "$with_gnu_ld" = yes; then
9051 need_lib_prefix=no
9052 fi
9053 need_version=yes
9054 ;;
9055
9056sysv4 | sysv4.3*)
9057 version_type=linux
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 case $host_vendor in
9062 sni)
9063 shlibpath_overrides_runpath=no
9064 need_lib_prefix=no
9065 export_dynamic_flag_spec='${wl}-Blargedynsym'
9066 runpath_var=LD_RUN_PATH
9067 ;;
9068 siemens)
9069 need_lib_prefix=no
9070 ;;
9071 motorola)
9072 need_lib_prefix=no
9073 need_version=no
9074 shlibpath_overrides_runpath=no
9075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9076 ;;
9077 esac
9078 ;;
9079
9080sysv4*MP*)
9081 if test -d /usr/nec ;then
9082 version_type=linux
9083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9084 soname_spec='$libname${shared_ext}.$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 fi
9087 ;;
9088
9089sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9090 version_type=freebsd-elf
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 hardcode_into_libs=yes
9097 if test "$with_gnu_ld" = yes; then
9098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9099 shlibpath_overrides_runpath=no
9100 else
9101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9102 shlibpath_overrides_runpath=yes
9103 case $host_os in
9104 sco3.2v5*)
9105 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9106 ;;
9107 esac
9108 fi
9109 sys_lib_dlsearch_path_spec='/usr/lib'
9110 ;;
9111
9112uts4*)
9113 version_type=linux
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 ;;
9118
9119*)
9120 dynamic_linker=no
9121 ;;
9122esac
9123{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9124echo "${ECHO_T}$dynamic_linker" >&6; }
9125test "$dynamic_linker" = no && can_build_shared=no
9126
9127variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9128if test "$GCC" = yes; then
9129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9130fi
9131
9132
9133{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9134echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9135if test "${libltdl_cv_shlibext+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137else
9138
9139module=yes
9140eval libltdl_cv_shlibext=$shrext_cmds
9141
9142fi
9143{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9144echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9145if test -n "$libltdl_cv_shlibext"; then
9146
9147cat >>confdefs.h <<_ACEOF
9148#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9149_ACEOF
9150
9151fi
9152
9153
9154{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9155echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9156if test "${libltdl_cv_shlibpath_var+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158else
9159 libltdl_cv_shlibpath_var="$shlibpath_var"
9160fi
9161{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9162echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9163if test -n "$libltdl_cv_shlibpath_var"; then
9164
9165cat >>confdefs.h <<_ACEOF
9166#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9167_ACEOF
9168
9169fi
9170
9171
9172{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9173echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9174if test "${libltdl_cv_sys_search_path+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176else
9177 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9178fi
9179{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9180echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9181if test -n "$libltdl_cv_sys_search_path"; then
9182 sys_search_path=
9183 for dir in $libltdl_cv_sys_search_path; do
9184 if test -z "$sys_search_path"; then
9185 sys_search_path="$dir"
9186 else
9187 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9188 fi
9189 done
9190
9191cat >>confdefs.h <<_ACEOF
9192#define LTDL_SYSSEARCHPATH "$sys_search_path"
9193_ACEOF
9194
9195fi
9196
9197{ echo "$as_me:$LINENO: checking for objdir" >&5
9198echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9199if test "${libltdl_cv_objdir+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9201else
9202 libltdl_cv_objdir="$objdir"
9203 if test -n "$objdir"; then
9204 :
9205 else
9206 rm -f .libs 2>/dev/null
9207 mkdir .libs 2>/dev/null
9208 if test -d .libs; then
9209 libltdl_cv_objdir=.libs
9210 else
9211 # MS-DOS does not allow filenames that begin with a dot.
9212 libltdl_cv_objdir=_libs
9213 fi
9214 rmdir .libs 2>/dev/null
9215 fi
9216
9217fi
9218{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9219echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9220
9221cat >>confdefs.h <<_ACEOF
9222#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9223_ACEOF
9224
9225
9226
9227
9228
9229
9230# Check for command to grab the raw symbol name followed by C symbol from nm.
9231{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9232echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9233if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235else
9236
9237# These are sane defaults that work on at least a few old systems.
9238# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9239
9240# Character class describing NM global symbol codes.
9241symcode='[BCDEGRST]'
9242
9243# Regexp to match symbols that can be accessed directly from C.
9244sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9245
9246# Transform an extracted symbol line into a proper C declaration
9247lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9248
9249# Transform an extracted symbol line into symbol name and symbol address
9250lt_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'"
9251
9252# Define system-specific variables.
9253case $host_os in
9254aix*)
9255 symcode='[BCDT]'
9256 ;;
9257cygwin* | mingw* | pw32*)
9258 symcode='[ABCDGISTW]'
9259 ;;
9260hpux*) # Its linker distinguishes data from code symbols
9261 if test "$host_cpu" = ia64; then
9262 symcode='[ABCDEGRST]'
9263 fi
9264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9265 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'"
9266 ;;
9267linux*)
9268 if test "$host_cpu" = ia64; then
9269 symcode='[ABCDGIRSTW]'
9270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9271 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'"
9272 fi
9273 ;;
9274irix* | nonstopux*)
9275 symcode='[BCDEGRST]'
9276 ;;
9277osf*)
9278 symcode='[BCDEGQRST]'
9279 ;;
9280solaris*)
9281 symcode='[BDRT]'
9282 ;;
9283sco3.2v5*)
9284 symcode='[DT]'
9285 ;;
9286sysv4.2uw2*)
9287 symcode='[DT]'
9288 ;;
9289sysv5* | sco5v6* | unixware* | OpenUNIX*)
9290 symcode='[ABDT]'
9291 ;;
9292sysv4)
9293 symcode='[DFNSTU]'
9294 ;;
9295esac
9296
9297# Handle CRLF in mingw tool chain
9298opt_cr=
9299case $build_os in
9300mingw*)
9301 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9302 ;;
9303esac
9304
9305# If we're using GNU nm, then use its standard symbol codes.
9306case `$NM -V 2>&1` in
9307*GNU* | *'with BFD'*)
9308 symcode='[ABCDGIRSTW]' ;;
9309esac
9310
9311# Try without a prefix undercore, then with it.
9312for ac_symprfx in "" "_"; do
9313
9314 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9315 symxfrm="\\1 $ac_symprfx\\2 \\2"
9316
9317 # Write the raw and C identifiers.
9318 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9319
9320 # Check to see that the pipe works correctly.
9321 pipe_works=no
9322
9323 rm -f conftest*
9324 cat > conftest.$ac_ext <<EOF
9325#ifdef __cplusplus
9326extern "C" {
9327#endif
9328char nm_test_var;
9329void nm_test_func(){}
9330#ifdef __cplusplus
9331}
9332#endif
9333int main(){nm_test_var='a';nm_test_func();return(0);}
9334EOF
9335
9336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337 (eval $ac_compile) 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; then
9341 # Now try to grab the symbols.
9342 nlist=conftest.nm
9343 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9344 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && test -s "$nlist"; then
9348 # Try sorting and uniquifying the output.
9349 if sort "$nlist" | uniq > "$nlist"T; then
9350 mv -f "$nlist"T "$nlist"
9351 else
9352 rm -f "$nlist"T
9353 fi
9354
9355 # Make sure that we snagged all the symbols we need.
9356 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9357 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9358 cat <<EOF > conftest.$ac_ext
9359#ifdef __cplusplus
9360extern "C" {
9361#endif
9362
9363EOF
9364 # Now generate the symbol file.
9365 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9366
9367 cat <<EOF >> conftest.$ac_ext
9368#if defined (__STDC__) && __STDC__
9369# define lt_ptr_t void *
9370#else
9371# define lt_ptr_t char *
9372# define const
9373#endif
9374
9375/* The mapping between symbol names and symbols. */
9376const struct {
9377 const char *name;
9378 lt_ptr_t address;
9379}
9380lt_preloaded_symbols[] =
9381{
9382EOF
9383 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9384 cat <<\EOF >> conftest.$ac_ext
9385 {0, (lt_ptr_t) 0}
9386};
9387
9388#ifdef __cplusplus
9389}
9390#endif
9391EOF
9392 # Now try linking the two files.
9393 mv conftest.$ac_objext conftstm.$ac_objext
9394 lt_save_LIBS="$LIBS"
9395 lt_save_CFLAGS="$CFLAGS"
9396 LIBS="conftstm.$ac_objext"
9397 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399 (eval $ac_link) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9403 pipe_works=yes
9404 fi
9405 LIBS="$lt_save_LIBS"
9406 CFLAGS="$lt_save_CFLAGS"
9407 else
9408 echo "cannot find nm_test_func in $nlist" >&5
9409 fi
9410 else
9411 echo "cannot find nm_test_var in $nlist" >&5
9412 fi
9413 else
9414 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9415 fi
9416 else
9417 echo "$progname: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9419 fi
9420 rm -f conftest* conftst*
9421
9422 # Do not use the global_symbol_pipe unless it works.
9423 if test "$pipe_works" = yes; then
9424 break
9425 else
9426 lt_cv_sys_global_symbol_pipe=
9427 fi
9428done
9429
9430fi
9431
9432if test -z "$lt_cv_sys_global_symbol_pipe"; then
9433 lt_cv_sys_global_symbol_to_cdecl=
9434fi
9435if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9436 { echo "$as_me:$LINENO: result: failed" >&5
9437echo "${ECHO_T}failed" >&6; }
9438else
9439 { echo "$as_me:$LINENO: result: ok" >&5
9440echo "${ECHO_T}ok" >&6; }
9441fi
9442
9443
9444{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9445echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9446if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448else
9449 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9450 libltdl_cv_preloaded_symbols=yes
9451 else
9452 libltdl_cv_preloaded_symbols=no
9453 fi
9454
9455fi
9456{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9457echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9458if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9459
9460cat >>confdefs.h <<\_ACEOF
9461#define HAVE_PRELOADED_SYMBOLS 1
9462_ACEOF
9463
9464fi
9465
9466LIBADD_DL=
9467
9468ac_ext=c
9469ac_cpp='$CPP $CPPFLAGS'
9470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9472ac_compiler_gnu=$ac_cv_c_compiler_gnu
9473
9474
9475{ echo "$as_me:$LINENO: checking for shl_load" >&5
9476echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9477if test "${ac_cv_func_shl_load+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480 cat >conftest.$ac_ext <<_ACEOF
9481/* confdefs.h. */
9482_ACEOF
9483cat confdefs.h >>conftest.$ac_ext
9484cat >>conftest.$ac_ext <<_ACEOF
9485/* end confdefs.h. */
9486/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9488#define shl_load innocuous_shl_load
9489
9490/* System header to define __stub macros and hopefully few prototypes,
9491 which can conflict with char shl_load (); below.
9492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9493 <limits.h> exists even on freestanding compilers. */
9494
9495#ifdef __STDC__
9496# include <limits.h>
9497#else
9498# include <assert.h>
9499#endif
9500
9501#undef shl_load
9502
9503/* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9506#ifdef __cplusplus
9507extern "C"
9508#endif
9509char shl_load ();
9510/* The GNU C library defines this for functions which it implements
9511 to always fail with ENOSYS. Some functions are actually named
9512 something starting with __ and the normal name is an alias. */
9513#if defined __stub_shl_load || defined __stub___shl_load
9514choke me
9515#endif
9516
9517int
9518main ()
9519{
9520return shl_load ();
9521 ;
9522 return 0;
9523}
9524_ACEOF
9525rm -f conftest.$ac_objext conftest$ac_exeext
9526if { (ac_try="$ac_link"
9527case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530esac
9531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9540 { (case "(($ac_try" in
9541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542 *) ac_try_echo=$ac_try;;
9543esac
9544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545 (eval "$ac_try") 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest$ac_exeext'
9550 { (case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553esac
9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_try") 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_cv_func_shl_load=yes
9560else
9561 echo "$as_me: failed program was:" >&5
9562sed 's/^/| /' conftest.$ac_ext >&5
9563
9564 ac_cv_func_shl_load=no
9565fi
9566
9567rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9569fi
9570{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9571echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9572if test $ac_cv_func_shl_load = yes; then
9573
9574cat >>confdefs.h <<\_ACEOF
9575#define HAVE_SHL_LOAD 1
9576_ACEOF
9577
9578else
9579 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9580echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9581if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9583else
9584 ac_check_lib_save_LIBS=$LIBS
9585LIBS="-ldld $LIBS"
9586cat >conftest.$ac_ext <<_ACEOF
9587/* confdefs.h. */
9588_ACEOF
9589cat confdefs.h >>conftest.$ac_ext
9590cat >>conftest.$ac_ext <<_ACEOF
9591/* end confdefs.h. */
9592
9593/* Override any GCC internal prototype to avoid an error.
9594 Use char because int might match the return type of a GCC
9595 builtin and then its argument prototype would still apply. */
9596#ifdef __cplusplus
9597extern "C"
9598#endif
9599char shl_load ();
9600int
9601main ()
9602{
9603return shl_load ();
9604 ;
9605 return 0;
9606}
9607_ACEOF
9608rm -f conftest.$ac_objext conftest$ac_exeext
9609if { (ac_try="$ac_link"
9610case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613esac
9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9623 { (case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626esac
9627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_try") 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try='test -s conftest$ac_exeext'
9633 { (case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9636esac
9637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_try") 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; }; then
9642 ac_cv_lib_dld_shl_load=yes
9643else
9644 echo "$as_me: failed program was:" >&5
9645sed 's/^/| /' conftest.$ac_ext >&5
9646
9647 ac_cv_lib_dld_shl_load=no
9648fi
9649
9650rm -f core conftest.err conftest.$ac_objext \
9651 conftest$ac_exeext conftest.$ac_ext
9652LIBS=$ac_check_lib_save_LIBS
9653fi
9654{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9655echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9656if test $ac_cv_lib_dld_shl_load = yes; then
9657
9658cat >>confdefs.h <<\_ACEOF
9659#define HAVE_SHL_LOAD 1
9660_ACEOF
9661
9662 LIBADD_DL="$LIBADD_DL -ldld"
9663else
9664 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9665echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9666if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9668else
9669 ac_check_lib_save_LIBS=$LIBS
9670LIBS="-ldl $LIBS"
9671cat >conftest.$ac_ext <<_ACEOF
9672/* confdefs.h. */
9673_ACEOF
9674cat confdefs.h >>conftest.$ac_ext
9675cat >>conftest.$ac_ext <<_ACEOF
9676/* end confdefs.h. */
9677
9678/* Override any GCC internal prototype to avoid an error.
9679 Use char because int might match the return type of a GCC
9680 builtin and then its argument prototype would still apply. */
9681#ifdef __cplusplus
9682extern "C"
9683#endif
9684char dlopen ();
9685int
9686main ()
9687{
9688return dlopen ();
9689 ;
9690 return 0;
9691}
9692_ACEOF
9693rm -f conftest.$ac_objext conftest$ac_exeext
9694if { (ac_try="$ac_link"
9695case "(($ac_try" in
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9698esac
9699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_link") 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721esac
9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_lib_dl_dlopen=yes
9728else
9729 echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 ac_cv_lib_dl_dlopen=no
9733fi
9734
9735rm -f core conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9737LIBS=$ac_check_lib_save_LIBS
9738fi
9739{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9740echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9741if test $ac_cv_lib_dl_dlopen = yes; then
9742
9743cat >>confdefs.h <<\_ACEOF
9744#define HAVE_LIBDL 1
9745_ACEOF
9746
9747 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9748else
9749 cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h. */
9755#if HAVE_DLFCN_H
9756# include <dlfcn.h>
9757#endif
9758
9759int
9760main ()
9761{
9762dlopen(0, 0);
9763 ;
9764 return 0;
9765}
9766_ACEOF
9767rm -f conftest.$ac_objext conftest$ac_exeext
9768if { (ac_try="$ac_link"
9769case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772esac
9773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774 (eval "$ac_link") 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9782 { (case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785esac
9786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_try") 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795esac
9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_try") 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801
9802cat >>confdefs.h <<\_ACEOF
9803#define HAVE_LIBDL 1
9804_ACEOF
9805 libltdl_cv_func_dlopen="yes"
9806else
9807 echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9811echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9812if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814else
9815 ac_check_lib_save_LIBS=$LIBS
9816LIBS="-lsvld $LIBS"
9817cat >conftest.$ac_ext <<_ACEOF
9818/* confdefs.h. */
9819_ACEOF
9820cat confdefs.h >>conftest.$ac_ext
9821cat >>conftest.$ac_ext <<_ACEOF
9822/* end confdefs.h. */
9823
9824/* Override any GCC internal prototype to avoid an error.
9825 Use char because int might match the return type of a GCC
9826 builtin and then its argument prototype would still apply. */
9827#ifdef __cplusplus
9828extern "C"
9829#endif
9830char dlopen ();
9831int
9832main ()
9833{
9834return dlopen ();
9835 ;
9836 return 0;
9837}
9838_ACEOF
9839rm -f conftest.$ac_objext conftest$ac_exeext
9840if { (ac_try="$ac_link"
9841case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844esac
9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_link") 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857esac
9858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867esac
9868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_try") 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_cv_lib_svld_dlopen=yes
9874else
9875 echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
9878 ac_cv_lib_svld_dlopen=no
9879fi
9880
9881rm -f core conftest.err conftest.$ac_objext \
9882 conftest$ac_exeext conftest.$ac_ext
9883LIBS=$ac_check_lib_save_LIBS
9884fi
9885{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9886echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9887if test $ac_cv_lib_svld_dlopen = yes; then
9888
9889cat >>confdefs.h <<\_ACEOF
9890#define HAVE_LIBDL 1
9891_ACEOF
9892
9893 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9894else
9895 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9896echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9897if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899else
9900 ac_check_lib_save_LIBS=$LIBS
9901LIBS="-ldld $LIBS"
9902cat >conftest.$ac_ext <<_ACEOF
9903/* confdefs.h. */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h. */
9908
9909/* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply. */
9912#ifdef __cplusplus
9913extern "C"
9914#endif
9915char dld_link ();
9916int
9917main ()
9918{
9919return dld_link ();
9920 ;
9921 return 0;
9922}
9923_ACEOF
9924rm -f conftest.$ac_objext conftest$ac_exeext
9925if { (ac_try="$ac_link"
9926case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9929esac
9930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_link") 2>conftest.er1
9932 ac_status=$?
9933 grep -v '^ *+' conftest.er1 >conftest.err
9934 rm -f conftest.er1
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
9938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9948 { ac_try='test -s conftest$ac_exeext'
9949 { (case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952esac
9953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_try") 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 ac_cv_lib_dld_dld_link=yes
9959else
9960 echo "$as_me: failed program was:" >&5
9961sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 ac_cv_lib_dld_dld_link=no
9964fi
9965
9966rm -f core conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9968LIBS=$ac_check_lib_save_LIBS
9969fi
9970{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9971echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9972if test $ac_cv_lib_dld_dld_link = yes; then
9973
9974cat >>confdefs.h <<\_ACEOF
9975#define HAVE_DLD 1
9976_ACEOF
9977
9978 LIBADD_DL="$LIBADD_DL -ldld"
9979else
9980 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9981echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9982if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
9985 cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h. */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h. */
9991/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9993#define _dyld_func_lookup innocuous__dyld_func_lookup
9994
9995/* System header to define __stub macros and hopefully few prototypes,
9996 which can conflict with char _dyld_func_lookup (); below.
9997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9998 <limits.h> exists even on freestanding compilers. */
9999
10000#ifdef __STDC__
10001# include <limits.h>
10002#else
10003# include <assert.h>
10004#endif
10005
10006#undef _dyld_func_lookup
10007
10008/* Override any GCC internal prototype to avoid an error.
10009 Use char because int might match the return type of a GCC
10010 builtin and then its argument prototype would still apply. */
10011#ifdef __cplusplus
10012extern "C"
10013#endif
10014char _dyld_func_lookup ();
10015/* The GNU C library defines this for functions which it implements
10016 to always fail with ENOSYS. Some functions are actually named
10017 something starting with __ and the normal name is an alias. */
10018#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10019choke me
10020#endif
10021
10022int
10023main ()
10024{
10025return _dyld_func_lookup ();
10026 ;
10027 return 0;
10028}
10029_ACEOF
10030rm -f conftest.$ac_objext conftest$ac_exeext
10031if { (ac_try="$ac_link"
10032case "(($ac_try" in
10033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034 *) ac_try_echo=$ac_try;;
10035esac
10036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037 (eval "$ac_link") 2>conftest.er1
10038 ac_status=$?
10039 grep -v '^ *+' conftest.er1 >conftest.err
10040 rm -f conftest.er1
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
10044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10045 { (case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; } &&
10054 { ac_try='test -s conftest$ac_exeext'
10055 { (case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10058esac
10059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_try") 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_func__dyld_func_lookup=yes
10065else
10066 echo "$as_me: failed program was:" >&5
10067sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_cv_func__dyld_func_lookup=no
10070fi
10071
10072rm -f core conftest.err conftest.$ac_objext \
10073 conftest$ac_exeext conftest.$ac_ext
10074fi
10075{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10076echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10077if test $ac_cv_func__dyld_func_lookup = yes; then
10078
10079cat >>confdefs.h <<\_ACEOF
10080#define HAVE_DYLD 1
10081_ACEOF
10082
10083fi
10084
10085
10086fi
10087
10088
10089fi
10090
10091
10092fi
10093
10094rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096
10097fi
10098
10099
10100fi
10101
10102
10103fi
10104
10105
10106if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10107then
10108 lt_save_LIBS="$LIBS"
10109 LIBS="$LIBS $LIBADD_DL"
10110
10111for ac_func in dlerror
10112do
10113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10114{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118else
10119 cat >conftest.$ac_ext <<_ACEOF
10120/* confdefs.h. */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h. */
10125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127#define $ac_func innocuous_$ac_func
10128
10129/* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char $ac_func (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10133
10134#ifdef __STDC__
10135# include <limits.h>
10136#else
10137# include <assert.h>
10138#endif
10139
10140#undef $ac_func
10141
10142/* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
10145#ifdef __cplusplus
10146extern "C"
10147#endif
10148char $ac_func ();
10149/* The GNU C library defines this for functions which it implements
10150 to always fail with ENOSYS. Some functions are actually named
10151 something starting with __ and the normal name is an alias. */
10152#if defined __stub_$ac_func || defined __stub___$ac_func
10153choke me
10154#endif
10155
10156int
10157main ()
10158{
10159return $ac_func ();
10160 ;
10161 return 0;
10162}
10163_ACEOF
10164rm -f conftest.$ac_objext conftest$ac_exeext
10165if { (ac_try="$ac_link"
10166case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169esac
10170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_link") 2>conftest.er1
10172 ac_status=$?
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10179 { (case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182esac
10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_try") 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest$ac_exeext'
10189 { (case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10192esac
10193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_try") 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10198 eval "$as_ac_var=yes"
10199else
10200 echo "$as_me: failed program was:" >&5
10201sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 eval "$as_ac_var=no"
10204fi
10205
10206rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208fi
10209ac_res=`eval echo '${'$as_ac_var'}'`
10210 { echo "$as_me:$LINENO: result: $ac_res" >&5
10211echo "${ECHO_T}$ac_res" >&6; }
10212if test `eval echo '${'$as_ac_var'}'` = yes; then
10213 cat >>confdefs.h <<_ACEOF
10214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10215_ACEOF
10216
10217fi
10218done
10219
10220 LIBS="$lt_save_LIBS"
10221fi
10222ac_ext=c
10223ac_cpp='$CPP $CPPFLAGS'
10224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10226ac_compiler_gnu=$ac_cv_c_compiler_gnu
10227
10228
10229
10230{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10231echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10232if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235 ac_cv_sys_symbol_underscore=no
10236 cat > conftest.$ac_ext <<EOF
10237void nm_test_func(){}
10238int main(){nm_test_func;return 0;}
10239EOF
10240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; then
10245 # Now try to grab the symbols.
10246 ac_nlist=conftest.nm
10247 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10248 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && test -s "$ac_nlist"; then
10252 # See whether the symbols have a leading underscore.
10253 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10254 ac_cv_sys_symbol_underscore=yes
10255 else
10256 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10257 :
10258 else
10259 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10260 fi
10261 fi
10262 else
10263 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10264 fi
10265 else
10266 echo "configure: failed program was:" >&5
10267 cat conftest.c >&5
10268 fi
10269 rm -rf conftest*
10270
10271fi
10272{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10273echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10274
10275
10276if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10277 if test x"$libltdl_cv_func_dlopen" = xyes ||
10278 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10279 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10280echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10281if test "${libltdl_cv_need_uscore+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284 libltdl_cv_need_uscore=unknown
10285 save_LIBS="$LIBS"
10286 LIBS="$LIBS $LIBADD_DL"
10287 if test "$cross_compiling" = yes; then :
10288 libltdl_cv_need_uscore=cross
10289else
10290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10291 lt_status=$lt_dlunknown
10292 cat > conftest.$ac_ext <<EOF
Eric Christopherb2bc6e42012-03-26 02:09:01 +000010293#line 10293 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010294#include "confdefs.h"
10295
10296#if HAVE_DLFCN_H
10297#include <dlfcn.h>
10298#endif
10299
10300#include <stdio.h>
10301
10302#ifdef RTLD_GLOBAL
10303# define LT_DLGLOBAL RTLD_GLOBAL
10304#else
10305# ifdef DL_GLOBAL
10306# define LT_DLGLOBAL DL_GLOBAL
10307# else
10308# define LT_DLGLOBAL 0
10309# endif
10310#endif
10311
10312/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10313 find out it does not work in some platform. */
10314#ifndef LT_DLLAZY_OR_NOW
10315# ifdef RTLD_LAZY
10316# define LT_DLLAZY_OR_NOW RTLD_LAZY
10317# else
10318# ifdef DL_LAZY
10319# define LT_DLLAZY_OR_NOW DL_LAZY
10320# else
10321# ifdef RTLD_NOW
10322# define LT_DLLAZY_OR_NOW RTLD_NOW
10323# else
10324# ifdef DL_NOW
10325# define LT_DLLAZY_OR_NOW DL_NOW
10326# else
10327# define LT_DLLAZY_OR_NOW 0
10328# endif
10329# endif
10330# endif
10331# endif
10332#endif
10333
10334#ifdef __cplusplus
10335extern "C" void exit (int);
10336#endif
10337
10338void fnord() { int i=42;}
10339int main ()
10340{
10341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10342 int status = $lt_dlunknown;
10343
10344 if (self)
10345 {
10346 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10347 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10348 /* dlclose (self); */
10349 }
10350 else
10351 puts (dlerror ());
10352
10353 exit (status);
10354}
10355EOF
10356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357 (eval $ac_link) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10361 (./conftest; exit; ) >&5 2>/dev/null
10362 lt_status=$?
10363 case x$lt_status in
10364 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10365 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10366 x$lt_dlunknown|x*) ;;
10367 esac
10368 else :
10369 # compilation failed
10370
10371 fi
10372fi
10373rm -fr conftest*
10374
10375 LIBS="$save_LIBS"
10376
10377fi
10378{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10379echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10380 fi
10381fi
10382
10383if test x"$libltdl_cv_need_uscore" = xyes; then
10384
10385cat >>confdefs.h <<\_ACEOF
10386#define NEED_USCORE 1
10387_ACEOF
10388
10389fi
10390
10391
10392{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10393echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10394if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10396else
10397 # PORTME does your system automatically load deplibs for dlopen?
10398 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10399 # For now, we just catch OSes we know something about -- in the
10400 # future, we'll try test this programmatically.
10401 libltdl_cv_sys_dlopen_deplibs=unknown
10402 case "$host_os" in
10403 aix3*|aix4.1.*|aix4.2.*)
10404 # Unknown whether this is true for these versions of AIX, but
10405 # we want this `case' here to explicitly catch those versions.
10406 libltdl_cv_sys_dlopen_deplibs=unknown
10407 ;;
10408 aix[45]*)
10409 libltdl_cv_sys_dlopen_deplibs=yes
10410 ;;
10411 darwin*)
10412 # Assuming the user has installed a libdl from somewhere, this is true
10413 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10414 libltdl_cv_sys_dlopen_deplibs=yes
10415 ;;
10416 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10417 # GNU and its variants, using gnu ld.so (Glibc)
10418 libltdl_cv_sys_dlopen_deplibs=yes
10419 ;;
10420 hpux10*|hpux11*)
10421 libltdl_cv_sys_dlopen_deplibs=yes
10422 ;;
10423 interix*)
10424 libltdl_cv_sys_dlopen_deplibs=yes
10425 ;;
10426 irix[12345]*|irix6.[01]*)
10427 # Catch all versions of IRIX before 6.2, and indicate that we don't
10428 # know how it worked for any of those versions.
10429 libltdl_cv_sys_dlopen_deplibs=unknown
10430 ;;
10431 irix*)
10432 # The case above catches anything before 6.2, and it's known that
10433 # at 6.2 and later dlopen does load deplibs.
10434 libltdl_cv_sys_dlopen_deplibs=yes
10435 ;;
10436 netbsd*)
10437 libltdl_cv_sys_dlopen_deplibs=yes
10438 ;;
10439 openbsd*)
10440 libltdl_cv_sys_dlopen_deplibs=yes
10441 ;;
10442 osf[1234]*)
10443 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10444 # it did *not* use an RPATH in a shared library to find objects the
10445 # library depends on, so we explicitly say `no'.
10446 libltdl_cv_sys_dlopen_deplibs=no
10447 ;;
10448 osf5.0|osf5.0a|osf5.1)
10449 # dlopen *does* load deplibs and with the right loader patch applied
10450 # it even uses RPATH in a shared library to search for shared objects
10451 # that the library depends on, but there's no easy way to know if that
10452 # patch is installed. Since this is the case, all we can really
10453 # say is unknown -- it depends on the patch being installed. If
10454 # it is, this changes to `yes'. Without it, it would be `no'.
10455 libltdl_cv_sys_dlopen_deplibs=unknown
10456 ;;
10457 osf*)
10458 # the two cases above should catch all versions of osf <= 5.1. Read
10459 # the comments above for what we know about them.
10460 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10461 # is used to find them so we can finally say `yes'.
10462 libltdl_cv_sys_dlopen_deplibs=yes
10463 ;;
10464 solaris*)
10465 libltdl_cv_sys_dlopen_deplibs=yes
10466 ;;
10467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10468 libltdl_cv_sys_dlopen_deplibs=yes
10469 ;;
10470 esac
10471
10472fi
10473{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10474echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10475if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10476
10477cat >>confdefs.h <<\_ACEOF
10478#define LTDL_DLOPEN_DEPLIBS 1
10479_ACEOF
10480
10481fi
10482
10483
10484for ac_header in argz.h
10485do
10486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492fi
10493ac_res=`eval echo '${'$as_ac_Header'}'`
10494 { echo "$as_me:$LINENO: result: $ac_res" >&5
10495echo "${ECHO_T}$ac_res" >&6; }
10496else
10497 # Is the header compilable?
10498{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10500cat >conftest.$ac_ext <<_ACEOF
10501/* confdefs.h. */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h. */
10506$ac_includes_default
10507#include <$ac_header>
10508_ACEOF
10509rm -f conftest.$ac_objext
10510if { (ac_try="$ac_compile"
10511case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514esac
10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_compile") 2>conftest.er1
10517 ac_status=$?
10518 grep -v '^ *+' conftest.er1 >conftest.err
10519 rm -f conftest.er1
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524 { (case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_try") 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest.$ac_objext'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537esac
10538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_try") 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_header_compiler=yes
10544else
10545 echo "$as_me: failed program was:" >&5
10546sed 's/^/| /' conftest.$ac_ext >&5
10547
10548 ac_header_compiler=no
10549fi
10550
10551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10553echo "${ECHO_T}$ac_header_compiler" >&6; }
10554
10555# Is the header present?
10556{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10557echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10558cat >conftest.$ac_ext <<_ACEOF
10559/* confdefs.h. */
10560_ACEOF
10561cat confdefs.h >>conftest.$ac_ext
10562cat >>conftest.$ac_ext <<_ACEOF
10563/* end confdefs.h. */
10564#include <$ac_header>
10565_ACEOF
10566if { (ac_try="$ac_cpp conftest.$ac_ext"
10567case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570esac
10571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } >/dev/null; then
10579 if test -s conftest.err; then
10580 ac_cpp_err=$ac_c_preproc_warn_flag
10581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10582 else
10583 ac_cpp_err=
10584 fi
10585else
10586 ac_cpp_err=yes
10587fi
10588if test -z "$ac_cpp_err"; then
10589 ac_header_preproc=yes
10590else
10591 echo "$as_me: failed program was:" >&5
10592sed 's/^/| /' conftest.$ac_ext >&5
10593
10594 ac_header_preproc=no
10595fi
10596
10597rm -f conftest.err conftest.$ac_ext
10598{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10599echo "${ECHO_T}$ac_header_preproc" >&6; }
10600
10601# So? What about this header?
10602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10603 yes:no: )
10604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10608 ac_header_preproc=yes
10609 ;;
10610 no:yes:* )
10611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10614echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10618echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10623 ( cat <<\_ASBOX
10624## ------------------------------ ##
10625## Report this to bugs@yourdomain ##
10626## ------------------------------ ##
10627_ASBOX
10628 ) | sed "s/^/$as_me: WARNING: /" >&2
10629 ;;
10630esac
10631{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635else
10636 eval "$as_ac_Header=\$ac_header_preproc"
10637fi
10638ac_res=`eval echo '${'$as_ac_Header'}'`
10639 { echo "$as_me:$LINENO: result: $ac_res" >&5
10640echo "${ECHO_T}$ac_res" >&6; }
10641
10642fi
10643if test `eval echo '${'$as_ac_Header'}'` = yes; then
10644 cat >>confdefs.h <<_ACEOF
10645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10646_ACEOF
10647
10648fi
10649
10650done
10651
10652
10653{ echo "$as_me:$LINENO: checking for error_t" >&5
10654echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10655if test "${ac_cv_type_error_t+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10657else
10658 cat >conftest.$ac_ext <<_ACEOF
10659/* confdefs.h. */
10660_ACEOF
10661cat confdefs.h >>conftest.$ac_ext
10662cat >>conftest.$ac_ext <<_ACEOF
10663/* end confdefs.h. */
10664#if HAVE_ARGZ_H
10665# include <argz.h>
10666#endif
10667
10668typedef error_t ac__type_new_;
10669int
10670main ()
10671{
10672if ((ac__type_new_ *) 0)
10673 return 0;
10674if (sizeof (ac__type_new_))
10675 return 0;
10676 ;
10677 return 0;
10678}
10679_ACEOF
10680rm -f conftest.$ac_objext
10681if { (ac_try="$ac_compile"
10682case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10685esac
10686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_compile") 2>conftest.er1
10688 ac_status=$?
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } &&
10694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10695 { (case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10698esac
10699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_try") 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; } &&
10704 { ac_try='test -s conftest.$ac_objext'
10705 { (case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708esac
10709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_try") 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_cv_type_error_t=yes
10715else
10716 echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719 ac_cv_type_error_t=no
10720fi
10721
10722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723fi
10724{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10725echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10726if test $ac_cv_type_error_t = yes; then
10727
10728cat >>confdefs.h <<_ACEOF
10729#define HAVE_ERROR_T 1
10730_ACEOF
10731
10732
10733else
10734
10735cat >>confdefs.h <<\_ACEOF
10736#define error_t int
10737_ACEOF
10738
10739fi
10740
10741
10742
10743
10744
10745
10746
10747for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10748do
10749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754else
10755 cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10763#define $ac_func innocuous_$ac_func
10764
10765/* System header to define __stub macros and hopefully few prototypes,
10766 which can conflict with char $ac_func (); below.
10767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768 <limits.h> exists even on freestanding compilers. */
10769
10770#ifdef __STDC__
10771# include <limits.h>
10772#else
10773# include <assert.h>
10774#endif
10775
10776#undef $ac_func
10777
10778/* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10781#ifdef __cplusplus
10782extern "C"
10783#endif
10784char $ac_func ();
10785/* The GNU C library defines this for functions which it implements
10786 to always fail with ENOSYS. Some functions are actually named
10787 something starting with __ and the normal name is an alias. */
10788#if defined __stub_$ac_func || defined __stub___$ac_func
10789choke me
10790#endif
10791
10792int
10793main ()
10794{
10795return $ac_func ();
10796 ;
10797 return 0;
10798}
10799_ACEOF
10800rm -f conftest.$ac_objext conftest$ac_exeext
10801if { (ac_try="$ac_link"
10802case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805esac
10806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_link") 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10818esac
10819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest$ac_exeext'
10825 { (case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_try") 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 eval "$as_ac_var=yes"
10835else
10836 echo "$as_me: failed program was:" >&5
10837sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 eval "$as_ac_var=no"
10840fi
10841
10842rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10844fi
10845ac_res=`eval echo '${'$as_ac_var'}'`
10846 { echo "$as_me:$LINENO: result: $ac_res" >&5
10847echo "${ECHO_T}$ac_res" >&6; }
10848if test `eval echo '${'$as_ac_var'}'` = yes; then
10849 cat >>confdefs.h <<_ACEOF
10850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10851_ACEOF
10852
10853fi
10854done
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10884 stdio.h unistd.h
10885do
10886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10892fi
10893ac_res=`eval echo '${'$as_ac_Header'}'`
10894 { echo "$as_me:$LINENO: result: $ac_res" >&5
10895echo "${ECHO_T}$ac_res" >&6; }
10896else
10897 # Is the header compilable?
10898{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10900cat >conftest.$ac_ext <<_ACEOF
10901/* confdefs.h. */
10902_ACEOF
10903cat confdefs.h >>conftest.$ac_ext
10904cat >>conftest.$ac_ext <<_ACEOF
10905/* end confdefs.h. */
10906$ac_includes_default
10907#include <$ac_header>
10908_ACEOF
10909rm -f conftest.$ac_objext
10910if { (ac_try="$ac_compile"
10911case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914esac
10915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_compile") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10924 { (case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927esac
10928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_try") 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest.$ac_objext'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 ac_header_compiler=yes
10944else
10945 echo "$as_me: failed program was:" >&5
10946sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 ac_header_compiler=no
10949fi
10950
10951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10953echo "${ECHO_T}$ac_header_compiler" >&6; }
10954
10955# Is the header present?
10956{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10958cat >conftest.$ac_ext <<_ACEOF
10959/* confdefs.h. */
10960_ACEOF
10961cat confdefs.h >>conftest.$ac_ext
10962cat >>conftest.$ac_ext <<_ACEOF
10963/* end confdefs.h. */
10964#include <$ac_header>
10965_ACEOF
10966if { (ac_try="$ac_cpp conftest.$ac_ext"
10967case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970esac
10971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10973 ac_status=$?
10974 grep -v '^ *+' conftest.er1 >conftest.err
10975 rm -f conftest.er1
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } >/dev/null; then
10979 if test -s conftest.err; then
10980 ac_cpp_err=$ac_c_preproc_warn_flag
10981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10982 else
10983 ac_cpp_err=
10984 fi
10985else
10986 ac_cpp_err=yes
10987fi
10988if test -z "$ac_cpp_err"; then
10989 ac_header_preproc=yes
10990else
10991 echo "$as_me: failed program was:" >&5
10992sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 ac_header_preproc=no
10995fi
10996
10997rm -f conftest.err conftest.$ac_ext
10998{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10999echo "${ECHO_T}$ac_header_preproc" >&6; }
11000
11001# So? What about this header?
11002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11003 yes:no: )
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11005echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11007echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11008 ac_header_preproc=yes
11009 ;;
11010 no:yes:* )
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11012echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11014echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11016echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11018echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11020echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11022echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11023 ( cat <<\_ASBOX
11024## ------------------------------ ##
11025## Report this to bugs@yourdomain ##
11026## ------------------------------ ##
11027_ASBOX
11028 ) | sed "s/^/$as_me: WARNING: /" >&2
11029 ;;
11030esac
11031{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035else
11036 eval "$as_ac_Header=\$ac_header_preproc"
11037fi
11038ac_res=`eval echo '${'$as_ac_Header'}'`
11039 { echo "$as_me:$LINENO: result: $ac_res" >&5
11040echo "${ECHO_T}$ac_res" >&6; }
11041
11042fi
11043if test `eval echo '${'$as_ac_Header'}'` = yes; then
11044 cat >>confdefs.h <<_ACEOF
11045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11046_ACEOF
11047
11048fi
11049
11050done
11051
11052
11053
11054
11055
11056for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11057do
11058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064fi
11065ac_res=`eval echo '${'$as_ac_Header'}'`
11066 { echo "$as_me:$LINENO: result: $ac_res" >&5
11067echo "${ECHO_T}$ac_res" >&6; }
11068else
11069 # Is the header compilable?
11070{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11072cat >conftest.$ac_ext <<_ACEOF
11073/* confdefs.h. */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h. */
11078$ac_includes_default
11079#include <$ac_header>
11080_ACEOF
11081rm -f conftest.$ac_objext
11082if { (ac_try="$ac_compile"
11083case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086esac
11087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_compile") 2>conftest.er1
11089 ac_status=$?
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } &&
11095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11096 { (case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099esac
11100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_try") 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_header_compiler=yes
11116else
11117 echo "$as_me: failed program was:" >&5
11118sed 's/^/| /' conftest.$ac_ext >&5
11119
11120 ac_header_compiler=no
11121fi
11122
11123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11125echo "${ECHO_T}$ac_header_compiler" >&6; }
11126
11127# Is the header present?
11128{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11130cat >conftest.$ac_ext <<_ACEOF
11131/* confdefs.h. */
11132_ACEOF
11133cat confdefs.h >>conftest.$ac_ext
11134cat >>conftest.$ac_ext <<_ACEOF
11135/* end confdefs.h. */
11136#include <$ac_header>
11137_ACEOF
11138if { (ac_try="$ac_cpp conftest.$ac_ext"
11139case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11142esac
11143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11145 ac_status=$?
11146 grep -v '^ *+' conftest.er1 >conftest.err
11147 rm -f conftest.er1
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } >/dev/null; then
11151 if test -s conftest.err; then
11152 ac_cpp_err=$ac_c_preproc_warn_flag
11153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11154 else
11155 ac_cpp_err=
11156 fi
11157else
11158 ac_cpp_err=yes
11159fi
11160if test -z "$ac_cpp_err"; then
11161 ac_header_preproc=yes
11162else
11163 echo "$as_me: failed program was:" >&5
11164sed 's/^/| /' conftest.$ac_ext >&5
11165
11166 ac_header_preproc=no
11167fi
11168
11169rm -f conftest.err conftest.$ac_ext
11170{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11171echo "${ECHO_T}$ac_header_preproc" >&6; }
11172
11173# So? What about this header?
11174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11175 yes:no: )
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11177echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11179echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11180 ac_header_preproc=yes
11181 ;;
11182 no:yes:* )
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11184echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11186echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11188echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11190echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11194echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11195 ( cat <<\_ASBOX
11196## ------------------------------ ##
11197## Report this to bugs@yourdomain ##
11198## ------------------------------ ##
11199_ASBOX
11200 ) | sed "s/^/$as_me: WARNING: /" >&2
11201 ;;
11202esac
11203{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208 eval "$as_ac_Header=\$ac_header_preproc"
11209fi
11210ac_res=`eval echo '${'$as_ac_Header'}'`
11211 { echo "$as_me:$LINENO: result: $ac_res" >&5
11212echo "${ECHO_T}$ac_res" >&6; }
11213
11214fi
11215if test `eval echo '${'$as_ac_Header'}'` = yes; then
11216 cat >>confdefs.h <<_ACEOF
11217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11218_ACEOF
11219
11220fi
11221
11222done
11223
11224
11225
11226for ac_header in string.h strings.h
11227do
11228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234fi
11235ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237echo "${ECHO_T}$ac_res" >&6; }
11238else
11239 # Is the header compilable?
11240{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11242cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_includes_default
11249#include <$ac_header>
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (ac_try="$ac_compile"
11253case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279esac
11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_header_compiler=yes
11286else
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_header_compiler=no
11291fi
11292
11293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295echo "${ECHO_T}$ac_header_compiler" >&6; }
11296
11297# Is the header present?
11298{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11300cat >conftest.$ac_ext <<_ACEOF
11301/* confdefs.h. */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h. */
11306#include <$ac_header>
11307_ACEOF
11308if { (ac_try="$ac_cpp conftest.$ac_ext"
11309case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312esac
11313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } >/dev/null; then
11321 if test -s conftest.err; then
11322 ac_cpp_err=$ac_c_preproc_warn_flag
11323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11324 else
11325 ac_cpp_err=
11326 fi
11327else
11328 ac_cpp_err=yes
11329fi
11330if test -z "$ac_cpp_err"; then
11331 ac_header_preproc=yes
11332else
11333 echo "$as_me: failed program was:" >&5
11334sed 's/^/| /' conftest.$ac_ext >&5
11335
11336 ac_header_preproc=no
11337fi
11338
11339rm -f conftest.err conftest.$ac_ext
11340{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11341echo "${ECHO_T}$ac_header_preproc" >&6; }
11342
11343# So? What about this header?
11344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345 yes:no: )
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11350 ac_header_preproc=yes
11351 ;;
11352 no:yes:* )
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11365 ( cat <<\_ASBOX
11366## ------------------------------ ##
11367## Report this to bugs@yourdomain ##
11368## ------------------------------ ##
11369_ASBOX
11370 ) | sed "s/^/$as_me: WARNING: /" >&2
11371 ;;
11372esac
11373{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 eval "$as_ac_Header=\$ac_header_preproc"
11379fi
11380ac_res=`eval echo '${'$as_ac_Header'}'`
11381 { echo "$as_me:$LINENO: result: $ac_res" >&5
11382echo "${ECHO_T}$ac_res" >&6; }
11383
11384fi
11385if test `eval echo '${'$as_ac_Header'}'` = yes; then
11386 cat >>confdefs.h <<_ACEOF
11387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11388_ACEOF
11389 break
11390fi
11391
11392done
11393
11394
11395
11396
11397for ac_func in strchr index
11398do
11399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11400{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11402if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11413#define $ac_func innocuous_$ac_func
11414
11415/* System header to define __stub macros and hopefully few prototypes,
11416 which can conflict with char $ac_func (); below.
11417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11418 <limits.h> exists even on freestanding compilers. */
11419
11420#ifdef __STDC__
11421# include <limits.h>
11422#else
11423# include <assert.h>
11424#endif
11425
11426#undef $ac_func
11427
11428/* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11431#ifdef __cplusplus
11432extern "C"
11433#endif
11434char $ac_func ();
11435/* The GNU C library defines this for functions which it implements
11436 to always fail with ENOSYS. Some functions are actually named
11437 something starting with __ and the normal name is an alias. */
11438#if defined __stub_$ac_func || defined __stub___$ac_func
11439choke me
11440#endif
11441
11442int
11443main ()
11444{
11445return $ac_func ();
11446 ;
11447 return 0;
11448}
11449_ACEOF
11450rm -f conftest.$ac_objext conftest$ac_exeext
11451if { (ac_try="$ac_link"
11452case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455esac
11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_link") 2>conftest.er1
11458 ac_status=$?
11459 grep -v '^ *+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11465 { (case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468esac
11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_try") 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest$ac_exeext'
11475 { (case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478esac
11479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_try") 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 eval "$as_ac_var=yes"
11485else
11486 echo "$as_me: failed program was:" >&5
11487sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 eval "$as_ac_var=no"
11490fi
11491
11492rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494fi
11495ac_res=`eval echo '${'$as_ac_var'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497echo "${ECHO_T}$ac_res" >&6; }
11498if test `eval echo '${'$as_ac_var'}'` = yes; then
11499 cat >>confdefs.h <<_ACEOF
11500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11501_ACEOF
11502 break
11503fi
11504done
11505
11506
11507
11508for ac_func in strrchr rindex
11509do
11510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515else
11516 cat >conftest.$ac_ext <<_ACEOF
11517/* confdefs.h. */
11518_ACEOF
11519cat confdefs.h >>conftest.$ac_ext
11520cat >>conftest.$ac_ext <<_ACEOF
11521/* end confdefs.h. */
11522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11524#define $ac_func innocuous_$ac_func
11525
11526/* System header to define __stub macros and hopefully few prototypes,
11527 which can conflict with char $ac_func (); below.
11528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11529 <limits.h> exists even on freestanding compilers. */
11530
11531#ifdef __STDC__
11532# include <limits.h>
11533#else
11534# include <assert.h>
11535#endif
11536
11537#undef $ac_func
11538
11539/* Override any GCC internal prototype to avoid an error.
11540 Use char because int might match the return type of a GCC
11541 builtin and then its argument prototype would still apply. */
11542#ifdef __cplusplus
11543extern "C"
11544#endif
11545char $ac_func ();
11546/* The GNU C library defines this for functions which it implements
11547 to always fail with ENOSYS. Some functions are actually named
11548 something starting with __ and the normal name is an alias. */
11549#if defined __stub_$ac_func || defined __stub___$ac_func
11550choke me
11551#endif
11552
11553int
11554main ()
11555{
11556return $ac_func ();
11557 ;
11558 return 0;
11559}
11560_ACEOF
11561rm -f conftest.$ac_objext conftest$ac_exeext
11562if { (ac_try="$ac_link"
11563case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566esac
11567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_link") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11576 { (case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579esac
11580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_try") 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; } &&
11585 { ac_try='test -s conftest$ac_exeext'
11586 { (case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11589esac
11590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_try") 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 eval "$as_ac_var=yes"
11596else
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
11600 eval "$as_ac_var=no"
11601fi
11602
11603rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605fi
11606ac_res=`eval echo '${'$as_ac_var'}'`
11607 { echo "$as_me:$LINENO: result: $ac_res" >&5
11608echo "${ECHO_T}$ac_res" >&6; }
11609if test `eval echo '${'$as_ac_var'}'` = yes; then
11610 cat >>confdefs.h <<_ACEOF
11611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11612_ACEOF
11613 break
11614fi
11615done
11616
11617
11618
11619for ac_func in memcpy bcopy
11620do
11621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11622{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11624if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626else
11627 cat >conftest.$ac_ext <<_ACEOF
11628/* confdefs.h. */
11629_ACEOF
11630cat confdefs.h >>conftest.$ac_ext
11631cat >>conftest.$ac_ext <<_ACEOF
11632/* end confdefs.h. */
11633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11635#define $ac_func innocuous_$ac_func
11636
11637/* System header to define __stub macros and hopefully few prototypes,
11638 which can conflict with char $ac_func (); below.
11639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11640 <limits.h> exists even on freestanding compilers. */
11641
11642#ifdef __STDC__
11643# include <limits.h>
11644#else
11645# include <assert.h>
11646#endif
11647
11648#undef $ac_func
11649
11650/* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11653#ifdef __cplusplus
11654extern "C"
11655#endif
11656char $ac_func ();
11657/* The GNU C library defines this for functions which it implements
11658 to always fail with ENOSYS. Some functions are actually named
11659 something starting with __ and the normal name is an alias. */
11660#if defined __stub_$ac_func || defined __stub___$ac_func
11661choke me
11662#endif
11663
11664int
11665main ()
11666{
11667return $ac_func ();
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672rm -f conftest.$ac_objext conftest$ac_exeext
11673if { (ac_try="$ac_link"
11674case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677esac
11678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_link") 2>conftest.er1
11680 ac_status=$?
11681 grep -v '^ *+' conftest.er1 >conftest.err
11682 rm -f conftest.er1
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } &&
11686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11687 { (case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690esac
11691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_try") 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; } &&
11696 { ac_try='test -s conftest$ac_exeext'
11697 { (case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700esac
11701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_try") 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 eval "$as_ac_var=yes"
11707else
11708 echo "$as_me: failed program was:" >&5
11709sed 's/^/| /' conftest.$ac_ext >&5
11710
11711 eval "$as_ac_var=no"
11712fi
11713
11714rm -f core conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11716fi
11717ac_res=`eval echo '${'$as_ac_var'}'`
11718 { echo "$as_me:$LINENO: result: $ac_res" >&5
11719echo "${ECHO_T}$ac_res" >&6; }
11720if test `eval echo '${'$as_ac_var'}'` = yes; then
11721 cat >>confdefs.h <<_ACEOF
11722#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11723_ACEOF
11724 break
11725fi
11726done
11727
11728
11729
11730for ac_func in memmove strcmp
11731do
11732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11733{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11735if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737else
11738 cat >conftest.$ac_ext <<_ACEOF
11739/* confdefs.h. */
11740_ACEOF
11741cat confdefs.h >>conftest.$ac_ext
11742cat >>conftest.$ac_ext <<_ACEOF
11743/* end confdefs.h. */
11744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11746#define $ac_func innocuous_$ac_func
11747
11748/* System header to define __stub macros and hopefully few prototypes,
11749 which can conflict with char $ac_func (); below.
11750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11751 <limits.h> exists even on freestanding compilers. */
11752
11753#ifdef __STDC__
11754# include <limits.h>
11755#else
11756# include <assert.h>
11757#endif
11758
11759#undef $ac_func
11760
11761/* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
11764#ifdef __cplusplus
11765extern "C"
11766#endif
11767char $ac_func ();
11768/* The GNU C library defines this for functions which it implements
11769 to always fail with ENOSYS. Some functions are actually named
11770 something starting with __ and the normal name is an alias. */
11771#if defined __stub_$ac_func || defined __stub___$ac_func
11772choke me
11773#endif
11774
11775int
11776main ()
11777{
11778return $ac_func ();
11779 ;
11780 return 0;
11781}
11782_ACEOF
11783rm -f conftest.$ac_objext conftest$ac_exeext
11784if { (ac_try="$ac_link"
11785case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788esac
11789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_link") 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11798 { (case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801esac
11802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_try") 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest$ac_exeext'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 eval "$as_ac_var=yes"
11818else
11819 echo "$as_me: failed program was:" >&5
11820sed 's/^/| /' conftest.$ac_ext >&5
11821
11822 eval "$as_ac_var=no"
11823fi
11824
11825rm -f core conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827fi
11828ac_res=`eval echo '${'$as_ac_var'}'`
11829 { echo "$as_me:$LINENO: result: $ac_res" >&5
11830echo "${ECHO_T}$ac_res" >&6; }
11831if test `eval echo '${'$as_ac_var'}'` = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11834_ACEOF
11835
11836fi
11837done
11838
11839
11840
11841
11842for ac_func in closedir opendir readdir
11843do
11844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11845{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11847if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849else
11850 cat >conftest.$ac_ext <<_ACEOF
11851/* confdefs.h. */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h. */
11856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11858#define $ac_func innocuous_$ac_func
11859
11860/* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func (); below.
11862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11863 <limits.h> exists even on freestanding compilers. */
11864
11865#ifdef __STDC__
11866# include <limits.h>
11867#else
11868# include <assert.h>
11869#endif
11870
11871#undef $ac_func
11872
11873/* Override any GCC internal prototype to avoid an error.
11874 Use char because int might match the return type of a GCC
11875 builtin and then its argument prototype would still apply. */
11876#ifdef __cplusplus
11877extern "C"
11878#endif
11879char $ac_func ();
11880/* The GNU C library defines this for functions which it implements
11881 to always fail with ENOSYS. Some functions are actually named
11882 something starting with __ and the normal name is an alias. */
11883#if defined __stub_$ac_func || defined __stub___$ac_func
11884choke me
11885#endif
11886
11887int
11888main ()
11889{
11890return $ac_func ();
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895rm -f conftest.$ac_objext conftest$ac_exeext
11896if { (ac_try="$ac_link"
11897case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900esac
11901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_link") 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11910 { (case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913esac
11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_try") 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try='test -s conftest$ac_exeext'
11920 { (case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923esac
11924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_try") 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 eval "$as_ac_var=yes"
11930else
11931 echo "$as_me: failed program was:" >&5
11932sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 eval "$as_ac_var=no"
11935fi
11936
11937rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939fi
11940ac_res=`eval echo '${'$as_ac_var'}'`
11941 { echo "$as_me:$LINENO: result: $ac_res" >&5
11942echo "${ECHO_T}$ac_res" >&6; }
11943if test `eval echo '${'$as_ac_var'}'` = yes; then
11944 cat >>confdefs.h <<_ACEOF
11945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11946_ACEOF
11947
11948fi
11949done
11950
11951
11952
11953{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11954echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11955
11956ICC=no
11957IXX=no
11958case $CC in
11959 icc*|icpc*)
11960 ICC=yes
11961 IXX=yes
11962 ;;
11963 *)
11964 ;;
11965esac
11966
11967if test "$GCC" != "yes" && test "$ICC" != "yes"
11968then
11969 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11970echo "$as_me: error: gcc|icc required but not found" >&2;}
11971 { (exit 1); exit 1; }; }
11972fi
11973
11974if test "$GXX" != "yes" && test "$IXX" != "yes"
11975then
11976 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11977echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11978 { (exit 1); exit 1; }; }
11979fi
11980
11981if test "$GCC" = "yes"
11982then
11983 cat >conftest.$ac_ext <<_ACEOF
11984#if !defined(__GNUC__) || __GNUC__ < 3
11985#error Unsupported GCC version
11986#endif
11987
11988_ACEOF
11989rm -f conftest.$ac_objext
11990if { (ac_try="$ac_compile"
11991case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994esac
11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_compile") 2>conftest.er1
11997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12004 { (case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007esac
12008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_try") 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; } &&
12013 { ac_try='test -s conftest.$ac_objext'
12014 { (case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017esac
12018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_try") 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 :
12024else
12025 echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12029echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12030 { (exit 1); exit 1; }; }
12031fi
12032
12033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034fi
12035
12036if test -z "$llvm_cv_gnu_make_command"
12037then
12038 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12039echo "$as_me: error: GNU Make required but not found" >&2;}
12040 { (exit 1); exit 1; }; }
12041fi
12042
12043{ echo "$as_me:$LINENO: result: ok" >&5
12044echo "${ECHO_T}ok" >&6; }
12045
12046{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12047echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012048NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012049
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012050NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012051
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012052COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12053
12054{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12055echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012056
12057
12058
12059{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12060echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12061if test "${ac_cv_lib_m_sin+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063else
12064 ac_check_lib_save_LIBS=$LIBS
12065LIBS="-lm $LIBS"
12066cat >conftest.$ac_ext <<_ACEOF
12067/* confdefs.h. */
12068_ACEOF
12069cat confdefs.h >>conftest.$ac_ext
12070cat >>conftest.$ac_ext <<_ACEOF
12071/* end confdefs.h. */
12072
12073/* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12076#ifdef __cplusplus
12077extern "C"
12078#endif
12079char sin ();
12080int
12081main ()
12082{
12083return sin ();
12084 ;
12085 return 0;
12086}
12087_ACEOF
12088rm -f conftest.$ac_objext conftest$ac_exeext
12089if { (ac_try="$ac_link"
12090case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093esac
12094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_link") 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12103 { (case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106esac
12107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_try") 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_cv_lib_m_sin=yes
12123else
12124 echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_cv_lib_m_sin=no
12128fi
12129
12130rm -f core conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12132LIBS=$ac_check_lib_save_LIBS
12133fi
12134{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12135echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12136if test $ac_cv_lib_m_sin = yes; then
12137 cat >>confdefs.h <<_ACEOF
12138#define HAVE_LIBM 1
12139_ACEOF
12140
12141 LIBS="-lm $LIBS"
12142
12143fi
12144
12145if test "$llvm_cv_os_type" = "MingW" ; then
12146
12147{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12148echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12149if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151else
12152 ac_check_lib_save_LIBS=$LIBS
12153LIBS="-limagehlp $LIBS"
12154cat >conftest.$ac_ext <<_ACEOF
12155/* confdefs.h. */
12156_ACEOF
12157cat confdefs.h >>conftest.$ac_ext
12158cat >>conftest.$ac_ext <<_ACEOF
12159/* end confdefs.h. */
12160
12161
12162int
12163main ()
12164{
12165return main ();
12166 ;
12167 return 0;
12168}
12169_ACEOF
12170rm -f conftest.$ac_objext conftest$ac_exeext
12171if { (ac_try="$ac_link"
12172case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175esac
12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188esac
12189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 ac_cv_lib_imagehlp_main=yes
12205else
12206 echo "$as_me: failed program was:" >&5
12207sed 's/^/| /' conftest.$ac_ext >&5
12208
12209 ac_cv_lib_imagehlp_main=no
12210fi
12211
12212rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214LIBS=$ac_check_lib_save_LIBS
12215fi
12216{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12217echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12218if test $ac_cv_lib_imagehlp_main = yes; then
12219 cat >>confdefs.h <<_ACEOF
12220#define HAVE_LIBIMAGEHLP 1
12221_ACEOF
12222
12223 LIBS="-limagehlp $LIBS"
12224
12225fi
12226
12227
12228{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12229echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12230if test "${ac_cv_lib_psapi_main+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232else
12233 ac_check_lib_save_LIBS=$LIBS
12234LIBS="-lpsapi $LIBS"
12235cat >conftest.$ac_ext <<_ACEOF
12236/* confdefs.h. */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h. */
12241
12242
12243int
12244main ()
12245{
12246return main ();
12247 ;
12248 return 0;
12249}
12250_ACEOF
12251rm -f conftest.$ac_objext conftest$ac_exeext
12252if { (ac_try="$ac_link"
12253case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256esac
12257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269esac
12270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest$ac_exeext'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279esac
12280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_lib_psapi_main=yes
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 ac_cv_lib_psapi_main=no
12291fi
12292
12293rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295LIBS=$ac_check_lib_save_LIBS
12296fi
12297{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12298echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12299if test $ac_cv_lib_psapi_main = yes; then
12300 cat >>confdefs.h <<_ACEOF
12301#define HAVE_LIBPSAPI 1
12302_ACEOF
12303
12304 LIBS="-lpsapi $LIBS"
12305
12306fi
12307
12308fi
12309
12310{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12311echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12312if test "${ac_cv_search_dlopen+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314else
12315 ac_func_search_save_LIBS=$LIBS
12316cat >conftest.$ac_ext <<_ACEOF
12317/* confdefs.h. */
12318_ACEOF
12319cat confdefs.h >>conftest.$ac_ext
12320cat >>conftest.$ac_ext <<_ACEOF
12321/* end confdefs.h. */
12322
12323/* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326#ifdef __cplusplus
12327extern "C"
12328#endif
12329char dlopen ();
12330int
12331main ()
12332{
12333return dlopen ();
12334 ;
12335 return 0;
12336}
12337_ACEOF
12338for ac_lib in '' dl; do
12339 if test -z "$ac_lib"; then
12340 ac_res="none required"
12341 else
12342 ac_res=-l$ac_lib
12343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12344 fi
12345 rm -f conftest.$ac_objext conftest$ac_exeext
12346if { (ac_try="$ac_link"
12347case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12350esac
12351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_link") 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12360 { (case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12363esac
12364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_try") 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest$ac_exeext'
12370 { (case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_try") 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_cv_search_dlopen=$ac_res
12380else
12381 echo "$as_me: failed program was:" >&5
12382sed 's/^/| /' conftest.$ac_ext >&5
12383
12384
12385fi
12386
12387rm -f core conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext
12389 if test "${ac_cv_search_dlopen+set}" = set; then
12390 break
12391fi
12392done
12393if test "${ac_cv_search_dlopen+set}" = set; then
12394 :
12395else
12396 ac_cv_search_dlopen=no
12397fi
12398rm conftest.$ac_ext
12399LIBS=$ac_func_search_save_LIBS
12400fi
12401{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12402echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12403ac_res=$ac_cv_search_dlopen
12404if test "$ac_res" != no; then
12405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12406
12407cat >>confdefs.h <<\_ACEOF
12408#define HAVE_DLOPEN 1
12409_ACEOF
12410
12411else
12412 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12413echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12414fi
12415
12416
12417if test "$llvm_cv_enable_libffi" = "yes" ; then
12418 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12419echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12420if test "${ac_cv_search_ffi_call+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422else
12423 ac_func_search_save_LIBS=$LIBS
12424cat >conftest.$ac_ext <<_ACEOF
12425/* confdefs.h. */
12426_ACEOF
12427cat confdefs.h >>conftest.$ac_ext
12428cat >>conftest.$ac_ext <<_ACEOF
12429/* end confdefs.h. */
12430
12431/* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12434#ifdef __cplusplus
12435extern "C"
12436#endif
12437char ffi_call ();
12438int
12439main ()
12440{
12441return ffi_call ();
12442 ;
12443 return 0;
12444}
12445_ACEOF
12446for ac_lib in '' ffi; do
12447 if test -z "$ac_lib"; then
12448 ac_res="none required"
12449 else
12450 ac_res=-l$ac_lib
12451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12452 fi
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454if { (ac_try="$ac_link"
12455case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458esac
12459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_link") 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
12467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12468 { (case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12471esac
12472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_try") 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try='test -s conftest$ac_exeext'
12478 { (case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12481esac
12482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_try") 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_cv_search_ffi_call=$ac_res
12488else
12489 echo "$as_me: failed program was:" >&5
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
12492
12493fi
12494
12495rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext
12497 if test "${ac_cv_search_ffi_call+set}" = set; then
12498 break
12499fi
12500done
12501if test "${ac_cv_search_ffi_call+set}" = set; then
12502 :
12503else
12504 ac_cv_search_ffi_call=no
12505fi
12506rm conftest.$ac_ext
12507LIBS=$ac_func_search_save_LIBS
12508fi
12509{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12510echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12511ac_res=$ac_cv_search_ffi_call
12512if test "$ac_res" != no; then
12513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12514
12515cat >>confdefs.h <<\_ACEOF
12516#define HAVE_FFI_CALL 1
12517_ACEOF
12518
12519else
12520 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12521echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12522 { (exit 1); exit 1; }; }
12523fi
12524
12525fi
12526
12527{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12528echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12529if test "${ac_cv_search_mallinfo+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531else
12532 ac_func_search_save_LIBS=$LIBS
12533cat >conftest.$ac_ext <<_ACEOF
12534/* confdefs.h. */
12535_ACEOF
12536cat confdefs.h >>conftest.$ac_ext
12537cat >>conftest.$ac_ext <<_ACEOF
12538/* end confdefs.h. */
12539
12540/* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12543#ifdef __cplusplus
12544extern "C"
12545#endif
12546char mallinfo ();
12547int
12548main ()
12549{
12550return mallinfo ();
12551 ;
12552 return 0;
12553}
12554_ACEOF
12555for ac_lib in '' malloc; do
12556 if test -z "$ac_lib"; then
12557 ac_res="none required"
12558 else
12559 ac_res=-l$ac_lib
12560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12561 fi
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563if { (ac_try="$ac_link"
12564case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567esac
12568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_link") 2>conftest.er1
12570 ac_status=$?
12571 grep -v '^ *+' conftest.er1 >conftest.err
12572 rm -f conftest.er1
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12577 { (case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12580esac
12581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_try") 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; } &&
12586 { ac_try='test -s conftest$ac_exeext'
12587 { (case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590esac
12591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_try") 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_cv_search_mallinfo=$ac_res
12597else
12598 echo "$as_me: failed program was:" >&5
12599sed 's/^/| /' conftest.$ac_ext >&5
12600
12601
12602fi
12603
12604rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext
12606 if test "${ac_cv_search_mallinfo+set}" = set; then
12607 break
12608fi
12609done
12610if test "${ac_cv_search_mallinfo+set}" = set; then
12611 :
12612else
12613 ac_cv_search_mallinfo=no
12614fi
12615rm conftest.$ac_ext
12616LIBS=$ac_func_search_save_LIBS
12617fi
12618{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12619echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12620ac_res=$ac_cv_search_mallinfo
12621if test "$ac_res" != no; then
12622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12623
12624cat >>confdefs.h <<\_ACEOF
12625#define HAVE_MALLINFO 1
12626_ACEOF
12627
12628fi
12629
12630
12631if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12632
12633{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12634echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12635if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637else
12638 ac_check_lib_save_LIBS=$LIBS
12639LIBS="-lpthread $LIBS"
12640cat >conftest.$ac_ext <<_ACEOF
12641/* confdefs.h. */
12642_ACEOF
12643cat confdefs.h >>conftest.$ac_ext
12644cat >>conftest.$ac_ext <<_ACEOF
12645/* end confdefs.h. */
12646
12647/* Override any GCC internal prototype to avoid an error.
12648 Use char because int might match the return type of a GCC
12649 builtin and then its argument prototype would still apply. */
12650#ifdef __cplusplus
12651extern "C"
12652#endif
12653char pthread_mutex_init ();
12654int
12655main ()
12656{
12657return pthread_mutex_init ();
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext conftest$ac_exeext
12663if { (ac_try="$ac_link"
12664case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_link") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12677 { (case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680esac
12681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_try") 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12690esac
12691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_try") 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 ac_cv_lib_pthread_pthread_mutex_init=yes
12697else
12698 echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701 ac_cv_lib_pthread_pthread_mutex_init=no
12702fi
12703
12704rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706LIBS=$ac_check_lib_save_LIBS
12707fi
12708{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12709echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12710if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712#define HAVE_LIBPTHREAD 1
12713_ACEOF
12714
12715 LIBS="-lpthread $LIBS"
12716
12717fi
12718
12719 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12720echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12721if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723else
12724 ac_func_search_save_LIBS=$LIBS
12725cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h. */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731
12732/* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply. */
12735#ifdef __cplusplus
12736extern "C"
12737#endif
12738char pthread_mutex_lock ();
12739int
12740main ()
12741{
12742return pthread_mutex_lock ();
12743 ;
12744 return 0;
12745}
12746_ACEOF
12747for ac_lib in '' pthread; do
12748 if test -z "$ac_lib"; then
12749 ac_res="none required"
12750 else
12751 ac_res=-l$ac_lib
12752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12753 fi
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755if { (ac_try="$ac_link"
12756case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759esac
12760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_link") 2>conftest.er1
12762 ac_status=$?
12763 grep -v '^ *+' conftest.er1 >conftest.err
12764 rm -f conftest.er1
12765 cat conftest.err >&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12769 { (case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772esac
12773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_try") 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest$ac_exeext'
12779 { (case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782esac
12783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_try") 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 ac_cv_search_pthread_mutex_lock=$ac_res
12789else
12790 echo "$as_me: failed program was:" >&5
12791sed 's/^/| /' conftest.$ac_ext >&5
12792
12793
12794fi
12795
12796rm -f core conftest.err conftest.$ac_objext \
12797 conftest$ac_exeext
12798 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12799 break
12800fi
12801done
12802if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12803 :
12804else
12805 ac_cv_search_pthread_mutex_lock=no
12806fi
12807rm conftest.$ac_ext
12808LIBS=$ac_func_search_save_LIBS
12809fi
12810{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12811echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12812ac_res=$ac_cv_search_pthread_mutex_lock
12813if test "$ac_res" != no; then
12814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12815
12816cat >>confdefs.h <<\_ACEOF
12817#define HAVE_PTHREAD_MUTEX_LOCK 1
12818_ACEOF
12819
12820fi
12821
12822 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12823echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12824if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826else
12827 ac_func_search_save_LIBS=$LIBS
12828cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834
12835/* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
12838#ifdef __cplusplus
12839extern "C"
12840#endif
12841char pthread_rwlock_init ();
12842int
12843main ()
12844{
12845return pthread_rwlock_init ();
12846 ;
12847 return 0;
12848}
12849_ACEOF
12850for ac_lib in '' pthread; do
12851 if test -z "$ac_lib"; then
12852 ac_res="none required"
12853 else
12854 ac_res=-l$ac_lib
12855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12856 fi
12857 rm -f conftest.$ac_objext conftest$ac_exeext
12858if { (ac_try="$ac_link"
12859case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12862esac
12863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_link") 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12872 { (case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12875esac
12876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_try") 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try='test -s conftest$ac_exeext'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 ac_cv_search_pthread_rwlock_init=$ac_res
12892else
12893 echo "$as_me: failed program was:" >&5
12894sed 's/^/| /' conftest.$ac_ext >&5
12895
12896
12897fi
12898
12899rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext
12901 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12902 break
12903fi
12904done
12905if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12906 :
12907else
12908 ac_cv_search_pthread_rwlock_init=no
12909fi
12910rm conftest.$ac_ext
12911LIBS=$ac_func_search_save_LIBS
12912fi
12913{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12914echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12915ac_res=$ac_cv_search_pthread_rwlock_init
12916if test "$ac_res" != no; then
12917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12918
12919cat >>confdefs.h <<\_ACEOF
12920#define HAVE_PTHREAD_RWLOCK_INIT 1
12921_ACEOF
12922
12923fi
12924
12925 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12926echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12927if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12929else
12930 ac_func_search_save_LIBS=$LIBS
12931cat >conftest.$ac_ext <<_ACEOF
12932/* confdefs.h. */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h. */
12937
12938/* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12941#ifdef __cplusplus
12942extern "C"
12943#endif
12944char pthread_getspecific ();
12945int
12946main ()
12947{
12948return pthread_getspecific ();
12949 ;
12950 return 0;
12951}
12952_ACEOF
12953for ac_lib in '' pthread; do
12954 if test -z "$ac_lib"; then
12955 ac_res="none required"
12956 else
12957 ac_res=-l$ac_lib
12958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12959 fi
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961if { (ac_try="$ac_link"
12962case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965esac
12966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_link") 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
12974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12975 { (case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978esac
12979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_try") 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 ac_cv_search_pthread_getspecific=$ac_res
12995else
12996 echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
12998
12999
13000fi
13001
13002rm -f core conftest.err conftest.$ac_objext \
13003 conftest$ac_exeext
13004 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13005 break
13006fi
13007done
13008if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13009 :
13010else
13011 ac_cv_search_pthread_getspecific=no
13012fi
13013rm conftest.$ac_ext
13014LIBS=$ac_func_search_save_LIBS
13015fi
13016{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13017echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13018ac_res=$ac_cv_search_pthread_getspecific
13019if test "$ac_res" != no; then
13020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13021
13022cat >>confdefs.h <<\_ACEOF
13023#define HAVE_PTHREAD_GETSPECIFIC 1
13024_ACEOF
13025
13026fi
13027
13028fi
13029
13030
13031# Check whether --with-udis86 was given.
13032if test "${with_udis86+set}" = set; then
13033 withval=$with_udis86;
13034 USE_UDIS86=1
13035
13036 case "$withval" in
13037 /usr/lib|yes) ;;
13038 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13039 esac
13040
13041{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13042echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13043if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13045else
13046 ac_check_lib_save_LIBS=$LIBS
13047LIBS="-ludis86 $LIBS"
13048cat >conftest.$ac_ext <<_ACEOF
13049/* confdefs.h. */
13050_ACEOF
13051cat confdefs.h >>conftest.$ac_ext
13052cat >>conftest.$ac_ext <<_ACEOF
13053/* end confdefs.h. */
13054
13055/* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13058#ifdef __cplusplus
13059extern "C"
13060#endif
13061char ud_init ();
13062int
13063main ()
13064{
13065return ud_init ();
13066 ;
13067 return 0;
13068}
13069_ACEOF
13070rm -f conftest.$ac_objext conftest$ac_exeext
13071if { (ac_try="$ac_link"
13072case "(($ac_try" in
13073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13074 *) ac_try_echo=$ac_try;;
13075esac
13076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077 (eval "$ac_link") 2>conftest.er1
13078 ac_status=$?
13079 grep -v '^ *+' conftest.er1 >conftest.err
13080 rm -f conftest.er1
13081 cat conftest.err >&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } &&
13084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; } &&
13094 { ac_try='test -s conftest$ac_exeext'
13095 { (case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13098esac
13099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_try") 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 ac_cv_lib_udis86_ud_init=yes
13105else
13106 echo "$as_me: failed program was:" >&5
13107sed 's/^/| /' conftest.$ac_ext >&5
13108
13109 ac_cv_lib_udis86_ud_init=no
13110fi
13111
13112rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext conftest.$ac_ext
13114LIBS=$ac_check_lib_save_LIBS
13115fi
13116{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13117echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13118if test $ac_cv_lib_udis86_ud_init = yes; then
13119 cat >>confdefs.h <<_ACEOF
13120#define HAVE_LIBUDIS86 1
13121_ACEOF
13122
13123 LIBS="-ludis86 $LIBS"
13124
13125else
13126
13127 echo "Error! You need to have libudis86 around."
13128 exit -1
13129
13130fi
13131
13132
13133else
13134 USE_UDIS86=0
13135
13136fi
13137
13138
13139cat >>confdefs.h <<_ACEOF
13140#define USE_UDIS86 $USE_UDIS86
13141_ACEOF
13142
13143
13144
13145# Check whether --with-oprofile was given.
13146if test "${with_oprofile+set}" = set; then
13147 withval=$with_oprofile;
13148 USE_OPROFILE=1
13149
13150 case "$withval" in
13151 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13152 no) llvm_cv_oppath=
13153 USE_OPROFILE=0
13154 ;;
13155 *) llvm_cv_oppath="${withval}/lib/oprofile"
13156 CPPFLAGS="-I${withval}/include";;
13157 esac
13158 if test -n "$llvm_cv_oppath" ; then
13159 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13160 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13161echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13162if test "${ac_cv_search_bfd_init+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164else
13165 ac_func_search_save_LIBS=$LIBS
13166cat >conftest.$ac_ext <<_ACEOF
13167/* confdefs.h. */
13168_ACEOF
13169cat confdefs.h >>conftest.$ac_ext
13170cat >>conftest.$ac_ext <<_ACEOF
13171/* end confdefs.h. */
13172
13173/* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13176#ifdef __cplusplus
13177extern "C"
13178#endif
13179char bfd_init ();
13180int
13181main ()
13182{
13183return bfd_init ();
13184 ;
13185 return 0;
13186}
13187_ACEOF
13188for ac_lib in '' bfd; do
13189 if test -z "$ac_lib"; then
13190 ac_res="none required"
13191 else
13192 ac_res=-l$ac_lib
13193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13194 fi
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196if { (ac_try="$ac_link"
13197case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13210 { (case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13213esac
13214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_try") 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest$ac_exeext'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223esac
13224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_cv_search_bfd_init=$ac_res
13230else
13231 echo "$as_me: failed program was:" >&5
13232sed 's/^/| /' conftest.$ac_ext >&5
13233
13234
13235fi
13236
13237rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext
13239 if test "${ac_cv_search_bfd_init+set}" = set; then
13240 break
13241fi
13242done
13243if test "${ac_cv_search_bfd_init+set}" = set; then
13244 :
13245else
13246 ac_cv_search_bfd_init=no
13247fi
13248rm conftest.$ac_ext
13249LIBS=$ac_func_search_save_LIBS
13250fi
13251{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13252echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13253ac_res=$ac_cv_search_bfd_init
13254if test "$ac_res" != no; then
13255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13256
13257fi
13258
13259 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13260echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13261if test "${ac_cv_search_op_open_agent+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13263else
13264 ac_func_search_save_LIBS=$LIBS
13265cat >conftest.$ac_ext <<_ACEOF
13266/* confdefs.h. */
13267_ACEOF
13268cat confdefs.h >>conftest.$ac_ext
13269cat >>conftest.$ac_ext <<_ACEOF
13270/* end confdefs.h. */
13271
13272/* Override any GCC internal prototype to avoid an error.
13273 Use char because int might match the return type of a GCC
13274 builtin and then its argument prototype would still apply. */
13275#ifdef __cplusplus
13276extern "C"
13277#endif
13278char op_open_agent ();
13279int
13280main ()
13281{
13282return op_open_agent ();
13283 ;
13284 return 0;
13285}
13286_ACEOF
13287for ac_lib in '' opagent; do
13288 if test -z "$ac_lib"; then
13289 ac_res="none required"
13290 else
13291 ac_res=-l$ac_lib
13292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13293 fi
13294 rm -f conftest.$ac_objext conftest$ac_exeext
13295if { (ac_try="$ac_link"
13296case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13299esac
13300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_link") 2>conftest.er1
13302 ac_status=$?
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13309 { (case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13312esac
13313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_try") 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; } &&
13318 { ac_try='test -s conftest$ac_exeext'
13319 { (case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322esac
13323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_try") 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 ac_cv_search_op_open_agent=$ac_res
13329else
13330 echo "$as_me: failed program was:" >&5
13331sed 's/^/| /' conftest.$ac_ext >&5
13332
13333
13334fi
13335
13336rm -f core conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext
13338 if test "${ac_cv_search_op_open_agent+set}" = set; then
13339 break
13340fi
13341done
13342if test "${ac_cv_search_op_open_agent+set}" = set; then
13343 :
13344else
13345 ac_cv_search_op_open_agent=no
13346fi
13347rm conftest.$ac_ext
13348LIBS=$ac_func_search_save_LIBS
13349fi
13350{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13351echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13352ac_res=$ac_cv_search_op_open_agent
13353if test "$ac_res" != no; then
13354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13355
13356else
13357
13358 echo "Error! You need to have libopagent around."
13359 exit -1
13360
13361fi
13362
13363 if test "${ac_cv_header_opagent_h+set}" = set; then
13364 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13365echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13366if test "${ac_cv_header_opagent_h+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13368fi
13369{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13370echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13371else
13372 # Is the header compilable?
13373{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13374echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13375cat >conftest.$ac_ext <<_ACEOF
13376/* confdefs.h. */
13377_ACEOF
13378cat confdefs.h >>conftest.$ac_ext
13379cat >>conftest.$ac_ext <<_ACEOF
13380/* end confdefs.h. */
13381$ac_includes_default
13382#include <opagent.h>
13383_ACEOF
13384rm -f conftest.$ac_objext
13385if { (ac_try="$ac_compile"
13386case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13389esac
13390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_compile") 2>conftest.er1
13392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402esac
13403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; } &&
13408 { ac_try='test -s conftest.$ac_objext'
13409 { (case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_try") 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_header_compiler=yes
13419else
13420 echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 ac_header_compiler=no
13424fi
13425
13426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13427{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13428echo "${ECHO_T}$ac_header_compiler" >&6; }
13429
13430# Is the header present?
13431{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13432echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13433cat >conftest.$ac_ext <<_ACEOF
13434/* confdefs.h. */
13435_ACEOF
13436cat confdefs.h >>conftest.$ac_ext
13437cat >>conftest.$ac_ext <<_ACEOF
13438/* end confdefs.h. */
13439#include <opagent.h>
13440_ACEOF
13441if { (ac_try="$ac_cpp conftest.$ac_ext"
13442case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13445esac
13446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } >/dev/null; then
13454 if test -s conftest.err; then
13455 ac_cpp_err=$ac_c_preproc_warn_flag
13456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13457 else
13458 ac_cpp_err=
13459 fi
13460else
13461 ac_cpp_err=yes
13462fi
13463if test -z "$ac_cpp_err"; then
13464 ac_header_preproc=yes
13465else
13466 echo "$as_me: failed program was:" >&5
13467sed 's/^/| /' conftest.$ac_ext >&5
13468
13469 ac_header_preproc=no
13470fi
13471
13472rm -f conftest.err conftest.$ac_ext
13473{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13474echo "${ECHO_T}$ac_header_preproc" >&6; }
13475
13476# So? What about this header?
13477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13478 yes:no: )
13479 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13480echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13482echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13483 ac_header_preproc=yes
13484 ;;
13485 no:yes:* )
13486 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13487echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13489echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13490 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13491echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13492 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13493echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13494 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13495echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13496 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13497echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13498 ( cat <<\_ASBOX
13499## ------------------------------ ##
13500## Report this to bugs@yourdomain ##
13501## ------------------------------ ##
13502_ASBOX
13503 ) | sed "s/^/$as_me: WARNING: /" >&2
13504 ;;
13505esac
13506{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13507echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13508if test "${ac_cv_header_opagent_h+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510else
13511 ac_cv_header_opagent_h=$ac_header_preproc
13512fi
13513{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13514echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13515
13516fi
13517if test $ac_cv_header_opagent_h = yes; then
13518 :
13519else
13520
13521 echo "Error! You need to have opagent.h around."
13522 exit -1
13523
13524fi
13525
13526
13527 fi
13528
13529else
13530
13531 USE_OPROFILE=0
13532
13533
13534fi
13535
13536
13537cat >>confdefs.h <<_ACEOF
13538#define USE_OPROFILE $USE_OPROFILE
13539_ACEOF
13540
13541
13542
13543
13544
13545
13546
13547
13548ac_header_dirent=no
13549for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13550 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13551{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13552echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13554 echo $ECHO_N "(cached) $ECHO_C" >&6
13555else
13556 cat >conftest.$ac_ext <<_ACEOF
13557/* confdefs.h. */
13558_ACEOF
13559cat confdefs.h >>conftest.$ac_ext
13560cat >>conftest.$ac_ext <<_ACEOF
13561/* end confdefs.h. */
13562#include <sys/types.h>
13563#include <$ac_hdr>
13564
13565int
13566main ()
13567{
13568if ((DIR *) 0)
13569return 0;
13570 ;
13571 return 0;
13572}
13573_ACEOF
13574rm -f conftest.$ac_objext
13575if { (ac_try="$ac_compile"
13576case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579esac
13580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } &&
13588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13589 { (case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592esac
13593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_try") 2>&5
13595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; } &&
13598 { ac_try='test -s conftest.$ac_objext'
13599 { (case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_try") 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 eval "$as_ac_Header=yes"
13609else
13610 echo "$as_me: failed program was:" >&5
13611sed 's/^/| /' conftest.$ac_ext >&5
13612
13613 eval "$as_ac_Header=no"
13614fi
13615
13616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617fi
13618ac_res=`eval echo '${'$as_ac_Header'}'`
13619 { echo "$as_me:$LINENO: result: $ac_res" >&5
13620echo "${ECHO_T}$ac_res" >&6; }
13621if test `eval echo '${'$as_ac_Header'}'` = yes; then
13622 cat >>confdefs.h <<_ACEOF
13623#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13624_ACEOF
13625
13626ac_header_dirent=$ac_hdr; break
13627fi
13628
13629done
13630# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13631if test $ac_header_dirent = dirent.h; then
13632 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13633echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13634if test "${ac_cv_search_opendir+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637 ac_func_search_save_LIBS=$LIBS
13638cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644
13645/* Override any GCC internal prototype to avoid an error.
13646 Use char because int might match the return type of a GCC
13647 builtin and then its argument prototype would still apply. */
13648#ifdef __cplusplus
13649extern "C"
13650#endif
13651char opendir ();
13652int
13653main ()
13654{
13655return opendir ();
13656 ;
13657 return 0;
13658}
13659_ACEOF
13660for ac_lib in '' dir; do
13661 if test -z "$ac_lib"; then
13662 ac_res="none required"
13663 else
13664 ac_res=-l$ac_lib
13665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13666 fi
13667 rm -f conftest.$ac_objext conftest$ac_exeext
13668if { (ac_try="$ac_link"
13669case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672esac
13673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_link") 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
13681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13682 { (case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685esac
13686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_try") 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; } &&
13691 { ac_try='test -s conftest$ac_exeext'
13692 { (case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_try") 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_search_opendir=$ac_res
13702else
13703 echo "$as_me: failed program was:" >&5
13704sed 's/^/| /' conftest.$ac_ext >&5
13705
13706
13707fi
13708
13709rm -f core conftest.err conftest.$ac_objext \
13710 conftest$ac_exeext
13711 if test "${ac_cv_search_opendir+set}" = set; then
13712 break
13713fi
13714done
13715if test "${ac_cv_search_opendir+set}" = set; then
13716 :
13717else
13718 ac_cv_search_opendir=no
13719fi
13720rm conftest.$ac_ext
13721LIBS=$ac_func_search_save_LIBS
13722fi
13723{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13724echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13725ac_res=$ac_cv_search_opendir
13726if test "$ac_res" != no; then
13727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13728
13729fi
13730
13731else
13732 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13733echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13734if test "${ac_cv_search_opendir+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736else
13737 ac_func_search_save_LIBS=$LIBS
13738cat >conftest.$ac_ext <<_ACEOF
13739/* confdefs.h. */
13740_ACEOF
13741cat confdefs.h >>conftest.$ac_ext
13742cat >>conftest.$ac_ext <<_ACEOF
13743/* end confdefs.h. */
13744
13745/* Override any GCC internal prototype to avoid an error.
13746 Use char because int might match the return type of a GCC
13747 builtin and then its argument prototype would still apply. */
13748#ifdef __cplusplus
13749extern "C"
13750#endif
13751char opendir ();
13752int
13753main ()
13754{
13755return opendir ();
13756 ;
13757 return 0;
13758}
13759_ACEOF
13760for ac_lib in '' x; do
13761 if test -z "$ac_lib"; then
13762 ac_res="none required"
13763 else
13764 ac_res=-l$ac_lib
13765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13766 fi
13767 rm -f conftest.$ac_objext conftest$ac_exeext
13768if { (ac_try="$ac_link"
13769case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772esac
13773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_link") 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13782 { (case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13785esac
13786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_try") 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; } &&
13791 { ac_try='test -s conftest$ac_exeext'
13792 { (case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795esac
13796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_try") 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_cv_search_opendir=$ac_res
13802else
13803 echo "$as_me: failed program was:" >&5
13804sed 's/^/| /' conftest.$ac_ext >&5
13805
13806
13807fi
13808
13809rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext
13811 if test "${ac_cv_search_opendir+set}" = set; then
13812 break
13813fi
13814done
13815if test "${ac_cv_search_opendir+set}" = set; then
13816 :
13817else
13818 ac_cv_search_opendir=no
13819fi
13820rm conftest.$ac_ext
13821LIBS=$ac_func_search_save_LIBS
13822fi
13823{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13824echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13825ac_res=$ac_cv_search_opendir
13826if test "$ac_res" != no; then
13827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13828
13829fi
13830
13831fi
13832
13833{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13834echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13835if test "${ac_cv_header_mmap_anon+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
13838 ac_ext=c
13839ac_cpp='$CPP $CPPFLAGS'
13840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13842ac_compiler_gnu=$ac_cv_c_compiler_gnu
13843
13844 cat >conftest.$ac_ext <<_ACEOF
13845/* confdefs.h. */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h. */
13850#include <sys/mman.h>
13851#include <unistd.h>
13852#include <fcntl.h>
13853int
13854main ()
13855{
13856mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13857 ;
13858 return 0;
13859}
13860_ACEOF
13861rm -f conftest.$ac_objext
13862if { (ac_try="$ac_compile"
13863case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866esac
13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_compile") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879esac
13880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest.$ac_objext'
13886 { (case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889esac
13890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_try") 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_cv_header_mmap_anon=yes
13896else
13897 echo "$as_me: failed program was:" >&5
13898sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 ac_cv_header_mmap_anon=no
13901fi
13902
13903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904 ac_ext=c
13905ac_cpp='$CPP $CPPFLAGS'
13906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13908ac_compiler_gnu=$ac_cv_c_compiler_gnu
13909
13910
13911fi
13912{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13913echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13914if test "$ac_cv_header_mmap_anon" = yes; then
13915
13916cat >>confdefs.h <<\_ACEOF
13917#define HAVE_MMAP_ANONYMOUS 1
13918_ACEOF
13919
13920fi
13921
13922{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13923echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13924if test "${ac_cv_header_stat_broken+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926else
13927 cat >conftest.$ac_ext <<_ACEOF
13928/* confdefs.h. */
13929_ACEOF
13930cat confdefs.h >>conftest.$ac_ext
13931cat >>conftest.$ac_ext <<_ACEOF
13932/* end confdefs.h. */
13933#include <sys/types.h>
13934#include <sys/stat.h>
13935
13936#if defined S_ISBLK && defined S_IFDIR
13937# if S_ISBLK (S_IFDIR)
13938You lose.
13939# endif
13940#endif
13941
13942#if defined S_ISBLK && defined S_IFCHR
13943# if S_ISBLK (S_IFCHR)
13944You lose.
13945# endif
13946#endif
13947
13948#if defined S_ISLNK && defined S_IFREG
13949# if S_ISLNK (S_IFREG)
13950You lose.
13951# endif
13952#endif
13953
13954#if defined S_ISSOCK && defined S_IFREG
13955# if S_ISSOCK (S_IFREG)
13956You lose.
13957# endif
13958#endif
13959
13960_ACEOF
13961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13962 $EGREP "You lose" >/dev/null 2>&1; then
13963 ac_cv_header_stat_broken=yes
13964else
13965 ac_cv_header_stat_broken=no
13966fi
13967rm -f conftest*
13968
13969fi
13970{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13971echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13972if test $ac_cv_header_stat_broken = yes; then
13973
13974cat >>confdefs.h <<\_ACEOF
13975#define STAT_MACROS_BROKEN 1
13976_ACEOF
13977
13978fi
13979
13980{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13981echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13982if test "${ac_cv_header_sys_wait_h+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13984else
13985 cat >conftest.$ac_ext <<_ACEOF
13986/* confdefs.h. */
13987_ACEOF
13988cat confdefs.h >>conftest.$ac_ext
13989cat >>conftest.$ac_ext <<_ACEOF
13990/* end confdefs.h. */
13991#include <sys/types.h>
13992#include <sys/wait.h>
13993#ifndef WEXITSTATUS
13994# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13995#endif
13996#ifndef WIFEXITED
13997# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13998#endif
13999
14000int
14001main ()
14002{
14003 int s;
14004 wait (&s);
14005 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14006 ;
14007 return 0;
14008}
14009_ACEOF
14010rm -f conftest.$ac_objext
14011if { (ac_try="$ac_compile"
14012case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015esac
14016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_compile") 2>conftest.er1
14018 ac_status=$?
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
14024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14025 { (case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028esac
14029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_try") 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest.$ac_objext'
14035 { (case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038esac
14039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_try") 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_header_sys_wait_h=yes
14045else
14046 echo "$as_me: failed program was:" >&5
14047sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_cv_header_sys_wait_h=no
14050fi
14051
14052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053fi
14054{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14055echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14056if test $ac_cv_header_sys_wait_h = yes; then
14057
14058cat >>confdefs.h <<\_ACEOF
14059#define HAVE_SYS_WAIT_H 1
14060_ACEOF
14061
14062fi
14063
14064{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14065echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14066if test "${ac_cv_header_time+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068else
14069 cat >conftest.$ac_ext <<_ACEOF
14070/* confdefs.h. */
14071_ACEOF
14072cat confdefs.h >>conftest.$ac_ext
14073cat >>conftest.$ac_ext <<_ACEOF
14074/* end confdefs.h. */
14075#include <sys/types.h>
14076#include <sys/time.h>
14077#include <time.h>
14078
14079int
14080main ()
14081{
14082if ((struct tm *) 0)
14083return 0;
14084 ;
14085 return 0;
14086}
14087_ACEOF
14088rm -f conftest.$ac_objext
14089if { (ac_try="$ac_compile"
14090case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14093esac
14094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095 (eval "$ac_compile") 2>conftest.er1
14096 ac_status=$?
14097 grep -v '^ *+' conftest.er1 >conftest.err
14098 rm -f conftest.er1
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14103 { (case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14106esac
14107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_try") 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; } &&
14112 { ac_try='test -s conftest.$ac_objext'
14113 { (case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116esac
14117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_try") 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_header_time=yes
14123else
14124 echo "$as_me: failed program was:" >&5
14125sed 's/^/| /' conftest.$ac_ext >&5
14126
14127 ac_cv_header_time=no
14128fi
14129
14130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14131fi
14132{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14133echo "${ECHO_T}$ac_cv_header_time" >&6; }
14134if test $ac_cv_header_time = yes; then
14135
14136cat >>confdefs.h <<\_ACEOF
14137#define TIME_WITH_SYS_TIME 1
14138_ACEOF
14139
14140fi
14141
14142
14143
14144
14145
14146
14147
14148
14149for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14150do
14151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157fi
14158ac_res=`eval echo '${'$as_ac_Header'}'`
14159 { echo "$as_me:$LINENO: result: $ac_res" >&5
14160echo "${ECHO_T}$ac_res" >&6; }
14161else
14162 # Is the header compilable?
14163{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14165cat >conftest.$ac_ext <<_ACEOF
14166/* confdefs.h. */
14167_ACEOF
14168cat confdefs.h >>conftest.$ac_ext
14169cat >>conftest.$ac_ext <<_ACEOF
14170/* end confdefs.h. */
14171$ac_includes_default
14172#include <$ac_header>
14173_ACEOF
14174rm -f conftest.$ac_objext
14175if { (ac_try="$ac_compile"
14176case "(($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_compile") 2>conftest.er1
14182 ac_status=$?
14183 grep -v '^ *+' conftest.er1 >conftest.err
14184 rm -f conftest.er1
14185 cat conftest.err >&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); } &&
14188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14189 { (case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192esac
14193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_try") 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest.$ac_objext'
14199 { (case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202esac
14203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_try") 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_header_compiler=yes
14209else
14210 echo "$as_me: failed program was:" >&5
14211sed 's/^/| /' conftest.$ac_ext >&5
14212
14213 ac_header_compiler=no
14214fi
14215
14216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14218echo "${ECHO_T}$ac_header_compiler" >&6; }
14219
14220# Is the header present?
14221{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14223cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h. */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
14228/* end confdefs.h. */
14229#include <$ac_header>
14230_ACEOF
14231if { (ac_try="$ac_cpp conftest.$ac_ext"
14232case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14235esac
14236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14238 ac_status=$?
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } >/dev/null; then
14244 if test -s conftest.err; then
14245 ac_cpp_err=$ac_c_preproc_warn_flag
14246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14247 else
14248 ac_cpp_err=
14249 fi
14250else
14251 ac_cpp_err=yes
14252fi
14253if test -z "$ac_cpp_err"; then
14254 ac_header_preproc=yes
14255else
14256 echo "$as_me: failed program was:" >&5
14257sed 's/^/| /' conftest.$ac_ext >&5
14258
14259 ac_header_preproc=no
14260fi
14261
14262rm -f conftest.err conftest.$ac_ext
14263{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14264echo "${ECHO_T}$ac_header_preproc" >&6; }
14265
14266# So? What about this header?
14267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14268 yes:no: )
14269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14273 ac_header_preproc=yes
14274 ;;
14275 no:yes:* )
14276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14279echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14283echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14288 ( cat <<\_ASBOX
14289## ------------------------------ ##
14290## Report this to bugs@yourdomain ##
14291## ------------------------------ ##
14292_ASBOX
14293 ) | sed "s/^/$as_me: WARNING: /" >&2
14294 ;;
14295esac
14296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 eval "$as_ac_Header=\$ac_header_preproc"
14302fi
14303ac_res=`eval echo '${'$as_ac_Header'}'`
14304 { echo "$as_me:$LINENO: result: $ac_res" >&5
14305echo "${ECHO_T}$ac_res" >&6; }
14306
14307fi
14308if test `eval echo '${'$as_ac_Header'}'` = yes; then
14309 cat >>confdefs.h <<_ACEOF
14310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14311_ACEOF
14312
14313fi
14314
14315done
14316
14317
14318
14319
14320
14321
14322
14323for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14324do
14325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331fi
14332ac_res=`eval echo '${'$as_ac_Header'}'`
14333 { echo "$as_me:$LINENO: result: $ac_res" >&5
14334echo "${ECHO_T}$ac_res" >&6; }
14335else
14336 # Is the header compilable?
14337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14339cat >conftest.$ac_ext <<_ACEOF
14340/* confdefs.h. */
14341_ACEOF
14342cat confdefs.h >>conftest.$ac_ext
14343cat >>conftest.$ac_ext <<_ACEOF
14344/* end confdefs.h. */
14345$ac_includes_default
14346#include <$ac_header>
14347_ACEOF
14348rm -f conftest.$ac_objext
14349if { (ac_try="$ac_compile"
14350case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353esac
14354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_compile") 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
14362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363 { (case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366esac
14367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_try") 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_header_compiler=yes
14383else
14384 echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
14386
14387 ac_header_compiler=no
14388fi
14389
14390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14392echo "${ECHO_T}$ac_header_compiler" >&6; }
14393
14394# Is the header present?
14395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14397cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h. */
14403#include <$ac_header>
14404_ACEOF
14405if { (ac_try="$ac_cpp conftest.$ac_ext"
14406case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14409esac
14410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } >/dev/null; then
14418 if test -s conftest.err; then
14419 ac_cpp_err=$ac_c_preproc_warn_flag
14420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14421 else
14422 ac_cpp_err=
14423 fi
14424else
14425 ac_cpp_err=yes
14426fi
14427if test -z "$ac_cpp_err"; then
14428 ac_header_preproc=yes
14429else
14430 echo "$as_me: failed program was:" >&5
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
14433 ac_header_preproc=no
14434fi
14435
14436rm -f conftest.err conftest.$ac_ext
14437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14438echo "${ECHO_T}$ac_header_preproc" >&6; }
14439
14440# So? What about this header?
14441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14442 yes:no: )
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14447 ac_header_preproc=yes
14448 ;;
14449 no:yes:* )
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14462 ( cat <<\_ASBOX
14463## ------------------------------ ##
14464## Report this to bugs@yourdomain ##
14465## ------------------------------ ##
14466_ASBOX
14467 ) | sed "s/^/$as_me: WARNING: /" >&2
14468 ;;
14469esac
14470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474else
14475 eval "$as_ac_Header=\$ac_header_preproc"
14476fi
14477ac_res=`eval echo '${'$as_ac_Header'}'`
14478 { echo "$as_me:$LINENO: result: $ac_res" >&5
14479echo "${ECHO_T}$ac_res" >&6; }
14480
14481fi
14482if test `eval echo '${'$as_ac_Header'}'` = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14485_ACEOF
14486
14487fi
14488
14489done
14490
14491
14492
14493for ac_header in utime.h windows.h
14494do
14495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501fi
14502ac_res=`eval echo '${'$as_ac_Header'}'`
14503 { echo "$as_me:$LINENO: result: $ac_res" >&5
14504echo "${ECHO_T}$ac_res" >&6; }
14505else
14506 # Is the header compilable?
14507{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14509cat >conftest.$ac_ext <<_ACEOF
14510/* confdefs.h. */
14511_ACEOF
14512cat confdefs.h >>conftest.$ac_ext
14513cat >>conftest.$ac_ext <<_ACEOF
14514/* end confdefs.h. */
14515$ac_includes_default
14516#include <$ac_header>
14517_ACEOF
14518rm -f conftest.$ac_objext
14519if { (ac_try="$ac_compile"
14520case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523esac
14524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_compile") 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14533 { (case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536esac
14537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest.$ac_objext'
14543 { (case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546esac
14547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_try") 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_header_compiler=yes
14553else
14554 echo "$as_me: failed program was:" >&5
14555sed 's/^/| /' conftest.$ac_ext >&5
14556
14557 ac_header_compiler=no
14558fi
14559
14560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14562echo "${ECHO_T}$ac_header_compiler" >&6; }
14563
14564# Is the header present?
14565{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14567cat >conftest.$ac_ext <<_ACEOF
14568/* confdefs.h. */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
14572/* end confdefs.h. */
14573#include <$ac_header>
14574_ACEOF
14575if { (ac_try="$ac_cpp conftest.$ac_ext"
14576case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14579esac
14580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14582 ac_status=$?
14583 grep -v '^ *+' conftest.er1 >conftest.err
14584 rm -f conftest.er1
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } >/dev/null; then
14588 if test -s conftest.err; then
14589 ac_cpp_err=$ac_c_preproc_warn_flag
14590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14591 else
14592 ac_cpp_err=
14593 fi
14594else
14595 ac_cpp_err=yes
14596fi
14597if test -z "$ac_cpp_err"; then
14598 ac_header_preproc=yes
14599else
14600 echo "$as_me: failed program was:" >&5
14601sed 's/^/| /' conftest.$ac_ext >&5
14602
14603 ac_header_preproc=no
14604fi
14605
14606rm -f conftest.err conftest.$ac_ext
14607{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14608echo "${ECHO_T}$ac_header_preproc" >&6; }
14609
14610# So? What about this header?
14611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14612 yes:no: )
14613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14617 ac_header_preproc=yes
14618 ;;
14619 no:yes:* )
14620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14623echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14627echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14632 ( cat <<\_ASBOX
14633## ------------------------------ ##
14634## Report this to bugs@yourdomain ##
14635## ------------------------------ ##
14636_ASBOX
14637 ) | sed "s/^/$as_me: WARNING: /" >&2
14638 ;;
14639esac
14640{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14644else
14645 eval "$as_ac_Header=\$ac_header_preproc"
14646fi
14647ac_res=`eval echo '${'$as_ac_Header'}'`
14648 { echo "$as_me:$LINENO: result: $ac_res" >&5
14649echo "${ECHO_T}$ac_res" >&6; }
14650
14651fi
14652if test `eval echo '${'$as_ac_Header'}'` = yes; then
14653 cat >>confdefs.h <<_ACEOF
14654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14655_ACEOF
14656
14657fi
14658
14659done
14660
14661
14662
14663
14664
14665
14666for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14667do
14668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674fi
14675ac_res=`eval echo '${'$as_ac_Header'}'`
14676 { echo "$as_me:$LINENO: result: $ac_res" >&5
14677echo "${ECHO_T}$ac_res" >&6; }
14678else
14679 # Is the header compilable?
14680{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14681echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14682cat >conftest.$ac_ext <<_ACEOF
14683/* confdefs.h. */
14684_ACEOF
14685cat confdefs.h >>conftest.$ac_ext
14686cat >>conftest.$ac_ext <<_ACEOF
14687/* end confdefs.h. */
14688$ac_includes_default
14689#include <$ac_header>
14690_ACEOF
14691rm -f conftest.$ac_objext
14692if { (ac_try="$ac_compile"
14693case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696esac
14697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_compile") 2>conftest.er1
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14709esac
14710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; } &&
14715 { ac_try='test -s conftest.$ac_objext'
14716 { (case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14719esac
14720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_try") 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14725 ac_header_compiler=yes
14726else
14727 echo "$as_me: failed program was:" >&5
14728sed 's/^/| /' conftest.$ac_ext >&5
14729
14730 ac_header_compiler=no
14731fi
14732
14733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14734{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14735echo "${ECHO_T}$ac_header_compiler" >&6; }
14736
14737# Is the header present?
14738{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14740cat >conftest.$ac_ext <<_ACEOF
14741/* confdefs.h. */
14742_ACEOF
14743cat confdefs.h >>conftest.$ac_ext
14744cat >>conftest.$ac_ext <<_ACEOF
14745/* end confdefs.h. */
14746#include <$ac_header>
14747_ACEOF
14748if { (ac_try="$ac_cpp conftest.$ac_ext"
14749case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14752esac
14753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14755 ac_status=$?
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } >/dev/null; then
14761 if test -s conftest.err; then
14762 ac_cpp_err=$ac_c_preproc_warn_flag
14763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14764 else
14765 ac_cpp_err=
14766 fi
14767else
14768 ac_cpp_err=yes
14769fi
14770if test -z "$ac_cpp_err"; then
14771 ac_header_preproc=yes
14772else
14773 echo "$as_me: failed program was:" >&5
14774sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_header_preproc=no
14777fi
14778
14779rm -f conftest.err conftest.$ac_ext
14780{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14781echo "${ECHO_T}$ac_header_preproc" >&6; }
14782
14783# So? What about this header?
14784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14785 yes:no: )
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14790 ac_header_preproc=yes
14791 ;;
14792 no:yes:* )
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14800echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14805 ( cat <<\_ASBOX
14806## ------------------------------ ##
14807## Report this to bugs@yourdomain ##
14808## ------------------------------ ##
14809_ASBOX
14810 ) | sed "s/^/$as_me: WARNING: /" >&2
14811 ;;
14812esac
14813{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14817else
14818 eval "$as_ac_Header=\$ac_header_preproc"
14819fi
14820ac_res=`eval echo '${'$as_ac_Header'}'`
14821 { echo "$as_me:$LINENO: result: $ac_res" >&5
14822echo "${ECHO_T}$ac_res" >&6; }
14823
14824fi
14825if test `eval echo '${'$as_ac_Header'}'` = yes; then
14826 cat >>confdefs.h <<_ACEOF
14827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14828_ACEOF
14829
14830fi
14831
14832done
14833
14834
14835
14836
14837
14838for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14839do
14840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846fi
14847ac_res=`eval echo '${'$as_ac_Header'}'`
14848 { echo "$as_me:$LINENO: result: $ac_res" >&5
14849echo "${ECHO_T}$ac_res" >&6; }
14850else
14851 # Is the header compilable?
14852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14854cat >conftest.$ac_ext <<_ACEOF
14855/* confdefs.h. */
14856_ACEOF
14857cat confdefs.h >>conftest.$ac_ext
14858cat >>conftest.$ac_ext <<_ACEOF
14859/* end confdefs.h. */
14860$ac_includes_default
14861#include <$ac_header>
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (ac_try="$ac_compile"
14865case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868esac
14869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881esac
14882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891esac
14892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_header_compiler=yes
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 ac_header_compiler=no
14903fi
14904
14905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14907echo "${ECHO_T}$ac_header_compiler" >&6; }
14908
14909# Is the header present?
14910{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14912cat >conftest.$ac_ext <<_ACEOF
14913/* confdefs.h. */
14914_ACEOF
14915cat confdefs.h >>conftest.$ac_ext
14916cat >>conftest.$ac_ext <<_ACEOF
14917/* end confdefs.h. */
14918#include <$ac_header>
14919_ACEOF
14920if { (ac_try="$ac_cpp conftest.$ac_ext"
14921case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924esac
14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev/null; then
14933 if test -s conftest.err; then
14934 ac_cpp_err=$ac_c_preproc_warn_flag
14935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14936 else
14937 ac_cpp_err=
14938 fi
14939else
14940 ac_cpp_err=yes
14941fi
14942if test -z "$ac_cpp_err"; then
14943 ac_header_preproc=yes
14944else
14945 echo "$as_me: failed program was:" >&5
14946sed 's/^/| /' conftest.$ac_ext >&5
14947
14948 ac_header_preproc=no
14949fi
14950
14951rm -f conftest.err conftest.$ac_ext
14952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14953echo "${ECHO_T}$ac_header_preproc" >&6; }
14954
14955# So? What about this header?
14956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14957 yes:no: )
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14962 ac_header_preproc=yes
14963 ;;
14964 no:yes:* )
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14977 ( cat <<\_ASBOX
14978## ------------------------------ ##
14979## Report this to bugs@yourdomain ##
14980## ------------------------------ ##
14981_ASBOX
14982 ) | sed "s/^/$as_me: WARNING: /" >&2
14983 ;;
14984esac
14985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990 eval "$as_ac_Header=\$ac_header_preproc"
14991fi
14992ac_res=`eval echo '${'$as_ac_Header'}'`
14993 { echo "$as_me:$LINENO: result: $ac_res" >&5
14994echo "${ECHO_T}$ac_res" >&6; }
14995
14996fi
14997if test `eval echo '${'$as_ac_Header'}'` = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15000_ACEOF
15001
15002fi
15003
15004done
15005
15006
15007for ac_header in valgrind/valgrind.h
15008do
15009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015fi
15016ac_res=`eval echo '${'$as_ac_Header'}'`
15017 { echo "$as_me:$LINENO: result: $ac_res" >&5
15018echo "${ECHO_T}$ac_res" >&6; }
15019else
15020 # Is the header compilable?
15021{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15023cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
15029$ac_includes_default
15030#include <$ac_header>
15031_ACEOF
15032rm -f conftest.$ac_objext
15033if { (ac_try="$ac_compile"
15034case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037esac
15038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_compile") 2>conftest.er1
15040 ac_status=$?
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15047 { (case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050esac
15051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_try") 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060esac
15061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_try") 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 ac_header_compiler=yes
15067else
15068 echo "$as_me: failed program was:" >&5
15069sed 's/^/| /' conftest.$ac_ext >&5
15070
15071 ac_header_compiler=no
15072fi
15073
15074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076echo "${ECHO_T}$ac_header_compiler" >&6; }
15077
15078# Is the header present?
15079{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15081cat >conftest.$ac_ext <<_ACEOF
15082/* confdefs.h. */
15083_ACEOF
15084cat confdefs.h >>conftest.$ac_ext
15085cat >>conftest.$ac_ext <<_ACEOF
15086/* end confdefs.h. */
15087#include <$ac_header>
15088_ACEOF
15089if { (ac_try="$ac_cpp conftest.$ac_ext"
15090case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093esac
15094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15096 ac_status=$?
15097 grep -v '^ *+' conftest.er1 >conftest.err
15098 rm -f conftest.er1
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } >/dev/null; then
15102 if test -s conftest.err; then
15103 ac_cpp_err=$ac_c_preproc_warn_flag
15104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15105 else
15106 ac_cpp_err=
15107 fi
15108else
15109 ac_cpp_err=yes
15110fi
15111if test -z "$ac_cpp_err"; then
15112 ac_header_preproc=yes
15113else
15114 echo "$as_me: failed program was:" >&5
15115sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 ac_header_preproc=no
15118fi
15119
15120rm -f conftest.err conftest.$ac_ext
15121{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15122echo "${ECHO_T}$ac_header_preproc" >&6; }
15123
15124# So? What about this header?
15125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15126 yes:no: )
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15131 ac_header_preproc=yes
15132 ;;
15133 no:yes:* )
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15146 ( cat <<\_ASBOX
15147## ------------------------------ ##
15148## Report this to bugs@yourdomain ##
15149## ------------------------------ ##
15150_ASBOX
15151 ) | sed "s/^/$as_me: WARNING: /" >&2
15152 ;;
15153esac
15154{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158else
15159 eval "$as_ac_Header=\$ac_header_preproc"
15160fi
15161ac_res=`eval echo '${'$as_ac_Header'}'`
15162 { echo "$as_me:$LINENO: result: $ac_res" >&5
15163echo "${ECHO_T}$ac_res" >&6; }
15164
15165fi
15166if test `eval echo '${'$as_ac_Header'}'` = yes; then
15167 cat >>confdefs.h <<_ACEOF
15168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15169_ACEOF
15170
15171fi
15172
15173done
15174
15175
15176for ac_header in fenv.h
15177do
15178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184fi
15185ac_res=`eval echo '${'$as_ac_Header'}'`
15186 { echo "$as_me:$LINENO: result: $ac_res" >&5
15187echo "${ECHO_T}$ac_res" >&6; }
15188else
15189 # Is the header compilable?
15190{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15192cat >conftest.$ac_ext <<_ACEOF
15193/* confdefs.h. */
15194_ACEOF
15195cat confdefs.h >>conftest.$ac_ext
15196cat >>conftest.$ac_ext <<_ACEOF
15197/* end confdefs.h. */
15198$ac_includes_default
15199#include <$ac_header>
15200_ACEOF
15201rm -f conftest.$ac_objext
15202if { (ac_try="$ac_compile"
15203case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15206esac
15207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_compile") 2>conftest.er1
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15216 { (case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219esac
15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_try") 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; } &&
15225 { ac_try='test -s conftest.$ac_objext'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229esac
15230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; }; then
15235 ac_header_compiler=yes
15236else
15237 echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
15240 ac_header_compiler=no
15241fi
15242
15243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15245echo "${ECHO_T}$ac_header_compiler" >&6; }
15246
15247# Is the header present?
15248{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15250cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
15256#include <$ac_header>
15257_ACEOF
15258if { (ac_try="$ac_cpp conftest.$ac_ext"
15259case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262esac
15263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } >/dev/null; then
15271 if test -s conftest.err; then
15272 ac_cpp_err=$ac_c_preproc_warn_flag
15273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15274 else
15275 ac_cpp_err=
15276 fi
15277else
15278 ac_cpp_err=yes
15279fi
15280if test -z "$ac_cpp_err"; then
15281 ac_header_preproc=yes
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286 ac_header_preproc=no
15287fi
15288
15289rm -f conftest.err conftest.$ac_ext
15290{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291echo "${ECHO_T}$ac_header_preproc" >&6; }
15292
15293# So? What about this header?
15294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15295 yes:no: )
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15300 ac_header_preproc=yes
15301 ;;
15302 no:yes:* )
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15310echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15315 ( cat <<\_ASBOX
15316## ------------------------------ ##
15317## Report this to bugs@yourdomain ##
15318## ------------------------------ ##
15319_ASBOX
15320 ) | sed "s/^/$as_me: WARNING: /" >&2
15321 ;;
15322esac
15323{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15327else
15328 eval "$as_ac_Header=\$ac_header_preproc"
15329fi
15330ac_res=`eval echo '${'$as_ac_Header'}'`
15331 { echo "$as_me:$LINENO: result: $ac_res" >&5
15332echo "${ECHO_T}$ac_res" >&6; }
15333
15334fi
15335if test `eval echo '${'$as_ac_Header'}'` = yes; then
15336 cat >>confdefs.h <<_ACEOF
15337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15338_ACEOF
15339
15340fi
15341
15342done
15343
15344if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15345
15346for ac_header in pthread.h
15347do
15348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15354fi
15355ac_res=`eval echo '${'$as_ac_Header'}'`
15356 { echo "$as_me:$LINENO: result: $ac_res" >&5
15357echo "${ECHO_T}$ac_res" >&6; }
15358else
15359 # Is the header compilable?
15360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15362cat >conftest.$ac_ext <<_ACEOF
15363/* confdefs.h. */
15364_ACEOF
15365cat confdefs.h >>conftest.$ac_ext
15366cat >>conftest.$ac_ext <<_ACEOF
15367/* end confdefs.h. */
15368$ac_includes_default
15369#include <$ac_header>
15370_ACEOF
15371rm -f conftest.$ac_objext
15372if { (ac_try="$ac_compile"
15373case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15376esac
15377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_compile") 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15386 { (case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15389esac
15390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391 (eval "$ac_try") 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; } &&
15395 { ac_try='test -s conftest.$ac_objext'
15396 { (case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15399esac
15400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_try") 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }; then
15405 ac_header_compiler=yes
15406else
15407 echo "$as_me: failed program was:" >&5
15408sed 's/^/| /' conftest.$ac_ext >&5
15409
15410 ac_header_compiler=no
15411fi
15412
15413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15415echo "${ECHO_T}$ac_header_compiler" >&6; }
15416
15417# Is the header present?
15418{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15420cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426#include <$ac_header>
15427_ACEOF
15428if { (ac_try="$ac_cpp conftest.$ac_ext"
15429case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15432esac
15433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15435 ac_status=$?
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } >/dev/null; then
15441 if test -s conftest.err; then
15442 ac_cpp_err=$ac_c_preproc_warn_flag
15443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15444 else
15445 ac_cpp_err=
15446 fi
15447else
15448 ac_cpp_err=yes
15449fi
15450if test -z "$ac_cpp_err"; then
15451 ac_header_preproc=yes
15452else
15453 echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_header_preproc=no
15457fi
15458
15459rm -f conftest.err conftest.$ac_ext
15460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15461echo "${ECHO_T}$ac_header_preproc" >&6; }
15462
15463# So? What about this header?
15464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15465 yes:no: )
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15470 ac_header_preproc=yes
15471 ;;
15472 no:yes:* )
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15485 ( cat <<\_ASBOX
15486## ------------------------------ ##
15487## Report this to bugs@yourdomain ##
15488## ------------------------------ ##
15489_ASBOX
15490 ) | sed "s/^/$as_me: WARNING: /" >&2
15491 ;;
15492esac
15493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15497else
15498 eval "$as_ac_Header=\$ac_header_preproc"
15499fi
15500ac_res=`eval echo '${'$as_ac_Header'}'`
15501 { echo "$as_me:$LINENO: result: $ac_res" >&5
15502echo "${ECHO_T}$ac_res" >&6; }
15503
15504fi
15505if test `eval echo '${'$as_ac_Header'}'` = yes; then
15506 cat >>confdefs.h <<_ACEOF
15507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15508_ACEOF
15509 HAVE_PTHREAD=1
15510
15511else
15512 HAVE_PTHREAD=0
15513
15514fi
15515
15516done
15517
15518else
15519 HAVE_PTHREAD=0
15520
15521fi
15522
15523if test "$llvm_cv_enable_libffi" = "yes" ; then
15524
15525
15526for ac_header in ffi.h ffi/ffi.h
15527do
15528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15534fi
15535ac_res=`eval echo '${'$as_ac_Header'}'`
15536 { echo "$as_me:$LINENO: result: $ac_res" >&5
15537echo "${ECHO_T}$ac_res" >&6; }
15538else
15539 # Is the header compilable?
15540{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15542cat >conftest.$ac_ext <<_ACEOF
15543/* confdefs.h. */
15544_ACEOF
15545cat confdefs.h >>conftest.$ac_ext
15546cat >>conftest.$ac_ext <<_ACEOF
15547/* end confdefs.h. */
15548$ac_includes_default
15549#include <$ac_header>
15550_ACEOF
15551rm -f conftest.$ac_objext
15552if { (ac_try="$ac_compile"
15553case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15556esac
15557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_compile") 2>conftest.er1
15559 ac_status=$?
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15566 { (case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15569esac
15570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_try") 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } &&
15575 { ac_try='test -s conftest.$ac_objext'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579esac
15580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; }; then
15585 ac_header_compiler=yes
15586else
15587 echo "$as_me: failed program was:" >&5
15588sed 's/^/| /' conftest.$ac_ext >&5
15589
15590 ac_header_compiler=no
15591fi
15592
15593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15595echo "${ECHO_T}$ac_header_compiler" >&6; }
15596
15597# Is the header present?
15598{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15600cat >conftest.$ac_ext <<_ACEOF
15601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
15606#include <$ac_header>
15607_ACEOF
15608if { (ac_try="$ac_cpp conftest.$ac_ext"
15609case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612esac
15613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } >/dev/null; then
15621 if test -s conftest.err; then
15622 ac_cpp_err=$ac_c_preproc_warn_flag
15623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15624 else
15625 ac_cpp_err=
15626 fi
15627else
15628 ac_cpp_err=yes
15629fi
15630if test -z "$ac_cpp_err"; then
15631 ac_header_preproc=yes
15632else
15633 echo "$as_me: failed program was:" >&5
15634sed 's/^/| /' conftest.$ac_ext >&5
15635
15636 ac_header_preproc=no
15637fi
15638
15639rm -f conftest.err conftest.$ac_ext
15640{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15641echo "${ECHO_T}$ac_header_preproc" >&6; }
15642
15643# So? What about this header?
15644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15645 yes:no: )
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15650 ac_header_preproc=yes
15651 ;;
15652 no:yes:* )
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15665 ( cat <<\_ASBOX
15666## ------------------------------ ##
15667## Report this to bugs@yourdomain ##
15668## ------------------------------ ##
15669_ASBOX
15670 ) | sed "s/^/$as_me: WARNING: /" >&2
15671 ;;
15672esac
15673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15677else
15678 eval "$as_ac_Header=\$ac_header_preproc"
15679fi
15680ac_res=`eval echo '${'$as_ac_Header'}'`
15681 { echo "$as_me:$LINENO: result: $ac_res" >&5
15682echo "${ECHO_T}$ac_res" >&6; }
15683
15684fi
15685if test `eval echo '${'$as_ac_Header'}'` = yes; then
15686 cat >>confdefs.h <<_ACEOF
15687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15688_ACEOF
15689
15690fi
15691
15692done
15693
15694fi
15695
15696
15697for ac_header in CrashReporterClient.h
15698do
15699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705fi
15706ac_res=`eval echo '${'$as_ac_Header'}'`
15707 { echo "$as_me:$LINENO: result: $ac_res" >&5
15708echo "${ECHO_T}$ac_res" >&6; }
15709else
15710 # Is the header compilable?
15711{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15713cat >conftest.$ac_ext <<_ACEOF
15714/* confdefs.h. */
15715_ACEOF
15716cat confdefs.h >>conftest.$ac_ext
15717cat >>conftest.$ac_ext <<_ACEOF
15718/* end confdefs.h. */
15719$ac_includes_default
15720#include <$ac_header>
15721_ACEOF
15722rm -f conftest.$ac_objext
15723if { (ac_try="$ac_compile"
15724case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15727esac
15728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_compile") 2>conftest.er1
15730 ac_status=$?
15731 grep -v '^ *+' conftest.er1 >conftest.err
15732 rm -f conftest.er1
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15737 { (case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15740esac
15741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_try") 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } &&
15746 { ac_try='test -s conftest.$ac_objext'
15747 { (case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15750esac
15751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_try") 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_header_compiler=yes
15757else
15758 echo "$as_me: failed program was:" >&5
15759sed 's/^/| /' conftest.$ac_ext >&5
15760
15761 ac_header_compiler=no
15762fi
15763
15764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15766echo "${ECHO_T}$ac_header_compiler" >&6; }
15767
15768# Is the header present?
15769{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15771cat >conftest.$ac_ext <<_ACEOF
15772/* confdefs.h. */
15773_ACEOF
15774cat confdefs.h >>conftest.$ac_ext
15775cat >>conftest.$ac_ext <<_ACEOF
15776/* end confdefs.h. */
15777#include <$ac_header>
15778_ACEOF
15779if { (ac_try="$ac_cpp conftest.$ac_ext"
15780case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783esac
15784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } >/dev/null; then
15792 if test -s conftest.err; then
15793 ac_cpp_err=$ac_c_preproc_warn_flag
15794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15795 else
15796 ac_cpp_err=
15797 fi
15798else
15799 ac_cpp_err=yes
15800fi
15801if test -z "$ac_cpp_err"; then
15802 ac_header_preproc=yes
15803else
15804 echo "$as_me: failed program was:" >&5
15805sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 ac_header_preproc=no
15808fi
15809
15810rm -f conftest.err conftest.$ac_ext
15811{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15812echo "${ECHO_T}$ac_header_preproc" >&6; }
15813
15814# So? What about this header?
15815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15816 yes:no: )
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15820echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15821 ac_header_preproc=yes
15822 ;;
15823 no:yes:* )
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15827echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15829echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15831echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15835echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15836 ( cat <<\_ASBOX
15837## ------------------------------ ##
15838## Report this to bugs@yourdomain ##
15839## ------------------------------ ##
15840_ASBOX
15841 ) | sed "s/^/$as_me: WARNING: /" >&2
15842 ;;
15843esac
15844{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15848else
15849 eval "$as_ac_Header=\$ac_header_preproc"
15850fi
15851ac_res=`eval echo '${'$as_ac_Header'}'`
15852 { echo "$as_me:$LINENO: result: $ac_res" >&5
15853echo "${ECHO_T}$ac_res" >&6; }
15854
15855fi
15856if test `eval echo '${'$as_ac_Header'}'` = yes; then
15857 cat >>confdefs.h <<_ACEOF
15858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15859_ACEOF
15860
15861fi
15862
15863done
15864
15865
15866{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15867echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15868cat >conftest.$ac_ext <<_ACEOF
15869/* confdefs.h. */
15870_ACEOF
15871cat confdefs.h >>conftest.$ac_ext
15872cat >>conftest.$ac_ext <<_ACEOF
15873/* end confdefs.h. */
15874extern const char *__crashreporter_info__;
15875 int main() {
15876 __crashreporter_info__ = "test";
15877 return 0;
15878 }
15879
15880_ACEOF
15881rm -f conftest.$ac_objext conftest$ac_exeext
15882if { (ac_try="$ac_link"
15883case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15886esac
15887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_link") 2>conftest.er1
15889 ac_status=$?
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } &&
15895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15896 { (case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15899esac
15900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_try") 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest$ac_exeext'
15906 { (case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15909esac
15910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_try") 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 { echo "$as_me:$LINENO: result: yes" >&5
15916echo "${ECHO_T}yes" >&6; }
15917
15918cat >>confdefs.h <<\_ACEOF
15919#define HAVE_CRASHREPORTER_INFO 1
15920_ACEOF
15921
15922else
15923 echo "$as_me: failed program was:" >&5
15924sed 's/^/| /' conftest.$ac_ext >&5
15925
15926 { echo "$as_me:$LINENO: result: no" >&5
15927echo "${ECHO_T}no" >&6; }
15928
15929cat >>confdefs.h <<\_ACEOF
15930#define HAVE_CRASHREPORTER_INFO 0
15931_ACEOF
15932
15933fi
15934
15935rm -f core conftest.err conftest.$ac_objext \
15936 conftest$ac_exeext conftest.$ac_ext
15937
15938
15939
15940
15941 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15942echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15943if test "${ac_cv_huge_val_sanity+set}" = set; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15945else
15946
15947 ac_ext=cpp
15948ac_cpp='$CXXCPP $CPPFLAGS'
15949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15952
15953 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopherb2bc6e42012-03-26 02:09:01 +000015954 CXXFLAGS+=" -pedantic"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000015955 if test "$cross_compiling" = yes; then
15956 ac_cv_huge_val_sanity=yes
15957else
15958 cat >conftest.$ac_ext <<_ACEOF
15959/* confdefs.h. */
15960_ACEOF
15961cat confdefs.h >>conftest.$ac_ext
15962cat >>conftest.$ac_ext <<_ACEOF
15963/* end confdefs.h. */
15964#include <math.h>
15965int
15966main ()
15967{
15968double x = HUGE_VAL; return x != x;
15969 ;
15970 return 0;
15971}
15972_ACEOF
15973rm -f conftest$ac_exeext
15974if { (ac_try="$ac_link"
15975case "(($ac_try" in
15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977 *) ac_try_echo=$ac_try;;
15978esac
15979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980 (eval "$ac_link") 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15984 { (case "(($ac_try" in
15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986 *) ac_try_echo=$ac_try;;
15987esac
15988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15989 (eval "$ac_try") 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 ac_cv_huge_val_sanity=yes
15994else
15995 echo "$as_me: program exited with status $ac_status" >&5
15996echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999( exit $ac_status )
16000ac_cv_huge_val_sanity=no
16001fi
16002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16003fi
16004
16005
16006 CXXFLAGS=$ac_save_CXXFLAGS
16007 ac_ext=c
16008ac_cpp='$CPP $CPPFLAGS'
16009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16011ac_compiler_gnu=$ac_cv_c_compiler_gnu
16012
16013
16014fi
16015{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16016echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16017 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16018
16019
16020{ echo "$as_me:$LINENO: checking for pid_t" >&5
16021echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16022if test "${ac_cv_type_pid_t+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16024else
16025 cat >conftest.$ac_ext <<_ACEOF
16026/* confdefs.h. */
16027_ACEOF
16028cat confdefs.h >>conftest.$ac_ext
16029cat >>conftest.$ac_ext <<_ACEOF
16030/* end confdefs.h. */
16031$ac_includes_default
16032typedef pid_t ac__type_new_;
16033int
16034main ()
16035{
16036if ((ac__type_new_ *) 0)
16037 return 0;
16038if (sizeof (ac__type_new_))
16039 return 0;
16040 ;
16041 return 0;
16042}
16043_ACEOF
16044rm -f conftest.$ac_objext
16045if { (ac_try="$ac_compile"
16046case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16049esac
16050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051 (eval "$ac_compile") 2>conftest.er1
16052 ac_status=$?
16053 grep -v '^ *+' conftest.er1 >conftest.err
16054 rm -f conftest.er1
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16059 { (case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062esac
16063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_try") 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try='test -s conftest.$ac_objext'
16069 { (case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16072esac
16073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_try") 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 ac_cv_type_pid_t=yes
16079else
16080 echo "$as_me: failed program was:" >&5
16081sed 's/^/| /' conftest.$ac_ext >&5
16082
16083 ac_cv_type_pid_t=no
16084fi
16085
16086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16087fi
16088{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16089echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16090if test $ac_cv_type_pid_t = yes; then
16091 :
16092else
16093
16094cat >>confdefs.h <<_ACEOF
16095#define pid_t int
16096_ACEOF
16097
16098fi
16099
16100{ echo "$as_me:$LINENO: checking for size_t" >&5
16101echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16102if test "${ac_cv_type_size_t+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16104else
16105 cat >conftest.$ac_ext <<_ACEOF
16106/* confdefs.h. */
16107_ACEOF
16108cat confdefs.h >>conftest.$ac_ext
16109cat >>conftest.$ac_ext <<_ACEOF
16110/* end confdefs.h. */
16111$ac_includes_default
16112typedef size_t ac__type_new_;
16113int
16114main ()
16115{
16116if ((ac__type_new_ *) 0)
16117 return 0;
16118if (sizeof (ac__type_new_))
16119 return 0;
16120 ;
16121 return 0;
16122}
16123_ACEOF
16124rm -f conftest.$ac_objext
16125if { (ac_try="$ac_compile"
16126case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129esac
16130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_compile") 2>conftest.er1
16132 ac_status=$?
16133 grep -v '^ *+' conftest.er1 >conftest.err
16134 rm -f conftest.er1
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } &&
16138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16139 { (case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16142esac
16143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_try") 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_try") 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_cv_type_size_t=yes
16159else
16160 echo "$as_me: failed program was:" >&5
16161sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 ac_cv_type_size_t=no
16164fi
16165
16166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167fi
16168{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16169echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16170if test $ac_cv_type_size_t = yes; then
16171 :
16172else
16173
16174cat >>confdefs.h <<_ACEOF
16175#define size_t unsigned int
16176_ACEOF
16177
16178fi
16179
16180
16181cat >>confdefs.h <<_ACEOF
16182#define RETSIGTYPE void
16183_ACEOF
16184
16185{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16186echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16187if test "${ac_cv_struct_tm+set}" = set; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189else
16190 cat >conftest.$ac_ext <<_ACEOF
16191/* confdefs.h. */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h. */
16196#include <sys/types.h>
16197#include <time.h>
16198
16199int
16200main ()
16201{
16202struct tm *tp; tp->tm_sec;
16203 ;
16204 return 0;
16205}
16206_ACEOF
16207rm -f conftest.$ac_objext
16208if { (ac_try="$ac_compile"
16209case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16212esac
16213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214 (eval "$ac_compile") 2>conftest.er1
16215 ac_status=$?
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16231 { ac_try='test -s conftest.$ac_objext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_struct_tm=time.h
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246 ac_cv_struct_tm=sys/time.h
16247fi
16248
16249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250fi
16251{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16252echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16253if test $ac_cv_struct_tm = sys/time.h; then
16254
16255cat >>confdefs.h <<\_ACEOF
16256#define TM_IN_SYS_TIME 1
16257_ACEOF
16258
16259fi
16260
16261{ echo "$as_me:$LINENO: checking for int64_t" >&5
16262echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16263if test "${ac_cv_type_int64_t+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16265else
16266 cat >conftest.$ac_ext <<_ACEOF
16267/* confdefs.h. */
16268_ACEOF
16269cat confdefs.h >>conftest.$ac_ext
16270cat >>conftest.$ac_ext <<_ACEOF
16271/* end confdefs.h. */
16272$ac_includes_default
16273typedef int64_t ac__type_new_;
16274int
16275main ()
16276{
16277if ((ac__type_new_ *) 0)
16278 return 0;
16279if (sizeof (ac__type_new_))
16280 return 0;
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest.$ac_objext
16286if { (ac_try="$ac_compile"
16287case "(($ac_try" in
16288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16290esac
16291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292 (eval "$ac_compile") 2>conftest.er1
16293 ac_status=$?
16294 grep -v '^ *+' conftest.er1 >conftest.err
16295 rm -f conftest.er1
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16300 { (case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303esac
16304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_try") 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; } &&
16309 { ac_try='test -s conftest.$ac_objext'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_cv_type_int64_t=yes
16320else
16321 echo "$as_me: failed program was:" >&5
16322sed 's/^/| /' conftest.$ac_ext >&5
16323
16324 ac_cv_type_int64_t=no
16325fi
16326
16327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328fi
16329{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16330echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16331if test $ac_cv_type_int64_t = yes; then
16332
16333cat >>confdefs.h <<_ACEOF
16334#define HAVE_INT64_T 1
16335_ACEOF
16336
16337
16338else
16339 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16340echo "$as_me: error: Type int64_t required but not found" >&2;}
16341 { (exit 1); exit 1; }; }
16342fi
16343
16344{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16345echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16346if test "${ac_cv_type_uint64_t+set}" = set; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16348else
16349 cat >conftest.$ac_ext <<_ACEOF
16350/* confdefs.h. */
16351_ACEOF
16352cat confdefs.h >>conftest.$ac_ext
16353cat >>conftest.$ac_ext <<_ACEOF
16354/* end confdefs.h. */
16355$ac_includes_default
16356typedef uint64_t ac__type_new_;
16357int
16358main ()
16359{
16360if ((ac__type_new_ *) 0)
16361 return 0;
16362if (sizeof (ac__type_new_))
16363 return 0;
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368rm -f conftest.$ac_objext
16369if { (ac_try="$ac_compile"
16370case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16373esac
16374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_compile") 2>conftest.er1
16376 ac_status=$?
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
16382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396esac
16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_type_uint64_t=yes
16403else
16404 echo "$as_me: failed program was:" >&5
16405sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 ac_cv_type_uint64_t=no
16408fi
16409
16410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411fi
16412{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16413echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16414if test $ac_cv_type_uint64_t = yes; then
16415
16416cat >>confdefs.h <<_ACEOF
16417#define HAVE_UINT64_T 1
16418_ACEOF
16419
16420
16421else
16422 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16423echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16424if test "${ac_cv_type_u_int64_t+set}" = set; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16426else
16427 cat >conftest.$ac_ext <<_ACEOF
16428/* confdefs.h. */
16429_ACEOF
16430cat confdefs.h >>conftest.$ac_ext
16431cat >>conftest.$ac_ext <<_ACEOF
16432/* end confdefs.h. */
16433$ac_includes_default
16434typedef u_int64_t ac__type_new_;
16435int
16436main ()
16437{
16438if ((ac__type_new_ *) 0)
16439 return 0;
16440if (sizeof (ac__type_new_))
16441 return 0;
16442 ;
16443 return 0;
16444}
16445_ACEOF
16446rm -f conftest.$ac_objext
16447if { (ac_try="$ac_compile"
16448case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16451esac
16452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_compile") 2>conftest.er1
16454 ac_status=$?
16455 grep -v '^ *+' conftest.er1 >conftest.err
16456 rm -f conftest.er1
16457 cat conftest.err >&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16461 { (case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16464esac
16465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_try") 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; } &&
16470 { ac_try='test -s conftest.$ac_objext'
16471 { (case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_try") 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16480 ac_cv_type_u_int64_t=yes
16481else
16482 echo "$as_me: failed program was:" >&5
16483sed 's/^/| /' conftest.$ac_ext >&5
16484
16485 ac_cv_type_u_int64_t=no
16486fi
16487
16488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16489fi
16490{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16491echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16492if test $ac_cv_type_u_int64_t = yes; then
16493
16494cat >>confdefs.h <<_ACEOF
16495#define HAVE_U_INT64_T 1
16496_ACEOF
16497
16498
16499else
16500 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16501echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16502 { (exit 1); exit 1; }; }
16503fi
16504
16505fi
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16517do
16518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16523else
16524 cat >conftest.$ac_ext <<_ACEOF
16525/* confdefs.h. */
16526_ACEOF
16527cat confdefs.h >>conftest.$ac_ext
16528cat >>conftest.$ac_ext <<_ACEOF
16529/* end confdefs.h. */
16530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16532#define $ac_func innocuous_$ac_func
16533
16534/* System header to define __stub macros and hopefully few prototypes,
16535 which can conflict with char $ac_func (); below.
16536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16537 <limits.h> exists even on freestanding compilers. */
16538
16539#ifdef __STDC__
16540# include <limits.h>
16541#else
16542# include <assert.h>
16543#endif
16544
16545#undef $ac_func
16546
16547/* Override any GCC internal prototype to avoid an error.
16548 Use char because int might match the return type of a GCC
16549 builtin and then its argument prototype would still apply. */
16550#ifdef __cplusplus
16551extern "C"
16552#endif
16553char $ac_func ();
16554/* The GNU C library defines this for functions which it implements
16555 to always fail with ENOSYS. Some functions are actually named
16556 something starting with __ and the normal name is an alias. */
16557#if defined __stub_$ac_func || defined __stub___$ac_func
16558choke me
16559#endif
16560
16561int
16562main ()
16563{
16564return $ac_func ();
16565 ;
16566 return 0;
16567}
16568_ACEOF
16569rm -f conftest.$ac_objext conftest$ac_exeext
16570if { (ac_try="$ac_link"
16571case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574esac
16575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_link") 2>conftest.er1
16577 ac_status=$?
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
16583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16584 { (case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587esac
16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_try") 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest$ac_exeext'
16594 { (case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597esac
16598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_try") 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 eval "$as_ac_var=yes"
16604else
16605 echo "$as_me: failed program was:" >&5
16606sed 's/^/| /' conftest.$ac_ext >&5
16607
16608 eval "$as_ac_var=no"
16609fi
16610
16611rm -f core conftest.err conftest.$ac_objext \
16612 conftest$ac_exeext conftest.$ac_ext
16613fi
16614ac_res=`eval echo '${'$as_ac_var'}'`
16615 { echo "$as_me:$LINENO: result: $ac_res" >&5
16616echo "${ECHO_T}$ac_res" >&6; }
16617if test `eval echo '${'$as_ac_var'}'` = yes; then
16618 cat >>confdefs.h <<_ACEOF
16619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16620_ACEOF
16621
16622fi
16623done
16624
16625
16626
16627
16628
16629for ac_func in powf fmodf strtof round
16630do
16631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16632{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637 cat >conftest.$ac_ext <<_ACEOF
16638/* confdefs.h. */
16639_ACEOF
16640cat confdefs.h >>conftest.$ac_ext
16641cat >>conftest.$ac_ext <<_ACEOF
16642/* end confdefs.h. */
16643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16645#define $ac_func innocuous_$ac_func
16646
16647/* System header to define __stub macros and hopefully few prototypes,
16648 which can conflict with char $ac_func (); below.
16649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16650 <limits.h> exists even on freestanding compilers. */
16651
16652#ifdef __STDC__
16653# include <limits.h>
16654#else
16655# include <assert.h>
16656#endif
16657
16658#undef $ac_func
16659
16660/* Override any GCC internal prototype to avoid an error.
16661 Use char because int might match the return type of a GCC
16662 builtin and then its argument prototype would still apply. */
16663#ifdef __cplusplus
16664extern "C"
16665#endif
16666char $ac_func ();
16667/* The GNU C library defines this for functions which it implements
16668 to always fail with ENOSYS. Some functions are actually named
16669 something starting with __ and the normal name is an alias. */
16670#if defined __stub_$ac_func || defined __stub___$ac_func
16671choke me
16672#endif
16673
16674int
16675main ()
16676{
16677return $ac_func ();
16678 ;
16679 return 0;
16680}
16681_ACEOF
16682rm -f conftest.$ac_objext conftest$ac_exeext
16683if { (ac_try="$ac_link"
16684case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687esac
16688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest$ac_exeext'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 eval "$as_ac_var=yes"
16717else
16718 echo "$as_me: failed program was:" >&5
16719sed 's/^/| /' conftest.$ac_ext >&5
16720
16721 eval "$as_ac_var=no"
16722fi
16723
16724rm -f core conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16726fi
16727ac_res=`eval echo '${'$as_ac_var'}'`
16728 { echo "$as_me:$LINENO: result: $ac_res" >&5
16729echo "${ECHO_T}$ac_res" >&6; }
16730if test `eval echo '${'$as_ac_var'}'` = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16733_ACEOF
16734
16735fi
16736done
16737
16738
16739
16740
16741
16742
16743for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16744do
16745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16746{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16748if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750else
16751 cat >conftest.$ac_ext <<_ACEOF
16752/* confdefs.h. */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
16756/* end confdefs.h. */
16757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16759#define $ac_func innocuous_$ac_func
16760
16761/* System header to define __stub macros and hopefully few prototypes,
16762 which can conflict with char $ac_func (); below.
16763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16764 <limits.h> exists even on freestanding compilers. */
16765
16766#ifdef __STDC__
16767# include <limits.h>
16768#else
16769# include <assert.h>
16770#endif
16771
16772#undef $ac_func
16773
16774/* Override any GCC internal prototype to avoid an error.
16775 Use char because int might match the return type of a GCC
16776 builtin and then its argument prototype would still apply. */
16777#ifdef __cplusplus
16778extern "C"
16779#endif
16780char $ac_func ();
16781/* The GNU C library defines this for functions which it implements
16782 to always fail with ENOSYS. Some functions are actually named
16783 something starting with __ and the normal name is an alias. */
16784#if defined __stub_$ac_func || defined __stub___$ac_func
16785choke me
16786#endif
16787
16788int
16789main ()
16790{
16791return $ac_func ();
16792 ;
16793 return 0;
16794}
16795_ACEOF
16796rm -f conftest.$ac_objext conftest$ac_exeext
16797if { (ac_try="$ac_link"
16798case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801esac
16802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_link") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16811 { (case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814esac
16815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_try") 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest$ac_exeext'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 eval "$as_ac_var=yes"
16831else
16832 echo "$as_me: failed program was:" >&5
16833sed 's/^/| /' conftest.$ac_ext >&5
16834
16835 eval "$as_ac_var=no"
16836fi
16837
16838rm -f core conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16840fi
16841ac_res=`eval echo '${'$as_ac_var'}'`
16842 { echo "$as_me:$LINENO: result: $ac_res" >&5
16843echo "${ECHO_T}$ac_res" >&6; }
16844if test `eval echo '${'$as_ac_var'}'` = yes; then
16845 cat >>confdefs.h <<_ACEOF
16846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16847_ACEOF
16848
16849fi
16850done
16851
16852
16853
16854
16855for ac_func in isatty mkdtemp mkstemp
16856do
16857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16858{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862else
16863 cat >conftest.$ac_ext <<_ACEOF
16864/* confdefs.h. */
16865_ACEOF
16866cat confdefs.h >>conftest.$ac_ext
16867cat >>conftest.$ac_ext <<_ACEOF
16868/* end confdefs.h. */
16869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16871#define $ac_func innocuous_$ac_func
16872
16873/* System header to define __stub macros and hopefully few prototypes,
16874 which can conflict with char $ac_func (); below.
16875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16876 <limits.h> exists even on freestanding compilers. */
16877
16878#ifdef __STDC__
16879# include <limits.h>
16880#else
16881# include <assert.h>
16882#endif
16883
16884#undef $ac_func
16885
16886/* Override any GCC internal prototype to avoid an error.
16887 Use char because int might match the return type of a GCC
16888 builtin and then its argument prototype would still apply. */
16889#ifdef __cplusplus
16890extern "C"
16891#endif
16892char $ac_func ();
16893/* The GNU C library defines this for functions which it implements
16894 to always fail with ENOSYS. Some functions are actually named
16895 something starting with __ and the normal name is an alias. */
16896#if defined __stub_$ac_func || defined __stub___$ac_func
16897choke me
16898#endif
16899
16900int
16901main ()
16902{
16903return $ac_func ();
16904 ;
16905 return 0;
16906}
16907_ACEOF
16908rm -f conftest.$ac_objext conftest$ac_exeext
16909if { (ac_try="$ac_link"
16910case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_link") 2>conftest.er1
16916 ac_status=$?
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16923 { (case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926esac
16927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_try") 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; } &&
16932 { ac_try='test -s conftest$ac_exeext'
16933 { (case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_try") 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
16942 eval "$as_ac_var=yes"
16943else
16944 echo "$as_me: failed program was:" >&5
16945sed 's/^/| /' conftest.$ac_ext >&5
16946
16947 eval "$as_ac_var=no"
16948fi
16949
16950rm -f core conftest.err conftest.$ac_objext \
16951 conftest$ac_exeext conftest.$ac_ext
16952fi
16953ac_res=`eval echo '${'$as_ac_var'}'`
16954 { echo "$as_me:$LINENO: result: $ac_res" >&5
16955echo "${ECHO_T}$ac_res" >&6; }
16956if test `eval echo '${'$as_ac_var'}'` = yes; then
16957 cat >>confdefs.h <<_ACEOF
16958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16959_ACEOF
16960
16961fi
16962done
16963
16964
16965
16966
16967
16968
16969
16970for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16971do
16972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16973{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977else
16978 cat >conftest.$ac_ext <<_ACEOF
16979/* confdefs.h. */
16980_ACEOF
16981cat confdefs.h >>conftest.$ac_ext
16982cat >>conftest.$ac_ext <<_ACEOF
16983/* end confdefs.h. */
16984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16986#define $ac_func innocuous_$ac_func
16987
16988/* System header to define __stub macros and hopefully few prototypes,
16989 which can conflict with char $ac_func (); below.
16990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16991 <limits.h> exists even on freestanding compilers. */
16992
16993#ifdef __STDC__
16994# include <limits.h>
16995#else
16996# include <assert.h>
16997#endif
16998
16999#undef $ac_func
17000
17001/* Override any GCC internal prototype to avoid an error.
17002 Use char because int might match the return type of a GCC
17003 builtin and then its argument prototype would still apply. */
17004#ifdef __cplusplus
17005extern "C"
17006#endif
17007char $ac_func ();
17008/* The GNU C library defines this for functions which it implements
17009 to always fail with ENOSYS. Some functions are actually named
17010 something starting with __ and the normal name is an alias. */
17011#if defined __stub_$ac_func || defined __stub___$ac_func
17012choke me
17013#endif
17014
17015int
17016main ()
17017{
17018return $ac_func ();
17019 ;
17020 return 0;
17021}
17022_ACEOF
17023rm -f conftest.$ac_objext conftest$ac_exeext
17024if { (ac_try="$ac_link"
17025case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028esac
17029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_link") 2>conftest.er1
17031 ac_status=$?
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041esac
17042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051esac
17052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 eval "$as_ac_var=yes"
17058else
17059 echo "$as_me: failed program was:" >&5
17060sed 's/^/| /' conftest.$ac_ext >&5
17061
17062 eval "$as_ac_var=no"
17063fi
17064
17065rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067fi
17068ac_res=`eval echo '${'$as_ac_var'}'`
17069 { echo "$as_me:$LINENO: result: $ac_res" >&5
17070echo "${ECHO_T}$ac_res" >&6; }
17071if test `eval echo '${'$as_ac_var'}'` = yes; then
17072 cat >>confdefs.h <<_ACEOF
17073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17074_ACEOF
17075
17076fi
17077done
17078
17079
17080
17081
17082for ac_func in strerror strerror_r setenv
17083do
17084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17085{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17087if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17089else
17090 cat >conftest.$ac_ext <<_ACEOF
17091/* confdefs.h. */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h. */
17096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17098#define $ac_func innocuous_$ac_func
17099
17100/* System header to define __stub macros and hopefully few prototypes,
17101 which can conflict with char $ac_func (); below.
17102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17103 <limits.h> exists even on freestanding compilers. */
17104
17105#ifdef __STDC__
17106# include <limits.h>
17107#else
17108# include <assert.h>
17109#endif
17110
17111#undef $ac_func
17112
17113/* Override any GCC internal prototype to avoid an error.
17114 Use char because int might match the return type of a GCC
17115 builtin and then its argument prototype would still apply. */
17116#ifdef __cplusplus
17117extern "C"
17118#endif
17119char $ac_func ();
17120/* The GNU C library defines this for functions which it implements
17121 to always fail with ENOSYS. Some functions are actually named
17122 something starting with __ and the normal name is an alias. */
17123#if defined __stub_$ac_func || defined __stub___$ac_func
17124choke me
17125#endif
17126
17127int
17128main ()
17129{
17130return $ac_func ();
17131 ;
17132 return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext conftest$ac_exeext
17136if { (ac_try="$ac_link"
17137case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140esac
17141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17153esac
17154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 eval "$as_ac_var=yes"
17170else
17171 echo "$as_me: failed program was:" >&5
17172sed 's/^/| /' conftest.$ac_ext >&5
17173
17174 eval "$as_ac_var=no"
17175fi
17176
17177rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179fi
17180ac_res=`eval echo '${'$as_ac_var'}'`
17181 { echo "$as_me:$LINENO: result: $ac_res" >&5
17182echo "${ECHO_T}$ac_res" >&6; }
17183if test `eval echo '${'$as_ac_var'}'` = yes; then
17184 cat >>confdefs.h <<_ACEOF
17185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17186_ACEOF
17187
17188fi
17189done
17190
17191
17192
17193
17194
17195for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17196do
17197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202else
17203 cat >conftest.$ac_ext <<_ACEOF
17204/* confdefs.h. */
17205_ACEOF
17206cat confdefs.h >>conftest.$ac_ext
17207cat >>conftest.$ac_ext <<_ACEOF
17208/* end confdefs.h. */
17209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17211#define $ac_func innocuous_$ac_func
17212
17213/* System header to define __stub macros and hopefully few prototypes,
17214 which can conflict with char $ac_func (); below.
17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216 <limits.h> exists even on freestanding compilers. */
17217
17218#ifdef __STDC__
17219# include <limits.h>
17220#else
17221# include <assert.h>
17222#endif
17223
17224#undef $ac_func
17225
17226/* Override any GCC internal prototype to avoid an error.
17227 Use char because int might match the return type of a GCC
17228 builtin and then its argument prototype would still apply. */
17229#ifdef __cplusplus
17230extern "C"
17231#endif
17232char $ac_func ();
17233/* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236#if defined __stub_$ac_func || defined __stub___$ac_func
17237choke me
17238#endif
17239
17240int
17241main ()
17242{
17243return $ac_func ();
17244 ;
17245 return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext conftest$ac_exeext
17249if { (ac_try="$ac_link"
17250case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253esac
17254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_link") 2>conftest.er1
17256 ac_status=$?
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266esac
17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest$ac_exeext'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 eval "$as_ac_var=yes"
17283else
17284 echo "$as_me: failed program was:" >&5
17285sed 's/^/| /' conftest.$ac_ext >&5
17286
17287 eval "$as_ac_var=no"
17288fi
17289
17290rm -f core conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17292fi
17293ac_res=`eval echo '${'$as_ac_var'}'`
17294 { echo "$as_me:$LINENO: result: $ac_res" >&5
17295echo "${ECHO_T}$ac_res" >&6; }
17296if test `eval echo '${'$as_ac_var'}'` = yes; then
17297 cat >>confdefs.h <<_ACEOF
17298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17299_ACEOF
17300
17301fi
17302done
17303
17304
17305
17306
17307
17308
17309for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17310do
17311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17312{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17314if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17316else
17317 cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17325#define $ac_func innocuous_$ac_func
17326
17327/* System header to define __stub macros and hopefully few prototypes,
17328 which can conflict with char $ac_func (); below.
17329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17330 <limits.h> exists even on freestanding compilers. */
17331
17332#ifdef __STDC__
17333# include <limits.h>
17334#else
17335# include <assert.h>
17336#endif
17337
17338#undef $ac_func
17339
17340/* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343#ifdef __cplusplus
17344extern "C"
17345#endif
17346char $ac_func ();
17347/* The GNU C library defines this for functions which it implements
17348 to always fail with ENOSYS. Some functions are actually named
17349 something starting with __ and the normal name is an alias. */
17350#if defined __stub_$ac_func || defined __stub___$ac_func
17351choke me
17352#endif
17353
17354int
17355main ()
17356{
17357return $ac_func ();
17358 ;
17359 return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext conftest$ac_exeext
17363if { (ac_try="$ac_link"
17364case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367esac
17368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_link") 2>conftest.er1
17370 ac_status=$?
17371 grep -v '^ *+' conftest.er1 >conftest.err
17372 rm -f conftest.er1
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest$ac_exeext'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 eval "$as_ac_var=yes"
17397else
17398 echo "$as_me: failed program was:" >&5
17399sed 's/^/| /' conftest.$ac_ext >&5
17400
17401 eval "$as_ac_var=no"
17402fi
17403
17404rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17406fi
17407ac_res=`eval echo '${'$as_ac_var'}'`
17408 { echo "$as_me:$LINENO: result: $ac_res" >&5
17409echo "${ECHO_T}$ac_res" >&6; }
17410if test `eval echo '${'$as_ac_var'}'` = yes; then
17411 cat >>confdefs.h <<_ACEOF
17412#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17413_ACEOF
17414
17415fi
17416done
17417
17418{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17419echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17420if test "${llvm_cv_c_printf_a+set}" = set; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17422else
17423 ac_ext=c
17424ac_cpp='$CPP $CPPFLAGS'
17425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17427ac_compiler_gnu=$ac_cv_c_compiler_gnu
17428
17429 if test "$cross_compiling" = yes; then
17430 llvmac_cv_c_printf_a=no
17431else
17432 cat >conftest.$ac_ext <<_ACEOF
17433
17434 /* confdefs.h. */
17435_ACEOF
17436cat confdefs.h >>conftest.$ac_ext
17437cat >>conftest.$ac_ext <<_ACEOF
17438/* end confdefs.h. */
17439
17440#include <stdio.h>
17441#include <stdlib.h>
17442
17443int
17444main ()
17445{
17446
17447volatile double A, B;
17448char Buffer[100];
17449A = 1;
17450A /= 10.0;
17451sprintf(Buffer, "%a", A);
17452B = atof(Buffer);
17453if (A != B)
17454 return (1);
17455if (A != 0x1.999999999999ap-4)
17456 return (1);
17457return (0);
17458 ;
17459 return 0;
17460}
17461_ACEOF
17462rm -f conftest$ac_exeext
17463if { (ac_try="$ac_link"
17464case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17467esac
17468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_link") 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17473 { (case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17476esac
17477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_try") 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 llvm_cv_c_printf_a=yes
17483else
17484 echo "$as_me: program exited with status $ac_status" >&5
17485echo "$as_me: failed program was:" >&5
17486sed 's/^/| /' conftest.$ac_ext >&5
17487
17488( exit $ac_status )
17489llvmac_cv_c_printf_a=no
17490fi
17491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17492fi
17493
17494
17495 ac_ext=c
17496ac_cpp='$CPP $CPPFLAGS'
17497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499ac_compiler_gnu=$ac_cv_c_compiler_gnu
17500
17501fi
17502{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17503echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17504 if test "$llvm_cv_c_printf_a" = "yes"; then
17505
17506cat >>confdefs.h <<\_ACEOF
17507#define HAVE_PRINTF_A 1
17508_ACEOF
17509
17510 fi
17511
17512
17513{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17514echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17515if test "${ac_cv_func_rand48+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517else
17518 ac_ext=cpp
17519ac_cpp='$CXXCPP $CPPFLAGS'
17520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17523
17524 cat >conftest.$ac_ext <<_ACEOF
17525/* confdefs.h. */
17526_ACEOF
17527cat confdefs.h >>conftest.$ac_ext
17528cat >>conftest.$ac_ext <<_ACEOF
17529/* end confdefs.h. */
17530#include <stdlib.h>
17531int
17532main ()
17533{
17534srand48(0);lrand48();drand48();
17535 ;
17536 return 0;
17537}
17538_ACEOF
17539rm -f conftest.$ac_objext
17540if { (ac_try="$ac_compile"
17541case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17544esac
17545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_compile") 2>conftest.er1
17547 ac_status=$?
17548 grep -v '^ *+' conftest.er1 >conftest.err
17549 rm -f conftest.er1
17550 cat conftest.err >&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } &&
17553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17554 { (case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17557esac
17558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_try") 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; } &&
17563 { ac_try='test -s conftest.$ac_objext'
17564 { (case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567esac
17568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_try") 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; }; then
17573 ac_cv_func_rand48=yes
17574else
17575 echo "$as_me: failed program was:" >&5
17576sed 's/^/| /' conftest.$ac_ext >&5
17577
17578 ac_cv_func_rand48=no
17579fi
17580
17581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 ac_ext=c
17583ac_cpp='$CPP $CPPFLAGS'
17584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17586ac_compiler_gnu=$ac_cv_c_compiler_gnu
17587
17588fi
17589{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17590echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17591
17592if test "$ac_cv_func_rand48" = "yes" ; then
17593
17594cat >>confdefs.h <<\_ACEOF
17595#define HAVE_RAND48 1
17596_ACEOF
17597
17598fi
17599
17600
17601{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17602echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17603if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17605else
17606 cat >conftest.$ac_ext <<_ACEOF
17607/* confdefs.h. */
17608_ACEOF
17609cat confdefs.h >>conftest.$ac_ext
17610cat >>conftest.$ac_ext <<_ACEOF
17611/* end confdefs.h. */
17612$ac_includes_default
17613int
17614main ()
17615{
17616#ifndef strerror_s
17617 char *p = (char *) strerror_s;
17618 return !p;
17619#endif
17620
17621 ;
17622 return 0;
17623}
17624_ACEOF
17625rm -f conftest.$ac_objext
17626if { (ac_try="$ac_compile"
17627case "(($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_compile") 2>conftest.er1
17633 ac_status=$?
17634 grep -v '^ *+' conftest.er1 >conftest.err
17635 rm -f conftest.er1
17636 cat conftest.err >&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } &&
17639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17640 { (case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17643esac
17644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_try") 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest.$ac_objext'
17650 { (case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653esac
17654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_try") 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_have_decl_strerror_s=yes
17660else
17661 echo "$as_me: failed program was:" >&5
17662sed 's/^/| /' conftest.$ac_ext >&5
17663
17664 ac_cv_have_decl_strerror_s=no
17665fi
17666
17667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668fi
17669{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17670echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17671if test $ac_cv_have_decl_strerror_s = yes; then
17672
17673cat >>confdefs.h <<_ACEOF
17674#define HAVE_DECL_STRERROR_S 1
17675_ACEOF
17676
17677
17678else
17679 cat >>confdefs.h <<_ACEOF
17680#define HAVE_DECL_STRERROR_S 0
17681_ACEOF
17682
17683
17684fi
17685
17686
17687
17688if test "$llvm_cv_os_type" = "MingW" ; then
17689 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17690echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17691if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693else
17694 ac_check_lib_save_LIBS=$LIBS
17695LIBS="-lgcc $LIBS"
17696cat >conftest.$ac_ext <<_ACEOF
17697/* confdefs.h. */
17698_ACEOF
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
17701/* end confdefs.h. */
17702
17703/* Override any GCC internal prototype to avoid an error.
17704 Use char because int might match the return type of a GCC
17705 builtin and then its argument prototype would still apply. */
17706#ifdef __cplusplus
17707extern "C"
17708#endif
17709char _alloca ();
17710int
17711main ()
17712{
17713return _alloca ();
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext conftest$ac_exeext
17719if { (ac_try="$ac_link"
17720case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723esac
17724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_link") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest$ac_exeext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_lib_gcc__alloca=yes
17753else
17754 echo "$as_me: failed program was:" >&5
17755sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 ac_cv_lib_gcc__alloca=no
17758fi
17759
17760rm -f core conftest.err conftest.$ac_objext \
17761 conftest$ac_exeext conftest.$ac_ext
17762LIBS=$ac_check_lib_save_LIBS
17763fi
17764{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17765echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17766if test $ac_cv_lib_gcc__alloca = yes; then
17767
17768cat >>confdefs.h <<\_ACEOF
17769#define HAVE__ALLOCA 1
17770_ACEOF
17771
17772fi
17773
17774 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17775echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17776if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17778else
17779 ac_check_lib_save_LIBS=$LIBS
17780LIBS="-lgcc $LIBS"
17781cat >conftest.$ac_ext <<_ACEOF
17782/* confdefs.h. */
17783_ACEOF
17784cat confdefs.h >>conftest.$ac_ext
17785cat >>conftest.$ac_ext <<_ACEOF
17786/* end confdefs.h. */
17787
17788/* Override any GCC internal prototype to avoid an error.
17789 Use char because int might match the return type of a GCC
17790 builtin and then its argument prototype would still apply. */
17791#ifdef __cplusplus
17792extern "C"
17793#endif
17794char __alloca ();
17795int
17796main ()
17797{
17798return __alloca ();
17799 ;
17800 return 0;
17801}
17802_ACEOF
17803rm -f conftest.$ac_objext conftest$ac_exeext
17804if { (ac_try="$ac_link"
17805case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808esac
17809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_link") 2>conftest.er1
17811 ac_status=$?
17812 grep -v '^ *+' conftest.er1 >conftest.err
17813 rm -f conftest.er1
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
17817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17818 { (case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17821esac
17822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_try") 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; } &&
17827 { ac_try='test -s conftest$ac_exeext'
17828 { (case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17831esac
17832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_try") 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; }; then
17837 ac_cv_lib_gcc___alloca=yes
17838else
17839 echo "$as_me: failed program was:" >&5
17840sed 's/^/| /' conftest.$ac_ext >&5
17841
17842 ac_cv_lib_gcc___alloca=no
17843fi
17844
17845rm -f core conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847LIBS=$ac_check_lib_save_LIBS
17848fi
17849{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17850echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17851if test $ac_cv_lib_gcc___alloca = yes; then
17852
17853cat >>confdefs.h <<\_ACEOF
17854#define HAVE___ALLOCA 1
17855_ACEOF
17856
17857fi
17858
17859 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17860echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17861if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863else
17864 ac_check_lib_save_LIBS=$LIBS
17865LIBS="-lgcc $LIBS"
17866cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872
17873/* Override any GCC internal prototype to avoid an error.
17874 Use char because int might match the return type of a GCC
17875 builtin and then its argument prototype would still apply. */
17876#ifdef __cplusplus
17877extern "C"
17878#endif
17879char __chkstk ();
17880int
17881main ()
17882{
17883return __chkstk ();
17884 ;
17885 return 0;
17886}
17887_ACEOF
17888rm -f conftest.$ac_objext conftest$ac_exeext
17889if { (ac_try="$ac_link"
17890case "(($ac_try" in
17891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892 *) ac_try_echo=$ac_try;;
17893esac
17894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895 (eval "$ac_link") 2>conftest.er1
17896 ac_status=$?
17897 grep -v '^ *+' conftest.er1 >conftest.err
17898 rm -f conftest.er1
17899 cat conftest.err >&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
17902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17903 { (case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17906esac
17907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_try") 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest$ac_exeext'
17913 { (case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916esac
17917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_try") 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_cv_lib_gcc___chkstk=yes
17923else
17924 echo "$as_me: failed program was:" >&5
17925sed 's/^/| /' conftest.$ac_ext >&5
17926
17927 ac_cv_lib_gcc___chkstk=no
17928fi
17929
17930rm -f core conftest.err conftest.$ac_objext \
17931 conftest$ac_exeext conftest.$ac_ext
17932LIBS=$ac_check_lib_save_LIBS
17933fi
17934{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17935echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17936if test $ac_cv_lib_gcc___chkstk = yes; then
17937
17938cat >>confdefs.h <<\_ACEOF
17939#define HAVE___CHKSTK 1
17940_ACEOF
17941
17942fi
17943
17944 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17945echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17946if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17948else
17949 ac_check_lib_save_LIBS=$LIBS
17950LIBS="-lgcc $LIBS"
17951cat >conftest.$ac_ext <<_ACEOF
17952/* confdefs.h. */
17953_ACEOF
17954cat confdefs.h >>conftest.$ac_ext
17955cat >>conftest.$ac_ext <<_ACEOF
17956/* end confdefs.h. */
17957
17958/* Override any GCC internal prototype to avoid an error.
17959 Use char because int might match the return type of a GCC
17960 builtin and then its argument prototype would still apply. */
17961#ifdef __cplusplus
17962extern "C"
17963#endif
17964char ___chkstk ();
17965int
17966main ()
17967{
17968return ___chkstk ();
17969 ;
17970 return 0;
17971}
17972_ACEOF
17973rm -f conftest.$ac_objext conftest$ac_exeext
17974if { (ac_try="$ac_link"
17975case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17978esac
17979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_link") 2>conftest.er1
17981 ac_status=$?
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17988 { (case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17991esac
17992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_try") 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; } &&
17997 { ac_try='test -s conftest$ac_exeext'
17998 { (case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001esac
18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_try") 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 ac_cv_lib_gcc____chkstk=yes
18008else
18009 echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 ac_cv_lib_gcc____chkstk=no
18013fi
18014
18015rm -f core conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18017LIBS=$ac_check_lib_save_LIBS
18018fi
18019{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18020echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18021if test $ac_cv_lib_gcc____chkstk = yes; then
18022
18023cat >>confdefs.h <<\_ACEOF
18024#define HAVE____CHKSTK 1
18025_ACEOF
18026
18027fi
18028
18029
18030 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18031echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18032if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18034else
18035 ac_check_lib_save_LIBS=$LIBS
18036LIBS="-lgcc $LIBS"
18037cat >conftest.$ac_ext <<_ACEOF
18038/* confdefs.h. */
18039_ACEOF
18040cat confdefs.h >>conftest.$ac_ext
18041cat >>conftest.$ac_ext <<_ACEOF
18042/* end confdefs.h. */
18043
18044/* Override any GCC internal prototype to avoid an error.
18045 Use char because int might match the return type of a GCC
18046 builtin and then its argument prototype would still apply. */
18047#ifdef __cplusplus
18048extern "C"
18049#endif
18050char __ashldi3 ();
18051int
18052main ()
18053{
18054return __ashldi3 ();
18055 ;
18056 return 0;
18057}
18058_ACEOF
18059rm -f conftest.$ac_objext conftest$ac_exeext
18060if { (ac_try="$ac_link"
18061case "(($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_link") 2>conftest.er1
18067 ac_status=$?
18068 grep -v '^ *+' conftest.er1 >conftest.err
18069 rm -f conftest.er1
18070 cat conftest.err >&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } &&
18073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18074 { (case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18077esac
18078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_try") 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest$ac_exeext'
18084 { (case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18087esac
18088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_try") 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; }; then
18093 ac_cv_lib_gcc___ashldi3=yes
18094else
18095 echo "$as_me: failed program was:" >&5
18096sed 's/^/| /' conftest.$ac_ext >&5
18097
18098 ac_cv_lib_gcc___ashldi3=no
18099fi
18100
18101rm -f core conftest.err conftest.$ac_objext \
18102 conftest$ac_exeext conftest.$ac_ext
18103LIBS=$ac_check_lib_save_LIBS
18104fi
18105{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18106echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18107if test $ac_cv_lib_gcc___ashldi3 = yes; then
18108
18109cat >>confdefs.h <<\_ACEOF
18110#define HAVE___ASHLDI3 1
18111_ACEOF
18112
18113fi
18114
18115 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18116echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18117if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18118 echo $ECHO_N "(cached) $ECHO_C" >&6
18119else
18120 ac_check_lib_save_LIBS=$LIBS
18121LIBS="-lgcc $LIBS"
18122cat >conftest.$ac_ext <<_ACEOF
18123/* confdefs.h. */
18124_ACEOF
18125cat confdefs.h >>conftest.$ac_ext
18126cat >>conftest.$ac_ext <<_ACEOF
18127/* end confdefs.h. */
18128
18129/* Override any GCC internal prototype to avoid an error.
18130 Use char because int might match the return type of a GCC
18131 builtin and then its argument prototype would still apply. */
18132#ifdef __cplusplus
18133extern "C"
18134#endif
18135char __ashrdi3 ();
18136int
18137main ()
18138{
18139return __ashrdi3 ();
18140 ;
18141 return 0;
18142}
18143_ACEOF
18144rm -f conftest.$ac_objext conftest$ac_exeext
18145if { (ac_try="$ac_link"
18146case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18149esac
18150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_link") 2>conftest.er1
18152 ac_status=$?
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
18158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18159 { (case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18162esac
18163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_try") 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest$ac_exeext'
18169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172esac
18173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 ac_cv_lib_gcc___ashrdi3=yes
18179else
18180 echo "$as_me: failed program was:" >&5
18181sed 's/^/| /' conftest.$ac_ext >&5
18182
18183 ac_cv_lib_gcc___ashrdi3=no
18184fi
18185
18186rm -f core conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18188LIBS=$ac_check_lib_save_LIBS
18189fi
18190{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18191echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18192if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18193
18194cat >>confdefs.h <<\_ACEOF
18195#define HAVE___ASHRDI3 1
18196_ACEOF
18197
18198fi
18199
18200 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18201echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18202if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18203 echo $ECHO_N "(cached) $ECHO_C" >&6
18204else
18205 ac_check_lib_save_LIBS=$LIBS
18206LIBS="-lgcc $LIBS"
18207cat >conftest.$ac_ext <<_ACEOF
18208/* confdefs.h. */
18209_ACEOF
18210cat confdefs.h >>conftest.$ac_ext
18211cat >>conftest.$ac_ext <<_ACEOF
18212/* end confdefs.h. */
18213
18214/* Override any GCC internal prototype to avoid an error.
18215 Use char because int might match the return type of a GCC
18216 builtin and then its argument prototype would still apply. */
18217#ifdef __cplusplus
18218extern "C"
18219#endif
18220char __divdi3 ();
18221int
18222main ()
18223{
18224return __divdi3 ();
18225 ;
18226 return 0;
18227}
18228_ACEOF
18229rm -f conftest.$ac_objext conftest$ac_exeext
18230if { (ac_try="$ac_link"
18231case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18234esac
18235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_link") 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18244 { (case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18247esac
18248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_try") 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try='test -s conftest$ac_exeext'
18254 { (case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18257esac
18258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_try") 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18263 ac_cv_lib_gcc___divdi3=yes
18264else
18265 echo "$as_me: failed program was:" >&5
18266sed 's/^/| /' conftest.$ac_ext >&5
18267
18268 ac_cv_lib_gcc___divdi3=no
18269fi
18270
18271rm -f core conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18273LIBS=$ac_check_lib_save_LIBS
18274fi
18275{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18276echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18277if test $ac_cv_lib_gcc___divdi3 = yes; then
18278
18279cat >>confdefs.h <<\_ACEOF
18280#define HAVE___DIVDI3 1
18281_ACEOF
18282
18283fi
18284
18285 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18286echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18287if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289else
18290 ac_check_lib_save_LIBS=$LIBS
18291LIBS="-lgcc $LIBS"
18292cat >conftest.$ac_ext <<_ACEOF
18293/* confdefs.h. */
18294_ACEOF
18295cat confdefs.h >>conftest.$ac_ext
18296cat >>conftest.$ac_ext <<_ACEOF
18297/* end confdefs.h. */
18298
18299/* Override any GCC internal prototype to avoid an error.
18300 Use char because int might match the return type of a GCC
18301 builtin and then its argument prototype would still apply. */
18302#ifdef __cplusplus
18303extern "C"
18304#endif
18305char __fixdfdi ();
18306int
18307main ()
18308{
18309return __fixdfdi ();
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext conftest$ac_exeext
18315if { (ac_try="$ac_link"
18316case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18319esac
18320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_link") 2>conftest.er1
18322 ac_status=$?
18323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18329 { (case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18332esac
18333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_try") 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18342esac
18343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_try") 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18348 ac_cv_lib_gcc___fixdfdi=yes
18349else
18350 echo "$as_me: failed program was:" >&5
18351sed 's/^/| /' conftest.$ac_ext >&5
18352
18353 ac_cv_lib_gcc___fixdfdi=no
18354fi
18355
18356rm -f core conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18358LIBS=$ac_check_lib_save_LIBS
18359fi
18360{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18361echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18362if test $ac_cv_lib_gcc___fixdfdi = yes; then
18363
18364cat >>confdefs.h <<\_ACEOF
18365#define HAVE___FIXDFDI 1
18366_ACEOF
18367
18368fi
18369
18370 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18371echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18372if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18373 echo $ECHO_N "(cached) $ECHO_C" >&6
18374else
18375 ac_check_lib_save_LIBS=$LIBS
18376LIBS="-lgcc $LIBS"
18377cat >conftest.$ac_ext <<_ACEOF
18378/* confdefs.h. */
18379_ACEOF
18380cat confdefs.h >>conftest.$ac_ext
18381cat >>conftest.$ac_ext <<_ACEOF
18382/* end confdefs.h. */
18383
18384/* Override any GCC internal prototype to avoid an error.
18385 Use char because int might match the return type of a GCC
18386 builtin and then its argument prototype would still apply. */
18387#ifdef __cplusplus
18388extern "C"
18389#endif
18390char __fixsfdi ();
18391int
18392main ()
18393{
18394return __fixsfdi ();
18395 ;
18396 return 0;
18397}
18398_ACEOF
18399rm -f conftest.$ac_objext conftest$ac_exeext
18400if { (ac_try="$ac_link"
18401case "(($ac_try" in
18402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403 *) ac_try_echo=$ac_try;;
18404esac
18405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406 (eval "$ac_link") 2>conftest.er1
18407 ac_status=$?
18408 grep -v '^ *+' conftest.er1 >conftest.err
18409 rm -f conftest.er1
18410 cat conftest.err >&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } &&
18413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18414 { (case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18417esac
18418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_try") 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; } &&
18423 { ac_try='test -s conftest$ac_exeext'
18424 { (case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427esac
18428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_try") 2>&5
18430 ac_status=$?
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; }; then
18433 ac_cv_lib_gcc___fixsfdi=yes
18434else
18435 echo "$as_me: failed program was:" >&5
18436sed 's/^/| /' conftest.$ac_ext >&5
18437
18438 ac_cv_lib_gcc___fixsfdi=no
18439fi
18440
18441rm -f core conftest.err conftest.$ac_objext \
18442 conftest$ac_exeext conftest.$ac_ext
18443LIBS=$ac_check_lib_save_LIBS
18444fi
18445{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18446echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18447if test $ac_cv_lib_gcc___fixsfdi = yes; then
18448
18449cat >>confdefs.h <<\_ACEOF
18450#define HAVE___FIXSFDI 1
18451_ACEOF
18452
18453fi
18454
18455 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18456echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18457if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18459else
18460 ac_check_lib_save_LIBS=$LIBS
18461LIBS="-lgcc $LIBS"
18462cat >conftest.$ac_ext <<_ACEOF
18463/* confdefs.h. */
18464_ACEOF
18465cat confdefs.h >>conftest.$ac_ext
18466cat >>conftest.$ac_ext <<_ACEOF
18467/* end confdefs.h. */
18468
18469/* Override any GCC internal prototype to avoid an error.
18470 Use char because int might match the return type of a GCC
18471 builtin and then its argument prototype would still apply. */
18472#ifdef __cplusplus
18473extern "C"
18474#endif
18475char __floatdidf ();
18476int
18477main ()
18478{
18479return __floatdidf ();
18480 ;
18481 return 0;
18482}
18483_ACEOF
18484rm -f conftest.$ac_objext conftest$ac_exeext
18485if { (ac_try="$ac_link"
18486case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18489esac
18490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_link") 2>conftest.er1
18492 ac_status=$?
18493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -f conftest.er1
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18499 { (case "(($ac_try" in
18500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501 *) ac_try_echo=$ac_try;;
18502esac
18503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504 (eval "$ac_try") 2>&5
18505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; } &&
18508 { ac_try='test -s conftest$ac_exeext'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518 ac_cv_lib_gcc___floatdidf=yes
18519else
18520 echo "$as_me: failed program was:" >&5
18521sed 's/^/| /' conftest.$ac_ext >&5
18522
18523 ac_cv_lib_gcc___floatdidf=no
18524fi
18525
18526rm -f core conftest.err conftest.$ac_objext \
18527 conftest$ac_exeext conftest.$ac_ext
18528LIBS=$ac_check_lib_save_LIBS
18529fi
18530{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18531echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18532if test $ac_cv_lib_gcc___floatdidf = yes; then
18533
18534cat >>confdefs.h <<\_ACEOF
18535#define HAVE___FLOATDIDF 1
18536_ACEOF
18537
18538fi
18539
18540 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18541echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18542if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18544else
18545 ac_check_lib_save_LIBS=$LIBS
18546LIBS="-lgcc $LIBS"
18547cat >conftest.$ac_ext <<_ACEOF
18548/* confdefs.h. */
18549_ACEOF
18550cat confdefs.h >>conftest.$ac_ext
18551cat >>conftest.$ac_ext <<_ACEOF
18552/* end confdefs.h. */
18553
18554/* Override any GCC internal prototype to avoid an error.
18555 Use char because int might match the return type of a GCC
18556 builtin and then its argument prototype would still apply. */
18557#ifdef __cplusplus
18558extern "C"
18559#endif
18560char __lshrdi3 ();
18561int
18562main ()
18563{
18564return __lshrdi3 ();
18565 ;
18566 return 0;
18567}
18568_ACEOF
18569rm -f conftest.$ac_objext conftest$ac_exeext
18570if { (ac_try="$ac_link"
18571case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574esac
18575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_link") 2>conftest.er1
18577 ac_status=$?
18578 grep -v '^ *+' conftest.er1 >conftest.err
18579 rm -f conftest.er1
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } &&
18583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18584 { (case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18587esac
18588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_try") 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; } &&
18593 { ac_try='test -s conftest$ac_exeext'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597esac
18598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18603 ac_cv_lib_gcc___lshrdi3=yes
18604else
18605 echo "$as_me: failed program was:" >&5
18606sed 's/^/| /' conftest.$ac_ext >&5
18607
18608 ac_cv_lib_gcc___lshrdi3=no
18609fi
18610
18611rm -f core conftest.err conftest.$ac_objext \
18612 conftest$ac_exeext conftest.$ac_ext
18613LIBS=$ac_check_lib_save_LIBS
18614fi
18615{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18616echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18617if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18618
18619cat >>confdefs.h <<\_ACEOF
18620#define HAVE___LSHRDI3 1
18621_ACEOF
18622
18623fi
18624
18625 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18626echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18627if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18629else
18630 ac_check_lib_save_LIBS=$LIBS
18631LIBS="-lgcc $LIBS"
18632cat >conftest.$ac_ext <<_ACEOF
18633/* confdefs.h. */
18634_ACEOF
18635cat confdefs.h >>conftest.$ac_ext
18636cat >>conftest.$ac_ext <<_ACEOF
18637/* end confdefs.h. */
18638
18639/* Override any GCC internal prototype to avoid an error.
18640 Use char because int might match the return type of a GCC
18641 builtin and then its argument prototype would still apply. */
18642#ifdef __cplusplus
18643extern "C"
18644#endif
18645char __moddi3 ();
18646int
18647main ()
18648{
18649return __moddi3 ();
18650 ;
18651 return 0;
18652}
18653_ACEOF
18654rm -f conftest.$ac_objext conftest$ac_exeext
18655if { (ac_try="$ac_link"
18656case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659esac
18660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_link") 2>conftest.er1
18662 ac_status=$?
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
18668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18669 { (case "(($ac_try" in
18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671 *) ac_try_echo=$ac_try;;
18672esac
18673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674 (eval "$ac_try") 2>&5
18675 ac_status=$?
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try='test -s conftest$ac_exeext'
18679 { (case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18682esac
18683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_try") 2>&5
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
18688 ac_cv_lib_gcc___moddi3=yes
18689else
18690 echo "$as_me: failed program was:" >&5
18691sed 's/^/| /' conftest.$ac_ext >&5
18692
18693 ac_cv_lib_gcc___moddi3=no
18694fi
18695
18696rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18698LIBS=$ac_check_lib_save_LIBS
18699fi
18700{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18701echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18702if test $ac_cv_lib_gcc___moddi3 = yes; then
18703
18704cat >>confdefs.h <<\_ACEOF
18705#define HAVE___MODDI3 1
18706_ACEOF
18707
18708fi
18709
18710 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18711echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18712if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18713 echo $ECHO_N "(cached) $ECHO_C" >&6
18714else
18715 ac_check_lib_save_LIBS=$LIBS
18716LIBS="-lgcc $LIBS"
18717cat >conftest.$ac_ext <<_ACEOF
18718/* confdefs.h. */
18719_ACEOF
18720cat confdefs.h >>conftest.$ac_ext
18721cat >>conftest.$ac_ext <<_ACEOF
18722/* end confdefs.h. */
18723
18724/* Override any GCC internal prototype to avoid an error.
18725 Use char because int might match the return type of a GCC
18726 builtin and then its argument prototype would still apply. */
18727#ifdef __cplusplus
18728extern "C"
18729#endif
18730char __udivdi3 ();
18731int
18732main ()
18733{
18734return __udivdi3 ();
18735 ;
18736 return 0;
18737}
18738_ACEOF
18739rm -f conftest.$ac_objext conftest$ac_exeext
18740if { (ac_try="$ac_link"
18741case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18744esac
18745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_link") 2>conftest.er1
18747 ac_status=$?
18748 grep -v '^ *+' conftest.er1 >conftest.err
18749 rm -f conftest.er1
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } &&
18753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18754 { (case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18757esac
18758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_try") 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try='test -s conftest$ac_exeext'
18764 { (case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767esac
18768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_try") 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 ac_cv_lib_gcc___udivdi3=yes
18774else
18775 echo "$as_me: failed program was:" >&5
18776sed 's/^/| /' conftest.$ac_ext >&5
18777
18778 ac_cv_lib_gcc___udivdi3=no
18779fi
18780
18781rm -f core conftest.err conftest.$ac_objext \
18782 conftest$ac_exeext conftest.$ac_ext
18783LIBS=$ac_check_lib_save_LIBS
18784fi
18785{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18786echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18787if test $ac_cv_lib_gcc___udivdi3 = yes; then
18788
18789cat >>confdefs.h <<\_ACEOF
18790#define HAVE___UDIVDI3 1
18791_ACEOF
18792
18793fi
18794
18795 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18796echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18797if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18799else
18800 ac_check_lib_save_LIBS=$LIBS
18801LIBS="-lgcc $LIBS"
18802cat >conftest.$ac_ext <<_ACEOF
18803/* confdefs.h. */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h. */
18808
18809/* Override any GCC internal prototype to avoid an error.
18810 Use char because int might match the return type of a GCC
18811 builtin and then its argument prototype would still apply. */
18812#ifdef __cplusplus
18813extern "C"
18814#endif
18815char __umoddi3 ();
18816int
18817main ()
18818{
18819return __umoddi3 ();
18820 ;
18821 return 0;
18822}
18823_ACEOF
18824rm -f conftest.$ac_objext conftest$ac_exeext
18825if { (ac_try="$ac_link"
18826case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829esac
18830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_link") 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18839 { (case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18842esac
18843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_try") 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; } &&
18848 { ac_try='test -s conftest$ac_exeext'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852esac
18853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 ac_cv_lib_gcc___umoddi3=yes
18859else
18860 echo "$as_me: failed program was:" >&5
18861sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_cv_lib_gcc___umoddi3=no
18864fi
18865
18866rm -f core conftest.err conftest.$ac_objext \
18867 conftest$ac_exeext conftest.$ac_ext
18868LIBS=$ac_check_lib_save_LIBS
18869fi
18870{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18871echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18872if test $ac_cv_lib_gcc___umoddi3 = yes; then
18873
18874cat >>confdefs.h <<\_ACEOF
18875#define HAVE___UMODDI3 1
18876_ACEOF
18877
18878fi
18879
18880
18881 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18882echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18883if test "${ac_cv_lib_gcc___main+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18885else
18886 ac_check_lib_save_LIBS=$LIBS
18887LIBS="-lgcc $LIBS"
18888cat >conftest.$ac_ext <<_ACEOF
18889/* confdefs.h. */
18890_ACEOF
18891cat confdefs.h >>conftest.$ac_ext
18892cat >>conftest.$ac_ext <<_ACEOF
18893/* end confdefs.h. */
18894
18895/* Override any GCC internal prototype to avoid an error.
18896 Use char because int might match the return type of a GCC
18897 builtin and then its argument prototype would still apply. */
18898#ifdef __cplusplus
18899extern "C"
18900#endif
18901char __main ();
18902int
18903main ()
18904{
18905return __main ();
18906 ;
18907 return 0;
18908}
18909_ACEOF
18910rm -f conftest.$ac_objext conftest$ac_exeext
18911if { (ac_try="$ac_link"
18912case "(($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_link") 2>conftest.er1
18918 ac_status=$?
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
18924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18925 { (case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18928esac
18929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_try") 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; } &&
18934 { ac_try='test -s conftest$ac_exeext'
18935 { (case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18938esac
18939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_try") 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 ac_cv_lib_gcc___main=yes
18945else
18946 echo "$as_me: failed program was:" >&5
18947sed 's/^/| /' conftest.$ac_ext >&5
18948
18949 ac_cv_lib_gcc___main=no
18950fi
18951
18952rm -f core conftest.err conftest.$ac_objext \
18953 conftest$ac_exeext conftest.$ac_ext
18954LIBS=$ac_check_lib_save_LIBS
18955fi
18956{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18957echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18958if test $ac_cv_lib_gcc___main = yes; then
18959
18960cat >>confdefs.h <<\_ACEOF
18961#define HAVE___MAIN 1
18962_ACEOF
18963
18964fi
18965
18966 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18967echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18968if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18969 echo $ECHO_N "(cached) $ECHO_C" >&6
18970else
18971 ac_check_lib_save_LIBS=$LIBS
18972LIBS="-lgcc $LIBS"
18973cat >conftest.$ac_ext <<_ACEOF
18974/* confdefs.h. */
18975_ACEOF
18976cat confdefs.h >>conftest.$ac_ext
18977cat >>conftest.$ac_ext <<_ACEOF
18978/* end confdefs.h. */
18979
18980/* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18983#ifdef __cplusplus
18984extern "C"
18985#endif
18986char __cmpdi2 ();
18987int
18988main ()
18989{
18990return __cmpdi2 ();
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995rm -f conftest.$ac_objext conftest$ac_exeext
18996if { (ac_try="$ac_link"
18997case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000esac
19001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } &&
19009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19010 { (case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19013esac
19014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015 (eval "$ac_try") 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; } &&
19019 { ac_try='test -s conftest$ac_exeext'
19020 { (case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19023esac
19024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_try") 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; }; then
19029 ac_cv_lib_gcc___cmpdi2=yes
19030else
19031 echo "$as_me: failed program was:" >&5
19032sed 's/^/| /' conftest.$ac_ext >&5
19033
19034 ac_cv_lib_gcc___cmpdi2=no
19035fi
19036
19037rm -f core conftest.err conftest.$ac_objext \
19038 conftest$ac_exeext conftest.$ac_ext
19039LIBS=$ac_check_lib_save_LIBS
19040fi
19041{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19042echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19043if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19044
19045cat >>confdefs.h <<\_ACEOF
19046#define HAVE___CMPDI2 1
19047_ACEOF
19048
19049fi
19050
19051fi
19052
19053if test "$llvm_cv_os_type" = "MingW" ; then
19054 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19055echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19056 cat >conftest.$ac_ext <<_ACEOF
19057#include <windows.h>
19058#include <imagehlp.h>
19059extern void foo(PENUMLOADED_MODULES_CALLBACK);
19060extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19061_ACEOF
19062rm -f conftest.$ac_objext
19063if { (ac_try="$ac_compile"
19064case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19067esac
19068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_compile") 2>conftest.er1
19070 ac_status=$?
19071 grep -v '^ *+' conftest.er1 >conftest.err
19072 rm -f conftest.er1
19073 cat conftest.err >&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } &&
19076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19077 { (case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19080esac
19081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_try") 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; } &&
19086 { ac_try='test -s conftest.$ac_objext'
19087 { (case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19090esac
19091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_try") 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096
19097 { echo "$as_me:$LINENO: result: yes" >&5
19098echo "${ECHO_T}yes" >&6; }
19099 llvm_cv_win32_elmcb_pcstr="PCSTR"
19100
19101else
19102 echo "$as_me: failed program was:" >&5
19103sed 's/^/| /' conftest.$ac_ext >&5
19104
19105
19106 { echo "$as_me:$LINENO: result: no" >&5
19107echo "${ECHO_T}no" >&6; }
19108 llvm_cv_win32_elmcb_pcstr="PSTR"
19109
19110fi
19111
19112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19113
19114cat >>confdefs.h <<_ACEOF
19115#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19116_ACEOF
19117
19118fi
19119
19120
19121{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19122echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19123if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125else
19126 ac_ext=cpp
19127ac_cpp='$CXXCPP $CPPFLAGS'
19128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19131
19132 cat >conftest.$ac_ext <<_ACEOF
19133/* confdefs.h. */
19134_ACEOF
19135cat confdefs.h >>conftest.$ac_ext
19136cat >>conftest.$ac_ext <<_ACEOF
19137/* end confdefs.h. */
19138#include <math.h>
19139int
19140main ()
19141{
19142float f; isnan(f);
19143 ;
19144 return 0;
19145}
19146_ACEOF
19147rm -f conftest.$ac_objext
19148if { (ac_try="$ac_compile"
19149case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152esac
19153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_compile") 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19162 { (case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19165esac
19166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167 (eval "$ac_try") 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; } &&
19171 { ac_try='test -s conftest.$ac_objext'
19172 { (case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19175esac
19176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_try") 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 ac_cv_func_isnan_in_math_h=yes
19182else
19183 echo "$as_me: failed program was:" >&5
19184sed 's/^/| /' conftest.$ac_ext >&5
19185
19186 ac_cv_func_isnan_in_math_h=no
19187fi
19188
19189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19190 ac_ext=c
19191ac_cpp='$CPP $CPPFLAGS'
19192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19194ac_compiler_gnu=$ac_cv_c_compiler_gnu
19195
19196fi
19197{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19198echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19199
19200
19201if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19202
19203cat >>confdefs.h <<\_ACEOF
19204#define HAVE_ISNAN_IN_MATH_H 1
19205_ACEOF
19206
19207fi
19208
19209{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19210echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19211if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19213else
19214 ac_ext=cpp
19215ac_cpp='$CXXCPP $CPPFLAGS'
19216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19219
19220 cat >conftest.$ac_ext <<_ACEOF
19221/* confdefs.h. */
19222_ACEOF
19223cat confdefs.h >>conftest.$ac_ext
19224cat >>conftest.$ac_ext <<_ACEOF
19225/* end confdefs.h. */
19226#include <cmath>
19227int
19228main ()
19229{
19230float f; isnan(f);
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235rm -f conftest.$ac_objext
19236if { (ac_try="$ac_compile"
19237case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240esac
19241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_compile") 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253esac
19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263esac
19264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_cv_func_isnan_in_cmath=yes
19270else
19271 echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 ac_cv_func_isnan_in_cmath=no
19275fi
19276
19277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278 ac_ext=c
19279ac_cpp='$CPP $CPPFLAGS'
19280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19282ac_compiler_gnu=$ac_cv_c_compiler_gnu
19283
19284fi
19285{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19286echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19287
19288if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19289
19290cat >>confdefs.h <<\_ACEOF
19291#define HAVE_ISNAN_IN_CMATH 1
19292_ACEOF
19293
19294fi
19295
19296{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19297echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19298if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19300else
19301 ac_ext=cpp
19302ac_cpp='$CXXCPP $CPPFLAGS'
19303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19306
19307 cat >conftest.$ac_ext <<_ACEOF
19308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
19313#include <cmath>
19314int
19315main ()
19316{
19317float f; std::isnan(f);
19318 ;
19319 return 0;
19320}
19321_ACEOF
19322rm -f conftest.$ac_objext
19323if { (ac_try="$ac_compile"
19324case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19327esac
19328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_compile") 2>conftest.er1
19330 ac_status=$?
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
19336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19337 { (case "(($ac_try" in
19338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339 *) ac_try_echo=$ac_try;;
19340esac
19341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342 (eval "$ac_try") 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } &&
19346 { ac_try='test -s conftest.$ac_objext'
19347 { (case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_try") 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; }; then
19356 ac_cv_func_std_isnan_in_cmath=yes
19357else
19358 echo "$as_me: failed program was:" >&5
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 ac_cv_func_std_isnan_in_cmath=no
19362fi
19363
19364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 ac_ext=c
19366ac_cpp='$CPP $CPPFLAGS'
19367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19369ac_compiler_gnu=$ac_cv_c_compiler_gnu
19370
19371fi
19372{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19373echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19374
19375if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19376
19377cat >>confdefs.h <<\_ACEOF
19378#define HAVE_STD_ISNAN_IN_CMATH 1
19379_ACEOF
19380
19381fi
19382
19383
19384{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19385echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19386if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388else
19389 ac_ext=cpp
19390ac_cpp='$CXXCPP $CPPFLAGS'
19391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19394
19395 cat >conftest.$ac_ext <<_ACEOF
19396/* confdefs.h. */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
19400/* end confdefs.h. */
19401#include <math.h>
19402int
19403main ()
19404{
19405float f; isinf(f);
19406 ;
19407 return 0;
19408}
19409_ACEOF
19410rm -f conftest.$ac_objext
19411if { (ac_try="$ac_compile"
19412case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19415esac
19416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_compile") 2>conftest.er1
19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19425 { (case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428esac
19429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_try") 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
19435 { (case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_try") 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 ac_cv_func_isinf_in_math_h=yes
19445else
19446 echo "$as_me: failed program was:" >&5
19447sed 's/^/| /' conftest.$ac_ext >&5
19448
19449 ac_cv_func_isinf_in_math_h=no
19450fi
19451
19452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 ac_ext=c
19454ac_cpp='$CPP $CPPFLAGS'
19455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_c_compiler_gnu
19458
19459fi
19460{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19461echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19462
19463if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19464
19465cat >>confdefs.h <<\_ACEOF
19466#define HAVE_ISINF_IN_MATH_H 1
19467_ACEOF
19468
19469fi
19470
19471{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19472echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19473if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475else
19476 ac_ext=cpp
19477ac_cpp='$CXXCPP $CPPFLAGS'
19478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19481
19482 cat >conftest.$ac_ext <<_ACEOF
19483/* confdefs.h. */
19484_ACEOF
19485cat confdefs.h >>conftest.$ac_ext
19486cat >>conftest.$ac_ext <<_ACEOF
19487/* end confdefs.h. */
19488#include <cmath>
19489int
19490main ()
19491{
19492float f; isinf(f);
19493 ;
19494 return 0;
19495}
19496_ACEOF
19497rm -f conftest.$ac_objext
19498if { (ac_try="$ac_compile"
19499case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19502esac
19503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_compile") 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; } &&
19521 { ac_try='test -s conftest.$ac_objext'
19522 { (case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_try") 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19531 ac_cv_func_isinf_in_cmath=yes
19532else
19533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536 ac_cv_func_isinf_in_cmath=no
19537fi
19538
19539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19540 ac_ext=c
19541ac_cpp='$CPP $CPPFLAGS'
19542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544ac_compiler_gnu=$ac_cv_c_compiler_gnu
19545
19546fi
19547{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19548echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19549
19550if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19551
19552cat >>confdefs.h <<\_ACEOF
19553#define HAVE_ISINF_IN_CMATH 1
19554_ACEOF
19555
19556fi
19557
19558{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19559echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19560if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19562else
19563 ac_ext=cpp
19564ac_cpp='$CXXCPP $CPPFLAGS'
19565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19568
19569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575#include <cmath>
19576int
19577main ()
19578{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019579float f; std::isinf(f);
Daniel Dunbarbf79f912011-10-18 23:10:58 +000019580 ;
19581 return 0;
19582}
19583_ACEOF
19584rm -f conftest.$ac_objext
19585if { (ac_try="$ac_compile"
19586case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19589esac
19590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_compile") 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19599 { (case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602esac
19603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_try") 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612esac
19613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_try") 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 ac_cv_func_std_isinf_in_cmath=yes
19619else
19620 echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ac_cv_func_std_isinf_in_cmath=no
19624fi
19625
19626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627 ac_ext=c
19628ac_cpp='$CPP $CPPFLAGS'
19629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19631ac_compiler_gnu=$ac_cv_c_compiler_gnu
19632
19633fi
19634{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19635echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19636
19637if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19638
19639cat >>confdefs.h <<\_ACEOF
19640#define HAVE_STD_ISINF_IN_CMATH 1
19641_ACEOF
19642
19643fi
19644
19645{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19646echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19647if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19649else
19650 ac_ext=cpp
19651ac_cpp='$CXXCPP $CPPFLAGS'
19652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19655
19656 cat >conftest.$ac_ext <<_ACEOF
19657/* confdefs.h. */
19658_ACEOF
19659cat confdefs.h >>conftest.$ac_ext
19660cat >>conftest.$ac_ext <<_ACEOF
19661/* end confdefs.h. */
19662#include <ieeefp.h>
19663int
19664main ()
19665{
19666float f; finite(f);
19667 ;
19668 return 0;
19669}
19670_ACEOF
19671rm -f conftest.$ac_objext
19672if { (ac_try="$ac_compile"
19673case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19676esac
19677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_compile") 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19686 { (case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19689esac
19690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_try") 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest.$ac_objext'
19696 { (case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699esac
19700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_try") 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_func_finite_in_ieeefp_h=yes
19706else
19707 echo "$as_me: failed program was:" >&5
19708sed 's/^/| /' conftest.$ac_ext >&5
19709
19710 ac_cv_func_finite_in_ieeefp_h=no
19711fi
19712
19713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19714 ac_ext=c
19715ac_cpp='$CPP $CPPFLAGS'
19716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19718ac_compiler_gnu=$ac_cv_c_compiler_gnu
19719
19720fi
19721{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19722echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19723
19724if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19725
19726cat >>confdefs.h <<\_ACEOF
19727#define HAVE_FINITE_IN_IEEEFP_H 1
19728_ACEOF
19729
19730fi
19731
19732
19733
19734if test "$llvm_cv_platform_type" = "Unix" ; then
19735
19736
19737for ac_header in stdlib.h unistd.h
19738do
19739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745fi
19746ac_res=`eval echo '${'$as_ac_Header'}'`
19747 { echo "$as_me:$LINENO: result: $ac_res" >&5
19748echo "${ECHO_T}$ac_res" >&6; }
19749else
19750 # Is the header compilable?
19751{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19753cat >conftest.$ac_ext <<_ACEOF
19754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
19759$ac_includes_default
19760#include <$ac_header>
19761_ACEOF
19762rm -f conftest.$ac_objext
19763if { (ac_try="$ac_compile"
19764case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19767esac
19768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780esac
19781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_header_compiler=yes
19797else
19798 echo "$as_me: failed program was:" >&5
19799sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ac_header_compiler=no
19802fi
19803
19804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19806echo "${ECHO_T}$ac_header_compiler" >&6; }
19807
19808# Is the header present?
19809{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19811cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h. */
19817#include <$ac_header>
19818_ACEOF
19819if { (ac_try="$ac_cpp conftest.$ac_ext"
19820case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } >/dev/null; then
19832 if test -s conftest.err; then
19833 ac_cpp_err=$ac_c_preproc_warn_flag
19834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19835 else
19836 ac_cpp_err=
19837 fi
19838else
19839 ac_cpp_err=yes
19840fi
19841if test -z "$ac_cpp_err"; then
19842 ac_header_preproc=yes
19843else
19844 echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
19847 ac_header_preproc=no
19848fi
19849
19850rm -f conftest.err conftest.$ac_ext
19851{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19852echo "${ECHO_T}$ac_header_preproc" >&6; }
19853
19854# So? What about this header?
19855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19856 yes:no: )
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19861 ac_header_preproc=yes
19862 ;;
19863 no:yes:* )
19864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19876 ( cat <<\_ASBOX
19877## ------------------------------ ##
19878## Report this to bugs@yourdomain ##
19879## ------------------------------ ##
19880_ASBOX
19881 ) | sed "s/^/$as_me: WARNING: /" >&2
19882 ;;
19883esac
19884{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19888else
19889 eval "$as_ac_Header=\$ac_header_preproc"
19890fi
19891ac_res=`eval echo '${'$as_ac_Header'}'`
19892 { echo "$as_me:$LINENO: result: $ac_res" >&5
19893echo "${ECHO_T}$ac_res" >&6; }
19894
19895fi
19896if test `eval echo '${'$as_ac_Header'}'` = yes; then
19897 cat >>confdefs.h <<_ACEOF
19898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19899_ACEOF
19900
19901fi
19902
19903done
19904
19905
19906for ac_func in getpagesize
19907do
19908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19909{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913else
19914 cat >conftest.$ac_ext <<_ACEOF
19915/* confdefs.h. */
19916_ACEOF
19917cat confdefs.h >>conftest.$ac_ext
19918cat >>conftest.$ac_ext <<_ACEOF
19919/* end confdefs.h. */
19920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19922#define $ac_func innocuous_$ac_func
19923
19924/* System header to define __stub macros and hopefully few prototypes,
19925 which can conflict with char $ac_func (); below.
19926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19927 <limits.h> exists even on freestanding compilers. */
19928
19929#ifdef __STDC__
19930# include <limits.h>
19931#else
19932# include <assert.h>
19933#endif
19934
19935#undef $ac_func
19936
19937/* Override any GCC internal prototype to avoid an error.
19938 Use char because int might match the return type of a GCC
19939 builtin and then its argument prototype would still apply. */
19940#ifdef __cplusplus
19941extern "C"
19942#endif
19943char $ac_func ();
19944/* The GNU C library defines this for functions which it implements
19945 to always fail with ENOSYS. Some functions are actually named
19946 something starting with __ and the normal name is an alias. */
19947#if defined __stub_$ac_func || defined __stub___$ac_func
19948choke me
19949#endif
19950
19951int
19952main ()
19953{
19954return $ac_func ();
19955 ;
19956 return 0;
19957}
19958_ACEOF
19959rm -f conftest.$ac_objext conftest$ac_exeext
19960if { (ac_try="$ac_link"
19961case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_link") 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
19973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977esac
19978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; } &&
19983 { ac_try='test -s conftest$ac_exeext'
19984 { (case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987esac
19988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_try") 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; }; then
19993 eval "$as_ac_var=yes"
19994else
19995 echo "$as_me: failed program was:" >&5
19996sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 eval "$as_ac_var=no"
19999fi
20000
20001rm -f core conftest.err conftest.$ac_objext \
20002 conftest$ac_exeext conftest.$ac_ext
20003fi
20004ac_res=`eval echo '${'$as_ac_var'}'`
20005 { echo "$as_me:$LINENO: result: $ac_res" >&5
20006echo "${ECHO_T}$ac_res" >&6; }
20007if test `eval echo '${'$as_ac_var'}'` = yes; then
20008 cat >>confdefs.h <<_ACEOF
20009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20010_ACEOF
20011
20012fi
20013done
20014
20015{ echo "$as_me:$LINENO: checking for working mmap" >&5
20016echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20017if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20019else
20020 if test "$cross_compiling" = yes; then
20021 ac_cv_func_mmap_fixed_mapped=no
20022else
20023 cat >conftest.$ac_ext <<_ACEOF
20024/* confdefs.h. */
20025_ACEOF
20026cat confdefs.h >>conftest.$ac_ext
20027cat >>conftest.$ac_ext <<_ACEOF
20028/* end confdefs.h. */
20029$ac_includes_default
20030/* malloc might have been renamed as rpl_malloc. */
20031#undef malloc
20032
20033/* Thanks to Mike Haertel and Jim Avera for this test.
20034 Here is a matrix of mmap possibilities:
20035 mmap private not fixed
20036 mmap private fixed at somewhere currently unmapped
20037 mmap private fixed at somewhere already mapped
20038 mmap shared not fixed
20039 mmap shared fixed at somewhere currently unmapped
20040 mmap shared fixed at somewhere already mapped
20041 For private mappings, we should verify that changes cannot be read()
20042 back from the file, nor mmap's back from the file at a different
20043 address. (There have been systems where private was not correctly
20044 implemented like the infamous i386 svr4.0, and systems where the
20045 VM page cache was not coherent with the file system buffer cache
20046 like early versions of FreeBSD and possibly contemporary NetBSD.)
20047 For shared mappings, we should conversely verify that changes get
20048 propagated back to all the places they're supposed to be.
20049
20050 Grep wants private fixed already mapped.
20051 The main things grep needs to know about mmap are:
20052 * does it exist and is it safe to write into the mmap'd area
20053 * how to use it (BSD variants) */
20054
20055#include <fcntl.h>
20056#include <sys/mman.h>
20057
20058#if !STDC_HEADERS && !HAVE_STDLIB_H
20059char *malloc ();
20060#endif
20061
20062/* This mess was copied from the GNU getpagesize.h. */
20063#if !HAVE_GETPAGESIZE
20064/* Assume that all systems that can run configure have sys/param.h. */
20065# if !HAVE_SYS_PARAM_H
20066# define HAVE_SYS_PARAM_H 1
20067# endif
20068
20069# ifdef _SC_PAGESIZE
20070# define getpagesize() sysconf(_SC_PAGESIZE)
20071# else /* no _SC_PAGESIZE */
20072# if HAVE_SYS_PARAM_H
20073# include <sys/param.h>
20074# ifdef EXEC_PAGESIZE
20075# define getpagesize() EXEC_PAGESIZE
20076# else /* no EXEC_PAGESIZE */
20077# ifdef NBPG
20078# define getpagesize() NBPG * CLSIZE
20079# ifndef CLSIZE
20080# define CLSIZE 1
20081# endif /* no CLSIZE */
20082# else /* no NBPG */
20083# ifdef NBPC
20084# define getpagesize() NBPC
20085# else /* no NBPC */
20086# ifdef PAGESIZE
20087# define getpagesize() PAGESIZE
20088# endif /* PAGESIZE */
20089# endif /* no NBPC */
20090# endif /* no NBPG */
20091# endif /* no EXEC_PAGESIZE */
20092# else /* no HAVE_SYS_PARAM_H */
20093# define getpagesize() 8192 /* punt totally */
20094# endif /* no HAVE_SYS_PARAM_H */
20095# endif /* no _SC_PAGESIZE */
20096
20097#endif /* no HAVE_GETPAGESIZE */
20098
20099int
20100main ()
20101{
20102 char *data, *data2, *data3;
20103 int i, pagesize;
20104 int fd;
20105
20106 pagesize = getpagesize ();
20107
20108 /* First, make a file with some known garbage in it. */
20109 data = (char *) malloc (pagesize);
20110 if (!data)
20111 return 1;
20112 for (i = 0; i < pagesize; ++i)
20113 *(data + i) = rand ();
20114 umask (0);
20115 fd = creat ("conftest.mmap", 0600);
20116 if (fd < 0)
20117 return 1;
20118 if (write (fd, data, pagesize) != pagesize)
20119 return 1;
20120 close (fd);
20121
20122 /* Next, try to mmap the file at a fixed address which already has
20123 something else allocated at it. If we can, also make sure that
20124 we see the same garbage. */
20125 fd = open ("conftest.mmap", O_RDWR);
20126 if (fd < 0)
20127 return 1;
20128 data2 = (char *) malloc (2 * pagesize);
20129 if (!data2)
20130 return 1;
20131 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20132 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20133 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20134 return 1;
20135 for (i = 0; i < pagesize; ++i)
20136 if (*(data + i) != *(data2 + i))
20137 return 1;
20138
20139 /* Finally, make sure that changes to the mapped area do not
20140 percolate back to the file as seen by read(). (This is a bug on
20141 some variants of i386 svr4.0.) */
20142 for (i = 0; i < pagesize; ++i)
20143 *(data2 + i) = *(data2 + i) + 1;
20144 data3 = (char *) malloc (pagesize);
20145 if (!data3)
20146 return 1;
20147 if (read (fd, data3, pagesize) != pagesize)
20148 return 1;
20149 for (i = 0; i < pagesize; ++i)
20150 if (*(data + i) != *(data3 + i))
20151 return 1;
20152 close (fd);
20153 return 0;
20154}
20155_ACEOF
20156rm -f conftest$ac_exeext
20157if { (ac_try="$ac_link"
20158case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20161esac
20162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_link") 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20167 { (case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20170esac
20171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_try") 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; }; then
20176 ac_cv_func_mmap_fixed_mapped=yes
20177else
20178 echo "$as_me: program exited with status $ac_status" >&5
20179echo "$as_me: failed program was:" >&5
20180sed 's/^/| /' conftest.$ac_ext >&5
20181
20182( exit $ac_status )
20183ac_cv_func_mmap_fixed_mapped=no
20184fi
20185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20186fi
20187
20188
20189fi
20190{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20191echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20192if test $ac_cv_func_mmap_fixed_mapped = yes; then
20193
20194cat >>confdefs.h <<\_ACEOF
20195#define HAVE_MMAP 1
20196_ACEOF
20197
20198fi
20199rm -f conftest.mmap
20200
20201 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20202echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20203if test "${ac_cv_func_mmap_file+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20205else
20206 ac_ext=c
20207ac_cpp='$CPP $CPPFLAGS'
20208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20210ac_compiler_gnu=$ac_cv_c_compiler_gnu
20211
20212 if test "$cross_compiling" = yes; then
20213 ac_cv_func_mmap_file=no
20214else
20215 cat >conftest.$ac_ext <<_ACEOF
20216
20217 /* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
20222
20223#include <sys/types.h>
20224#include <sys/mman.h>
20225#include <fcntl.h>
20226
20227int
20228main ()
20229{
20230
20231 int fd;
20232 fd = creat ("foo",0777);
20233 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20234 unlink ("foo");
20235 return (fd != (int) MAP_FAILED);
20236 ;
20237 return 0;
20238}
20239_ACEOF
20240rm -f conftest$ac_exeext
20241if { (ac_try="$ac_link"
20242case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20245esac
20246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_link") 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20251 { (case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254esac
20255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_try") 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_func_mmap_file=yes
20261else
20262 echo "$as_me: program exited with status $ac_status" >&5
20263echo "$as_me: failed program was:" >&5
20264sed 's/^/| /' conftest.$ac_ext >&5
20265
20266( exit $ac_status )
20267ac_cv_func_mmap_file=no
20268fi
20269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20270fi
20271
20272
20273 ac_ext=c
20274ac_cpp='$CPP $CPPFLAGS'
20275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20277ac_compiler_gnu=$ac_cv_c_compiler_gnu
20278
20279
20280fi
20281{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20282echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20283if test "$ac_cv_func_mmap_file" = yes; then
20284
20285cat >>confdefs.h <<\_ACEOF
20286#define HAVE_MMAP_FILE
20287_ACEOF
20288
20289 MMAP_FILE=yes
20290
20291fi
20292
20293 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20294echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20295if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20297else
20298 if test "$llvm_cv_os_type" = "Interix" ; then
20299 ac_cv_need_dev_zero_for_mmap=yes
20300 else
20301 ac_cv_need_dev_zero_for_mmap=no
20302 fi
20303
20304fi
20305{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20306echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20307if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20308
20309cat >>confdefs.h <<\_ACEOF
20310#define NEED_DEV_ZERO_FOR_MMAP 1
20311_ACEOF
20312
20313fi
20314
20315 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20316 then
20317 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20318echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20319 fi
20320 if test "$ac_cv_func_mmap_file" = "no"
20321 then
20322 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20323echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20324 fi
20325fi
20326
20327{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20328echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20329ac_ext=cpp
20330ac_cpp='$CXXCPP $CPPFLAGS'
20331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20334
20335cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h. */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h. */
20341int main() {
20342 volatile unsigned long val = 1;
20343 __sync_synchronize();
20344 __sync_val_compare_and_swap(&val, 1, 0);
20345 __sync_add_and_fetch(&val, 1);
20346 __sync_sub_and_fetch(&val, 1);
20347 return 0;
20348 }
20349
20350_ACEOF
20351rm -f conftest.$ac_objext conftest$ac_exeext
20352if { (ac_try="$ac_link"
20353case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356esac
20357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_link") 2>conftest.er1
20359 ac_status=$?
20360 grep -v '^ *+' conftest.er1 >conftest.err
20361 rm -f conftest.er1
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } &&
20365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20366 { (case "(($ac_try" in
20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368 *) ac_try_echo=$ac_try;;
20369esac
20370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371 (eval "$ac_try") 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest$ac_exeext'
20376 { (case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379esac
20380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_try") 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_ext=c
20386ac_cpp='$CPP $CPPFLAGS'
20387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389ac_compiler_gnu=$ac_cv_c_compiler_gnu
20390
20391 { echo "$as_me:$LINENO: result: yes" >&5
20392echo "${ECHO_T}yes" >&6; }
20393
20394cat >>confdefs.h <<\_ACEOF
20395#define LLVM_HAS_ATOMICS 1
20396_ACEOF
20397
20398else
20399 echo "$as_me: failed program was:" >&5
20400sed 's/^/| /' conftest.$ac_ext >&5
20401
20402 { echo "$as_me:$LINENO: result: no" >&5
20403echo "${ECHO_T}no" >&6; }
20404
20405cat >>confdefs.h <<\_ACEOF
20406#define LLVM_HAS_ATOMICS 0
20407_ACEOF
20408
20409 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20410echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20411fi
20412
20413rm -f core conftest.err conftest.$ac_objext \
20414 conftest$ac_exeext conftest.$ac_ext
20415
20416
20417if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20418 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20419echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20420if test "${llvm_cv_linux_mixed+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20422else
20423 ac_ext=c
20424ac_cpp='$CPP $CPPFLAGS'
20425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20427ac_compiler_gnu=$ac_cv_c_compiler_gnu
20428
20429 cat >conftest.$ac_ext <<_ACEOF
20430/* confdefs.h. */
20431_ACEOF
20432cat confdefs.h >>conftest.$ac_ext
20433cat >>conftest.$ac_ext <<_ACEOF
20434/* end confdefs.h. */
20435#ifndef __x86_64__
20436 error: Not x86-64 even if uname says so!
20437 #endif
20438
20439int
20440main ()
20441{
20442
20443 ;
20444 return 0;
20445}
20446_ACEOF
20447rm -f conftest.$ac_objext
20448if { (ac_try="$ac_compile"
20449case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_compile") 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20462 { (case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465esac
20466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_try") 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475esac
20476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_try") 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 llvm_cv_linux_mixed=no
20482else
20483 echo "$as_me: failed program was:" >&5
20484sed 's/^/| /' conftest.$ac_ext >&5
20485
20486 llvm_cv_linux_mixed=yes
20487fi
20488
20489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490 ac_ext=c
20491ac_cpp='$CPP $CPPFLAGS'
20492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495
20496
20497fi
20498{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20499echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20500
20501 if test "$llvm_cv_linux_mixed" = "yes"; then
20502 llvm_cv_target_arch="x86"
20503 ARCH="x86"
20504 fi
20505fi
20506
20507
20508for ac_func in __dso_handle
20509do
20510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20515else
20516 cat >conftest.$ac_ext <<_ACEOF
20517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
20522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20524#define $ac_func innocuous_$ac_func
20525
20526/* System header to define __stub macros and hopefully few prototypes,
20527 which can conflict with char $ac_func (); below.
20528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20529 <limits.h> exists even on freestanding compilers. */
20530
20531#ifdef __STDC__
20532# include <limits.h>
20533#else
20534# include <assert.h>
20535#endif
20536
20537#undef $ac_func
20538
20539/* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20542#ifdef __cplusplus
20543extern "C"
20544#endif
20545char $ac_func ();
20546/* The GNU C library defines this for functions which it implements
20547 to always fail with ENOSYS. Some functions are actually named
20548 something starting with __ and the normal name is an alias. */
20549#if defined __stub_$ac_func || defined __stub___$ac_func
20550choke me
20551#endif
20552
20553int
20554main ()
20555{
20556return $ac_func ();
20557 ;
20558 return 0;
20559}
20560_ACEOF
20561rm -f conftest.$ac_objext conftest$ac_exeext
20562if { (ac_try="$ac_link"
20563case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566esac
20567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_link") 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20576 { (case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20579esac
20580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_try") 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; } &&
20585 { ac_try='test -s conftest$ac_exeext'
20586 { (case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589esac
20590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_try") 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; }; then
20595 eval "$as_ac_var=yes"
20596else
20597 echo "$as_me: failed program was:" >&5
20598sed 's/^/| /' conftest.$ac_ext >&5
20599
20600 eval "$as_ac_var=no"
20601fi
20602
20603rm -f core conftest.err conftest.$ac_objext \
20604 conftest$ac_exeext conftest.$ac_ext
20605fi
20606ac_res=`eval echo '${'$as_ac_var'}'`
20607 { echo "$as_me:$LINENO: result: $ac_res" >&5
20608echo "${ECHO_T}$ac_res" >&6; }
20609if test `eval echo '${'$as_ac_var'}'` = yes; then
20610 cat >>confdefs.h <<_ACEOF
20611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20612_ACEOF
20613
20614fi
20615done
20616
20617
20618SHLIBEXT=$libltdl_cv_shlibext
20619
20620
20621SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20622
20623
20624# Translate the various configuration directories and other basic
20625# information into substitutions that will end up in Makefile.config.in
20626# that these configured values can be used by the makefiles
20627if test "${prefix}" = "NONE" ; then
20628 prefix="/usr/local"
20629fi
20630eval LLVM_PREFIX="${prefix}";
20631eval LLVM_BINDIR="${prefix}/bin";
20632eval LLVM_LIBDIR="${prefix}/lib";
20633eval LLVM_DATADIR="${prefix}/share/llvm";
20634eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20635eval LLVM_ETCDIR="${prefix}/etc/llvm";
20636eval LLVM_INCLUDEDIR="${prefix}/include";
20637eval LLVM_INFODIR="${prefix}/info";
20638eval LLVM_MANDIR="${prefix}/man";
20639LLVM_CONFIGTIME=`date`
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651# Place the various directores into the config.h file as #defines so that we
20652# can know about the installation paths within LLVM.
20653
20654cat >>confdefs.h <<_ACEOF
20655#define LLVM_PREFIX "$LLVM_PREFIX"
20656_ACEOF
20657
20658
20659cat >>confdefs.h <<_ACEOF
20660#define LLVM_BINDIR "$LLVM_BINDIR"
20661_ACEOF
20662
20663
20664cat >>confdefs.h <<_ACEOF
20665#define LLVM_LIBDIR "$LLVM_LIBDIR"
20666_ACEOF
20667
20668
20669cat >>confdefs.h <<_ACEOF
20670#define LLVM_DATADIR "$LLVM_DATADIR"
20671_ACEOF
20672
20673
20674cat >>confdefs.h <<_ACEOF
20675#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20676_ACEOF
20677
20678
20679cat >>confdefs.h <<_ACEOF
20680#define LLVM_ETCDIR "$LLVM_ETCDIR"
20681_ACEOF
20682
20683
20684cat >>confdefs.h <<_ACEOF
20685#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20686_ACEOF
20687
20688
20689cat >>confdefs.h <<_ACEOF
20690#define LLVM_INFODIR "$LLVM_INFODIR"
20691_ACEOF
20692
20693
20694cat >>confdefs.h <<_ACEOF
20695#define LLVM_MANDIR "$LLVM_MANDIR"
20696_ACEOF
20697
20698
20699cat >>confdefs.h <<_ACEOF
20700#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20701_ACEOF
20702
20703
20704cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020705#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020706_ACEOF
20707
20708
20709# Determine which bindings to build.
20710if test "$BINDINGS_TO_BUILD" = auto ; then
20711 BINDINGS_TO_BUILD=""
20712 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20713 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20714 fi
20715fi
20716BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20717
20718
20719# This isn't really configurey, but it avoids having to repeat the list in
20720# other files.
20721ALL_BINDINGS=ocaml
20722
20723
20724# Do any work necessary to ensure that bindings have what they need.
20725binding_prereqs_failed=0
20726for a_binding in $BINDINGS_TO_BUILD ; do
20727 case "$a_binding" in
20728 ocaml)
20729 if test "x$OCAMLC" = x ; then
20730 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20731echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20732 binding_prereqs_failed=1
20733 fi
20734 if test "x$OCAMLDEP" = x ; then
20735 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20736echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20737 binding_prereqs_failed=1
20738 fi
20739 if test "x$OCAMLOPT" = x ; then
20740 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20741echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20742 fi
20743 if test "x$with_ocaml_libdir" != xauto ; then
20744 OCAML_LIBDIR=$with_ocaml_libdir
20745
20746 else
20747 ocaml_stdlib="`"$OCAMLC" -where`"
20748 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20749 then
20750 # ocaml stdlib is beneath our prefix; use stdlib
20751 OCAML_LIBDIR=$ocaml_stdlib
20752
20753 else
20754 # ocaml stdlib is outside our prefix; use libdir/ocaml
20755 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20756
20757 fi
20758 fi
20759 ;;
20760 esac
20761done
20762if test "$binding_prereqs_failed" = 1 ; then
20763 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20764echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20765 { (exit 1); exit 1; }; }
20766fi
20767
20768{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20769echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20770if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20772else
20773 ac_ext=cpp
20774ac_cpp='$CXXCPP $CPPFLAGS'
20775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20778
20779 oldcxxflags="$CXXFLAGS"
20780 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20781 cat >conftest.$ac_ext <<_ACEOF
20782/* confdefs.h. */
20783_ACEOF
20784cat confdefs.h >>conftest.$ac_ext
20785cat >>conftest.$ac_ext <<_ACEOF
20786/* end confdefs.h. */
20787
20788int
20789main ()
20790{
20791
20792 ;
20793 return 0;
20794}
20795_ACEOF
20796rm -f conftest.$ac_objext
20797if { (ac_try="$ac_compile"
20798case "(($ac_try" in
20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800 *) ac_try_echo=$ac_try;;
20801esac
20802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803 (eval "$ac_compile") 2>conftest.er1
20804 ac_status=$?
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } &&
20810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20811 { (case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20814esac
20815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_try") 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest.$ac_objext'
20821 { (case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20824esac
20825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_try") 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20830 llvm_cv_cxx_visibility_inlines_hidden=yes
20831else
20832 echo "$as_me: failed program was:" >&5
20833sed 's/^/| /' conftest.$ac_ext >&5
20834
20835 llvm_cv_cxx_visibility_inlines_hidden=no
20836fi
20837
20838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839 CXXFLAGS="$oldcxxflags"
20840 ac_ext=c
20841ac_cpp='$CPP $CPPFLAGS'
20842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845
20846
20847fi
20848{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20849echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20850if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20851 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20852
20853else
20854 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20855
20856fi
20857
20858
20859if test "$llvm_cv_link_use_r" = "yes" ; then
20860 RPATH="-Wl,-R"
20861else
20862 RPATH="-Wl,-rpath"
20863fi
20864
20865
20866if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20867 RDYNAMIC="-Wl,-export-dynamic"
20868else
20869 RDYNAMIC=""
20870fi
20871
20872
20873
Reid Spencer421ec052005-02-24 18:53:47 +000020874
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020875ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020876
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020877ac_config_files="$ac_config_files Makefile.llvm.config"
20878
John Criswell451f67f2003-10-16 01:45:35 +000020879
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020880ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020881
20882
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020883ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020884
20885
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020886ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020887
20888
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020889ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020890
20891
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020892ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020893
20894
20895
John Criswell451f67f2003-10-16 01:45:35 +000020896cat >confcache <<\_ACEOF
20897# This file is a shell script that caches the results of configure
20898# tests run on this system so they can be shared between configure
20899# scripts and configure runs, see configure's option --config-cache.
20900# It is not useful on other systems. If it contains results you don't
20901# want to keep, you may remove or edit it.
20902#
20903# config.status only pays attention to the cache file if you give it
20904# the --recheck option to rerun configure.
20905#
20906# `ac_cv_env_foo' variables (set or unset) will be overridden when
20907# loading this file, other *unset* `ac_cv_foo' will be assigned the
20908# following values.
20909
20910_ACEOF
20911
20912# The following way of writing the cache mishandles newlines in values,
20913# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020914# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020915# Ultrix sh set writes to stderr and can't be redirected directly,
20916# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020917(
20918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20919 eval ac_val=\$$ac_var
20920 case $ac_val in #(
20921 *${as_nl}*)
20922 case $ac_var in #(
20923 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20924echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20925 esac
20926 case $ac_var in #(
20927 _ | IFS | as_nl) ;; #(
20928 *) $as_unset $ac_var ;;
20929 esac ;;
20930 esac
20931 done
20932
John Criswell451f67f2003-10-16 01:45:35 +000020933 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20935 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020936 # `set' does not quote correctly, so add quotes (double-quote
20937 # substitution turns \\\\ into \\, and sed turns \\ into \).
20938 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000020939 "s/'/'\\\\''/g;
20940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020941 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000020942 *)
20943 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000020945 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020946 esac |
20947 sort
20948) |
John Criswell451f67f2003-10-16 01:45:35 +000020949 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020950 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000020951 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020952 :clear
John Criswell451f67f2003-10-16 01:45:35 +000020953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20954 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20956 :end' >>confcache
20957if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20958 if test -w "$cache_file"; then
20959 test "x$cache_file" != "x/dev/null" &&
20960 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20961echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020962 cat confcache >$cache_file
20963 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020964 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20965echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020966 fi
20967fi
20968rm -f confcache
20969
20970test "x$prefix" = xNONE && prefix=$ac_default_prefix
20971# Let make expand exec_prefix.
20972test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20973
John Criswell451f67f2003-10-16 01:45:35 +000020974# Transform confdefs.h into DEFS.
20975# Protect against shell expansion while executing Makefile rules.
20976# Protect against Makefile macro expansion.
20977#
20978# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020979# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000020980# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020981ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000020982t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020983:clear
20984s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000020985t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020986s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000020987t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020988b any
20989:quote
20990s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20991s/\[/\\&/g
20992s/\]/\\&/g
20993s/\$/$$/g
20994H
20995:any
20996${
20997 g
20998 s/^\n//
20999 s/\n/ /g
21000 p
21001}
21002'
21003DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021004
21005
21006ac_libobjs=
21007ac_ltlibobjs=
21008for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21009 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021010 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21011 ac_i=`echo "$ac_i" | sed "$ac_script"`
21012 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21013 # will be set to the directory where LIBOBJS objects are built.
21014 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21015 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021016done
21017LIBOBJS=$ac_libobjs
21018
21019LTLIBOBJS=$ac_ltlibobjs
21020
21021
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021022if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21023 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21024Usually this means the macro was only invoked conditionally." >&5
21025echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21026Usually this means the macro was only invoked conditionally." >&2;}
21027 { (exit 1); exit 1; }; }
21028fi
21029if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21030 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21031Usually this means the macro was only invoked conditionally." >&5
21032echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21033Usually this means the macro was only invoked conditionally." >&2;}
21034 { (exit 1); exit 1; }; }
21035fi
John Criswell451f67f2003-10-16 01:45:35 +000021036
21037: ${CONFIG_STATUS=./config.status}
21038ac_clean_files_save=$ac_clean_files
21039ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21040{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21041echo "$as_me: creating $CONFIG_STATUS" >&6;}
21042cat >$CONFIG_STATUS <<_ACEOF
21043#! $SHELL
21044# Generated by $as_me.
21045# Run this file to recreate the current configuration.
21046# Compiler output produced by configure, useful for debugging
21047# configure, is in config.log if it exists.
21048
21049debug=false
21050ac_cs_recheck=false
21051ac_cs_silent=false
21052SHELL=\${CONFIG_SHELL-$SHELL}
21053_ACEOF
21054
21055cat >>$CONFIG_STATUS <<\_ACEOF
21056## --------------------- ##
21057## M4sh Initialization. ##
21058## --------------------- ##
21059
Dan Gohman324f6082009-03-25 00:52:11 +000021060# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021061if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21062 emulate sh
21063 NULLCMD=:
21064 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21065 # is contrary to our usage. Disable this feature.
21066 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021067 setopt NO_GLOB_SUBST
21068else
21069 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021070fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021071BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021072DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021073
John Criswell451f67f2003-10-16 01:45:35 +000021074
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021075# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021076# Avoid depending upon Character Ranges.
21077as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21078as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21079as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21080as_cr_digits='0123456789'
21081as_cr_alnum=$as_cr_Letters$as_cr_digits
21082
21083# The user is always right.
21084if test "${PATH_SEPARATOR+set}" != set; then
21085 echo "#! /bin/sh" >conf$$.sh
21086 echo "exit 0" >>conf$$.sh
21087 chmod +x conf$$.sh
21088 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21089 PATH_SEPARATOR=';'
21090 else
21091 PATH_SEPARATOR=:
21092 fi
21093 rm -f conf$$.sh
21094fi
21095
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021096# Support unset when possible.
21097if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21098 as_unset=unset
21099else
21100 as_unset=false
21101fi
John Criswell451f67f2003-10-16 01:45:35 +000021102
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021103
21104# IFS
21105# We need space, tab and new line, in precisely that order. Quoting is
21106# there to prevent editors from complaining about space-tab.
21107# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21108# splitting by setting IFS to empty value.)
21109as_nl='
21110'
21111IFS=" "" $as_nl"
21112
21113# Find who we are. Look in the path if we contain no directory separator.
21114case $0 in
21115 *[\\/]* ) as_myself=$0 ;;
21116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021117for as_dir in $PATH
21118do
21119 IFS=$as_save_IFS
21120 test -z "$as_dir" && as_dir=.
21121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21122done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021123IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021124
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021125 ;;
21126esac
21127# We did not find ourselves, most probably we were run as `sh COMMAND'
21128# in which case we are not to be found in the path.
21129if test "x$as_myself" = x; then
21130 as_myself=$0
21131fi
21132if test ! -f "$as_myself"; then
21133 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21134 { (exit 1); exit 1; }
21135fi
21136
21137# Work around bugs in pre-3.0 UWIN ksh.
21138for as_var in ENV MAIL MAILPATH
21139do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21140done
21141PS1='$ '
21142PS2='> '
21143PS4='+ '
21144
21145# NLS nuisances.
21146for as_var in \
21147 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21148 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21149 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021150do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021151 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21152 eval $as_var=C; export $as_var
21153 else
21154 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21155 fi
21156done
21157
21158# Required to use basename.
21159if expr a : '\(a\)' >/dev/null 2>&1 &&
21160 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21161 as_expr=expr
21162else
21163 as_expr=false
21164fi
21165
21166if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21167 as_basename=basename
21168else
21169 as_basename=false
21170fi
21171
21172
21173# Name of the executable.
21174as_me=`$as_basename -- "$0" ||
21175$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21176 X"$0" : 'X\(//\)$' \| \
21177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21178echo X/"$0" |
21179 sed '/^.*\/\([^/][^/]*\)\/*$/{
21180 s//\1/
21181 q
21182 }
21183 /^X\/\(\/\/\)$/{
21184 s//\1/
21185 q
21186 }
21187 /^X\/\(\/\).*/{
21188 s//\1/
21189 q
21190 }
21191 s/.*/./; q'`
21192
21193# CDPATH.
21194$as_unset CDPATH
21195
21196
21197
John Criswell451f67f2003-10-16 01:45:35 +000021198 as_lineno_1=$LINENO
21199 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021200 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021201 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021202
21203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21204 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021205 # line-number line after each line using $LINENO; the second 'sed'
21206 # does the real work. The second script uses 'N' to pair each
21207 # line-number line with the line containing $LINENO, and appends
21208 # trailing '-' during substitution so that $LINENO is not a special
21209 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021210 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021211 # scripts with optimization help from Paolo Bonzini. Blame Lee
21212 # E. McMahon (1931-1989) for sed's syntax. :-)
21213 sed -n '
21214 p
21215 /[$]LINENO/=
21216 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021217 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021218 s/[$]LINENO.*/&-/
21219 t lineno
21220 b
21221 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021222 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021223 :loop
21224 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021225 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021226 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021227 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021228 chmod +x "$as_me.lineno" ||
21229 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021230 { (exit 1); exit 1; }; }
21231
21232 # Don't try to exec as it changes $[0], causing all sort of problems
21233 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021234 # original and so on. Autoconf is especially sensitive to this).
21235 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021236 # Exit status is that of the last command.
21237 exit
21238}
21239
21240
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021241if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21242 as_dirname=dirname
21243else
21244 as_dirname=false
21245fi
21246
21247ECHO_C= ECHO_N= ECHO_T=
21248case `echo -n x` in
21249-n*)
21250 case `echo 'x\c'` in
21251 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21252 *) ECHO_C='\c';;
21253 esac;;
21254*)
21255 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021256esac
21257
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021258if expr a : '\(a\)' >/dev/null 2>&1 &&
21259 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021260 as_expr=expr
21261else
21262 as_expr=false
21263fi
21264
21265rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021266if test -d conf$$.dir; then
21267 rm -f conf$$.dir/conf$$.file
21268else
21269 rm -f conf$$.dir
21270 mkdir conf$$.dir
21271fi
John Criswell451f67f2003-10-16 01:45:35 +000021272echo >conf$$.file
21273if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021274 as_ln_s='ln -s'
21275 # ... but there are two gotchas:
21276 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21277 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21278 # In both cases, we have to default to `cp -p'.
21279 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021280 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021281elif ln conf$$.file conf$$ 2>/dev/null; then
21282 as_ln_s=ln
21283else
21284 as_ln_s='cp -p'
21285fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021286rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21287rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021288
21289if mkdir -p . 2>/dev/null; then
21290 as_mkdir_p=:
21291else
Reid Spencer9964cd82005-01-01 09:26:55 +000021292 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021293 as_mkdir_p=false
21294fi
21295
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021296# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21297# systems may use methods other than mode bits to determine executability.
21298cat >conf$$.file <<_ASEOF
21299#! /bin/sh
21300exit 0
21301_ASEOF
21302chmod +x conf$$.file
21303if test -x conf$$.file >/dev/null 2>&1; then
21304 as_executable_p="test -x"
21305else
21306 as_executable_p=:
21307fi
21308rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021309
21310# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021311as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021312
21313# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021314as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021315
21316
John Criswell451f67f2003-10-16 01:45:35 +000021317exec 6>&1
21318
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021319# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021320# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021321# values after options handling.
21322ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021323This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021324generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021325
21326 CONFIG_FILES = $CONFIG_FILES
21327 CONFIG_HEADERS = $CONFIG_HEADERS
21328 CONFIG_LINKS = $CONFIG_LINKS
21329 CONFIG_COMMANDS = $CONFIG_COMMANDS
21330 $ $0 $@
21331
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021332on `(hostname || uname -n) 2>/dev/null | sed 1q`
21333"
21334
John Criswell451f67f2003-10-16 01:45:35 +000021335_ACEOF
21336
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021337cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021338# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021339config_files="$ac_config_files"
21340config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021341
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021342_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021343
21344cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021345ac_cs_usage="\
21346\`$as_me' instantiates files from templates according to the
21347current configuration.
21348
21349Usage: $0 [OPTIONS] [FILE]...
21350
21351 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021352 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021353 -q, --quiet do not print progress messages
21354 -d, --debug don't remove temporary files
21355 --recheck update $as_me by reconfiguring in the same conditions
21356 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021357 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021358
21359Configuration files:
21360$config_files
21361
21362Configuration commands:
21363$config_commands
21364
21365Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021366
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021367_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021368cat >>$CONFIG_STATUS <<_ACEOF
21369ac_cs_version="\\
21370[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021371configured by $0, generated by GNU Autoconf 2.60,
21372 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021373
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021374Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021375This config.status script is free software; the Free Software Foundation
21376gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021377
21378ac_pwd='$ac_pwd'
21379srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021380INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021381_ACEOF
21382
21383cat >>$CONFIG_STATUS <<\_ACEOF
21384# If no file are specified by the user, then we need to provide default
21385# value. By we need to know if files were specified by the user.
21386ac_need_defaults=:
21387while test $# != 0
21388do
21389 case $1 in
21390 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021391 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21392 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021393 ac_shift=:
21394 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021395 *)
John Criswell451f67f2003-10-16 01:45:35 +000021396 ac_option=$1
21397 ac_optarg=$2
21398 ac_shift=shift
21399 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021400 esac
21401
21402 case $ac_option in
21403 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021404 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21405 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021406 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21407 echo "$ac_cs_version"; exit ;;
21408 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021409 debug=: ;;
21410 --file | --fil | --fi | --f )
21411 $ac_shift
21412 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21413 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021414 --he | --h | --help | --hel | -h )
21415 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21418 ac_cs_silent=: ;;
21419
21420 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021421 -*) { echo "$as_me: error: unrecognized option: $1
21422Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021423 { (exit 1); exit 1; }; } ;;
21424
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021425 *) ac_config_targets="$ac_config_targets $1"
21426 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021427
21428 esac
21429 shift
21430done
21431
21432ac_configure_extra_args=
21433
21434if $ac_cs_silent; then
21435 exec 6>/dev/null
21436 ac_configure_extra_args="$ac_configure_extra_args --silent"
21437fi
21438
21439_ACEOF
21440cat >>$CONFIG_STATUS <<_ACEOF
21441if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021442 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21443 CONFIG_SHELL=$SHELL
21444 export CONFIG_SHELL
21445 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021446fi
21447
21448_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021449cat >>$CONFIG_STATUS <<\_ACEOF
21450exec 5>>config.log
21451{
21452 echo
21453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21454## Running $as_me. ##
21455_ASBOX
21456 echo "$ac_log"
21457} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021458
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021459_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021460cat >>$CONFIG_STATUS <<_ACEOF
21461#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021462# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021463#
Reid Spencer421ec052005-02-24 18:53:47 +000021464llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021465
21466_ACEOF
21467
Dan Gohman324f6082009-03-25 00:52:11 +000021468cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021469
21470# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021471for ac_config_target in $ac_config_targets
21472do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021473 case $ac_config_target in
21474 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21475 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021476 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021477 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21478 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21479 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21480 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21481 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21482
John Criswell451f67f2003-10-16 01:45:35 +000021483 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21484echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21485 { (exit 1); exit 1; }; };;
21486 esac
21487done
21488
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021489
John Criswell451f67f2003-10-16 01:45:35 +000021490# If the user did not use the arguments to specify the items to instantiate,
21491# then the envvar interface is used. Set only those that are not.
21492# We use the long form for the default assignment because of an extremely
21493# bizarre bug on SunOS 4.1.3.
21494if $ac_need_defaults; then
21495 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21496 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21497fi
21498
21499# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021500# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021501# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021502# Hook for its removal unless debugging.
21503# Note that there is a small window in which the directory will not be cleaned:
21504# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021505$debug ||
21506{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021507 tmp=
21508 trap 'exit_status=$?
21509 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21510' 0
John Criswell451f67f2003-10-16 01:45:35 +000021511 trap '{ (exit 1); exit 1; }' 1 2 13 15
21512}
John Criswell451f67f2003-10-16 01:45:35 +000021513# Create a (secure) tmp directory for tmp files.
21514
21515{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021516 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021517 test -n "$tmp" && test -d "$tmp"
21518} ||
21519{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021520 tmp=./conf$$-$RANDOM
21521 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021522} ||
21523{
21524 echo "$me: cannot create a temporary directory in ." >&2
21525 { (exit 1); exit 1; }
21526}
21527
John Criswell451f67f2003-10-16 01:45:35 +000021528#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021529# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021530#
21531
21532# No need to generate the scripts if there are no CONFIG_FILES.
21533# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021534if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021535
21536_ACEOF
21537
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021538
21539
21540ac_delim='%!_!# '
21541for ac_last_try in false false false false false :; do
21542 cat >conf$$subs.sed <<_ACEOF
21543SHELL!$SHELL$ac_delim
21544PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21545PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21546PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21547PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21548PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21549PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21550exec_prefix!$exec_prefix$ac_delim
21551prefix!$prefix$ac_delim
21552program_transform_name!$program_transform_name$ac_delim
21553bindir!$bindir$ac_delim
21554sbindir!$sbindir$ac_delim
21555libexecdir!$libexecdir$ac_delim
21556datarootdir!$datarootdir$ac_delim
21557datadir!$datadir$ac_delim
21558sysconfdir!$sysconfdir$ac_delim
21559sharedstatedir!$sharedstatedir$ac_delim
21560localstatedir!$localstatedir$ac_delim
21561includedir!$includedir$ac_delim
21562oldincludedir!$oldincludedir$ac_delim
21563docdir!$docdir$ac_delim
21564infodir!$infodir$ac_delim
21565htmldir!$htmldir$ac_delim
21566dvidir!$dvidir$ac_delim
21567pdfdir!$pdfdir$ac_delim
21568psdir!$psdir$ac_delim
21569libdir!$libdir$ac_delim
21570localedir!$localedir$ac_delim
21571mandir!$mandir$ac_delim
21572DEFS!$DEFS$ac_delim
21573ECHO_C!$ECHO_C$ac_delim
21574ECHO_N!$ECHO_N$ac_delim
21575ECHO_T!$ECHO_T$ac_delim
21576LIBS!$LIBS$ac_delim
21577build_alias!$build_alias$ac_delim
21578host_alias!$host_alias$ac_delim
21579target_alias!$target_alias$ac_delim
21580LLVM_SRC!$LLVM_SRC$ac_delim
21581LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021582LLVM_VERSION!$LLVM_VERSION$ac_delim
21583CC!$CC$ac_delim
21584CFLAGS!$CFLAGS$ac_delim
21585LDFLAGS!$LDFLAGS$ac_delim
21586CPPFLAGS!$CPPFLAGS$ac_delim
21587ac_ct_CC!$ac_ct_CC$ac_delim
21588EXEEXT!$EXEEXT$ac_delim
21589OBJEXT!$OBJEXT$ac_delim
21590CXX!$CXX$ac_delim
21591CXXFLAGS!$CXXFLAGS$ac_delim
21592ac_ct_CXX!$ac_ct_CXX$ac_delim
21593CPP!$CPP$ac_delim
21594ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21595LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21596subdirs!$subdirs$ac_delim
21597build!$build$ac_delim
21598build_cpu!$build_cpu$ac_delim
21599build_vendor!$build_vendor$ac_delim
21600build_os!$build_os$ac_delim
21601host!$host$ac_delim
21602host_cpu!$host_cpu$ac_delim
21603host_vendor!$host_vendor$ac_delim
21604host_os!$host_os$ac_delim
21605target!$target$ac_delim
21606target_cpu!$target_cpu$ac_delim
21607target_vendor!$target_vendor$ac_delim
21608target_os!$target_os$ac_delim
21609OS!$OS$ac_delim
21610HOST_OS!$HOST_OS$ac_delim
21611TARGET_OS!$TARGET_OS$ac_delim
21612LINKALL!$LINKALL$ac_delim
21613NOLINKALL!$NOLINKALL$ac_delim
21614LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21615LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21616ARCH!$ARCH$ac_delim
21617ENDIAN!$ENDIAN$ac_delim
21618GREP!$GREP$ac_delim
21619EGREP!$EGREP$ac_delim
21620LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21621BUILD_CC!$BUILD_CC$ac_delim
21622BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21623BUILD_CXX!$BUILD_CXX$ac_delim
21624CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021625ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021626ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21627ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21628DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21629ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21630EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21631DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21632DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21633JIT!$JIT$ac_delim
21634TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21635ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21636ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21637ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21638ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21639ENABLE_PIC!$ENABLE_PIC$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021640_ACEOF
21641
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021642 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021643 break
21644 elif $ac_last_try; then
21645 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21646echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21647 { (exit 1); exit 1; }; }
21648 else
21649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021650 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021651done
21652
21653ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21654if test -n "$ac_eof"; then
21655 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21656 ac_eof=`expr $ac_eof + 1`
21657fi
21658
21659cat >>$CONFIG_STATUS <<_ACEOF
21660cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021661/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21662_ACEOF
21663sed '
21664s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21665s/^/s,@/; s/!/@,|#_!!_#|/
21666:n
21667t n
21668s/'"$ac_delim"'$/,g/; t
21669s/$/\\/; p
21670N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21671' >>$CONFIG_STATUS <conf$$subs.sed
21672rm -f conf$$subs.sed
21673cat >>$CONFIG_STATUS <<_ACEOF
21674CEOF$ac_eof
21675_ACEOF
21676
21677
21678ac_delim='%!_!# '
21679for ac_last_try in false false false false false :; do
21680 cat >conf$$subs.sed <<_ACEOF
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021681ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021682ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21683ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21684TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21685LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21686LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21687LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21688LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021689OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21690EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21691EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21692BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21693NM!$NM$ac_delim
21694ifGNUmake!$ifGNUmake$ac_delim
21695LN_S!$LN_S$ac_delim
21696CMP!$CMP$ac_delim
21697CP!$CP$ac_delim
21698DATE!$DATE$ac_delim
21699FIND!$FIND$ac_delim
21700MKDIR!$MKDIR$ac_delim
21701MV!$MV$ac_delim
21702RANLIB!$RANLIB$ac_delim
21703AR!$AR$ac_delim
21704RM!$RM$ac_delim
21705SED!$SED$ac_delim
21706TAR!$TAR$ac_delim
21707BINPWD!$BINPWD$ac_delim
21708GRAPHVIZ!$GRAPHVIZ$ac_delim
21709DOT!$DOT$ac_delim
21710FDP!$FDP$ac_delim
21711NEATO!$NEATO$ac_delim
21712TWOPI!$TWOPI$ac_delim
21713CIRCO!$CIRCO$ac_delim
21714GV!$GV$ac_delim
21715DOTTY!$DOTTY$ac_delim
21716XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021717INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21718INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21719INSTALL_DATA!$INSTALL_DATA$ac_delim
21720BZIP2!$BZIP2$ac_delim
21721CAT!$CAT$ac_delim
21722DOXYGEN!$DOXYGEN$ac_delim
21723GROFF!$GROFF$ac_delim
21724GZIPBIN!$GZIPBIN$ac_delim
21725POD2HTML!$POD2HTML$ac_delim
21726POD2MAN!$POD2MAN$ac_delim
21727PDFROFF!$PDFROFF$ac_delim
21728RUNTEST!$RUNTEST$ac_delim
21729TCLSH!$TCLSH$ac_delim
21730ZIP!$ZIP$ac_delim
21731OCAMLC!$OCAMLC$ac_delim
21732OCAMLOPT!$OCAMLOPT$ac_delim
21733OCAMLDEP!$OCAMLDEP$ac_delim
21734OCAMLDOC!$OCAMLDOC$ac_delim
21735GAS!$GAS$ac_delim
21736HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21737INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21738INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21739CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21740CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21741LIBADD_DL!$LIBADD_DL$ac_delim
21742NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21743NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021744COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021745USE_UDIS86!$USE_UDIS86$ac_delim
21746USE_OPROFILE!$USE_OPROFILE$ac_delim
21747HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21748HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21749MMAP_FILE!$MMAP_FILE$ac_delim
21750SHLIBEXT!$SHLIBEXT$ac_delim
21751SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21752LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21753LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21754LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21755LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21756LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21757LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21758LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21759LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21760LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21761LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21762BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21763ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21764OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21765ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21766RPATH!$RPATH$ac_delim
21767RDYNAMIC!$RDYNAMIC$ac_delim
21768LIBOBJS!$LIBOBJS$ac_delim
21769LTLIBOBJS!$LTLIBOBJS$ac_delim
21770_ACEOF
21771
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021772 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021773 break
21774 elif $ac_last_try; then
21775 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21776echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21777 { (exit 1); exit 1; }; }
21778 else
21779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21780 fi
21781done
21782
21783ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21784if test -n "$ac_eof"; then
21785 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21786 ac_eof=`expr $ac_eof + 1`
21787fi
21788
21789cat >>$CONFIG_STATUS <<_ACEOF
21790cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021791/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21792_ACEOF
21793sed '
21794s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21795s/^/s,@/; s/!/@,|#_!!_#|/
21796:n
21797t n
21798s/'"$ac_delim"'$/,g/; t
21799s/$/\\/; p
21800N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21801' >>$CONFIG_STATUS <conf$$subs.sed
21802rm -f conf$$subs.sed
21803cat >>$CONFIG_STATUS <<_ACEOF
21804:end
21805s/|#_!!_#|//g
21806CEOF$ac_eof
21807_ACEOF
21808
21809
21810# VPATH may cause trouble with some makes, so we remove $(srcdir),
21811# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21812# trailing colons and then remove the whole line if VPATH becomes empty
21813# (actually we leave an empty line to preserve line numbers).
21814if test "x$srcdir" = x.; then
21815 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21816s/:*\$(srcdir):*/:/
21817s/:*\${srcdir}:*/:/
21818s/:*@srcdir@:*/:/
21819s/^\([^=]*=[ ]*\):*/\1/
21820s/:*$//
21821s/^[^=]*=[ ]*$//
21822}'
21823fi
21824
21825cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021826fi # test -n "$CONFIG_FILES"
21827
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021828
21829for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21830do
21831 case $ac_tag in
21832 :[FHLC]) ac_mode=$ac_tag; continue;;
21833 esac
21834 case $ac_mode$ac_tag in
21835 :[FHL]*:*);;
21836 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21837echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21838 { (exit 1); exit 1; }; };;
21839 :[FH]-) ac_tag=-:-;;
21840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21841 esac
21842 ac_save_IFS=$IFS
21843 IFS=:
21844 set x $ac_tag
21845 IFS=$ac_save_IFS
21846 shift
21847 ac_file=$1
21848 shift
21849
21850 case $ac_mode in
21851 :L) ac_source=$1;;
21852 :[FH])
21853 ac_file_inputs=
21854 for ac_f
21855 do
21856 case $ac_f in
21857 -) ac_f="$tmp/stdin";;
21858 *) # Look for the file first in the build tree, then in the source tree
21859 # (if the path is not absolute). The absolute path cannot be DOS-style,
21860 # because $ac_f cannot contain `:'.
21861 test -f "$ac_f" ||
21862 case $ac_f in
21863 [\\/$]*) false;;
21864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21865 esac ||
21866 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21867echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21868 { (exit 1); exit 1; }; };;
21869 esac
21870 ac_file_inputs="$ac_file_inputs $ac_f"
21871 done
21872
21873 # Let's still pretend it is `configure' which instantiates (i.e., don't
21874 # use $as_me), people would be surprised to read:
21875 # /* config.h. Generated by config.status. */
21876 configure_input="Generated from "`IFS=:
21877 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21878 if test x"$ac_file" != x-; then
21879 configure_input="$ac_file. $configure_input"
21880 { echo "$as_me:$LINENO: creating $ac_file" >&5
21881echo "$as_me: creating $ac_file" >&6;}
21882 fi
21883
21884 case $ac_tag in
21885 *:-:* | *:-) cat >"$tmp/stdin";;
21886 esac
21887 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021888 esac
21889
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021890 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021891$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021892 X"$ac_file" : 'X\(//\)[^/]' \| \
21893 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021894 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021895echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21897 s//\1/
21898 q
21899 }
21900 /^X\(\/\/\)[^/].*/{
21901 s//\1/
21902 q
21903 }
21904 /^X\(\/\/\)$/{
21905 s//\1/
21906 q
21907 }
21908 /^X\(\/\).*/{
21909 s//\1/
21910 q
21911 }
21912 s/.*/./; q'`
21913 { as_dir="$ac_dir"
21914 case $as_dir in #(
21915 -*) as_dir=./$as_dir;;
21916 esac
21917 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021918 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021919 while :; do
21920 case $as_dir in #(
21921 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21922 *) as_qdir=$as_dir;;
21923 esac
21924 as_dirs="'$as_qdir' $as_dirs"
21925 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021926$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021927 X"$as_dir" : 'X\(//\)[^/]' \| \
21928 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021929 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021930echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21932 s//\1/
21933 q
21934 }
21935 /^X\(\/\/\)[^/].*/{
21936 s//\1/
21937 q
21938 }
21939 /^X\(\/\/\)$/{
21940 s//\1/
21941 q
21942 }
21943 /^X\(\/\).*/{
21944 s//\1/
21945 q
21946 }
21947 s/.*/./; q'`
21948 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000021949 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021950 test -z "$as_dirs" || eval "mkdir $as_dirs"
21951 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21952echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000021953 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000021954 ac_builddir=.
21955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021956case "$ac_dir" in
21957.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21958*)
John Criswell451f67f2003-10-16 01:45:35 +000021959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021960 # A ".." for each directory in $ac_dir_suffix.
21961 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21962 case $ac_top_builddir_sub in
21963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21965 esac ;;
21966esac
21967ac_abs_top_builddir=$ac_pwd
21968ac_abs_builddir=$ac_pwd$ac_dir_suffix
21969# for backward compatibility:
21970ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000021971
21972case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021973 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000021974 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021975 ac_top_srcdir=$ac_top_builddir_sub
21976 ac_abs_top_srcdir=$ac_pwd ;;
21977 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000021978 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021979 ac_top_srcdir=$srcdir
21980 ac_abs_top_srcdir=$srcdir ;;
21981 *) # Relative name.
21982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21983 ac_top_srcdir=$ac_top_build_prefix$srcdir
21984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000021985esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021986ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000021987
Dan Gohman324f6082009-03-25 00:52:11 +000021988
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021989 case $ac_mode in
21990 :F)
21991 #
21992 # CONFIG_FILE
21993 #
Dan Gohman324f6082009-03-25 00:52:11 +000021994
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021995 case $INSTALL in
21996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21997 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21998 esac
Dan Gohman324f6082009-03-25 00:52:11 +000021999_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022000
22001cat >>$CONFIG_STATUS <<\_ACEOF
22002# If the template does not know about datarootdir, expand it.
22003# FIXME: This hack should be removed a few years after 2.60.
22004ac_datarootdir_hack=; ac_datarootdir_seen=
22005
22006case `sed -n '/datarootdir/ {
22007 p
22008 q
22009}
22010/@datadir@/p
22011/@docdir@/p
22012/@infodir@/p
22013/@localedir@/p
22014/@mandir@/p
22015' $ac_file_inputs` in
22016*datarootdir*) ac_datarootdir_seen=yes;;
22017*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22018 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22019echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22020_ACEOF
22021cat >>$CONFIG_STATUS <<_ACEOF
22022 ac_datarootdir_hack='
22023 s&@datadir@&$datadir&g
22024 s&@docdir@&$docdir&g
22025 s&@infodir@&$infodir&g
22026 s&@localedir@&$localedir&g
22027 s&@mandir@&$mandir&g
22028 s&\\\${datarootdir}&$datarootdir&g' ;;
22029esac
22030_ACEOF
22031
22032# Neutralize VPATH when `$srcdir' = `.'.
22033# Shell code in configure.ac might set extrasub.
22034# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022035cat >>$CONFIG_STATUS <<_ACEOF
22036 sed "$ac_vpsub
22037$extrasub
22038_ACEOF
22039cat >>$CONFIG_STATUS <<\_ACEOF
22040:t
22041/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022042s&@configure_input@&$configure_input&;t t
22043s&@top_builddir@&$ac_top_builddir_sub&;t t
22044s&@srcdir@&$ac_srcdir&;t t
22045s&@abs_srcdir@&$ac_abs_srcdir&;t t
22046s&@top_srcdir@&$ac_top_srcdir&;t t
22047s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22048s&@builddir@&$ac_builddir&;t t
22049s&@abs_builddir@&$ac_abs_builddir&;t t
22050s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022051s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022052$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022053" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022054
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022055test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22056 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22058 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22059which seems to be undefined. Please make sure it is defined." >&5
22060echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22061which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022062
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022063 rm -f "$tmp/stdin"
22064 case $ac_file in
22065 -) cat "$tmp/out"; rm -f "$tmp/out";;
22066 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022067 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022068 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022069
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022070
22071 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22072echo "$as_me: executing $ac_file commands" >&6;}
22073 ;;
22074 esac
22075
22076
22077 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022078 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22079 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22080 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22081 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22082 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22083 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22084 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22085 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22086 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22087 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022088
22089 esac
22090done # for ac_tag
22091
John Criswell451f67f2003-10-16 01:45:35 +000022092
22093{ (exit 0); exit 0; }
22094_ACEOF
22095chmod +x $CONFIG_STATUS
22096ac_clean_files=$ac_clean_files_save
22097
22098
22099# configure is writing to config.log, and then calls config.status.
22100# config.status does its own redirection, appending to config.log.
22101# Unfortunately, on DOS this fails, as config.log is still kept open
22102# by configure, so config.status won't be able to write to it; its
22103# output is simply discarded. So we exec the FD to /dev/null,
22104# effectively closing config.log, so it can be properly (re)opened and
22105# appended to by config.status. When coming back to configure, we
22106# need to make the FD available again.
22107if test "$no_create" != yes; then
22108 ac_cs_success=:
22109 ac_config_status_args=
22110 test "$silent" = yes &&
22111 ac_config_status_args="$ac_config_status_args --quiet"
22112 exec 5>/dev/null
22113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22114 exec 5>>config.log
22115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22116 # would make configure fail if this is the last instruction.
22117 $ac_cs_success || { (exit 1); exit 1; }
22118fi
22119
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022120#
22121# CONFIG_SUBDIRS section.
22122#
22123if test "$no_recursion" != yes; then
22124
22125 # Remove --cache-file and --srcdir arguments so they do not pile up.
22126 ac_sub_configure_args=
22127 ac_prev=
22128 eval "set x $ac_configure_args"
22129 shift
22130 for ac_arg
22131 do
22132 if test -n "$ac_prev"; then
22133 ac_prev=
22134 continue
22135 fi
22136 case $ac_arg in
22137 -cache-file | --cache-file | --cache-fil | --cache-fi \
22138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22139 ac_prev=cache_file ;;
22140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22142 | --c=*)
22143 ;;
22144 --config-cache | -C)
22145 ;;
22146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22147 ac_prev=srcdir ;;
22148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22149 ;;
22150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22151 ac_prev=prefix ;;
22152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22153 ;;
22154 *)
22155 case $ac_arg in
22156 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22157 esac
22158 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22159 esac
22160 done
22161
22162 # Always prepend --prefix to ensure using the same prefix
22163 # in subdir configurations.
22164 ac_arg="--prefix=$prefix"
22165 case $ac_arg in
22166 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22167 esac
22168 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22169
22170 ac_popdir=`pwd`
22171 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22172
22173 # Do not complain, so a configure script can configure whichever
22174 # parts of a large source tree are present.
22175 test -d "$srcdir/$ac_dir" || continue
22176
22177 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22178 echo "$as_me:$LINENO: $ac_msg" >&5
22179 echo "$ac_msg" >&6
22180 { as_dir="$ac_dir"
22181 case $as_dir in #(
22182 -*) as_dir=./$as_dir;;
22183 esac
22184 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22185 as_dirs=
22186 while :; do
22187 case $as_dir in #(
22188 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22189 *) as_qdir=$as_dir;;
22190 esac
22191 as_dirs="'$as_qdir' $as_dirs"
22192 as_dir=`$as_dirname -- "$as_dir" ||
22193$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22194 X"$as_dir" : 'X\(//\)[^/]' \| \
22195 X"$as_dir" : 'X\(//\)$' \| \
22196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22197echo X"$as_dir" |
22198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22199 s//\1/
22200 q
22201 }
22202 /^X\(\/\/\)[^/].*/{
22203 s//\1/
22204 q
22205 }
22206 /^X\(\/\/\)$/{
22207 s//\1/
22208 q
22209 }
22210 /^X\(\/\).*/{
22211 s//\1/
22212 q
22213 }
22214 s/.*/./; q'`
22215 test -d "$as_dir" && break
22216 done
22217 test -z "$as_dirs" || eval "mkdir $as_dirs"
22218 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22219echo "$as_me: error: cannot create directory $as_dir" >&2;}
22220 { (exit 1); exit 1; }; }; }
22221 ac_builddir=.
22222
22223case "$ac_dir" in
22224.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22225*)
22226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22227 # A ".." for each directory in $ac_dir_suffix.
22228 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22229 case $ac_top_builddir_sub in
22230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22232 esac ;;
22233esac
22234ac_abs_top_builddir=$ac_pwd
22235ac_abs_builddir=$ac_pwd$ac_dir_suffix
22236# for backward compatibility:
22237ac_top_builddir=$ac_top_build_prefix
22238
22239case $srcdir in
22240 .) # We are building in place.
22241 ac_srcdir=.
22242 ac_top_srcdir=$ac_top_builddir_sub
22243 ac_abs_top_srcdir=$ac_pwd ;;
22244 [\\/]* | ?:[\\/]* ) # Absolute name.
22245 ac_srcdir=$srcdir$ac_dir_suffix;
22246 ac_top_srcdir=$srcdir
22247 ac_abs_top_srcdir=$srcdir ;;
22248 *) # Relative name.
22249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22250 ac_top_srcdir=$ac_top_build_prefix$srcdir
22251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22252esac
22253ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22254
22255
22256 cd "$ac_dir"
22257
22258 # Check for guested configure; otherwise get Cygnus style configure.
22259 if test -f "$ac_srcdir/configure.gnu"; then
22260 ac_sub_configure=$ac_srcdir/configure.gnu
22261 elif test -f "$ac_srcdir/configure"; then
22262 ac_sub_configure=$ac_srcdir/configure
22263 elif test -f "$ac_srcdir/configure.in"; then
22264 # This should be Cygnus configure.
22265 ac_sub_configure=$ac_aux_dir/configure
22266 else
22267 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22268echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22269 ac_sub_configure=
22270 fi
22271
22272 # The recursion is here.
22273 if test -n "$ac_sub_configure"; then
22274 # Make the cache file name correct relative to the subdirectory.
22275 case $cache_file in
22276 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22277 *) # Relative name.
22278 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22279 esac
22280
22281 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22282echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22283 # The eval makes quoting arguments work.
22284 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22285 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22286 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22287echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22288 { (exit 1); exit 1; }; }
22289 fi
22290
22291 cd "$ac_popdir"
22292 done
22293fi
22294