blob: 94e931fbdc97aa021244e15354a6bb936a2e59e8 [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
Craig Topper8ee39632012-11-12 06:11:12 +0000686ENABLE_CXX11
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000687ENABLE_OPTIMIZED
688ENABLE_PROFILING
689DISABLE_ASSERTIONS
Craig Topper8ee39632012-11-12 06:11:12 +0000690ENABLE_WERROR
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000691ENABLE_EXPENSIVE_CHECKS
692EXPENSIVE_CHECKS
693DEBUG_RUNTIME
694DEBUG_SYMBOLS
695JIT
696TARGET_HAS_JIT
697ENABLE_DOCS
698ENABLE_DOXYGEN
699ENABLE_THREADS
700ENABLE_PTHREADS
701ENABLE_PIC
702ENABLE_SHARED
703ENABLE_EMBED_STDCXX
704ENABLE_TIMESTAMPS
705TARGETS_TO_BUILD
706LLVM_ENUM_TARGETS
707LLVM_ENUM_ASM_PRINTERS
708LLVM_ENUM_ASM_PARSERS
709LLVM_ENUM_DISASSEMBLERS
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000710OPTIMIZE_OPTION
711EXTRA_OPTIONS
712EXTRA_LD_OPTIONS
713BINUTILS_INCDIR
714NM
715ifGNUmake
716LN_S
717CMP
718CP
719DATE
720FIND
721MKDIR
722MV
723RANLIB
724AR
725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
737XDOT_PY
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
742CAT
743DOXYGEN
744GROFF
745GZIPBIN
746POD2HTML
747POD2MAN
748PDFROFF
749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
757HAVE_LINK_VERSION_SCRIPT
758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000765COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
771SHLIBEXT
772SHLIBPATH_VAR
773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000789LIBOBJS
790LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000791ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000792 ac_precious_vars='build_alias
793host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
802CPP'
803ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000830# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000839includedir='${prefix}/include'
840oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000850
851ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000852ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000853for ac_option
854do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000857 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000858 ac_prev=
859 continue
860 fi
861
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000862 case $ac_option in
863 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *) ac_optarg=yes ;;
865 esac
John Criswell451f67f2003-10-16 01:45:35 +0000866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000893 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000894 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000896 datadir=$ac_optarg ;;
897
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
John Criswell451f67f2003-10-16 01:45:35 +0000905 -disable-* | --disable-*)
906 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000908 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000909 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000911 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000912 eval enable_$ac_feature=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000923
924 -enable-* | --enable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000931 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
John Criswell451f67f2003-10-16 01:45:35 +0000964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
John Criswell451f67f2003-10-16 01:45:35 +0000993 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000994 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
John Criswell451f67f2003-10-16 01:45:35 +00001072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001124 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001125 { echo "$as_me: error: invalid package name: $ac_package" >&2
1126 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001127 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001128 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001129
1130 -without-* | --without-*)
1131 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001134 { echo "$as_me: error: invalid package name: $ac_package" >&2
1135 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001136 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001137 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001138
1139 --x)
1140 # Obsolete; use --with-x.
1141 with_x=yes ;;
1142
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1149
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1156
1157 -*) { echo "$as_me: error: unrecognized option: $ac_option
1158Try \`$0 --help' for more information." >&2
1159 { (exit 1); exit 1; }; }
1160 ;;
1161
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001168 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001169 export $ac_envvar ;;
1170
1171 *)
1172 # FIXME: should be removed in autoconf 3.0.
1173 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 ;;
1178
1179 esac
1180done
1181
1182if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 { echo "$as_me: error: missing argument to $ac_option" >&2
1185 { (exit 1); exit 1; }; }
1186fi
1187
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001188# Be sure to have absolute directory names.
1189for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001193do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001194 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001195 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001198 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001199 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1217 cross_compiling=yes
1218 fi
1219fi
1220
1221ac_tool_prefix=
1222test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224test "$silent" = yes && exec 6>/dev/null
1225
1226
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001227ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228ac_ls_di=`ls -di .` &&
1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 { echo "$as_me: error: Working directory cannot be determined" >&2
1231 { (exit 1); exit 1; }; }
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 { echo "$as_me: error: pwd does not report name of working directory" >&2
1234 { (exit 1); exit 1; }; }
1235
1236
John Criswell451f67f2003-10-16 01:45:35 +00001237# Find the source files, if location was not specified.
1238if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001242$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001243 X"$0" : 'X\(//\)[^/]' \| \
1244 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001246echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)[^/].*/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\/\)$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\).*/{
1260 s//\1/
1261 q
1262 }
1263 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001264 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001265 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001266 srcdir=..
1267 fi
1268else
1269 ac_srcdir_defaulted=no
1270fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001271if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001274 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001275fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001279 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001280 pwd)`
1281# When building in place, set srcdir=.
1282if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1284fi
1285# Remove unnecessary trailing slashes from srcdir.
1286# Double slashes in file names in object file debugging info
1287# mess up M-x gdb in Emacs.
1288case $srcdir in
1289*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290esac
1291for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296done
John Criswell451f67f2003-10-16 01:45:35 +00001297
1298#
1299# Report the --help message.
1300#
1301if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306
1307Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310VAR=VALUE. See below for descriptions of some of the useful variables.
1311
1312Defaults for the options are specified in brackets.
1313
1314Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324
John Criswell451f67f2003-10-16 01:45:35 +00001325Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001327 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001329 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001330
1331By default, \`make install' will install all the files in
1332\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334for instance \`--prefix=\$HOME'.
1335
1336For better control, use the options below.
1337
1338Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001358_ACEOF
1359
1360 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001361
1362System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001366_ACEOF
1367fi
1368
1369if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1372 esac
1373 cat <<\_ACEOF
1374
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001375Optional Features:
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-polly Use polly if available (default is YES)
Eric Christopherb2bc6e42012-03-26 02:09:01 +00001379 --enable-libcpp Use libc++ if available (default is NO)
Craig Topper8ee39632012-11-12 06:11:12 +00001380 --enable-cxx11 Use c++11 if available (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001381 --enable-optimized Compile with optimizations enabled (default is NO)
1382 --enable-profiling Compile with profiling enabled (default is NO)
1383 --enable-assertions Compile with assertion checks enabled (default is
1384 YES)
Craig Topper8ee39632012-11-12 06:11:12 +00001385 --enable-werror Compile with -Werror enabled (default is NO)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001386 --enable-expensive-checks
1387 Compile with expensive debug checks enabled (default
1388 is NO)
1389 --enable-debug-runtime Build runtime libs with debug symbols (default is
1390 NO)
1391 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1392 optimization is on and YES if it's off)
1393 --enable-jit Enable Just In Time Compiling (default is YES)
1394 --enable-docs Build documents (default is YES)
1395 --enable-doxygen Build doxygen documentation (default is NO)
1396 --enable-threads Use threads if available (default is YES)
1397 --enable-pthreads Use pthreads if available (default is YES)
1398 --enable-pic Build LLVM with Position Independent Code (default
1399 is YES)
1400 --enable-shared Build a shared library and link tools against it
1401 (default is NO)
1402 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1403 Win32 DLL (default is YES)
1404 --enable-timestamps Enable embedding timestamp information in build
1405 (default is YES)
1406 --enable-targets Build specific host targets: all or
1407 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001408 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001409 xcore, msp430, nvptx, cbe, and cpp (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-libffi Check for the presence of libffi (default is NO)
1413 --enable-ltdl-install install libltdl
1414
John Criswell451f67f2003-10-16 01:45:35 +00001415Optional Packages:
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-llvmsrc Location of LLVM Source Code
1419 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001420 --with-optimize-option Select the compiler options to use for optimized
1421 builds
1422 --with-extra-options Specify additional options to compile LLVM with
1423 --with-extra-ld-options Specify additional options to link LLVM with
1424 --with-ocaml-libdir Specify install location for ocaml bindings (default
1425 is stdlib)
1426 --with-clang-resource-dir
1427 Relative directory from the Clang binary for
1428 resource files
1429 --with-c-include-dirs Colon separated list of directories clang will
1430 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001431 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001432 --with-binutils-include Specify path to binutils/include/ containing
1433 plugin-api.h file for gold plugin.
1434 --with-bug-report-url Specify the URL where bug reports should be
1435 submitted (default=http://llvm.org/bugs/)
1436 --with-tclinclude directory where tcl headers are
1437 --with-udis86=<path> Use udis86 external x86 disassembler library
1438 --with-oprofile=<prefix>
1439 Tell OProfile >= 0.9.4 how to symbolize JIT output
1440
1441Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1450 CPP C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001454
1455Report bugs to <bugs@yourdomain>.
1456_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001457ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001463 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001464 ac_builddir=.
1465
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
John Criswell451f67f2003-10-16 01:45:35 +00001469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001481
1482case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001483 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001484 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001488 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001495esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001497
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001506 else
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001510 done
1511fi
1512
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001513test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001514if $ac_init_version; then
1515 cat <<\_ACEOF
1516[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001517generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001518
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001519Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15202002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001524 exit
John Criswell451f67f2003-10-16 01:45:35 +00001525fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001526cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001527This file contains any messages produced by compilers while
1528running configure, to aid debugging if configure makes a mistake.
1529
1530It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001531generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001532
1533 $ $0 $@
1534
1535_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001536exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001537{
1538cat <<_ASUNAME
1539## --------- ##
1540## Platform. ##
1541## --------- ##
1542
1543hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548
1549/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1551
1552/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001555/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001556/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1559
1560_ASUNAME
1561
1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563for as_dir in $PATH
1564do
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1568done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001569IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001570
1571} >&5
1572
1573cat >&5 <<_ACEOF
1574
1575
1576## ----------- ##
1577## Core tests. ##
1578## ----------- ##
1579
1580_ACEOF
1581
1582
1583# Keep a trace of the command line.
1584# Strip out --no-create and --no-recursion so they do not pile up.
1585# Strip out --silent because we don't want to record it for future runs.
1586# Also quote any args containing shell meta-characters.
1587# Make two passes to allow for proper duplicate-argument suppression.
1588ac_configure_args=
1589ac_configure_args0=
1590ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001591ac_must_keep_next=false
1592for ac_pass in 1 2
1593do
1594 for ac_arg
1595 do
1596 case $ac_arg in
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1600 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001601 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603 esac
1604 case $ac_pass in
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606 2)
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001609 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001610 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001611 case $ac_arg in
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618 esac
1619 ;;
1620 -* ) ac_must_keep_next=true ;;
1621 esac
John Criswell451f67f2003-10-16 01:45:35 +00001622 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001623 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001624 ;;
1625 esac
1626 done
1627done
1628$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630
1631# When interrupted or exit'd, cleanup temporary files, and complete
1632# config.log. We remove comments because anyway the quotes in there
1633# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001634# WARNING: Use '\'' to represent an apostrophe within the trap.
1635# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001636trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1638 {
1639 echo
1640
1641 cat <<\_ASBOX
1642## ---------------- ##
1643## Cache variables. ##
1644## ---------------- ##
1645_ASBOX
1646 echo
1647 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001648(
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1651 case $ac_val in #(
1652 *${as_nl}*)
1653 case $ac_var in #(
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1656 esac
1657 case $ac_var in #(
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1660 esac ;;
1661 esac
1662 done
John Criswell451f67f2003-10-16 01:45:35 +00001663 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001666 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1669 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001670 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001672 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001673 esac |
1674 sort
1675)
John Criswell451f67f2003-10-16 01:45:35 +00001676 echo
1677
1678 cat <<\_ASBOX
1679## ----------------- ##
1680## Output variables. ##
1681## ----------------- ##
1682_ASBOX
1683 echo
1684 for ac_var in $ac_subst_vars
1685 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001686 eval ac_val=\$$ac_var
1687 case $ac_val in
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 esac
1690 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001691 done | sort
1692 echo
1693
1694 if test -n "$ac_subst_files"; then
1695 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001696## ------------------- ##
1697## File substitutions. ##
1698## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001699_ASBOX
1700 echo
1701 for ac_var in $ac_subst_files
1702 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001703 eval ac_val=\$$ac_var
1704 case $ac_val in
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 esac
1707 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001708 done | sort
1709 echo
1710 fi
1711
1712 if test -s confdefs.h; then
1713 cat <<\_ASBOX
1714## ----------- ##
1715## confdefs.h. ##
1716## ----------- ##
1717_ASBOX
1718 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001719 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001720 echo
1721 fi
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1725 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001728 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001729' 0
John Criswell451f67f2003-10-16 01:45:35 +00001730for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732done
1733ac_signal=0
1734
1735# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001736rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001737
1738# Predefined preprocessor variables.
1739
1740cat >>confdefs.h <<_ACEOF
1741#define PACKAGE_NAME "$PACKAGE_NAME"
1742_ACEOF
1743
1744
1745cat >>confdefs.h <<_ACEOF
1746#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747_ACEOF
1748
1749
1750cat >>confdefs.h <<_ACEOF
1751#define PACKAGE_VERSION "$PACKAGE_VERSION"
1752_ACEOF
1753
1754
1755cat >>confdefs.h <<_ACEOF
1756#define PACKAGE_STRING "$PACKAGE_STRING"
1757_ACEOF
1758
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762_ACEOF
1763
1764
1765# Let the site file select an alternate cache file if it wants to.
1766# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001767if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771else
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001774fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001775shift
1776for ac_site_file
1777do
John Criswell451f67f2003-10-16 01:45:35 +00001778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1782 . "$ac_site_file"
1783 fi
1784done
1785
1786if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791echo "$as_me: loading cache $cache_file" >&6;}
1792 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001795 esac
1796 fi
1797else
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799echo "$as_me: creating cache $cache_file" >&6;}
1800 >$cache_file
1801fi
1802
1803# Check that the precious variables saved in the cache have kept the same
1804# value.
1805ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001806for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001811 case $ac_old_set,$ac_new_set in
1812 set,)
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1816 ,set)
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1820 ,);;
1821 *)
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001824echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001826echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001828echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001829 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001830 fi;;
1831 esac
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1834 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001836 *) ac_arg=$ac_var=$ac_new_val ;;
1837 esac
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841 esac
1842 fi
1843done
1844if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1850fi
1851
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
John Criswell451f67f2003-10-16 01:45:35 +00001876ac_ext=c
1877ac_cpp='$CPP $CPPFLAGS'
1878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881
1882
1883
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001884LLVM_SRC_ROOT="../.."
1885LLVM_OBJ_ROOT="../.."
1886
1887LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001889
1890
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001891# Check whether --with-llvmsrc was given.
1892if test "${with_llvmsrc+set}" = set; then
1893 withval=$with_llvmsrc; llvm_src="$withval"
1894else
1895 llvm_src="$LLVM_ABS_SRC_ROOT"
1896fi
1897
1898 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001899
1900
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001901# Check whether --with-llvmobj was given.
1902if test "${with_llvmobj+set}" = set; then
1903 withval=$with_llvmobj; llvm_obj="$withval"
1904else
1905 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1906fi
Dan Gohman324f6082009-03-25 00:52:11 +00001907
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001908 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001909
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001910 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001911
1912
1913
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001914{ echo "$as_me:$LINENO: checking llvm-config" >&5
1915echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917if ! test -f "$llvm_config_path" ; then
1918 llvm_config_path="no"
1919fi
1920{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921echo "${ECHO_T}$llvm_config_path" >&6; }
1922
1923{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1924echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925if test "$llvm_config_path" != no ; then
1926 llvm_package_version=`$llvm_config_path --version`
1927else
1928 llvm_package_version="unknown";
1929fi
1930{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931echo "${ECHO_T}$llvm_package_version" >&6; }
1932LLVM_VERSION=$llvm_package_version
1933
1934
1935
1936
John Criswell451f67f2003-10-16 01:45:35 +00001937ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001938for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001939 if 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/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001947 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 break
1951 fi
1952done
1953if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001956 { (exit 1); exit 1; }; }
1957fi
John Criswell451f67f2003-10-16 01:45:35 +00001958
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001959# These three variables are undocumented and unsupported,
1960# and are intended to be withdrawn in a future Autoconf release.
1961# They can cause serious problems if a builder's source tree is in a directory
1962# whose full name contains unusual characters.
1963ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001966
1967
1968
1969
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001970ac_ext=c
1971ac_cpp='$CPP $CPPFLAGS'
1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1977 do
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1998 fi
1999done
2000done
2001IFS=$as_save_IFS
2002
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6; }
2009else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6; }
2012fi
2013
2014
2015 test -n "$CC" && break
2016 done
2017fi
2018if test -z "$CC"; then
2019 ac_ct_CC=$CC
2020 for ac_prog in clang llvm-gcc gcc
2021do
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023set dummy $ac_prog; ac_word=$2
2024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2042 fi
2043done
2044done
2045IFS=$as_save_IFS
2046
2047fi
2048fi
2049ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052echo "${ECHO_T}$ac_ct_CC" >&6; }
2053else
2054 { echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6; }
2056fi
2057
2058
2059 test -n "$ac_ct_CC" && break
2060done
2061
2062 if test "x$ac_ct_CC" = x; then
2063 CC=""
2064 else
2065 case $cross_compiling:$ac_tool_warned in
2066yes:)
2067{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068whose name does not start with the host triplet. If you think this
2069configuration is useful to you, please write to autoconf@gnu.org." >&5
2070echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071whose name does not start with the host triplet. If you think this
2072configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073ac_tool_warned=yes ;;
2074esac
2075 CC=$ac_ct_CC
2076 fi
2077fi
2078
2079
2080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: no acceptable C compiler found in \$PATH
2083See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2085
2086# Provide some information about the compiler.
2087echo "$as_me:$LINENO: checking for C compiler version" >&5
2088ac_compiler=`set X $ac_compile; echo $2`
2089{ (ac_try="$ac_compiler --version >&5"
2090case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093esac
2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099{ (ac_try="$ac_compiler -v >&5"
2100case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103esac
2104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109{ (ac_try="$ac_compiler -V >&5"
2110case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113esac
2114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119
2120cat >conftest.$ac_ext <<_ACEOF
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h. */
2126
2127int
2128main ()
2129{
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135ac_clean_files_save=$ac_clean_files
2136ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137# Try to create an executable without -o first, disregard a.out.
2138# It will help us diagnose broken compilers, and finding out an intuition
2139# of exeext.
2140{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143#
2144# List of possible output files, starting from the most likely.
2145# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146# only as a last resort. b.out is created by i960 compilers.
2147ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148#
2149# The IRIX 6 linker writes into existing files which may not be
2150# executable, retaining their permissions. Remove them first so a
2151# subsequent execution test works.
2152ac_rmfiles=
2153for ac_file in $ac_files
2154do
2155 case $ac_file in
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158 esac
2159done
2160rm -f $ac_rmfiles
2161
2162if { (ac_try="$ac_link_default"
2163case "(($ac_try" in
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2166esac
2167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174# in a Makefile. We should not override ac_cv_exeext if it was cached,
2175# so that the user can short-circuit this test for compilers unknown to
2176# Autoconf.
2177for ac_file in $ac_files
2178do
2179 test -f "$ac_file" || continue
2180 case $ac_file in
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182 ;;
2183 [ab].out )
2184 # We found the default executable, but exeext='' is most
2185 # certainly right.
2186 break;;
2187 *.* )
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189 then :; else
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 fi
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2196 # actually working.
2197 break;;
2198 * )
2199 break;;
2200 esac
2201done
2202test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
2204else
2205 echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: C compiler cannot create executables
2211See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2213fi
2214
2215ac_exeext=$ac_cv_exeext
2216{ echo "$as_me:$LINENO: result: $ac_file" >&5
2217echo "${ECHO_T}$ac_file" >&6; }
2218
2219# Check that the compiler produces executables we can run. If not, either
2220# the compiler is broken, or we cross compile.
2221{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224# If not cross compiling, check that we can run a simple program.
2225if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230esac
2231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 cross_compiling=no
2237 else
2238 if test "$cross_compiling" = maybe; then
2239 cross_compiling=yes
2240 else
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: cannot run C compiled programs.
2245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2248 fi
2249 fi
2250fi
2251{ echo "$as_me:$LINENO: result: yes" >&5
2252echo "${ECHO_T}yes" >&6; }
2253
2254rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255ac_clean_files=$ac_clean_files_save
2256# Check that the compiler produces executables we can run. If not, either
2257# the compiler is broken, or we cross compile.
2258{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265if { (ac_try="$ac_link"
2266case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269esac
2270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
2279for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2281 case $ac_file in
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 break;;
2285 * ) break;;
2286 esac
2287done
2288else
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2294fi
2295
2296rm -f conftest$ac_cv_exeext
2297{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300rm -f conftest.$ac_ext
2301EXEEXT=$ac_cv_exeext
2302ac_exeext=$EXEEXT
2303{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308 cat >conftest.$ac_ext <<_ACEOF
2309/* confdefs.h. */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h. */
2314
2315int
2316main ()
2317{
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323rm -f conftest.o conftest.obj
2324if { (ac_try="$ac_compile"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2336 case $ac_file in
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339 break;;
2340 esac
2341done
2342else
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2351fi
2352
2353rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354fi
2355{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356echo "${ECHO_T}$ac_cv_objext" >&6; }
2357OBJEXT=$ac_cv_objext
2358ac_objext=$OBJEXT
2359{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h. */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h. */
2370
2371int
2372main ()
2373{
2374#ifndef __GNUC__
2375 choke me
2376#endif
2377
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (ac_try="$ac_compile"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400esac
2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410esac
2411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_compiler_gnu=yes
2417else
2418 echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 ac_compiler_gnu=no
2422fi
2423
2424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427fi
2428{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430GCC=`test $ac_compiler_gnu = yes && echo yes`
2431ac_test_CFLAGS=${CFLAGS+set}
2432ac_save_CFLAGS=$CFLAGS
2433{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2440 ac_cv_prog_cc_g=no
2441 CFLAGS="-g"
2442 cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h. */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h. */
2448
2449int
2450main ()
2451{
2452
2453 ;
2454 return 0;
2455}
2456_ACEOF
2457rm -f conftest.$ac_objext
2458if { (ac_try="$ac_compile"
2459case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462esac
2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2465 ac_status=$?
2466 grep -v '^ *+' conftest.er1 >conftest.err
2467 rm -f conftest.er1
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475esac
2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485esac
2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 ac_cv_prog_cc_g=yes
2492else
2493 echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 CFLAGS=""
2497 cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h. */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h. */
2503
2504int
2505main ()
2506{
2507
2508 ;
2509 return 0;
2510}
2511_ACEOF
2512rm -f conftest.$ac_objext
2513if { (ac_try="$ac_compile"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540esac
2541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 :
2547else
2548 echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2552 CFLAGS="-g"
2553 cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h. */
2559
2560int
2561main ()
2562{
2563
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (ac_try="$ac_compile"
2570case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573esac
2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 ac_cv_prog_cc_g=yes
2603else
2604 echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
2608fi
2609
2610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611fi
2612
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615
2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2618fi
2619{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2625 CFLAGS="-g -O2"
2626 else
2627 CFLAGS="-g"
2628 fi
2629else
2630 if test "$GCC" = yes; then
2631 CFLAGS="-O2"
2632 else
2633 CFLAGS=
2634 fi
2635fi
2636{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
2641 ac_cv_prog_cc_c89=no
2642ac_save_CC=$CC
2643cat >conftest.$ac_ext <<_ACEOF
2644/* confdefs.h. */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h. */
2649#include <stdarg.h>
2650#include <stdio.h>
2651#include <sys/types.h>
2652#include <sys/stat.h>
2653/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654struct buf { int x; };
2655FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656static char *e (p, i)
2657 char **p;
2658 int i;
2659{
2660 return p[i];
2661}
2662static char *f (char * (*g) (char **, int), char **p, ...)
2663{
2664 char *s;
2665 va_list v;
2666 va_start (v,p);
2667 s = g (p, va_arg (v,int));
2668 va_end (v);
2669 return s;
2670}
2671
2672/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
2681/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2683#define FOO(x) 'x'
2684int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
2686int test (int i, double x);
2687struct s1 {int (*f) (int a);};
2688struct s2 {int (*f) (double a);};
2689int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690int argc;
2691char **argv;
2692int
2693main ()
2694{
2695return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702do
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705if { (ac_try="$ac_compile"
2706case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709esac
2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2739else
2740 echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
2744fi
2745
2746rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2748done
2749rm -f conftest.$ac_ext
2750CC=$ac_save_CC
2751
2752fi
2753# AC_CACHE_VAL
2754case "x$ac_cv_prog_cc_c89" in
2755 x)
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757echo "${ECHO_T}none needed" >&6; } ;;
2758 xno)
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760echo "${ECHO_T}unsupported" >&6; } ;;
2761 *)
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765esac
2766
2767
2768ac_ext=c
2769ac_cpp='$CPP $CPPFLAGS'
2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774ac_ext=cpp
2775ac_cpp='$CXXCPP $CPPFLAGS'
2776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2781 CXX=$CCC
2782 else
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2785 do
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807done
2808done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CXX=$ac_cv_prog_CXX
2814if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816echo "${ECHO_T}$CXX" >&6; }
2817else
2818 { echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6; }
2820fi
2821
2822
2823 test -n "$CXX" && break
2824 done
2825fi
2826if test -z "$CXX"; then
2827 ac_ct_CXX=$CXX
2828 for ac_prog in clang++ llvm-g++ g++
2829do
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831set dummy $ac_prog; ac_word=$2
2832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861else
2862 { echo "$as_me:$LINENO: result: no" >&5
2863echo "${ECHO_T}no" >&6; }
2864fi
2865
2866
2867 test -n "$ac_ct_CXX" && break
2868done
2869
2870 if test "x$ac_ct_CXX" = x; then
2871 CXX="g++"
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874yes:)
2875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876whose name does not start with the host triplet. If you think this
2877configuration is useful to you, please write to autoconf@gnu.org." >&5
2878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879whose name does not start with the host triplet. If you think this
2880configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881ac_tool_warned=yes ;;
2882esac
2883 CXX=$ac_ct_CXX
2884 fi
2885fi
2886
2887 fi
2888fi
2889# Provide some information about the compiler.
2890echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891ac_compiler=`set X $ac_compile; echo $2`
2892{ (ac_try="$ac_compiler --version >&5"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902{ (ac_try="$ac_compiler -v >&5"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912{ (ac_try="$ac_compiler -V >&5"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922
2923{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h. */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h. */
2934
2935int
2936main ()
2937{
2938#ifndef __GNUC__
2939 choke me
2940#endif
2941
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
2947if { (ac_try="$ac_compile"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 ac_compiler_gnu=yes
2981else
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 ac_compiler_gnu=no
2986fi
2987
2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991fi
2992{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994GXX=`test $ac_compiler_gnu = yes && echo yes`
2995ac_test_CXXFLAGS=${CXXFLAGS+set}
2996ac_save_CXXFLAGS=$CXXFLAGS
2997{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3004 ac_cv_prog_cxx_g=no
3005 CXXFLAGS="-g"
3006 cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
3012
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3056else
3057 echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 CXXFLAGS=""
3061 cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h. */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h. */
3067
3068int
3069main ()
3070{
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
3077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 :
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116 CXXFLAGS="-g"
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123
3124int
3125main ()
3126{
3127
3128 ;
3129 return 0;
3130}
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (ac_try="$ac_compile"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3167else
3168 echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172fi
3173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175fi
3176
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178fi
3179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182fi
3183{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3189 CXXFLAGS="-g -O2"
3190 else
3191 CXXFLAGS="-g"
3192 fi
3193else
3194 if test "$GXX" = yes; then
3195 CXXFLAGS="-O2"
3196 else
3197 CXXFLAGS=
3198 fi
3199fi
3200ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213# On Suns, sometimes $CPP names a directory.
3214if test -n "$CPP" && test -d "$CPP"; then
3215 CPP=
3216fi
3217if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223 do
3224 ac_preproc_ok=false
3225for ac_c_preproc_warn_flag in '' yes
3226do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
3239#ifdef __STDC__
3240# include <limits.h>
3241#else
3242# include <assert.h>
3243#endif
3244 Syntax error
3245_ACEOF
3246if { (ac_try="$ac_cpp conftest.$ac_ext"
3247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 else
3263 ac_cpp_err=
3264 fi
3265else
3266 ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269 :
3270else
3271 echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 # Broken: fails on valid input.
3275continue
3276fi
3277
3278rm -f conftest.err conftest.$ac_ext
3279
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h. */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h. */
3288#include <ac_nonexistent.h>
3289_ACEOF
3290if { (ac_try="$ac_cpp conftest.$ac_ext"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306 else
3307 ac_cpp_err=
3308 fi
3309else
3310 ac_cpp_err=yes
3311fi
3312if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3314continue
3315else
3316 echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319 # Passes both tests.
3320ac_preproc_ok=:
3321break
3322fi
3323
3324rm -f conftest.err conftest.$ac_ext
3325
3326done
3327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328rm -f conftest.err conftest.$ac_ext
3329if $ac_preproc_ok; then
3330 break
3331fi
3332
3333 done
3334 ac_cv_prog_CPP=$CPP
3335
3336fi
3337 CPP=$ac_cv_prog_CPP
3338else
3339 ac_cv_prog_CPP=$CPP
3340fi
3341{ echo "$as_me:$LINENO: result: $CPP" >&5
3342echo "${ECHO_T}$CPP" >&6; }
3343ac_preproc_ok=false
3344for ac_c_preproc_warn_flag in '' yes
3345do
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h. */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h. */
3358#ifdef __STDC__
3359# include <limits.h>
3360#else
3361# include <assert.h>
3362#endif
3363 Syntax error
3364_ACEOF
3365if { (ac_try="$ac_cpp conftest.$ac_ext"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384else
3385 ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388 :
3389else
3390 echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 # Broken: fails on valid input.
3394continue
3395fi
3396
3397rm -f conftest.err conftest.$ac_ext
3398
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
3407#include <ac_nonexistent.h>
3408_ACEOF
3409if { (ac_try="$ac_cpp conftest.$ac_ext"
3410case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413esac
3414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416 ac_status=$?
3417 grep -v '^ *+' conftest.er1 >conftest.err
3418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425 else
3426 ac_cpp_err=
3427 fi
3428else
3429 ac_cpp_err=yes
3430fi
3431if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3433continue
3434else
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 # Passes both tests.
3439ac_preproc_ok=:
3440break
3441fi
3442
3443rm -f conftest.err conftest.$ac_ext
3444
3445done
3446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447rm -f conftest.err conftest.$ac_ext
3448if $ac_preproc_ok; then
3449 :
3450else
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452See \`config.log' for more details." >&5
3453echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3456fi
3457
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466
3467# Check whether --enable-polly was given.
3468if test "${enable_polly+set}" = set; then
3469 enableval=$enable_polly;
3470else
3471 enableval=default
3472fi
3473
3474case "$enableval" in
3475 yes) ENABLE_POLLY=1
3476 ;;
3477 no) ENABLE_POLLY=0
3478 ;;
3479 default) ENABLE_POLLY=1
3480 ;;
3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483 { (exit 1); exit 1; }; } ;;
3484esac
3485
3486
3487if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3488 LLVM_HAS_POLLY=1
3489
3490 subdirs="$subdirs tools/polly"
3491
3492fi
3493
3494
3495# Make sure we can run config.sub.
3496$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499 { (exit 1); exit 1; }; }
3500
3501{ echo "$as_me:$LINENO: checking build system type" >&5
3502echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503if test "${ac_cv_build+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 ac_build_alias=$build_alias
3507test "x$ac_build_alias" = x &&
3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509test "x$ac_build_alias" = x &&
3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512 { (exit 1); exit 1; }; }
3513ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3517
3518fi
3519{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520echo "${ECHO_T}$ac_cv_build" >&6; }
3521case $ac_cv_build in
3522*-*-*) ;;
3523*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524echo "$as_me: error: invalid value of canonical build" >&2;}
3525 { (exit 1); exit 1; }; };;
3526esac
3527build=$ac_cv_build
3528ac_save_IFS=$IFS; IFS='-'
3529set x $ac_cv_build
3530shift
3531build_cpu=$1
3532build_vendor=$2
3533shift; shift
3534# Remember, the first character of IFS is used to create $*,
3535# except with old shells:
3536build_os=$*
3537IFS=$ac_save_IFS
3538case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3539
3540
3541{ echo "$as_me:$LINENO: checking host system type" >&5
3542echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543if test "${ac_cv_host+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 if test "x$host_alias" = x; then
3547 ac_cv_host=$ac_cv_build
3548else
3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552 { (exit 1); exit 1; }; }
3553fi
3554
3555fi
3556{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557echo "${ECHO_T}$ac_cv_host" >&6; }
3558case $ac_cv_host in
3559*-*-*) ;;
3560*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561echo "$as_me: error: invalid value of canonical host" >&2;}
3562 { (exit 1); exit 1; }; };;
3563esac
3564host=$ac_cv_host
3565ac_save_IFS=$IFS; IFS='-'
3566set x $ac_cv_host
3567shift
3568host_cpu=$1
3569host_vendor=$2
3570shift; shift
3571# Remember, the first character of IFS is used to create $*,
3572# except with old shells:
3573host_os=$*
3574IFS=$ac_save_IFS
3575case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3576
3577
3578{ echo "$as_me:$LINENO: checking target system type" >&5
3579echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580if test "${ac_cv_target+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583 if test "x$target_alias" = x; then
3584 ac_cv_target=$ac_cv_host
3585else
3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3590fi
3591
3592fi
3593{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594echo "${ECHO_T}$ac_cv_target" >&6; }
3595case $ac_cv_target in
3596*-*-*) ;;
3597*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598echo "$as_me: error: invalid value of canonical target" >&2;}
3599 { (exit 1); exit 1; }; };;
3600esac
3601target=$ac_cv_target
3602ac_save_IFS=$IFS; IFS='-'
3603set x $ac_cv_target
3604shift
3605target_cpu=$1
3606target_vendor=$2
3607shift; shift
3608# Remember, the first character of IFS is used to create $*,
3609# except with old shells:
3610target_os=$*
3611IFS=$ac_save_IFS
3612case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3613
3614
3615# The aliases save the names the user supplied, while $host etc.
3616# will get canonicalized.
3617test -n "$target_alias" &&
3618 test "$program_prefix$program_suffix$program_transform_name" = \
3619 NONENONEs,x,x, &&
3620 program_prefix=${target_alias}-
3621
3622{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624if test "${llvm_cv_os_type+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626else
3627 case $host in
3628 *-*-aix*)
3629 llvm_cv_link_all_option="-Wl,--whole-archive"
3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631 llvm_cv_os_type="AIX"
3632 llvm_cv_platform_type="Unix" ;;
3633 *-*-irix*)
3634 llvm_cv_link_all_option="-Wl,--whole-archive"
3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636 llvm_cv_os_type="IRIX"
3637 llvm_cv_platform_type="Unix" ;;
3638 *-*-cygwin*)
3639 llvm_cv_link_all_option="-Wl,--whole-archive"
3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641 llvm_cv_os_type="Cygwin"
3642 llvm_cv_platform_type="Unix" ;;
3643 *-*-darwin*)
3644 llvm_cv_link_all_option="-Wl,-all_load"
3645 llvm_cv_no_link_all_option="-Wl,-noall_load"
3646 llvm_cv_os_type="Darwin"
3647 llvm_cv_platform_type="Unix" ;;
3648 *-*-minix*)
3649 llvm_cv_link_all_option="-Wl,-all_load"
3650 llvm_cv_no_link_all_option="-Wl,-noall_load"
3651 llvm_cv_os_type="Minix"
3652 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003653 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003654 llvm_cv_link_all_option="-Wl,--whole-archive"
3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656 llvm_cv_os_type="FreeBSD"
3657 llvm_cv_platform_type="Unix" ;;
3658 *-*-openbsd*)
3659 llvm_cv_link_all_option="-Wl,--whole-archive"
3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661 llvm_cv_os_type="OpenBSD"
3662 llvm_cv_platform_type="Unix" ;;
3663 *-*-netbsd*)
3664 llvm_cv_link_all_option="-Wl,--whole-archive"
3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666 llvm_cv_os_type="NetBSD"
3667 llvm_cv_platform_type="Unix" ;;
3668 *-*-dragonfly*)
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="DragonFly"
3672 llvm_cv_platform_type="Unix" ;;
3673 *-*-hpux*)
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="HP-UX"
3677 llvm_cv_platform_type="Unix" ;;
3678 *-*-interix*)
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Interix"
3682 llvm_cv_platform_type="Unix" ;;
3683 *-*-linux*)
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="Linux"
3687 llvm_cv_platform_type="Unix" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003688 *-*-gnu*)
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="GNU"
3692 llvm_cv_platform_type="Unix" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003693 *-*-solaris*)
3694 llvm_cv_link_all_option="-Wl,-z,allextract"
3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696 llvm_cv_os_type="SunOS"
3697 llvm_cv_platform_type="Unix" ;;
3698 *-*-auroraux*)
3699 llvm_cv_link_all_option="-Wl,-z,allextract"
3700 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701 llvm_cv_os_type="AuroraUX"
3702 llvm_cv_platform_type="Unix" ;;
3703 *-*-win32*)
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="Win32"
3707 llvm_cv_platform_type="Win32" ;;
3708 *-*-mingw*)
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="MingW"
3712 llvm_cv_platform_type="Win32" ;;
3713 *-*-haiku*)
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="Haiku"
3717 llvm_cv_platform_type="Unix" ;;
3718 *-unknown-eabi*)
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Freestanding"
3722 llvm_cv_platform_type="Unix" ;;
3723 *-unknown-elf*)
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Freestanding"
3727 llvm_cv_platform_type="Unix" ;;
3728 *)
3729 llvm_cv_link_all_option=""
3730 llvm_cv_no_link_all_option=""
3731 llvm_cv_os_type="Unknown"
3732 llvm_cv_platform_type="Unknown" ;;
3733esac
3734fi
3735{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737
3738{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740if test "${llvm_cv_target_os_type+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 case $target in
3744 *-*-aix*)
3745 llvm_cv_target_os_type="AIX" ;;
3746 *-*-irix*)
3747 llvm_cv_target_os_type="IRIX" ;;
3748 *-*-cygwin*)
3749 llvm_cv_target_os_type="Cygwin" ;;
3750 *-*-darwin*)
3751 llvm_cv_target_os_type="Darwin" ;;
3752 *-*-minix*)
3753 llvm_cv_target_os_type="Minix" ;;
Sylvestre Ledru1d7e8c62012-04-05 18:53:09 +00003754 *-*-freebsd* | *-*-kfreebsd-gnu)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003755 llvm_cv_target_os_type="FreeBSD" ;;
3756 *-*-openbsd*)
3757 llvm_cv_target_os_type="OpenBSD" ;;
3758 *-*-netbsd*)
3759 llvm_cv_target_os_type="NetBSD" ;;
3760 *-*-dragonfly*)
3761 llvm_cv_target_os_type="DragonFly" ;;
3762 *-*-hpux*)
3763 llvm_cv_target_os_type="HP-UX" ;;
3764 *-*-interix*)
3765 llvm_cv_target_os_type="Interix" ;;
3766 *-*-linux*)
3767 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003768 *-*-gnu*)
3769 llvm_cv_target_os_type="GNU" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003770 *-*-solaris*)
3771 llvm_cv_target_os_type="SunOS" ;;
3772 *-*-auroraux*)
3773 llvm_cv_target_os_type="AuroraUX" ;;
3774 *-*-win32*)
3775 llvm_cv_target_os_type="Win32" ;;
3776 *-*-mingw*)
3777 llvm_cv_target_os_type="MingW" ;;
3778 *-*-haiku*)
3779 llvm_cv_target_os_type="Haiku" ;;
3780 *-*-rtems*)
3781 llvm_cv_target_os_type="RTEMS" ;;
3782 *-*-nacl*)
3783 llvm_cv_target_os_type="NativeClient" ;;
3784 *-unknown-eabi*)
3785 llvm_cv_target_os_type="Freestanding" ;;
3786 *)
3787 llvm_cv_target_os_type="Unknown" ;;
3788esac
3789fi
3790{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3792
3793if test "$llvm_cv_os_type" = "Unknown" ; then
3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796 { (exit 1); exit 1; }; }
3797fi
3798
3799OS=$llvm_cv_os_type
3800
3801HOST_OS=$llvm_cv_os_type
3802
3803TARGET_OS=$llvm_cv_target_os_type
3804
3805
3806LINKALL=$llvm_cv_link_all_option
3807
3808NOLINKALL=$llvm_cv_no_link_all_option
3809
3810
3811case $llvm_cv_platform_type in
3812 Unix)
3813
3814cat >>confdefs.h <<\_ACEOF
3815#define LLVM_ON_UNIX 1
3816_ACEOF
3817
3818 LLVM_ON_UNIX=1
3819
3820 LLVM_ON_WIN32=0
3821
3822 ;;
3823 Win32)
3824
3825cat >>confdefs.h <<\_ACEOF
3826#define LLVM_ON_WIN32 1
3827_ACEOF
3828
3829 LLVM_ON_UNIX=0
3830
3831 LLVM_ON_WIN32=1
3832
3833 ;;
3834esac
3835
3836{ echo "$as_me:$LINENO: checking target architecture" >&5
3837echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838if test "${llvm_cv_target_arch+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 case $target in
3842 i?86-*) llvm_cv_target_arch="x86" ;;
3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3844 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003846 arm*-*) llvm_cv_target_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00003847 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3848 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003849 xcore-*) llvm_cv_target_arch="XCore" ;;
3850 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003851 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003852 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003853 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003854 *) llvm_cv_target_arch="Unknown" ;;
3855esac
3856fi
3857{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3858echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3859
3860if test "$llvm_cv_target_arch" = "Unknown" ; then
3861 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3862echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3863fi
3864
3865# Determine the LLVM native architecture for the target
3866case "$llvm_cv_target_arch" in
3867 x86) LLVM_NATIVE_ARCH="X86" ;;
3868 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3869 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3870esac
3871
3872ARCH=$llvm_cv_target_arch
3873
3874
3875
3876
3877{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3878echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 # Extract the first word of "grep ggrep" to use in msg output
3883if test -z "$GREP"; then
3884set dummy grep ggrep; ac_prog_name=$2
3885if test "${ac_cv_path_GREP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 ac_path_GREP_found=false
3889# Loop through the user's path and test for each of PROGNAME-LIST
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_prog in grep ggrep; do
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3899 # Check for GNU ac_path_GREP and select it if it is found.
3900 # Check for GNU $ac_path_GREP
3901case `"$ac_path_GREP" --version 2>&1` in
3902*GNU*)
3903 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904*)
3905 ac_count=0
3906 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3907 while :
3908 do
3909 cat "conftest.in" "conftest.in" >"conftest.tmp"
3910 mv "conftest.tmp" "conftest.in"
3911 cp "conftest.in" "conftest.nl"
3912 echo 'GREP' >> "conftest.nl"
3913 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915 ac_count=`expr $ac_count + 1`
3916 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917 # Best one so far, save it but keep looking for a better one
3918 ac_cv_path_GREP="$ac_path_GREP"
3919 ac_path_GREP_max=$ac_count
3920 fi
3921 # 10*(2^10) chars as input seems more than enough
3922 test $ac_count -gt 10 && break
3923 done
3924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925esac
3926
3927
3928 $ac_path_GREP_found && break 3
3929 done
3930done
3931
3932done
3933IFS=$as_save_IFS
3934
3935
3936fi
3937
3938GREP="$ac_cv_path_GREP"
3939if test -z "$GREP"; then
3940 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942 { (exit 1); exit 1; }; }
3943fi
3944
3945else
3946 ac_cv_path_GREP=$GREP
3947fi
3948
3949
3950fi
3951{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3952echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3953 GREP="$ac_cv_path_GREP"
3954
3955
3956{ echo "$as_me:$LINENO: checking for egrep" >&5
3957echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3958if test "${ac_cv_path_EGREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3962 then ac_cv_path_EGREP="$GREP -E"
3963 else
3964 # Extract the first word of "egrep" to use in msg output
3965if test -z "$EGREP"; then
3966set dummy egrep; ac_prog_name=$2
3967if test "${ac_cv_path_EGREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
3970 ac_path_EGREP_found=false
3971# Loop through the user's path and test for each of PROGNAME-LIST
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in egrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3981 # Check for GNU ac_path_EGREP and select it if it is found.
3982 # Check for GNU $ac_path_EGREP
3983case `"$ac_path_EGREP" --version 2>&1` in
3984*GNU*)
3985 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986*)
3987 ac_count=0
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 while :
3990 do
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'EGREP' >> "conftest.nl"
3995 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_EGREP="$ac_path_EGREP"
4001 ac_path_EGREP_max=$ac_count
4002 fi
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4005 done
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007esac
4008
4009
4010 $ac_path_EGREP_found && break 3
4011 done
4012done
4013
4014done
4015IFS=$as_save_IFS
4016
4017
4018fi
4019
4020EGREP="$ac_cv_path_EGREP"
4021if test -z "$EGREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4025fi
4026
4027else
4028 ac_cv_path_EGREP=$EGREP
4029fi
4030
4031
4032 fi
4033fi
4034{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4036 EGREP="$ac_cv_path_EGREP"
4037
4038
4039{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4040echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4041if test "${ac_cv_header_stdc+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043else
4044 cat >conftest.$ac_ext <<_ACEOF
4045/* confdefs.h. */
4046_ACEOF
4047cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h. */
4050#include <stdlib.h>
4051#include <stdarg.h>
4052#include <string.h>
4053#include <float.h>
4054
4055int
4056main ()
4057{
4058
4059 ;
4060 return 0;
4061}
4062_ACEOF
4063rm -f conftest.$ac_objext
4064if { (ac_try="$ac_compile"
4065case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068esac
4069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
4092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_cv_header_stdc=yes
4098else
4099 echo "$as_me: failed program was:" >&5
4100sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 ac_cv_header_stdc=no
4103fi
4104
4105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106
4107if test $ac_cv_header_stdc = yes; then
4108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4109 cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h. */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h. */
4115#include <string.h>
4116
4117_ACEOF
4118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119 $EGREP "memchr" >/dev/null 2>&1; then
4120 :
4121else
4122 ac_cv_header_stdc=no
4123fi
4124rm -f conftest*
4125
4126fi
4127
4128if test $ac_cv_header_stdc = yes; then
4129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4130 cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h. */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h. */
4136#include <stdlib.h>
4137
4138_ACEOF
4139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140 $EGREP "free" >/dev/null 2>&1; then
4141 :
4142else
4143 ac_cv_header_stdc=no
4144fi
4145rm -f conftest*
4146
4147fi
4148
4149if test $ac_cv_header_stdc = yes; then
4150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4151 if test "$cross_compiling" = yes; then
4152 :
4153else
4154 cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
4160#include <ctype.h>
4161#include <stdlib.h>
4162#if ((' ' & 0x0FF) == 0x020)
4163# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4164# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4165#else
4166# define ISLOWER(c) \
4167 (('a' <= (c) && (c) <= 'i') \
4168 || ('j' <= (c) && (c) <= 'r') \
4169 || ('s' <= (c) && (c) <= 'z'))
4170# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4171#endif
4172
4173#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4174int
4175main ()
4176{
4177 int i;
4178 for (i = 0; i < 256; i++)
4179 if (XOR (islower (i), ISLOWER (i))
4180 || toupper (i) != TOUPPER (i))
4181 return 2;
4182 return 0;
4183}
4184_ACEOF
4185rm -f conftest$ac_exeext
4186if { (ac_try="$ac_link"
4187case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_link") 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 :
4206else
4207 echo "$as_me: program exited with status $ac_status" >&5
4208echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211( exit $ac_status )
4212ac_cv_header_stdc=no
4213fi
4214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215fi
4216
4217
4218fi
4219fi
4220{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4221echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4222if test $ac_cv_header_stdc = yes; then
4223
4224cat >>confdefs.h <<\_ACEOF
4225#define STDC_HEADERS 1
4226_ACEOF
4227
4228fi
4229
4230# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4241 inttypes.h stdint.h unistd.h
4242do
4243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4244{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249 cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h. */
4255$ac_includes_default
4256
4257#include <$ac_header>
4258_ACEOF
4259rm -f conftest.$ac_objext
4260if { (ac_try="$ac_compile"
4261case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_compile") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest.$ac_objext'
4284 { (case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287esac
4288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_try") 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 eval "$as_ac_Header=yes"
4294else
4295 echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 eval "$as_ac_Header=no"
4299fi
4300
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302fi
4303ac_res=`eval echo '${'$as_ac_Header'}'`
4304 { echo "$as_me:$LINENO: result: $ac_res" >&5
4305echo "${ECHO_T}$ac_res" >&6; }
4306if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4309_ACEOF
4310
4311fi
4312
4313done
4314
4315
4316{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4317echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4318if test "${ac_cv_c_bigendian+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321 # See if sys/param.h defines the BYTE_ORDER macro.
4322cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h. */
4328#include <sys/types.h>
4329#include <sys/param.h>
4330
4331int
4332main ()
4333{
4334#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4335 bogus endian macros
4336#endif
4337
4338 ;
4339 return 0;
4340}
4341_ACEOF
4342rm -f conftest.$ac_objext
4343if { (ac_try="$ac_compile"
4344case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347esac
4348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360esac
4361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_try") 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 # It does; now see whether it defined to BIG_ENDIAN or not.
4377cat >conftest.$ac_ext <<_ACEOF
4378/* confdefs.h. */
4379_ACEOF
4380cat confdefs.h >>conftest.$ac_ext
4381cat >>conftest.$ac_ext <<_ACEOF
4382/* end confdefs.h. */
4383#include <sys/types.h>
4384#include <sys/param.h>
4385
4386int
4387main ()
4388{
4389#if BYTE_ORDER != BIG_ENDIAN
4390 not big endian
4391#endif
4392
4393 ;
4394 return 0;
4395}
4396_ACEOF
4397rm -f conftest.$ac_objext
4398if { (ac_try="$ac_compile"
4399case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402esac
4403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_compile") 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415esac
4416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425esac
4426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_try") 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_c_bigendian=yes
4432else
4433 echo "$as_me: failed program was:" >&5
4434sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 ac_cv_c_bigendian=no
4437fi
4438
4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440else
4441 echo "$as_me: failed program was:" >&5
4442sed 's/^/| /' conftest.$ac_ext >&5
4443
4444 # It does not; compile a test program.
4445if test "$cross_compiling" = yes; then
4446 # try to guess the endianness by grepping values into an object file
4447 ac_cv_c_bigendian=unknown
4448 cat >conftest.$ac_ext <<_ACEOF
4449/* confdefs.h. */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h. */
4454short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4455short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4456void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4457short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4458short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4459void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4460int
4461main ()
4462{
4463 _ascii (); _ebcdic ();
4464 ;
4465 return 0;
4466}
4467_ACEOF
4468rm -f conftest.$ac_objext
4469if { (ac_try="$ac_compile"
4470case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473esac
4474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486esac
4487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496esac
4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4503 ac_cv_c_bigendian=yes
4504fi
4505if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4506 if test "$ac_cv_c_bigendian" = unknown; then
4507 ac_cv_c_bigendian=no
4508 else
4509 # finding both strings is unlikely to happen, but who knows?
4510 ac_cv_c_bigendian=unknown
4511 fi
4512fi
4513else
4514 echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517
4518fi
4519
4520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521else
4522 cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h. */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h. */
4528$ac_includes_default
4529int
4530main ()
4531{
4532
4533 /* Are we little or big endian? From Harbison&Steele. */
4534 union
4535 {
4536 long int l;
4537 char c[sizeof (long int)];
4538 } u;
4539 u.l = 1;
4540 return u.c[sizeof (long int) - 1] == 1;
4541
4542 ;
4543 return 0;
4544}
4545_ACEOF
4546rm -f conftest$ac_exeext
4547if { (ac_try="$ac_link"
4548case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551esac
4552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_link") 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557 { (case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560esac
4561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_try") 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 ac_cv_c_bigendian=no
4567else
4568 echo "$as_me: program exited with status $ac_status" >&5
4569echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572( exit $ac_status )
4573ac_cv_c_bigendian=yes
4574fi
4575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4576fi
4577
4578
4579fi
4580
4581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582fi
4583{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4584echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4585case $ac_cv_c_bigendian in
4586 yes)
4587 ENDIAN=big
4588 ;;
4589 no)
4590 ENDIAN=little
4591 ;;
4592 *)
4593 { { echo "$as_me:$LINENO: error: unknown endianness
4594presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4595echo "$as_me: error: unknown endianness
4596presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4597 { (exit 1); exit 1; }; } ;;
4598esac
4599
4600
4601if test "$cross_compiling" = yes; then
4602 LLVM_CROSS_COMPILING=1
4603
4604
4605{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4606echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4607if test "${ac_cv_build_exeext+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4611 ac_cv_build_exeext=.exe
4612else
4613 ac_build_prefix=${build_alias}-
4614
4615 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4616set dummy ${ac_build_prefix}gcc; ac_word=$2
4617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
4622 if test -n "$BUILD_CC"; then
4623 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4624else
4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636done
4637done
4638IFS=$as_save_IFS
4639
4640fi
4641fi
4642BUILD_CC=$ac_cv_prog_BUILD_CC
4643if test -n "$BUILD_CC"; then
4644 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4645echo "${ECHO_T}$BUILD_CC" >&6; }
4646else
4647 { echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6; }
4649fi
4650
4651
4652 if test -z "$BUILD_CC"; then
4653 # Extract the first word of "gcc", so it can be a program name with args.
4654set dummy gcc; ac_word=$2
4655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 if test -n "$BUILD_CC"; then
4661 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_BUILD_CC="gcc"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674done
4675done
4676IFS=$as_save_IFS
4677
4678fi
4679fi
4680BUILD_CC=$ac_cv_prog_BUILD_CC
4681if test -n "$BUILD_CC"; then
4682 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4683echo "${ECHO_T}$BUILD_CC" >&6; }
4684else
4685 { echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6; }
4687fi
4688
4689
4690 if test -z "$BUILD_CC"; then
4691 # Extract the first word of "cc", so it can be a program name with args.
4692set dummy cc; ac_word=$2
4693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698 if test -n "$BUILD_CC"; then
4699 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4700else
4701 ac_prog_rejected=no
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4710 ac_prog_rejected=yes
4711 continue
4712 fi
4713 ac_cv_prog_BUILD_CC="cc"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717done
4718done
4719IFS=$as_save_IFS
4720
4721if test $ac_prog_rejected = yes; then
4722 # We found a bogon in the path, so make sure we never use it.
4723 set dummy $ac_cv_prog_BUILD_CC
4724 shift
4725 if test $# != 0; then
4726 # We chose a different compiler from the bogus one.
4727 # However, it has the same basename, so the bogon will be chosen
4728 # first if we set BUILD_CC to just the basename; use the full file name.
4729 shift
4730 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4731 fi
4732fi
4733fi
4734fi
4735BUILD_CC=$ac_cv_prog_BUILD_CC
4736if test -n "$BUILD_CC"; then
4737 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4738echo "${ECHO_T}$BUILD_CC" >&6; }
4739else
4740 { echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6; }
4742fi
4743
4744
4745 fi
4746 fi
4747 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4748echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4749 { (exit 1); exit 1; }; }
4750 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4751 rm -f conftest*
4752 echo 'int main () { return 0; }' > conftest.$ac_ext
4753 ac_cv_build_exeext=
4754 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4755 (eval $ac_build_link) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; then
4759 for file in conftest.*; do
4760 case $file in
4761 *.c | *.o | *.obj | *.dSYM) ;;
4762 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4763 esac
4764 done
4765 else
4766 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4767echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4768 { (exit 1); exit 1; }; }
4769 fi
4770 rm -f conftest*
4771 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4772fi
4773fi
4774
4775BUILD_EXEEXT=""
4776test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4777{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4778echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4779ac_build_exeext=$BUILD_EXEEXT
4780
4781 ac_build_prefix=${build_alias}-
4782 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4783set dummy ${ac_build_prefix}g++; ac_word=$2
4784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789 if test -n "$BUILD_CXX"; then
4790 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803done
4804done
4805IFS=$as_save_IFS
4806
4807fi
4808fi
4809BUILD_CXX=$ac_cv_prog_BUILD_CXX
4810if test -n "$BUILD_CXX"; then
4811 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4812echo "${ECHO_T}$BUILD_CXX" >&6; }
4813else
4814 { echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6; }
4816fi
4817
4818
4819 if test -z "$BUILD_CXX"; then
4820 # Extract the first word of "g++", so it can be a program name with args.
4821set dummy g++; ac_word=$2
4822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 if test -n "$BUILD_CXX"; then
4828 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_BUILD_CXX="g++"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842done
4843IFS=$as_save_IFS
4844
4845fi
4846fi
4847BUILD_CXX=$ac_cv_prog_BUILD_CXX
4848if test -n "$BUILD_CXX"; then
4849 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4850echo "${ECHO_T}$BUILD_CXX" >&6; }
4851else
4852 { echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6; }
4854fi
4855
4856
4857 if test -z "$BUILD_CXX"; then
4858 # Extract the first word of "c++", so it can be a program name with args.
4859set dummy c++; ac_word=$2
4860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 if test -n "$BUILD_CXX"; then
4866 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4867else
4868 ac_prog_rejected=no
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4877 ac_prog_rejected=yes
4878 continue
4879 fi
4880 ac_cv_prog_BUILD_CXX="c++"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884done
4885done
4886IFS=$as_save_IFS
4887
4888if test $ac_prog_rejected = yes; then
4889 # We found a bogon in the path, so make sure we never use it.
4890 set dummy $ac_cv_prog_BUILD_CXX
4891 shift
4892 if test $# != 0; then
4893 # We chose a different compiler from the bogus one.
4894 # However, it has the same basename, so the bogon will be chosen
4895 # first if we set BUILD_CXX to just the basename; use the full file name.
4896 shift
4897 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4898 fi
4899fi
4900fi
4901fi
4902BUILD_CXX=$ac_cv_prog_BUILD_CXX
4903if test -n "$BUILD_CXX"; then
4904 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4905echo "${ECHO_T}$BUILD_CXX" >&6; }
4906else
4907 { echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6; }
4909fi
4910
4911
4912 fi
4913 fi
4914else
4915 LLVM_CROSS_COMPILING=0
4916
4917fi
4918
4919if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4920 cvsbuild="yes"
4921 optimize="no"
4922 CVSBUILD=CVSBUILD=1
4923
4924else
4925 cvsbuild="no"
4926 optimize="yes"
4927fi
4928
4929
Eric Christopherb2bc6e42012-03-26 02:09:01 +00004930# Check whether --enable-libcpp was given.
4931if test "${enable_libcpp+set}" = set; then
4932 enableval=$enable_libcpp;
4933else
4934 enableval=default
4935fi
4936
4937case "$enableval" in
4938 yes) ENABLE_LIBCPP=1
4939 ;;
4940 no) ENABLE_LIBCPP=0
4941 ;;
4942 default) ENABLE_LIBCPP=0
4943;;
4944 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4945echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4946 { (exit 1); exit 1; }; } ;;
4947esac
4948
Craig Topper8ee39632012-11-12 06:11:12 +00004949# Check whether --enable-cxx11 was given.
4950if test "${enable_cxx11+set}" = set; then
4951 enableval=$enable_cxx11;
4952else
4953 enableval=default
4954fi
4955
4956case "$enableval" in
4957 yes) ENABLE_CXX11=1
4958 ;;
4959 no) ENABLE_CXX11=0
4960 ;;
4961 default) ENABLE_CXX11=0
4962;;
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4964echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4966esac
4967
Daniel Dunbarbf79f912011-10-18 23:10:58 +00004968# Check whether --enable-optimized was given.
4969if test "${enable_optimized+set}" = set; then
4970 enableval=$enable_optimized;
4971else
4972 enableval=$optimize
4973fi
4974
4975if test ${enableval} = "no" ; then
4976 ENABLE_OPTIMIZED=
4977
4978else
4979 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4980
4981fi
4982
4983# Check whether --enable-profiling was given.
4984if test "${enable_profiling+set}" = set; then
4985 enableval=$enable_profiling;
4986else
4987 enableval="no"
4988fi
4989
4990if test ${enableval} = "no" ; then
4991 ENABLE_PROFILING=
4992
4993else
4994 ENABLE_PROFILING=ENABLE_PROFILING=1
4995
4996fi
4997
4998# Check whether --enable-assertions was given.
4999if test "${enable_assertions+set}" = set; then
5000 enableval=$enable_assertions;
5001else
5002 enableval="yes"
5003fi
5004
5005if test ${enableval} = "yes" ; then
5006 DISABLE_ASSERTIONS=
5007
5008else
5009 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5010
5011fi
5012
Craig Topper8ee39632012-11-12 06:11:12 +00005013# Check whether --enable-werror was given.
5014if test "${enable_werror+set}" = set; then
5015 enableval=$enable_werror;
5016else
5017 enableval="no"
5018fi
5019
5020case "$enableval" in
5021 yes) ENABLE_WERROR=1
5022 ;;
5023 no) ENABLE_WERROR=0
5024 ;;
5025 default) ENABLE_WERROR=0
5026;;
5027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5028echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5030esac
5031
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005032# Check whether --enable-expensive-checks was given.
5033if test "${enable_expensive_checks+set}" = set; then
5034 enableval=$enable_expensive_checks;
5035else
5036 enableval="no"
5037fi
5038
5039if test ${enableval} = "yes" ; then
5040 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5041
5042 EXPENSIVE_CHECKS=yes
5043
5044else
5045 ENABLE_EXPENSIVE_CHECKS=
5046
5047 EXPENSIVE_CHECKS=no
5048
5049fi
5050
5051# Check whether --enable-debug-runtime was given.
5052if test "${enable_debug_runtime+set}" = set; then
5053 enableval=$enable_debug_runtime;
5054else
5055 enableval=no
5056fi
5057
5058if test ${enableval} = "no" ; then
5059 DEBUG_RUNTIME=
5060
5061else
5062 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5063
5064fi
5065
5066# Check whether --enable-debug-symbols was given.
5067if test "${enable_debug_symbols+set}" = set; then
5068 enableval=$enable_debug_symbols;
5069else
5070 enableval=no
5071fi
5072
5073if test ${enableval} = "no" ; then
5074 DEBUG_SYMBOLS=
5075
5076else
5077 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5078
5079fi
5080
5081# Check whether --enable-jit was given.
5082if test "${enable_jit+set}" = set; then
5083 enableval=$enable_jit;
5084else
5085 enableval=default
5086fi
5087
5088if test ${enableval} = "no"
5089then
5090 JIT=
5091
5092else
5093 case "$llvm_cv_target_arch" in
5094 x86) TARGET_HAS_JIT=1
5095 ;;
5096 Sparc) TARGET_HAS_JIT=0
5097 ;;
5098 PowerPC) TARGET_HAS_JIT=1
5099 ;;
5100 x86_64) TARGET_HAS_JIT=1
5101 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005102 ARM) TARGET_HAS_JIT=1
5103 ;;
5104 Mips) TARGET_HAS_JIT=1
5105 ;;
5106 XCore) TARGET_HAS_JIT=0
5107 ;;
5108 MSP430) TARGET_HAS_JIT=0
5109 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005110 Hexagon) TARGET_HAS_JIT=0
5111 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005112 MBlaze) TARGET_HAS_JIT=0
5113 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005114 NVPTX) TARGET_HAS_JIT=0
5115 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005116 *) TARGET_HAS_JIT=0
5117 ;;
5118 esac
5119fi
5120
5121# Check whether --enable-docs was given.
5122if test "${enable_docs+set}" = set; then
5123 enableval=$enable_docs;
5124else
5125 enableval=default
5126fi
5127
5128case "$enableval" in
5129 yes) ENABLE_DOCS=1
5130 ;;
5131 no) ENABLE_DOCS=0
5132 ;;
5133 default) ENABLE_DOCS=1
5134 ;;
5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5136echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5138esac
5139
5140# Check whether --enable-doxygen was given.
5141if test "${enable_doxygen+set}" = set; then
5142 enableval=$enable_doxygen;
5143else
5144 enableval=default
5145fi
5146
5147case "$enableval" in
5148 yes) ENABLE_DOXYGEN=1
5149 ;;
5150 no) ENABLE_DOXYGEN=0
5151 ;;
5152 default) ENABLE_DOXYGEN=0
5153 ;;
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5155echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5157esac
5158
5159# Check whether --enable-threads was given.
5160if test "${enable_threads+set}" = set; then
5161 enableval=$enable_threads;
5162else
5163 enableval=default
5164fi
5165
5166case "$enableval" in
5167 yes) ENABLE_THREADS=1
5168 ;;
5169 no) ENABLE_THREADS=0
5170 ;;
5171 default) ENABLE_THREADS=1
5172 ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5174echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5176esac
5177
5178cat >>confdefs.h <<_ACEOF
5179#define ENABLE_THREADS $ENABLE_THREADS
5180_ACEOF
5181
5182
5183# Check whether --enable-pthreads was given.
5184if test "${enable_pthreads+set}" = set; then
5185 enableval=$enable_pthreads;
5186else
5187 enableval=default
5188fi
5189
5190case "$enableval" in
5191 yes) ENABLE_PTHREADS=1
5192 ;;
5193 no) ENABLE_PTHREADS=0
5194 ;;
5195 default) ENABLE_PTHREADS=1
5196 ;;
5197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5198echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5200esac
5201
5202# Check whether --enable-pic was given.
5203if test "${enable_pic+set}" = set; then
5204 enableval=$enable_pic;
5205else
5206 enableval=default
5207fi
5208
5209case "$enableval" in
5210 yes) ENABLE_PIC=1
5211 ;;
5212 no) ENABLE_PIC=0
5213 ;;
5214 default) ENABLE_PIC=1
5215 ;;
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5217echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5219esac
5220
5221cat >>confdefs.h <<_ACEOF
5222#define ENABLE_PIC $ENABLE_PIC
5223_ACEOF
5224
5225
5226# Check whether --enable-shared was given.
5227if test "${enable_shared+set}" = set; then
5228 enableval=$enable_shared;
5229else
5230 enableval=default
5231fi
5232
5233case "$enableval" in
5234 yes) ENABLE_SHARED=1
5235 ;;
5236 no) ENABLE_SHARED=0
5237 ;;
5238 default) ENABLE_SHARED=0
5239 ;;
5240 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5241echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5242 { (exit 1); exit 1; }; } ;;
5243esac
5244
5245# Check whether --enable-embed-stdcxx was given.
5246if test "${enable_embed_stdcxx+set}" = set; then
5247 enableval=$enable_embed_stdcxx;
5248else
5249 enableval=default
5250fi
5251
5252case "$enableval" in
5253 yes) ENABLE_EMBED_STDCXX=1
5254 ;;
5255 no) ENABLE_EMBED_STDCXX=0
5256 ;;
5257 default) ENABLE_EMBED_STDCXX=1
5258 ;;
5259 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5260echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5261 { (exit 1); exit 1; }; } ;;
5262esac
5263
5264# Check whether --enable-timestamps was given.
5265if test "${enable_timestamps+set}" = set; then
5266 enableval=$enable_timestamps;
5267else
5268 enableval=default
5269fi
5270
5271case "$enableval" in
5272 yes) ENABLE_TIMESTAMPS=1
5273 ;;
5274 no) ENABLE_TIMESTAMPS=0
5275 ;;
5276 default) ENABLE_TIMESTAMPS=1
5277 ;;
5278 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5279echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5280 { (exit 1); exit 1; }; } ;;
5281esac
5282
5283cat >>confdefs.h <<_ACEOF
5284#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5285_ACEOF
5286
5287
5288TARGETS_TO_BUILD=""
5289# Check whether --enable-targets was given.
5290if test "${enable_targets+set}" = set; then
5291 enableval=$enable_targets;
5292else
5293 enableval=all
5294fi
5295
5296if test "$enableval" = host-only ; then
5297 enableval=host
5298fi
5299case "$enableval" in
Eric Christopher1a352922012-11-14 22:13:56 +00005300 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005301 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5302 case "$a_target" in
5303 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5304 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5305 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5306 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005307 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5308 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005309 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5310 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005311 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005312 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5313 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005314 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005315 host) case "$llvm_cv_target_arch" in
5316 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5319 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005320 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5321 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5322 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005323 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5324 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005325 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005326 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005327 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5328echo "$as_me: error: Can not set target to build" >&2;}
5329 { (exit 1); exit 1; }; } ;;
5330 esac ;;
5331 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5332echo "$as_me: error: Unrecognized target $a_target" >&2;}
5333 { (exit 1); exit 1; }; } ;;
5334 esac
5335 done
5336 ;;
5337esac
5338TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5339
5340
5341# Determine whether we are building LLVM support for the native architecture.
5342# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5343for a_target in $TARGETS_TO_BUILD; do
5344 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5345
5346cat >>confdefs.h <<_ACEOF
5347#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5348_ACEOF
5349
5350 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5351 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5352 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5353 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5354 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5355 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5356 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005357 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5358 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5359 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005360
5361cat >>confdefs.h <<_ACEOF
5362#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5363_ACEOF
5364
5365
5366cat >>confdefs.h <<_ACEOF
5367#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5368_ACEOF
5369
5370
5371cat >>confdefs.h <<_ACEOF
5372#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5373_ACEOF
5374
5375
5376cat >>confdefs.h <<_ACEOF
5377#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5378_ACEOF
5379
5380 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5381
5382cat >>confdefs.h <<_ACEOF
5383#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5384_ACEOF
5385
5386 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005387 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5388
5389cat >>confdefs.h <<_ACEOF
5390#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5391_ACEOF
5392
5393 fi
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005394 fi
5395done
5396
5397# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5398# target feature def files.
5399LLVM_ENUM_TARGETS=""
5400LLVM_ENUM_ASM_PRINTERS=""
5401LLVM_ENUM_ASM_PARSERS=""
5402LLVM_ENUM_DISASSEMBLERS=""
5403for target_to_build in $TARGETS_TO_BUILD; do
5404 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5405 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5406 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5407 fi
5408 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5409 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5410 fi
5411 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5412 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5413 fi
5414done
5415
5416
5417
5418
5419
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005420
5421# Check whether --with-optimize-option was given.
5422if test "${with_optimize_option+set}" = set; then
5423 withval=$with_optimize_option;
5424else
5425 withval=default
5426fi
5427
5428{ echo "$as_me:$LINENO: checking optimization flags" >&5
5429echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5430case "$withval" in
5431 default)
5432 case "$llvm_cv_os_type" in
5433 FreeBSD) optimize_option=-O2 ;;
5434 MingW) optimize_option=-O2 ;;
5435 *) optimize_option=-O3 ;;
5436 esac ;;
5437 *) optimize_option="$withval" ;;
5438esac
5439OPTIMIZE_OPTION=$optimize_option
5440
5441{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5442echo "${ECHO_T}$optimize_option" >&6; }
5443
5444
5445# Check whether --with-extra-options was given.
5446if test "${with_extra_options+set}" = set; then
5447 withval=$with_extra_options;
5448else
5449 withval=default
5450fi
5451
5452case "$withval" in
5453 default) EXTRA_OPTIONS= ;;
5454 *) EXTRA_OPTIONS=$withval ;;
5455esac
5456EXTRA_OPTIONS=$EXTRA_OPTIONS
5457
5458
5459
5460# Check whether --with-extra-ld-options was given.
5461if test "${with_extra_ld_options+set}" = set; then
5462 withval=$with_extra_ld_options;
5463else
5464 withval=default
5465fi
5466
5467case "$withval" in
5468 default) EXTRA_LD_OPTIONS= ;;
5469 *) EXTRA_LD_OPTIONS=$withval ;;
5470esac
5471EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5472
5473
5474# Check whether --enable-bindings was given.
5475if test "${enable_bindings+set}" = set; then
5476 enableval=$enable_bindings;
5477else
5478 enableval=default
5479fi
5480
5481BINDINGS_TO_BUILD=""
5482case "$enableval" in
5483 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5484 all ) BINDINGS_TO_BUILD="ocaml" ;;
5485 none | no) BINDINGS_TO_BUILD="" ;;
5486 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5487 case "$a_binding" in
5488 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5489 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5490echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5491 { (exit 1); exit 1; }; } ;;
5492 esac
5493 done
5494 ;;
5495esac
5496
5497
5498# Check whether --with-ocaml-libdir was given.
5499if test "${with_ocaml_libdir+set}" = set; then
5500 withval=$with_ocaml_libdir;
5501else
5502 withval=auto
5503fi
5504
5505case "$withval" in
5506 auto) with_ocaml_libdir="$withval" ;;
5507 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5508 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5509echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5510 { (exit 1); exit 1; }; } ;;
5511esac
5512
5513
5514# Check whether --with-clang-resource-dir was given.
5515if test "${with_clang_resource_dir+set}" = set; then
5516 withval=$with_clang_resource_dir;
5517else
5518 withval=""
5519fi
5520
5521
5522cat >>confdefs.h <<_ACEOF
5523#define CLANG_RESOURCE_DIR "$withval"
5524_ACEOF
5525
5526
5527
5528# Check whether --with-c-include-dirs was given.
5529if test "${with_c_include_dirs+set}" = set; then
5530 withval=$with_c_include_dirs;
5531else
5532 withval=""
5533fi
5534
5535
5536cat >>confdefs.h <<_ACEOF
5537#define C_INCLUDE_DIRS "$withval"
5538_ACEOF
5539
5540
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005541# Clang normally uses the system c++ headers and libraries. With this option,
5542# clang will use the ones provided by a gcc installation instead. This option should
5543# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005544
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005545# Check whether --with-gcc-toolchain was given.
5546if test "${with_gcc_toolchain+set}" = set; then
5547 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005548else
5549 withval=""
5550fi
5551
5552
5553cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005554#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005555_ACEOF
5556
5557
5558
5559# Check whether --with-binutils-include was given.
5560if test "${with_binutils_include+set}" = set; then
5561 withval=$with_binutils_include;
5562else
5563 withval=default
5564fi
5565
5566case "$withval" in
5567 default) WITH_BINUTILS_INCDIR=default ;;
5568 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5569 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5570echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5571 { (exit 1); exit 1; }; } ;;
5572esac
5573if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5574 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5575
5576 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5577 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5578 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5579echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5580 { (exit 1); exit 1; }; };
5581 fi
5582fi
5583
5584
5585# Check whether --with-bug-report-url was given.
5586if test "${with_bug_report_url+set}" = set; then
5587 withval=$with_bug_report_url;
5588else
5589 withval="http://llvm.org/bugs/"
5590fi
5591
5592
5593cat >>confdefs.h <<_ACEOF
5594#define BUG_REPORT_URL "$withval"
5595_ACEOF
5596
5597
5598# Check whether --enable-libffi was given.
5599if test "${enable_libffi+set}" = set; then
5600 enableval=$enable_libffi; case "$enableval" in
5601 yes) llvm_cv_enable_libffi="yes" ;;
5602 no) llvm_cv_enable_libffi="no" ;;
5603 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5604echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5605 { (exit 1); exit 1; }; } ;;
5606 esac
5607else
5608 llvm_cv_enable_libffi=no
5609fi
5610
5611
5612
5613{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5614echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5615if test "${lt_cv_path_NM+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618 if test -n "$NM"; then
5619 # Let the user override the test.
5620 lt_cv_path_NM="$NM"
5621else
5622 lt_nm_to_check="${ac_tool_prefix}nm"
5623 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5624 lt_nm_to_check="$lt_nm_to_check nm"
5625 fi
5626 for lt_tmp_nm in $lt_nm_to_check; do
5627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5628 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5629 IFS="$lt_save_ifs"
5630 test -z "$ac_dir" && ac_dir=.
5631 tmp_nm="$ac_dir/$lt_tmp_nm"
5632 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5633 # Check to see if the nm accepts a BSD-compat flag.
5634 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5635 # nm: unknown option "B" ignored
5636 # Tru64's nm complains that /dev/null is an invalid object file
5637 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5638 */dev/null* | *'Invalid file or object type'*)
5639 lt_cv_path_NM="$tmp_nm -B"
5640 break
5641 ;;
5642 *)
5643 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5644 */dev/null*)
5645 lt_cv_path_NM="$tmp_nm -p"
5646 break
5647 ;;
5648 *)
5649 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5650 continue # so that we can try to find one that supports BSD flags
5651 ;;
5652 esac
5653 ;;
5654 esac
5655 fi
5656 done
5657 IFS="$lt_save_ifs"
5658 done
5659 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5660fi
5661fi
5662{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5663echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5664NM="$lt_cv_path_NM"
5665
5666
5667
5668{ echo "$as_me:$LINENO: checking for GNU make" >&5
5669echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5670if test "${llvm_cv_gnu_make_command+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673 llvm_cv_gnu_make_command=''
5674 for a in "$MAKE" make gmake gnumake ; do
5675 if test -z "$a" ; then continue ; fi ;
5676 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5677 then
5678 llvm_cv_gnu_make_command=$a ;
5679 break;
5680 fi
5681 done
5682fi
5683{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5684echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5685 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5686 ifGNUmake='' ;
5687 else
5688 ifGNUmake='#' ;
5689 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5690echo "${ECHO_T}\"Not found\"" >&6; };
5691 fi
5692
5693
5694{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5695echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5696LN_S=$as_ln_s
5697if test "$LN_S" = "ln -s"; then
5698 { echo "$as_me:$LINENO: result: yes" >&5
5699echo "${ECHO_T}yes" >&6; }
5700else
5701 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5702echo "${ECHO_T}no, using $LN_S" >&6; }
5703fi
5704
5705# Extract the first word of "cmp", so it can be a program name with args.
5706set dummy cmp; ac_word=$2
5707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709if test "${ac_cv_path_CMP+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711else
5712 case $CMP in
5713 [\\/]* | ?:[\\/]*)
5714 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5715 ;;
5716 *)
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728done
5729done
5730IFS=$as_save_IFS
5731
5732 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5733 ;;
5734esac
5735fi
5736CMP=$ac_cv_path_CMP
5737if test -n "$CMP"; then
5738 { echo "$as_me:$LINENO: result: $CMP" >&5
5739echo "${ECHO_T}$CMP" >&6; }
5740else
5741 { echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6; }
5743fi
5744
5745
5746# Extract the first word of "cp", so it can be a program name with args.
5747set dummy cp; ac_word=$2
5748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750if test "${ac_cv_path_CP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753 case $CP in
5754 [\\/]* | ?:[\\/]*)
5755 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5756 ;;
5757 *)
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769done
5770done
5771IFS=$as_save_IFS
5772
5773 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5774 ;;
5775esac
5776fi
5777CP=$ac_cv_path_CP
5778if test -n "$CP"; then
5779 { echo "$as_me:$LINENO: result: $CP" >&5
5780echo "${ECHO_T}$CP" >&6; }
5781else
5782 { echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6; }
5784fi
5785
5786
5787# Extract the first word of "date", so it can be a program name with args.
5788set dummy date; ac_word=$2
5789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791if test "${ac_cv_path_DATE+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794 case $DATE in
5795 [\\/]* | ?:[\\/]*)
5796 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5797 ;;
5798 *)
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810done
5811done
5812IFS=$as_save_IFS
5813
5814 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5815 ;;
5816esac
5817fi
5818DATE=$ac_cv_path_DATE
5819if test -n "$DATE"; then
5820 { echo "$as_me:$LINENO: result: $DATE" >&5
5821echo "${ECHO_T}$DATE" >&6; }
5822else
5823 { echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6; }
5825fi
5826
5827
5828# Extract the first word of "find", so it can be a program name with args.
5829set dummy find; ac_word=$2
5830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832if test "${ac_cv_path_FIND+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835 case $FIND in
5836 [\\/]* | ?:[\\/]*)
5837 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5838 ;;
5839 *)
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852done
5853IFS=$as_save_IFS
5854
5855 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5856 ;;
5857esac
5858fi
5859FIND=$ac_cv_path_FIND
5860if test -n "$FIND"; then
5861 { echo "$as_me:$LINENO: result: $FIND" >&5
5862echo "${ECHO_T}$FIND" >&6; }
5863else
5864 { echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6; }
5866fi
5867
5868
5869# Extract the first word of "grep", so it can be a program name with args.
5870set dummy grep; ac_word=$2
5871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873if test "${ac_cv_path_GREP+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876 case $GREP in
5877 [\\/]* | ?:[\\/]*)
5878 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5879 ;;
5880 *)
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893done
5894IFS=$as_save_IFS
5895
5896 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5897 ;;
5898esac
5899fi
5900GREP=$ac_cv_path_GREP
5901if test -n "$GREP"; then
5902 { echo "$as_me:$LINENO: result: $GREP" >&5
5903echo "${ECHO_T}$GREP" >&6; }
5904else
5905 { echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6; }
5907fi
5908
5909
5910# Extract the first word of "mkdir", so it can be a program name with args.
5911set dummy mkdir; ac_word=$2
5912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914if test "${ac_cv_path_MKDIR+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 case $MKDIR in
5918 [\\/]* | ?:[\\/]*)
5919 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5920 ;;
5921 *)
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933done
5934done
5935IFS=$as_save_IFS
5936
5937 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5938 ;;
5939esac
5940fi
5941MKDIR=$ac_cv_path_MKDIR
5942if test -n "$MKDIR"; then
5943 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5944echo "${ECHO_T}$MKDIR" >&6; }
5945else
5946 { echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6; }
5948fi
5949
5950
5951# Extract the first word of "mv", so it can be a program name with args.
5952set dummy mv; ac_word=$2
5953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955if test "${ac_cv_path_MV+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958 case $MV in
5959 [\\/]* | ?:[\\/]*)
5960 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5961 ;;
5962 *)
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974done
5975done
5976IFS=$as_save_IFS
5977
5978 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5979 ;;
5980esac
5981fi
5982MV=$ac_cv_path_MV
5983if test -n "$MV"; then
5984 { echo "$as_me:$LINENO: result: $MV" >&5
5985echo "${ECHO_T}$MV" >&6; }
5986else
5987 { echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6; }
5989fi
5990
5991
5992if test -n "$ac_tool_prefix"; then
5993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5994set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997if test "${ac_cv_prog_RANLIB+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 if test -n "$RANLIB"; then
6001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6013 fi
6014done
6015done
6016IFS=$as_save_IFS
6017
6018fi
6019fi
6020RANLIB=$ac_cv_prog_RANLIB
6021if test -n "$RANLIB"; then
6022 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6023echo "${ECHO_T}$RANLIB" >&6; }
6024else
6025 { echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6; }
6027fi
6028
6029
6030fi
6031if test -z "$ac_cv_prog_RANLIB"; then
6032 ac_ct_RANLIB=$RANLIB
6033 # Extract the first word of "ranlib", so it can be a program name with args.
6034set dummy ranlib; ac_word=$2
6035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 if test -n "$ac_ct_RANLIB"; then
6041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6042else
6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_ac_ct_RANLIB="ranlib"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6053 fi
6054done
6055done
6056IFS=$as_save_IFS
6057
6058fi
6059fi
6060ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6061if test -n "$ac_ct_RANLIB"; then
6062 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6063echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6064else
6065 { echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6; }
6067fi
6068
6069 if test "x$ac_ct_RANLIB" = x; then
6070 RANLIB=":"
6071 else
6072 case $cross_compiling:$ac_tool_warned in
6073yes:)
6074{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6075whose name does not start with the host triplet. If you think this
6076configuration is useful to you, please write to autoconf@gnu.org." >&5
6077echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6078whose name does not start with the host triplet. If you think this
6079configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6080ac_tool_warned=yes ;;
6081esac
6082 RANLIB=$ac_ct_RANLIB
6083 fi
6084else
6085 RANLIB="$ac_cv_prog_RANLIB"
6086fi
6087
6088if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6090set dummy ${ac_tool_prefix}ar; ac_word=$2
6091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_prog_AR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096 if test -n "$AR"; then
6097 ac_cv_prog_AR="$AR" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_AR="${ac_tool_prefix}ar"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110done
6111done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116AR=$ac_cv_prog_AR
6117if test -n "$AR"; then
6118 { echo "$as_me:$LINENO: result: $AR" >&5
6119echo "${ECHO_T}$AR" >&6; }
6120else
6121 { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
6123fi
6124
6125
6126fi
6127if test -z "$ac_cv_prog_AR"; then
6128 ac_ct_AR=$AR
6129 # Extract the first word of "ar", so it can be a program name with args.
6130set dummy ar; ac_word=$2
6131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136 if test -n "$ac_ct_AR"; then
6137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_ac_ct_AR="ar"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150done
6151done
6152IFS=$as_save_IFS
6153
6154fi
6155fi
6156ac_ct_AR=$ac_cv_prog_ac_ct_AR
6157if test -n "$ac_ct_AR"; then
6158 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6159echo "${ECHO_T}$ac_ct_AR" >&6; }
6160else
6161 { echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6; }
6163fi
6164
6165 if test "x$ac_ct_AR" = x; then
6166 AR="false"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169yes:)
6170{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6171whose name does not start with the host triplet. If you think this
6172configuration is useful to you, please write to autoconf@gnu.org." >&5
6173echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6174whose name does not start with the host triplet. If you think this
6175configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6176ac_tool_warned=yes ;;
6177esac
6178 AR=$ac_ct_AR
6179 fi
6180else
6181 AR="$ac_cv_prog_AR"
6182fi
6183
6184# Extract the first word of "rm", so it can be a program name with args.
6185set dummy rm; ac_word=$2
6186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188if test "${ac_cv_path_RM+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191 case $RM in
6192 [\\/]* | ?:[\\/]*)
6193 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6194 ;;
6195 *)
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 break 2
6206 fi
6207done
6208done
6209IFS=$as_save_IFS
6210
6211 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6212 ;;
6213esac
6214fi
6215RM=$ac_cv_path_RM
6216if test -n "$RM"; then
6217 { echo "$as_me:$LINENO: result: $RM" >&5
6218echo "${ECHO_T}$RM" >&6; }
6219else
6220 { echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6; }
6222fi
6223
6224
6225# Extract the first word of "sed", so it can be a program name with args.
6226set dummy sed; ac_word=$2
6227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229if test "${ac_cv_path_SED+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231else
6232 case $SED in
6233 [\\/]* | ?:[\\/]*)
6234 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6235 ;;
6236 *)
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248done
6249done
6250IFS=$as_save_IFS
6251
6252 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6253 ;;
6254esac
6255fi
6256SED=$ac_cv_path_SED
6257if test -n "$SED"; then
6258 { echo "$as_me:$LINENO: result: $SED" >&5
6259echo "${ECHO_T}$SED" >&6; }
6260else
6261 { echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6; }
6263fi
6264
6265
6266# Extract the first word of "tar", so it can be a program name with args.
6267set dummy tar; ac_word=$2
6268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270if test "${ac_cv_path_TAR+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273 case $TAR in
6274 [\\/]* | ?:[\\/]*)
6275 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6276 ;;
6277 *)
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289done
6290done
6291IFS=$as_save_IFS
6292
6293 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6294 ;;
6295esac
6296fi
6297TAR=$ac_cv_path_TAR
6298if test -n "$TAR"; then
6299 { echo "$as_me:$LINENO: result: $TAR" >&5
6300echo "${ECHO_T}$TAR" >&6; }
6301else
6302 { echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6; }
6304fi
6305
6306
6307# Extract the first word of "pwd", so it can be a program name with args.
6308set dummy pwd; ac_word=$2
6309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311if test "${ac_cv_path_BINPWD+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313else
6314 case $BINPWD in
6315 [\\/]* | ?:[\\/]*)
6316 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6317 ;;
6318 *)
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330done
6331done
6332IFS=$as_save_IFS
6333
6334 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6335 ;;
6336esac
6337fi
6338BINPWD=$ac_cv_path_BINPWD
6339if test -n "$BINPWD"; then
6340 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6341echo "${ECHO_T}$BINPWD" >&6; }
6342else
6343 { echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6; }
6345fi
6346
6347
6348
6349# Extract the first word of "Graphviz", so it can be a program name with args.
6350set dummy Graphviz; ac_word=$2
6351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356 case $GRAPHVIZ in
6357 [\\/]* | ?:[\\/]*)
6358 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6359 ;;
6360 *)
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372done
6373done
6374IFS=$as_save_IFS
6375
6376 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6377 ;;
6378esac
6379fi
6380GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6381if test -n "$GRAPHVIZ"; then
6382 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6383echo "${ECHO_T}$GRAPHVIZ" >&6; }
6384else
6385 { echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6; }
6387fi
6388
6389
6390if test "$GRAPHVIZ" != "echo Graphviz" ; then
6391
6392cat >>confdefs.h <<\_ACEOF
6393#define HAVE_GRAPHVIZ 1
6394_ACEOF
6395
6396 if test "$llvm_cv_os_type" = "MingW" ; then
6397 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6398 fi
6399
6400cat >>confdefs.h <<_ACEOF
6401#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6402_ACEOF
6403
6404fi
6405# Extract the first word of "dot", so it can be a program name with args.
6406set dummy dot; ac_word=$2
6407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409if test "${ac_cv_path_DOT+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412 case $DOT in
6413 [\\/]* | ?:[\\/]*)
6414 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6415 ;;
6416 *)
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428done
6429done
6430IFS=$as_save_IFS
6431
6432 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6433 ;;
6434esac
6435fi
6436DOT=$ac_cv_path_DOT
6437if test -n "$DOT"; then
6438 { echo "$as_me:$LINENO: result: $DOT" >&5
6439echo "${ECHO_T}$DOT" >&6; }
6440else
6441 { echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6; }
6443fi
6444
6445
6446if test "$DOT" != "echo dot" ; then
6447
6448cat >>confdefs.h <<\_ACEOF
6449#define HAVE_DOT 1
6450_ACEOF
6451
6452 if test "$llvm_cv_os_type" = "MingW" ; then
6453 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6454 fi
6455
6456cat >>confdefs.h <<_ACEOF
6457#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6458_ACEOF
6459
6460fi
6461# Extract the first word of "fdp", so it can be a program name with args.
6462set dummy fdp; ac_word=$2
6463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465if test "${ac_cv_path_FDP+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468 case $FDP in
6469 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6471 ;;
6472 *)
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484done
6485done
6486IFS=$as_save_IFS
6487
6488 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6489 ;;
6490esac
6491fi
6492FDP=$ac_cv_path_FDP
6493if test -n "$FDP"; then
6494 { echo "$as_me:$LINENO: result: $FDP" >&5
6495echo "${ECHO_T}$FDP" >&6; }
6496else
6497 { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
6499fi
6500
6501
6502if test "$FDP" != "echo fdp" ; then
6503
6504cat >>confdefs.h <<\_ACEOF
6505#define HAVE_FDP 1
6506_ACEOF
6507
6508 if test "$llvm_cv_os_type" = "MingW" ; then
6509 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6510 fi
6511
6512cat >>confdefs.h <<_ACEOF
6513#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6514_ACEOF
6515
6516fi
6517# Extract the first word of "neato", so it can be a program name with args.
6518set dummy neato; ac_word=$2
6519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521if test "${ac_cv_path_NEATO+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 case $NEATO in
6525 [\\/]* | ?:[\\/]*)
6526 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6527 ;;
6528 *)
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540done
6541done
6542IFS=$as_save_IFS
6543
6544 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6545 ;;
6546esac
6547fi
6548NEATO=$ac_cv_path_NEATO
6549if test -n "$NEATO"; then
6550 { echo "$as_me:$LINENO: result: $NEATO" >&5
6551echo "${ECHO_T}$NEATO" >&6; }
6552else
6553 { echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6; }
6555fi
6556
6557
6558if test "$NEATO" != "echo neato" ; then
6559
6560cat >>confdefs.h <<\_ACEOF
6561#define HAVE_NEATO 1
6562_ACEOF
6563
6564 if test "$llvm_cv_os_type" = "MingW" ; then
6565 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6566 fi
6567
6568cat >>confdefs.h <<_ACEOF
6569#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6570_ACEOF
6571
6572fi
6573# Extract the first word of "twopi", so it can be a program name with args.
6574set dummy twopi; ac_word=$2
6575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577if test "${ac_cv_path_TWOPI+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580 case $TWOPI in
6581 [\\/]* | ?:[\\/]*)
6582 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6583 ;;
6584 *)
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596done
6597done
6598IFS=$as_save_IFS
6599
6600 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6601 ;;
6602esac
6603fi
6604TWOPI=$ac_cv_path_TWOPI
6605if test -n "$TWOPI"; then
6606 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6607echo "${ECHO_T}$TWOPI" >&6; }
6608else
6609 { echo "$as_me:$LINENO: result: no" >&5
6610echo "${ECHO_T}no" >&6; }
6611fi
6612
6613
6614if test "$TWOPI" != "echo twopi" ; then
6615
6616cat >>confdefs.h <<\_ACEOF
6617#define HAVE_TWOPI 1
6618_ACEOF
6619
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6622 fi
6623
6624cat >>confdefs.h <<_ACEOF
6625#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6626_ACEOF
6627
6628fi
6629# Extract the first word of "circo", so it can be a program name with args.
6630set dummy circo; 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_CIRCO+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636 case $CIRCO in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_CIRCO="$CIRCO" # 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_CIRCO="$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 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6657 ;;
6658esac
6659fi
6660CIRCO=$ac_cv_path_CIRCO
6661if test -n "$CIRCO"; then
6662 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6663echo "${ECHO_T}$CIRCO" >&6; }
6664else
6665 { echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6; }
6667fi
6668
6669
6670if test "$CIRCO" != "echo circo" ; then
6671
6672cat >>confdefs.h <<\_ACEOF
6673#define HAVE_CIRCO 1
6674_ACEOF
6675
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6678 fi
6679
6680cat >>confdefs.h <<_ACEOF
6681#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6682_ACEOF
6683
6684fi
6685for ac_prog in gv gsview32
6686do
6687 # Extract the first word of "$ac_prog", so it can be a program name with args.
6688set dummy $ac_prog; ac_word=$2
6689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691if test "${ac_cv_path_GV+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 case $GV in
6695 [\\/]* | ?:[\\/]*)
6696 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6697 ;;
6698 *)
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710done
6711done
6712IFS=$as_save_IFS
6713
6714 ;;
6715esac
6716fi
6717GV=$ac_cv_path_GV
6718if test -n "$GV"; then
6719 { echo "$as_me:$LINENO: result: $GV" >&5
6720echo "${ECHO_T}$GV" >&6; }
6721else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6; }
6724fi
6725
6726
6727 test -n "$GV" && break
6728done
6729test -n "$GV" || GV="echo gv"
6730
6731if test "$GV" != "echo gv" ; then
6732
6733cat >>confdefs.h <<\_ACEOF
6734#define HAVE_GV 1
6735_ACEOF
6736
6737 if test "$llvm_cv_os_type" = "MingW" ; then
6738 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6739 fi
6740
6741cat >>confdefs.h <<_ACEOF
6742#define LLVM_PATH_GV "$GV${EXEEXT}"
6743_ACEOF
6744
6745fi
6746# Extract the first word of "dotty", so it can be a program name with args.
6747set dummy dotty; ac_word=$2
6748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750if test "${ac_cv_path_DOTTY+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753 case $DOTTY in
6754 [\\/]* | ?:[\\/]*)
6755 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6756 ;;
6757 *)
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769done
6770done
6771IFS=$as_save_IFS
6772
6773 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6774 ;;
6775esac
6776fi
6777DOTTY=$ac_cv_path_DOTTY
6778if test -n "$DOTTY"; then
6779 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6780echo "${ECHO_T}$DOTTY" >&6; }
6781else
6782 { echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6; }
6784fi
6785
6786
6787if test "$DOTTY" != "echo dotty" ; then
6788
6789cat >>confdefs.h <<\_ACEOF
6790#define HAVE_DOTTY 1
6791_ACEOF
6792
6793 if test "$llvm_cv_os_type" = "MingW" ; then
6794 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795 fi
6796
6797cat >>confdefs.h <<_ACEOF
6798#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6799_ACEOF
6800
6801fi
6802# Extract the first word of "xdot.py", so it can be a program name with args.
6803set dummy xdot.py; ac_word=$2
6804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806if test "${ac_cv_path_XDOT_PY+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808else
6809 case $XDOT_PY in
6810 [\\/]* | ?:[\\/]*)
6811 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6812 ;;
6813 *)
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825done
6826done
6827IFS=$as_save_IFS
6828
6829 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6830 ;;
6831esac
6832fi
6833XDOT_PY=$ac_cv_path_XDOT_PY
6834if test -n "$XDOT_PY"; then
6835 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6836echo "${ECHO_T}$XDOT_PY" >&6; }
6837else
6838 { echo "$as_me:$LINENO: result: no" >&5
6839echo "${ECHO_T}no" >&6; }
6840fi
6841
6842
6843if test "$XDOT_PY" != "echo xdot.py" ; then
6844
6845cat >>confdefs.h <<\_ACEOF
6846#define HAVE_XDOT_PY 1
6847_ACEOF
6848
6849 if test "$llvm_cv_os_type" = "MingW" ; then
6850 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851 fi
6852
6853cat >>confdefs.h <<_ACEOF
6854#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6855_ACEOF
6856
6857fi
6858
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006859# Find a good install program. We prefer a C program (faster),
6860# so one script is as good as another. But avoid the broken or
6861# incompatible versions:
6862# SysV /etc/install, /usr/sbin/install
6863# SunOS /usr/etc/install
6864# IRIX /sbin/install
6865# AIX /bin/install
6866# AmigaOS /C/install, which installs bootblocks on floppy discs
6867# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6868# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6869# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6870# OS/2's system install, which has a completely different semantic
6871# ./install, which can be erroneously created by make from ./install.sh.
6872{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6873echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6874if test -z "$INSTALL"; then
6875if test "${ac_cv_path_install+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 # Account for people who put trailing slashes in PATH elements.
6884case $as_dir/ in
6885 ./ | .// | /cC/* | \
6886 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6887 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6888 /usr/ucb/* ) ;;
6889 *)
6890 # OSF1 and SCO ODT 3.0 have their own names for install.
6891 # Don't use installbsd from OSF since it installs stuff as root
6892 # by default.
6893 for ac_prog in ginstall scoinst install; do
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6896 if test $ac_prog = install &&
6897 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6898 # AIX install. It has an incompatible calling convention.
6899 :
6900 elif test $ac_prog = install &&
6901 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6902 # program-specific install script used by HP pwplus--don't use.
6903 :
6904 else
6905 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6906 break 3
6907 fi
6908 fi
6909 done
6910 done
6911 ;;
6912esac
6913done
6914IFS=$as_save_IFS
6915
6916
6917fi
6918 if test "${ac_cv_path_install+set}" = set; then
6919 INSTALL=$ac_cv_path_install
6920 else
6921 # As a last resort, use the slow shell script. Don't cache a
6922 # value for INSTALL within a source directory, because that will
6923 # break other packages using the cache if that directory is
6924 # removed, or if the value is a relative name.
6925 INSTALL=$ac_install_sh
6926 fi
6927fi
6928{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6929echo "${ECHO_T}$INSTALL" >&6; }
6930
6931# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6932# It thinks the first close brace ends the variable substitution.
6933test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6934
6935test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6936
6937test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6938
6939case "$INSTALL" in
6940 [\\/$]* | ?:[\\/]* ) ;;
6941 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6942esac
6943
6944# Extract the first word of "bzip2", so it can be a program name with args.
6945set dummy bzip2; ac_word=$2
6946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948if test "${ac_cv_path_BZIP2+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951 case $BZIP2 in
6952 [\\/]* | ?:[\\/]*)
6953 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6954 ;;
6955 *)
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967done
6968done
6969IFS=$as_save_IFS
6970
6971 ;;
6972esac
6973fi
6974BZIP2=$ac_cv_path_BZIP2
6975if test -n "$BZIP2"; then
6976 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6977echo "${ECHO_T}$BZIP2" >&6; }
6978else
6979 { echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6; }
6981fi
6982
6983
6984# Extract the first word of "cat", so it can be a program name with args.
6985set dummy cat; ac_word=$2
6986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988if test "${ac_cv_path_CAT+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991 case $CAT in
6992 [\\/]* | ?:[\\/]*)
6993 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6994 ;;
6995 *)
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007done
7008done
7009IFS=$as_save_IFS
7010
7011 ;;
7012esac
7013fi
7014CAT=$ac_cv_path_CAT
7015if test -n "$CAT"; then
7016 { echo "$as_me:$LINENO: result: $CAT" >&5
7017echo "${ECHO_T}$CAT" >&6; }
7018else
7019 { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
7021fi
7022
7023
7024# Extract the first word of "doxygen", so it can be a program name with args.
7025set dummy doxygen; ac_word=$2
7026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028if test "${ac_cv_path_DOXYGEN+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 case $DOXYGEN in
7032 [\\/]* | ?:[\\/]*)
7033 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7034 ;;
7035 *)
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047done
7048done
7049IFS=$as_save_IFS
7050
7051 ;;
7052esac
7053fi
7054DOXYGEN=$ac_cv_path_DOXYGEN
7055if test -n "$DOXYGEN"; then
7056 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7057echo "${ECHO_T}$DOXYGEN" >&6; }
7058else
7059 { echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6; }
7061fi
7062
7063
7064# Extract the first word of "groff", so it can be a program name with args.
7065set dummy groff; ac_word=$2
7066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068if test "${ac_cv_path_GROFF+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 case $GROFF in
7072 [\\/]* | ?:[\\/]*)
7073 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7074 ;;
7075 *)
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087done
7088done
7089IFS=$as_save_IFS
7090
7091 ;;
7092esac
7093fi
7094GROFF=$ac_cv_path_GROFF
7095if test -n "$GROFF"; then
7096 { echo "$as_me:$LINENO: result: $GROFF" >&5
7097echo "${ECHO_T}$GROFF" >&6; }
7098else
7099 { echo "$as_me:$LINENO: result: no" >&5
7100echo "${ECHO_T}no" >&6; }
7101fi
7102
7103
7104# Extract the first word of "gzip", so it can be a program name with args.
7105set dummy gzip; ac_word=$2
7106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7108if test "${ac_cv_path_GZIPBIN+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111 case $GZIPBIN in
7112 [\\/]* | ?:[\\/]*)
7113 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7114 ;;
7115 *)
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127done
7128done
7129IFS=$as_save_IFS
7130
7131 ;;
7132esac
7133fi
7134GZIPBIN=$ac_cv_path_GZIPBIN
7135if test -n "$GZIPBIN"; then
7136 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7137echo "${ECHO_T}$GZIPBIN" >&6; }
7138else
7139 { echo "$as_me:$LINENO: result: no" >&5
7140echo "${ECHO_T}no" >&6; }
7141fi
7142
7143
7144# Extract the first word of "pod2html", so it can be a program name with args.
7145set dummy pod2html; ac_word=$2
7146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148if test "${ac_cv_path_POD2HTML+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151 case $POD2HTML in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7154 ;;
7155 *)
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167done
7168done
7169IFS=$as_save_IFS
7170
7171 ;;
7172esac
7173fi
7174POD2HTML=$ac_cv_path_POD2HTML
7175if test -n "$POD2HTML"; then
7176 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7177echo "${ECHO_T}$POD2HTML" >&6; }
7178else
7179 { echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6; }
7181fi
7182
7183
7184# Extract the first word of "pod2man", so it can be a program name with args.
7185set dummy pod2man; ac_word=$2
7186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188if test "${ac_cv_path_POD2MAN+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191 case $POD2MAN in
7192 [\\/]* | ?:[\\/]*)
7193 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7194 ;;
7195 *)
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207done
7208done
7209IFS=$as_save_IFS
7210
7211 ;;
7212esac
7213fi
7214POD2MAN=$ac_cv_path_POD2MAN
7215if test -n "$POD2MAN"; then
7216 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7217echo "${ECHO_T}$POD2MAN" >&6; }
7218else
7219 { echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6; }
7221fi
7222
7223
7224# Extract the first word of "pdfroff", so it can be a program name with args.
7225set dummy pdfroff; ac_word=$2
7226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228if test "${ac_cv_path_PDFROFF+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231 case $PDFROFF in
7232 [\\/]* | ?:[\\/]*)
7233 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7234 ;;
7235 *)
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247done
7248done
7249IFS=$as_save_IFS
7250
7251 ;;
7252esac
7253fi
7254PDFROFF=$ac_cv_path_PDFROFF
7255if test -n "$PDFROFF"; then
7256 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7257echo "${ECHO_T}$PDFROFF" >&6; }
7258else
7259 { echo "$as_me:$LINENO: result: no" >&5
7260echo "${ECHO_T}no" >&6; }
7261fi
7262
7263
7264# Extract the first word of "runtest", so it can be a program name with args.
7265set dummy runtest; ac_word=$2
7266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268if test "${ac_cv_path_RUNTEST+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271 case $RUNTEST in
7272 [\\/]* | ?:[\\/]*)
7273 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7274 ;;
7275 *)
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287done
7288done
7289IFS=$as_save_IFS
7290
7291 ;;
7292esac
7293fi
7294RUNTEST=$ac_cv_path_RUNTEST
7295if test -n "$RUNTEST"; then
7296 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7297echo "${ECHO_T}$RUNTEST" >&6; }
7298else
7299 { echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6; }
7301fi
7302
7303
7304
7305no_itcl=true
7306{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7307echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7308
7309# Check whether --with-tclinclude was given.
7310if test "${with_tclinclude+set}" = set; then
7311 withval=$with_tclinclude; with_tclinclude=${withval}
7312else
7313 with_tclinclude=''
7314fi
7315
7316if test "${ac_cv_path_tclsh+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319
7320if test x"${with_tclinclude}" != x ; then
7321 if test -f ${with_tclinclude}/tclsh ; then
7322 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7323 elif test -f ${with_tclinclude}/src/tclsh ; then
7324 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7325 else
7326 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7327echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7328 { (exit 1); exit 1; }; }
7329 fi
7330fi
7331fi
7332
7333
7334if test x"${ac_cv_path_tclsh}" = x ; then
7335 { echo "$as_me:$LINENO: result: none" >&5
7336echo "${ECHO_T}none" >&6; }
7337 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
7338do
7339 # Extract the first word of "$ac_prog", so it can be a program name with args.
7340set dummy $ac_prog; ac_word=$2
7341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343if test "${ac_cv_path_TCLSH+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346 case $TCLSH in
7347 [\\/]* | ?:[\\/]*)
7348 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7349 ;;
7350 *)
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363done
7364IFS=$as_save_IFS
7365
7366 ;;
7367esac
7368fi
7369TCLSH=$ac_cv_path_TCLSH
7370if test -n "$TCLSH"; then
7371 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7372echo "${ECHO_T}$TCLSH" >&6; }
7373else
7374 { echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6; }
7376fi
7377
7378
7379 test -n "$TCLSH" && break
7380done
7381
7382 if test x"${TCLSH}" = x ; then
7383 ac_cv_path_tclsh='';
7384 else
7385 ac_cv_path_tclsh="${TCLSH}";
7386 fi
7387else
7388 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7389echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7390 TCLSH="${ac_cv_path_tclsh}"
7391
7392fi
7393
7394# Extract the first word of "zip", so it can be a program name with args.
7395set dummy zip; ac_word=$2
7396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398if test "${ac_cv_path_ZIP+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401 case $ZIP in
7402 [\\/]* | ?:[\\/]*)
7403 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7404 ;;
7405 *)
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417done
7418done
7419IFS=$as_save_IFS
7420
7421 ;;
7422esac
7423fi
7424ZIP=$ac_cv_path_ZIP
7425if test -n "$ZIP"; then
7426 { echo "$as_me:$LINENO: result: $ZIP" >&5
7427echo "${ECHO_T}$ZIP" >&6; }
7428else
7429 { echo "$as_me:$LINENO: result: no" >&5
7430echo "${ECHO_T}no" >&6; }
7431fi
7432
7433
7434for ac_prog in ocamlc
7435do
7436 # Extract the first word of "$ac_prog", so it can be a program name with args.
7437set dummy $ac_prog; ac_word=$2
7438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440if test "${ac_cv_path_OCAMLC+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443 case $OCAMLC in
7444 [\\/]* | ?:[\\/]*)
7445 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7446 ;;
7447 *)
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7455 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459done
7460done
7461IFS=$as_save_IFS
7462
7463 ;;
7464esac
7465fi
7466OCAMLC=$ac_cv_path_OCAMLC
7467if test -n "$OCAMLC"; then
7468 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7469echo "${ECHO_T}$OCAMLC" >&6; }
7470else
7471 { echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6; }
7473fi
7474
7475
7476 test -n "$OCAMLC" && break
7477done
7478
7479for ac_prog in ocamlopt
7480do
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482set dummy $ac_prog; ac_word=$2
7483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7485if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487else
7488 case $OCAMLOPT in
7489 [\\/]* | ?:[\\/]*)
7490 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7491 ;;
7492 *)
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7500 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7503 fi
7504done
7505done
7506IFS=$as_save_IFS
7507
7508 ;;
7509esac
7510fi
7511OCAMLOPT=$ac_cv_path_OCAMLOPT
7512if test -n "$OCAMLOPT"; then
7513 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7514echo "${ECHO_T}$OCAMLOPT" >&6; }
7515else
7516 { echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6; }
7518fi
7519
7520
7521 test -n "$OCAMLOPT" && break
7522done
7523
7524for ac_prog in ocamldep
7525do
7526 # Extract the first word of "$ac_prog", so it can be a program name with args.
7527set dummy $ac_prog; ac_word=$2
7528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533 case $OCAMLDEP in
7534 [\\/]* | ?:[\\/]*)
7535 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7536 ;;
7537 *)
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549done
7550done
7551IFS=$as_save_IFS
7552
7553 ;;
7554esac
7555fi
7556OCAMLDEP=$ac_cv_path_OCAMLDEP
7557if test -n "$OCAMLDEP"; then
7558 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7559echo "${ECHO_T}$OCAMLDEP" >&6; }
7560else
7561 { echo "$as_me:$LINENO: result: no" >&5
7562echo "${ECHO_T}no" >&6; }
7563fi
7564
7565
7566 test -n "$OCAMLDEP" && break
7567done
7568
7569for ac_prog in ocamldoc
7570do
7571 # Extract the first word of "$ac_prog", so it can be a program name with args.
7572set dummy $ac_prog; ac_word=$2
7573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577else
7578 case $OCAMLDOC in
7579 [\\/]* | ?:[\\/]*)
7580 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7581 ;;
7582 *)
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594done
7595done
7596IFS=$as_save_IFS
7597
7598 ;;
7599esac
7600fi
7601OCAMLDOC=$ac_cv_path_OCAMLDOC
7602if test -n "$OCAMLDOC"; then
7603 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7604echo "${ECHO_T}$OCAMLDOC" >&6; }
7605else
7606 { echo "$as_me:$LINENO: result: no" >&5
7607echo "${ECHO_T}no" >&6; }
7608fi
7609
7610
7611 test -n "$OCAMLDOC" && break
7612done
7613
7614for ac_prog in gas as
7615do
7616 # Extract the first word of "$ac_prog", so it can be a program name with args.
7617set dummy $ac_prog; ac_word=$2
7618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7620if test "${ac_cv_path_GAS+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623 case $GAS in
7624 [\\/]* | ?:[\\/]*)
7625 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7626 ;;
7627 *)
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7638 fi
7639done
7640done
7641IFS=$as_save_IFS
7642
7643 ;;
7644esac
7645fi
7646GAS=$ac_cv_path_GAS
7647if test -n "$GAS"; then
7648 { echo "$as_me:$LINENO: result: $GAS" >&5
7649echo "${ECHO_T}$GAS" >&6; }
7650else
7651 { echo "$as_me:$LINENO: result: no" >&5
7652echo "${ECHO_T}no" >&6; }
7653fi
7654
7655
7656 test -n "$GAS" && break
7657done
7658
7659
7660{ echo "$as_me:$LINENO: checking for linker version" >&5
7661echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7662if test "${llvm_cv_link_version+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664else
7665
7666 version_string="$(ld -v 2>&1 | head -1)"
7667
7668 # Check for ld64.
7669 if (echo "$version_string" | grep -q "ld64"); then
Benjamin Kramer00171802012-05-05 15:02:39 +00007670 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarbf79f912011-10-18 23:10:58 +00007671 else
7672 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7673 fi
7674
7675fi
7676{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7677echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7678
7679cat >>confdefs.h <<_ACEOF
7680#define HOST_LINK_VERSION "$llvm_cv_link_version"
7681_ACEOF
7682
7683
7684
7685{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7686echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7687if test "${llvm_cv_link_use_r+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689else
7690 ac_ext=c
7691ac_cpp='$CPP $CPPFLAGS'
7692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694ac_compiler_gnu=$ac_cv_c_compiler_gnu
7695
7696 oldcflags="$CFLAGS"
7697 CFLAGS="$CFLAGS -Wl,-R."
7698 cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h. */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h. */
7704
7705int
7706main ()
7707{
7708
7709 ;
7710 return 0;
7711}
7712_ACEOF
7713rm -f conftest.$ac_objext conftest$ac_exeext
7714if { (ac_try="$ac_link"
7715case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718esac
7719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_link") 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728 { (case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731esac
7732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_try") 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try='test -s conftest$ac_exeext'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741esac
7742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7747 llvm_cv_link_use_r=yes
7748else
7749 echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 llvm_cv_link_use_r=no
7753fi
7754
7755rm -f core conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
7757 CFLAGS="$oldcflags"
7758 ac_ext=c
7759ac_cpp='$CPP $CPPFLAGS'
7760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764
7765fi
7766{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7767echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7768if test "$llvm_cv_link_use_r" = yes ; then
7769
7770cat >>confdefs.h <<\_ACEOF
7771#define HAVE_LINK_R 1
7772_ACEOF
7773
7774 fi
7775
7776
7777{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7778echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7779if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781else
7782 ac_ext=c
7783ac_cpp='$CPP $CPPFLAGS'
7784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
7788 oldcflags="$CFLAGS"
7789 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7790 cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h. */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h. */
7796
7797int
7798main ()
7799{
7800
7801 ;
7802 return 0;
7803}
7804_ACEOF
7805rm -f conftest.$ac_objext conftest$ac_exeext
7806if { (ac_try="$ac_link"
7807case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7810esac
7811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_link") 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7820 { (case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7823esac
7824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_try") 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833esac
7834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_try") 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 llvm_cv_link_use_export_dynamic=yes
7840else
7841 echo "$as_me: failed program was:" >&5
7842sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 llvm_cv_link_use_export_dynamic=no
7845fi
7846
7847rm -f core conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
7849 CFLAGS="$oldcflags"
7850 ac_ext=c
7851ac_cpp='$CPP $CPPFLAGS'
7852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856
7857fi
7858{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7859echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7860if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7861
7862cat >>confdefs.h <<\_ACEOF
7863#define HAVE_LINK_EXPORT_DYNAMIC 1
7864_ACEOF
7865
7866 fi
7867
7868
7869{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7870echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7871if test "${llvm_cv_link_use_version_script+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873else
7874 ac_ext=c
7875ac_cpp='$CPP $CPPFLAGS'
7876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880 oldcflags="$CFLAGS"
7881
7882 # The following code is from the autoconf manual,
7883 # "11.13: Limitations of Usual Tools".
7884 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7885 # Use mktemp if possible; otherwise fall back on mkdir,
7886 # with $RANDOM to make collisions less likely.
7887 : ${TMPDIR=/tmp}
7888 {
7889 tmp=`
7890 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7891 ` &&
7892 test -n "$tmp" && test -d "$tmp"
7893 } || {
7894 tmp=$TMPDIR/foo$$-$RANDOM
7895 (umask 077 && mkdir "$tmp")
7896 } || exit $?
7897
7898 echo "{" > "$tmp/export.map"
7899 echo " global: main;" >> "$tmp/export.map"
7900 echo " local: *;" >> "$tmp/export.map"
7901 echo "};" >> "$tmp/export.map"
7902
7903 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7904 cat >conftest.$ac_ext <<_ACEOF
7905/* confdefs.h. */
7906_ACEOF
7907cat confdefs.h >>conftest.$ac_ext
7908cat >>conftest.$ac_ext <<_ACEOF
7909/* end confdefs.h. */
7910
7911int
7912main ()
7913{
7914
7915 ;
7916 return 0;
7917}
7918_ACEOF
7919rm -f conftest.$ac_objext conftest$ac_exeext
7920if { (ac_try="$ac_link"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7934 { (case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937esac
7938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_try") 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest$ac_exeext'
7944 { (case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947esac
7948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_try") 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 llvm_cv_link_use_version_script=yes
7954else
7955 echo "$as_me: failed program was:" >&5
7956sed 's/^/| /' conftest.$ac_ext >&5
7957
7958 llvm_cv_link_use_version_script=no
7959fi
7960
7961rm -f core conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
7963 rm "$tmp/export.map"
7964 rmdir "$tmp"
7965 CFLAGS="$oldcflags"
7966 ac_ext=c
7967ac_cpp='$CPP $CPPFLAGS'
7968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
7972
7973fi
7974{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7975echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7976if test "$llvm_cv_link_use_version_script" = yes ; then
7977 HAVE_LINK_VERSION_SCRIPT=1
7978
7979 fi
7980
7981
7982
7983
7984{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7985echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7986if test "${ac_cv_c_const+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989 cat >conftest.$ac_ext <<_ACEOF
7990/* confdefs.h. */
7991_ACEOF
7992cat confdefs.h >>conftest.$ac_ext
7993cat >>conftest.$ac_ext <<_ACEOF
7994/* end confdefs.h. */
7995
7996int
7997main ()
7998{
7999/* FIXME: Include the comments suggested by Paul. */
8000#ifndef __cplusplus
8001 /* Ultrix mips cc rejects this. */
8002 typedef int charset[2];
8003 const charset x;
8004 /* SunOS 4.1.1 cc rejects this. */
8005 char const *const *ccp;
8006 char **p;
8007 /* NEC SVR4.0.2 mips cc rejects this. */
8008 struct point {int x, y;};
8009 static struct point const zero = {0,0};
8010 /* AIX XL C 1.02.0.0 rejects this.
8011 It does not let you subtract one const X* pointer from another in
8012 an arm of an if-expression whose if-part is not a constant
8013 expression */
8014 const char *g = "string";
8015 ccp = &g + (g ? g-g : 0);
8016 /* HPUX 7.0 cc rejects these. */
8017 ++ccp;
8018 p = (char**) ccp;
8019 ccp = (char const *const *) p;
8020 { /* SCO 3.2v4 cc rejects this. */
8021 char *t;
8022 char const *s = 0 ? (char *) 0 : (char const *) 0;
8023
8024 *t++ = 0;
8025 if (s) return 0;
8026 }
8027 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8028 int x[] = {25, 17};
8029 const int *foo = &x[0];
8030 ++foo;
8031 }
8032 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8033 typedef const int *iptr;
8034 iptr p = 0;
8035 ++p;
8036 }
8037 { /* AIX XL C 1.02.0.0 rejects this saying
8038 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8039 struct s { int j; const int *ap[3]; };
8040 struct s *b; b->j = 5;
8041 }
8042 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8043 const int foo = 10;
8044 if (!foo) return 0;
8045 }
8046 return !x[0] && !zero.x;
8047#endif
8048
8049 ;
8050 return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext
8054if { (ac_try="$ac_compile"
8055case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058esac
8059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8068 { (case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071esac
8072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_try") 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest.$ac_objext'
8078 { (case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081esac
8082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_try") 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_cv_c_const=yes
8088else
8089 echo "$as_me: failed program was:" >&5
8090sed 's/^/| /' conftest.$ac_ext >&5
8091
8092 ac_cv_c_const=no
8093fi
8094
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096fi
8097{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8098echo "${ECHO_T}$ac_cv_c_const" >&6; }
8099if test $ac_cv_c_const = no; then
8100
8101cat >>confdefs.h <<\_ACEOF
8102#define const
8103_ACEOF
8104
8105fi
8106
8107
8108
8109
8110
8111
8112ac_header_dirent=no
8113for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8114 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8115{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8116echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120 cat >conftest.$ac_ext <<_ACEOF
8121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
8126#include <sys/types.h>
8127#include <$ac_hdr>
8128
8129int
8130main ()
8131{
8132if ((DIR *) 0)
8133return 0;
8134 ;
8135 return 0;
8136}
8137_ACEOF
8138rm -f conftest.$ac_objext
8139if { (ac_try="$ac_compile"
8140case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143esac
8144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8153 { (case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8156esac
8157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_try") 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest.$ac_objext'
8163 { (case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_try") 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 eval "$as_ac_Header=yes"
8173else
8174 echo "$as_me: failed program was:" >&5
8175sed 's/^/| /' conftest.$ac_ext >&5
8176
8177 eval "$as_ac_Header=no"
8178fi
8179
8180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181fi
8182ac_res=`eval echo '${'$as_ac_Header'}'`
8183 { echo "$as_me:$LINENO: result: $ac_res" >&5
8184echo "${ECHO_T}$ac_res" >&6; }
8185if test `eval echo '${'$as_ac_Header'}'` = yes; then
8186 cat >>confdefs.h <<_ACEOF
8187#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8188_ACEOF
8189
8190ac_header_dirent=$ac_hdr; break
8191fi
8192
8193done
8194# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8195if test $ac_header_dirent = dirent.h; then
8196 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8197echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8198if test "${ac_cv_search_opendir+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 ac_func_search_save_LIBS=$LIBS
8202cat >conftest.$ac_ext <<_ACEOF
8203/* confdefs.h. */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h. */
8208
8209/* Override any GCC internal prototype to avoid an error.
8210 Use char because int might match the return type of a GCC
8211 builtin and then its argument prototype would still apply. */
8212#ifdef __cplusplus
8213extern "C"
8214#endif
8215char opendir ();
8216int
8217main ()
8218{
8219return opendir ();
8220 ;
8221 return 0;
8222}
8223_ACEOF
8224for ac_lib in '' dir; do
8225 if test -z "$ac_lib"; then
8226 ac_res="none required"
8227 else
8228 ac_res=-l$ac_lib
8229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8230 fi
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232if { (ac_try="$ac_link"
8233case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236esac
8237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_link") 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249esac
8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_try") 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest$ac_exeext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_search_opendir=$ac_res
8266else
8267 echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
8270
8271fi
8272
8273rm -f core conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext
8275 if test "${ac_cv_search_opendir+set}" = set; then
8276 break
8277fi
8278done
8279if test "${ac_cv_search_opendir+set}" = set; then
8280 :
8281else
8282 ac_cv_search_opendir=no
8283fi
8284rm conftest.$ac_ext
8285LIBS=$ac_func_search_save_LIBS
8286fi
8287{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8288echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8289ac_res=$ac_cv_search_opendir
8290if test "$ac_res" != no; then
8291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8292
8293fi
8294
8295else
8296 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8297echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8298if test "${ac_cv_search_opendir+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301 ac_func_search_save_LIBS=$LIBS
8302cat >conftest.$ac_ext <<_ACEOF
8303/* confdefs.h. */
8304_ACEOF
8305cat confdefs.h >>conftest.$ac_ext
8306cat >>conftest.$ac_ext <<_ACEOF
8307/* end confdefs.h. */
8308
8309/* Override any GCC internal prototype to avoid an error.
8310 Use char because int might match the return type of a GCC
8311 builtin and then its argument prototype would still apply. */
8312#ifdef __cplusplus
8313extern "C"
8314#endif
8315char opendir ();
8316int
8317main ()
8318{
8319return opendir ();
8320 ;
8321 return 0;
8322}
8323_ACEOF
8324for ac_lib in '' x; do
8325 if test -z "$ac_lib"; then
8326 ac_res="none required"
8327 else
8328 ac_res=-l$ac_lib
8329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8330 fi
8331 rm -f conftest.$ac_objext conftest$ac_exeext
8332if { (ac_try="$ac_link"
8333case "(($ac_try" in
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8336esac
8337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338 (eval "$ac_link") 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8346 { (case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349esac
8350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_try") 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; } &&
8355 { ac_try='test -s conftest$ac_exeext'
8356 { (case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8359esac
8360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_try") 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 ac_cv_search_opendir=$ac_res
8366else
8367 echo "$as_me: failed program was:" >&5
8368sed 's/^/| /' conftest.$ac_ext >&5
8369
8370
8371fi
8372
8373rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext
8375 if test "${ac_cv_search_opendir+set}" = set; then
8376 break
8377fi
8378done
8379if test "${ac_cv_search_opendir+set}" = set; then
8380 :
8381else
8382 ac_cv_search_opendir=no
8383fi
8384rm conftest.$ac_ext
8385LIBS=$ac_func_search_save_LIBS
8386fi
8387{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8388echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8389ac_res=$ac_cv_search_opendir
8390if test "$ac_res" != no; then
8391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8392
8393fi
8394
8395fi
8396
8397
8398for ac_header in dlfcn.h
8399do
8400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406fi
8407ac_res=`eval echo '${'$as_ac_Header'}'`
8408 { echo "$as_me:$LINENO: result: $ac_res" >&5
8409echo "${ECHO_T}$ac_res" >&6; }
8410else
8411 # Is the header compilable?
8412{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8413echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
8421#include <$ac_header>
8422_ACEOF
8423rm -f conftest.$ac_objext
8424if { (ac_try="$ac_compile"
8425case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428esac
8429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8438 { (case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441esac
8442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_try") 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest.$ac_objext'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451esac
8452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_header_compiler=yes
8458else
8459 echo "$as_me: failed program was:" >&5
8460sed 's/^/| /' conftest.$ac_ext >&5
8461
8462 ac_header_compiler=no
8463fi
8464
8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8467echo "${ECHO_T}$ac_header_compiler" >&6; }
8468
8469# Is the header present?
8470{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8472cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
8478#include <$ac_header>
8479_ACEOF
8480if { (ac_try="$ac_cpp conftest.$ac_ext"
8481case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484esac
8485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } >/dev/null; then
8493 if test -s conftest.err; then
8494 ac_cpp_err=$ac_c_preproc_warn_flag
8495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8496 else
8497 ac_cpp_err=
8498 fi
8499else
8500 ac_cpp_err=yes
8501fi
8502if test -z "$ac_cpp_err"; then
8503 ac_header_preproc=yes
8504else
8505 echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 ac_header_preproc=no
8509fi
8510
8511rm -f conftest.err conftest.$ac_ext
8512{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513echo "${ECHO_T}$ac_header_preproc" >&6; }
8514
8515# So? What about this header?
8516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8517 yes:no: )
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8522 ac_header_preproc=yes
8523 ;;
8524 no:yes:* )
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8532echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8537 ( cat <<\_ASBOX
8538## ------------------------------ ##
8539## Report this to bugs@yourdomain ##
8540## ------------------------------ ##
8541_ASBOX
8542 ) | sed "s/^/$as_me: WARNING: /" >&2
8543 ;;
8544esac
8545{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549else
8550 eval "$as_ac_Header=\$ac_header_preproc"
8551fi
8552ac_res=`eval echo '${'$as_ac_Header'}'`
8553 { echo "$as_me:$LINENO: result: $ac_res" >&5
8554echo "${ECHO_T}$ac_res" >&6; }
8555
8556fi
8557if test `eval echo '${'$as_ac_Header'}'` = yes; then
8558 cat >>confdefs.h <<_ACEOF
8559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8560_ACEOF
8561
8562fi
8563
8564done
8565
8566# Check whether --enable-ltdl-install was given.
8567if test "${enable_ltdl_install+set}" = set; then
8568 enableval=$enable_ltdl_install;
8569fi
8570
8571
8572
8573
8574if test x"${enable_ltdl_install-no}" != xno; then
8575 INSTALL_LTDL_TRUE=
8576 INSTALL_LTDL_FALSE='#'
8577else
8578 INSTALL_LTDL_TRUE='#'
8579 INSTALL_LTDL_FALSE=
8580fi
8581
8582
8583
8584if test x"${enable_ltdl_convenience-no}" != xno; then
8585 CONVENIENCE_LTDL_TRUE=
8586 CONVENIENCE_LTDL_FALSE='#'
8587else
8588 CONVENIENCE_LTDL_TRUE='#'
8589 CONVENIENCE_LTDL_FALSE=
8590fi
8591
8592
8593{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8594echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8595library_names_spec=
8596libname_spec='lib$name'
8597soname_spec=
8598shrext_cmds=".so"
8599postinstall_cmds=
8600postuninstall_cmds=
8601finish_cmds=
8602finish_eval=
8603shlibpath_var=
8604shlibpath_overrides_runpath=unknown
8605version_type=none
8606dynamic_linker="$host_os ld.so"
8607sys_lib_dlsearch_path_spec="/lib /usr/lib"
8608if test "$GCC" = yes; then
8609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8610 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8611 # if the path contains ";" then we assume it to be the separator
8612 # otherwise default to the standard path separator (i.e. ":") - it is
8613 # assumed that no part of a normal pathname contains ";" but that should
8614 # okay in the real world where ";" in dirpaths is itself problematic.
8615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8616 else
8617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8618 fi
8619else
8620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8621fi
8622need_lib_prefix=unknown
8623hardcode_into_libs=no
8624
8625# when you set need_version to no, make sure it does not cause -set_version
8626# flags to be left without arguments
8627need_version=unknown
8628
8629case $host_os in
8630aix3*)
8631 version_type=linux
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8633 shlibpath_var=LIBPATH
8634
8635 # AIX 3 has no versioning support, so we append a major version to the name.
8636 soname_spec='${libname}${release}${shared_ext}$major'
8637 ;;
8638
8639aix4* | aix5*)
8640 version_type=linux
8641 need_lib_prefix=no
8642 need_version=no
8643 hardcode_into_libs=yes
8644 if test "$host_cpu" = ia64; then
8645 # AIX 5 supports IA64
8646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8647 shlibpath_var=LD_LIBRARY_PATH
8648 else
8649 # With GCC up to 2.95.x, collect2 would create an import file
8650 # for dependence libraries. The import file would start with
8651 # the line `#! .'. This would cause the generated library to
8652 # depend on `.', always an invalid library. This was fixed in
8653 # development snapshots of GCC prior to 3.0.
8654 case $host_os in
8655 aix4 | aix4.[01] | aix4.[01].*)
8656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8657 echo ' yes '
8658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8659 :
8660 else
8661 can_build_shared=no
8662 fi
8663 ;;
8664 esac
8665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8666 # soname into executable. Probably we can add versioning support to
8667 # collect2, so additional links can be useful in future.
8668 if test "$aix_use_runtimelinking" = yes; then
8669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8670 # instead of lib<name>.a to let people know that these are not
8671 # typical AIX shared libraries.
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673 else
8674 # We preserve .a as extension for shared libraries through AIX4.2
8675 # and later when we are not doing run time linking.
8676 library_names_spec='${libname}${release}.a $libname.a'
8677 soname_spec='${libname}${release}${shared_ext}$major'
8678 fi
8679 shlibpath_var=LIBPATH
8680 fi
8681 ;;
8682
8683amigaos*)
8684 library_names_spec='$libname.ixlibrary $libname.a'
8685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8686 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'
8687 ;;
8688
8689beos*)
8690 library_names_spec='${libname}${shared_ext}'
8691 dynamic_linker="$host_os ld.so"
8692 shlibpath_var=LIBRARY_PATH
8693 ;;
8694
8695bsdi[45]*)
8696 version_type=linux
8697 need_version=no
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8701 shlibpath_var=LD_LIBRARY_PATH
8702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8704 # the default ld.so.conf also contains /usr/contrib/lib and
8705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8706 # libtool to hard-code these into programs
8707 ;;
8708
8709cygwin* | mingw* | pw32*)
8710 version_type=windows
8711 shrext_cmds=".dll"
8712 need_version=no
8713 need_lib_prefix=no
8714
8715 case $GCC,$host_os in
8716 yes,cygwin* | yes,mingw* | yes,pw32*)
8717 library_names_spec='$libname.dll.a'
8718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8719 postinstall_cmds='base_file=`basename \${file}`~
8720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8721 dldir=$destdir/`dirname \$dlpath`~
8722 test -d \$dldir || mkdir -p \$dldir~
8723 $install_prog $dir/$dlname \$dldir/$dlname~
8724 chmod a+x \$dldir/$dlname'
8725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8726 dlpath=$dir/\$dldll~
8727 $rm \$dlpath'
8728 shlibpath_overrides_runpath=yes
8729
8730 case $host_os in
8731 cygwin*)
8732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8735 ;;
8736 mingw*)
8737 # MinGW DLLs use traditional 'lib' prefix
8738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8740 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8741 # It is most probably a Windows format PATH printed by
8742 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8743 # path with ; separators, and with drive letters. We can handle the
8744 # drive letters (cygwin fileutils understands them), so leave them,
8745 # especially as we might pass files found there to a mingw objdump,
8746 # which wouldn't understand a cygwinified path. Ahh.
8747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8748 else
8749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8750 fi
8751 ;;
8752 pw32*)
8753 # pw32 DLLs use 'pw' prefix rather than 'lib'
8754 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8755 ;;
8756 esac
8757 ;;
8758
8759 *)
8760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8761 ;;
8762 esac
8763 dynamic_linker='Win32 ld.exe'
8764 # FIXME: first we should search . and the directory the executable is in
8765 shlibpath_var=PATH
8766 ;;
8767
8768darwin* | rhapsody*)
8769 dynamic_linker="$host_os dyld"
8770 version_type=darwin
8771 need_lib_prefix=no
8772 need_version=no
8773 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8774 soname_spec='${libname}${release}${major}$shared_ext'
8775 shlibpath_overrides_runpath=yes
8776 shlibpath_var=DYLD_LIBRARY_PATH
8777 shrext_cmds='.dylib'
8778 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8779 if test "$GCC" = yes; then
8780 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"`
8781 else
8782 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8783 fi
8784 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8785 ;;
8786
8787dgux*)
8788 version_type=linux
8789 need_lib_prefix=no
8790 need_version=no
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8792 soname_spec='${libname}${release}${shared_ext}$major'
8793 shlibpath_var=LD_LIBRARY_PATH
8794 ;;
8795
Rafael Espindola48381e52012-01-31 17:18:47 +00008796freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008797 dynamic_linker=no
8798 ;;
8799
8800kfreebsd*-gnu)
8801 version_type=linux
8802 need_lib_prefix=no
8803 need_version=no
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 shlibpath_var=LD_LIBRARY_PATH
8807 shlibpath_overrides_runpath=no
8808 hardcode_into_libs=yes
8809 dynamic_linker='GNU ld.so'
8810 ;;
8811
8812freebsd* | dragonfly*)
8813 # DragonFly does not have aout. When/if they implement a new
8814 # versioning mechanism, adjust this.
8815 if test -x /usr/bin/objformat; then
8816 objformat=`/usr/bin/objformat`
8817 else
8818 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008819 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008820 *) objformat=elf ;;
8821 esac
8822 fi
8823 version_type=freebsd-$objformat
8824 case $version_type in
8825 freebsd-elf*)
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8827 need_version=no
8828 need_lib_prefix=no
8829 ;;
8830 freebsd-*)
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8832 need_version=yes
8833 ;;
8834 esac
8835 shlibpath_var=LD_LIBRARY_PATH
8836 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008837 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008838 shlibpath_overrides_runpath=yes
8839 ;;
8840 freebsd3.[01]* | freebsdelf3.[01]*)
8841 shlibpath_overrides_runpath=yes
8842 hardcode_into_libs=yes
8843 ;;
8844 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8845 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8846 shlibpath_overrides_runpath=no
8847 hardcode_into_libs=yes
8848 ;;
8849 freebsd*) # from 4.6 on
8850 shlibpath_overrides_runpath=yes
8851 hardcode_into_libs=yes
8852 ;;
8853 esac
8854 ;;
8855
8856gnu*)
8857 version_type=linux
8858 need_lib_prefix=no
8859 need_version=no
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 shlibpath_var=LD_LIBRARY_PATH
8863 hardcode_into_libs=yes
8864 ;;
8865
8866hpux9* | hpux10* | hpux11*)
8867 # Give a soname corresponding to the major version so that dld.sl refuses to
8868 # link against other versions.
8869 version_type=sunos
8870 need_lib_prefix=no
8871 need_version=no
8872 case $host_cpu in
8873 ia64*)
8874 shrext_cmds='.so'
8875 hardcode_into_libs=yes
8876 dynamic_linker="$host_os dld.so"
8877 shlibpath_var=LD_LIBRARY_PATH
8878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 if test "X$HPUX_IA64_MODE" = X32; then
8882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8883 else
8884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8885 fi
8886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8887 ;;
8888 hppa*64*)
8889 shrext_cmds='.sl'
8890 hardcode_into_libs=yes
8891 dynamic_linker="$host_os dld.sl"
8892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8898 ;;
8899 *)
8900 shrext_cmds='.sl'
8901 dynamic_linker="$host_os dld.sl"
8902 shlibpath_var=SHLIB_PATH
8903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 ;;
8907 esac
8908 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8909 postinstall_cmds='chmod 555 $lib'
8910 ;;
8911
8912interix3*)
8913 version_type=linux
8914 need_lib_prefix=no
8915 need_version=no
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 shlibpath_overrides_runpath=no
8921 hardcode_into_libs=yes
8922 ;;
8923
8924irix5* | irix6* | nonstopux*)
8925 case $host_os in
8926 nonstopux*) version_type=nonstopux ;;
8927 *)
8928 if test "$lt_cv_prog_gnu_ld" = yes; then
8929 version_type=linux
8930 else
8931 version_type=irix
8932 fi ;;
8933 esac
8934 need_lib_prefix=no
8935 need_version=no
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8938 case $host_os in
8939 irix5* | nonstopux*)
8940 libsuff= shlibsuff=
8941 ;;
8942 *)
8943 case $LD in # libtool.m4 will add one of these switches to LD
8944 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8945 libsuff= shlibsuff= libmagic=32-bit;;
8946 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8947 libsuff=32 shlibsuff=N32 libmagic=N32;;
8948 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8949 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8950 *) libsuff= shlibsuff= libmagic=never-match;;
8951 esac
8952 ;;
8953 esac
8954 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8955 shlibpath_overrides_runpath=no
8956 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8957 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8958 hardcode_into_libs=yes
8959 ;;
8960
8961# No shared lib support for Linux oldld, aout, or coff.
8962linux*oldld* | linux*aout* | linux*coff*)
8963 dynamic_linker=no
8964 ;;
8965
8966# This must be Linux ELF.
8967linux*)
8968 version_type=linux
8969 need_lib_prefix=no
8970 need_version=no
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 shlibpath_overrides_runpath=no
8976 # This implies no fast_install, which is unacceptable.
8977 # Some rework will be needed to allow for fast_install
8978 # before this can be enabled.
8979 hardcode_into_libs=yes
8980
8981 # Append ld.so.conf contents to the search path
8982 if test -f /etc/ld.so.conf; then
8983 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' ' '`
8984 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8985 fi
8986
8987 # We used to test for /lib/ld.so.1 and disable shared libraries on
8988 # powerpc, because MkLinux only supported shared libraries with the
8989 # GNU dynamic linker. Since this was broken with cross compilers,
8990 # most powerpc-linux boxes support dynamic linking these days and
8991 # people can always --disable-shared, the test was removed, and we
8992 # assume the GNU/Linux dynamic linker is in use.
8993 dynamic_linker='GNU/Linux ld.so'
8994 ;;
8995
8996knetbsd*-gnu)
8997 version_type=linux
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=no
9004 hardcode_into_libs=yes
9005 dynamic_linker='GNU ld.so'
9006 ;;
9007
9008netbsd*)
9009 version_type=sunos
9010 need_lib_prefix=no
9011 need_version=no
9012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9015 dynamic_linker='NetBSD (a.out) ld.so'
9016 else
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 dynamic_linker='NetBSD ld.elf_so'
9020 fi
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=yes
9023 hardcode_into_libs=yes
9024 ;;
9025
9026newsos6)
9027 version_type=linux
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes
9031 ;;
9032
9033nto-qnx*)
9034 version_type=linux
9035 need_lib_prefix=no
9036 need_version=no
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 ;;
9042
9043openbsd*)
9044 version_type=sunos
9045 sys_lib_dlsearch_path_spec="/usr/lib"
9046 need_lib_prefix=no
9047 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9048 case $host_os in
9049 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9050 *) need_version=no ;;
9051 esac
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9056 case $host_os in
9057 openbsd2.[89] | openbsd2.[89].*)
9058 shlibpath_overrides_runpath=no
9059 ;;
9060 *)
9061 shlibpath_overrides_runpath=yes
9062 ;;
9063 esac
9064 else
9065 shlibpath_overrides_runpath=yes
9066 fi
9067 ;;
9068
9069os2*)
9070 libname_spec='$name'
9071 shrext_cmds=".dll"
9072 need_lib_prefix=no
9073 library_names_spec='$libname${shared_ext} $libname.a'
9074 dynamic_linker='OS/2 ld.exe'
9075 shlibpath_var=LIBPATH
9076 ;;
9077
9078osf3* | osf4* | osf5*)
9079 version_type=osf
9080 need_lib_prefix=no
9081 need_version=no
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9086 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9087 ;;
9088
9089solaris*)
9090 version_type=linux
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath=yes
9097 hardcode_into_libs=yes
9098 # ldd complains unless libraries are executable
9099 postinstall_cmds='chmod +x $lib'
9100 ;;
9101
9102sunos4*)
9103 version_type=sunos
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9105 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=yes
9108 if test "$with_gnu_ld" = yes; then
9109 need_lib_prefix=no
9110 fi
9111 need_version=yes
9112 ;;
9113
9114sysv4 | sysv4.3*)
9115 version_type=linux
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 case $host_vendor in
9120 sni)
9121 shlibpath_overrides_runpath=no
9122 need_lib_prefix=no
9123 export_dynamic_flag_spec='${wl}-Blargedynsym'
9124 runpath_var=LD_RUN_PATH
9125 ;;
9126 siemens)
9127 need_lib_prefix=no
9128 ;;
9129 motorola)
9130 need_lib_prefix=no
9131 need_version=no
9132 shlibpath_overrides_runpath=no
9133 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9134 ;;
9135 esac
9136 ;;
9137
9138sysv4*MP*)
9139 if test -d /usr/nec ;then
9140 version_type=linux
9141 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9142 soname_spec='$libname${shared_ext}.$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 fi
9145 ;;
9146
9147sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9148 version_type=freebsd-elf
9149 need_lib_prefix=no
9150 need_version=no
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 hardcode_into_libs=yes
9155 if test "$with_gnu_ld" = yes; then
9156 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9157 shlibpath_overrides_runpath=no
9158 else
9159 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9160 shlibpath_overrides_runpath=yes
9161 case $host_os in
9162 sco3.2v5*)
9163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9164 ;;
9165 esac
9166 fi
9167 sys_lib_dlsearch_path_spec='/usr/lib'
9168 ;;
9169
9170uts4*)
9171 version_type=linux
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 ;;
9176
9177*)
9178 dynamic_linker=no
9179 ;;
9180esac
9181{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9182echo "${ECHO_T}$dynamic_linker" >&6; }
9183test "$dynamic_linker" = no && can_build_shared=no
9184
9185variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9186if test "$GCC" = yes; then
9187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9188fi
9189
9190
9191{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9192echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9193if test "${libltdl_cv_shlibext+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
9196
9197module=yes
9198eval libltdl_cv_shlibext=$shrext_cmds
9199
9200fi
9201{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9202echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9203if test -n "$libltdl_cv_shlibext"; then
9204
9205cat >>confdefs.h <<_ACEOF
9206#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9207_ACEOF
9208
9209fi
9210
9211
9212{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9213echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9214if test "${libltdl_cv_shlibpath_var+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216else
9217 libltdl_cv_shlibpath_var="$shlibpath_var"
9218fi
9219{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9220echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9221if test -n "$libltdl_cv_shlibpath_var"; then
9222
9223cat >>confdefs.h <<_ACEOF
9224#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9225_ACEOF
9226
9227fi
9228
9229
9230{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9231echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9232if test "${libltdl_cv_sys_search_path+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9236fi
9237{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9238echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9239if test -n "$libltdl_cv_sys_search_path"; then
9240 sys_search_path=
9241 for dir in $libltdl_cv_sys_search_path; do
9242 if test -z "$sys_search_path"; then
9243 sys_search_path="$dir"
9244 else
9245 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9246 fi
9247 done
9248
9249cat >>confdefs.h <<_ACEOF
9250#define LTDL_SYSSEARCHPATH "$sys_search_path"
9251_ACEOF
9252
9253fi
9254
9255{ echo "$as_me:$LINENO: checking for objdir" >&5
9256echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9257if test "${libltdl_cv_objdir+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260 libltdl_cv_objdir="$objdir"
9261 if test -n "$objdir"; then
9262 :
9263 else
9264 rm -f .libs 2>/dev/null
9265 mkdir .libs 2>/dev/null
9266 if test -d .libs; then
9267 libltdl_cv_objdir=.libs
9268 else
9269 # MS-DOS does not allow filenames that begin with a dot.
9270 libltdl_cv_objdir=_libs
9271 fi
9272 rmdir .libs 2>/dev/null
9273 fi
9274
9275fi
9276{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9277echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9278
9279cat >>confdefs.h <<_ACEOF
9280#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9281_ACEOF
9282
9283
9284
9285
9286
9287
9288# Check for command to grab the raw symbol name followed by C symbol from nm.
9289{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9290echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9291if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9293else
9294
9295# These are sane defaults that work on at least a few old systems.
9296# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9297
9298# Character class describing NM global symbol codes.
9299symcode='[BCDEGRST]'
9300
9301# Regexp to match symbols that can be accessed directly from C.
9302sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9303
9304# Transform an extracted symbol line into a proper C declaration
9305lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9306
9307# Transform an extracted symbol line into symbol name and symbol address
9308lt_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'"
9309
9310# Define system-specific variables.
9311case $host_os in
9312aix*)
9313 symcode='[BCDT]'
9314 ;;
9315cygwin* | mingw* | pw32*)
9316 symcode='[ABCDGISTW]'
9317 ;;
9318hpux*) # Its linker distinguishes data from code symbols
9319 if test "$host_cpu" = ia64; then
9320 symcode='[ABCDEGRST]'
9321 fi
9322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9323 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'"
9324 ;;
9325linux*)
9326 if test "$host_cpu" = ia64; then
9327 symcode='[ABCDGIRSTW]'
9328 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9329 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'"
9330 fi
9331 ;;
9332irix* | nonstopux*)
9333 symcode='[BCDEGRST]'
9334 ;;
9335osf*)
9336 symcode='[BCDEGQRST]'
9337 ;;
9338solaris*)
9339 symcode='[BDRT]'
9340 ;;
9341sco3.2v5*)
9342 symcode='[DT]'
9343 ;;
9344sysv4.2uw2*)
9345 symcode='[DT]'
9346 ;;
9347sysv5* | sco5v6* | unixware* | OpenUNIX*)
9348 symcode='[ABDT]'
9349 ;;
9350sysv4)
9351 symcode='[DFNSTU]'
9352 ;;
9353esac
9354
9355# Handle CRLF in mingw tool chain
9356opt_cr=
9357case $build_os in
9358mingw*)
9359 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9360 ;;
9361esac
9362
9363# If we're using GNU nm, then use its standard symbol codes.
9364case `$NM -V 2>&1` in
9365*GNU* | *'with BFD'*)
9366 symcode='[ABCDGIRSTW]' ;;
9367esac
9368
9369# Try without a prefix undercore, then with it.
9370for ac_symprfx in "" "_"; do
9371
9372 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9373 symxfrm="\\1 $ac_symprfx\\2 \\2"
9374
9375 # Write the raw and C identifiers.
9376 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9377
9378 # Check to see that the pipe works correctly.
9379 pipe_works=no
9380
9381 rm -f conftest*
9382 cat > conftest.$ac_ext <<EOF
9383#ifdef __cplusplus
9384extern "C" {
9385#endif
9386char nm_test_var;
9387void nm_test_func(){}
9388#ifdef __cplusplus
9389}
9390#endif
9391int main(){nm_test_var='a';nm_test_func();return(0);}
9392EOF
9393
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; then
9399 # Now try to grab the symbols.
9400 nlist=conftest.nm
9401 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9402 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && test -s "$nlist"; then
9406 # Try sorting and uniquifying the output.
9407 if sort "$nlist" | uniq > "$nlist"T; then
9408 mv -f "$nlist"T "$nlist"
9409 else
9410 rm -f "$nlist"T
9411 fi
9412
9413 # Make sure that we snagged all the symbols we need.
9414 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9415 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9416 cat <<EOF > conftest.$ac_ext
9417#ifdef __cplusplus
9418extern "C" {
9419#endif
9420
9421EOF
9422 # Now generate the symbol file.
9423 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9424
9425 cat <<EOF >> conftest.$ac_ext
9426#if defined (__STDC__) && __STDC__
9427# define lt_ptr_t void *
9428#else
9429# define lt_ptr_t char *
9430# define const
9431#endif
9432
9433/* The mapping between symbol names and symbols. */
9434const struct {
9435 const char *name;
9436 lt_ptr_t address;
9437}
9438lt_preloaded_symbols[] =
9439{
9440EOF
9441 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9442 cat <<\EOF >> conftest.$ac_ext
9443 {0, (lt_ptr_t) 0}
9444};
9445
9446#ifdef __cplusplus
9447}
9448#endif
9449EOF
9450 # Now try linking the two files.
9451 mv conftest.$ac_objext conftstm.$ac_objext
9452 lt_save_LIBS="$LIBS"
9453 lt_save_CFLAGS="$CFLAGS"
9454 LIBS="conftstm.$ac_objext"
9455 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9461 pipe_works=yes
9462 fi
9463 LIBS="$lt_save_LIBS"
9464 CFLAGS="$lt_save_CFLAGS"
9465 else
9466 echo "cannot find nm_test_func in $nlist" >&5
9467 fi
9468 else
9469 echo "cannot find nm_test_var in $nlist" >&5
9470 fi
9471 else
9472 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9473 fi
9474 else
9475 echo "$progname: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 fi
9478 rm -f conftest* conftst*
9479
9480 # Do not use the global_symbol_pipe unless it works.
9481 if test "$pipe_works" = yes; then
9482 break
9483 else
9484 lt_cv_sys_global_symbol_pipe=
9485 fi
9486done
9487
9488fi
9489
9490if test -z "$lt_cv_sys_global_symbol_pipe"; then
9491 lt_cv_sys_global_symbol_to_cdecl=
9492fi
9493if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9494 { echo "$as_me:$LINENO: result: failed" >&5
9495echo "${ECHO_T}failed" >&6; }
9496else
9497 { echo "$as_me:$LINENO: result: ok" >&5
9498echo "${ECHO_T}ok" >&6; }
9499fi
9500
9501
9502{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9503echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9504if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9508 libltdl_cv_preloaded_symbols=yes
9509 else
9510 libltdl_cv_preloaded_symbols=no
9511 fi
9512
9513fi
9514{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9515echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9516if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9517
9518cat >>confdefs.h <<\_ACEOF
9519#define HAVE_PRELOADED_SYMBOLS 1
9520_ACEOF
9521
9522fi
9523
9524LIBADD_DL=
9525
9526ac_ext=c
9527ac_cpp='$CPP $CPPFLAGS'
9528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9530ac_compiler_gnu=$ac_cv_c_compiler_gnu
9531
9532
9533{ echo "$as_me:$LINENO: checking for shl_load" >&5
9534echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9535if test "${ac_cv_func_shl_load+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538 cat >conftest.$ac_ext <<_ACEOF
9539/* confdefs.h. */
9540_ACEOF
9541cat confdefs.h >>conftest.$ac_ext
9542cat >>conftest.$ac_ext <<_ACEOF
9543/* end confdefs.h. */
9544/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9546#define shl_load innocuous_shl_load
9547
9548/* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char shl_load (); below.
9550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 <limits.h> exists even on freestanding compilers. */
9552
9553#ifdef __STDC__
9554# include <limits.h>
9555#else
9556# include <assert.h>
9557#endif
9558
9559#undef shl_load
9560
9561/* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9564#ifdef __cplusplus
9565extern "C"
9566#endif
9567char shl_load ();
9568/* The GNU C library defines this for functions which it implements
9569 to always fail with ENOSYS. Some functions are actually named
9570 something starting with __ and the normal name is an alias. */
9571#if defined __stub_shl_load || defined __stub___shl_load
9572choke me
9573#endif
9574
9575int
9576main ()
9577{
9578return shl_load ();
9579 ;
9580 return 0;
9581}
9582_ACEOF
9583rm -f conftest.$ac_objext conftest$ac_exeext
9584if { (ac_try="$ac_link"
9585case "(($ac_try" in
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9588esac
9589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_link") 2>conftest.er1
9591 ac_status=$?
9592 grep -v '^ *+' conftest.er1 >conftest.err
9593 rm -f conftest.er1
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601esac
9602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; } &&
9607 { ac_try='test -s conftest$ac_exeext'
9608 { (case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611esac
9612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_try") 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; }; then
9617 ac_cv_func_shl_load=yes
9618else
9619 echo "$as_me: failed program was:" >&5
9620sed 's/^/| /' conftest.$ac_ext >&5
9621
9622 ac_cv_func_shl_load=no
9623fi
9624
9625rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627fi
9628{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9629echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9630if test $ac_cv_func_shl_load = yes; then
9631
9632cat >>confdefs.h <<\_ACEOF
9633#define HAVE_SHL_LOAD 1
9634_ACEOF
9635
9636else
9637 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9638echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9639if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641else
9642 ac_check_lib_save_LIBS=$LIBS
9643LIBS="-ldld $LIBS"
9644cat >conftest.$ac_ext <<_ACEOF
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
9650
9651/* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654#ifdef __cplusplus
9655extern "C"
9656#endif
9657char shl_load ();
9658int
9659main ()
9660{
9661return shl_load ();
9662 ;
9663 return 0;
9664}
9665_ACEOF
9666rm -f conftest.$ac_objext conftest$ac_exeext
9667if { (ac_try="$ac_link"
9668case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671esac
9672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9681 { (case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9684esac
9685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_try") 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest$ac_exeext'
9691 { (case "(($ac_try" in
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9694esac
9695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_try") 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_cv_lib_dld_shl_load=yes
9701else
9702 echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_cv_lib_dld_shl_load=no
9706fi
9707
9708rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710LIBS=$ac_check_lib_save_LIBS
9711fi
9712{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9713echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9714if test $ac_cv_lib_dld_shl_load = yes; then
9715
9716cat >>confdefs.h <<\_ACEOF
9717#define HAVE_SHL_LOAD 1
9718_ACEOF
9719
9720 LIBADD_DL="$LIBADD_DL -ldld"
9721else
9722 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9723echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9724if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726else
9727 ac_check_lib_save_LIBS=$LIBS
9728LIBS="-ldl $LIBS"
9729cat >conftest.$ac_ext <<_ACEOF
9730/* confdefs.h. */
9731_ACEOF
9732cat confdefs.h >>conftest.$ac_ext
9733cat >>conftest.$ac_ext <<_ACEOF
9734/* end confdefs.h. */
9735
9736/* Override any GCC internal prototype to avoid an error.
9737 Use char because int might match the return type of a GCC
9738 builtin and then its argument prototype would still apply. */
9739#ifdef __cplusplus
9740extern "C"
9741#endif
9742char dlopen ();
9743int
9744main ()
9745{
9746return dlopen ();
9747 ;
9748 return 0;
9749}
9750_ACEOF
9751rm -f conftest.$ac_objext conftest$ac_exeext
9752if { (ac_try="$ac_link"
9753case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9756esac
9757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_link") 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9766 { (case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769esac
9770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_try") 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779esac
9780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_try") 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; }; then
9785 ac_cv_lib_dl_dlopen=yes
9786else
9787 echo "$as_me: failed program was:" >&5
9788sed 's/^/| /' conftest.$ac_ext >&5
9789
9790 ac_cv_lib_dl_dlopen=no
9791fi
9792
9793rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795LIBS=$ac_check_lib_save_LIBS
9796fi
9797{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9798echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9799if test $ac_cv_lib_dl_dlopen = yes; then
9800
9801cat >>confdefs.h <<\_ACEOF
9802#define HAVE_LIBDL 1
9803_ACEOF
9804
9805 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9806else
9807 cat >conftest.$ac_ext <<_ACEOF
9808/* confdefs.h. */
9809_ACEOF
9810cat confdefs.h >>conftest.$ac_ext
9811cat >>conftest.$ac_ext <<_ACEOF
9812/* end confdefs.h. */
9813#if HAVE_DLFCN_H
9814# include <dlfcn.h>
9815#endif
9816
9817int
9818main ()
9819{
9820dlopen(0, 0);
9821 ;
9822 return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext conftest$ac_exeext
9826if { (ac_try="$ac_link"
9827case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830esac
9831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_link") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9840 { (case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843esac
9844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_try") 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; } &&
9849 { ac_try='test -s conftest$ac_exeext'
9850 { (case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853esac
9854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_try") 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859
9860cat >>confdefs.h <<\_ACEOF
9861#define HAVE_LIBDL 1
9862_ACEOF
9863 libltdl_cv_func_dlopen="yes"
9864else
9865 echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9869echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9870if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872else
9873 ac_check_lib_save_LIBS=$LIBS
9874LIBS="-lsvld $LIBS"
9875cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
9881
9882/* Override any GCC internal prototype to avoid an error.
9883 Use char because int might match the return type of a GCC
9884 builtin and then its argument prototype would still apply. */
9885#ifdef __cplusplus
9886extern "C"
9887#endif
9888char dlopen ();
9889int
9890main ()
9891{
9892return dlopen ();
9893 ;
9894 return 0;
9895}
9896_ACEOF
9897rm -f conftest.$ac_objext conftest$ac_exeext
9898if { (ac_try="$ac_link"
9899case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902esac
9903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925esac
9926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_try") 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_lib_svld_dlopen=yes
9932else
9933 echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 ac_cv_lib_svld_dlopen=no
9937fi
9938
9939rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941LIBS=$ac_check_lib_save_LIBS
9942fi
9943{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9944echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9945if test $ac_cv_lib_svld_dlopen = yes; then
9946
9947cat >>confdefs.h <<\_ACEOF
9948#define HAVE_LIBDL 1
9949_ACEOF
9950
9951 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9952else
9953 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9954echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9955if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957else
9958 ac_check_lib_save_LIBS=$LIBS
9959LIBS="-ldld $LIBS"
9960cat >conftest.$ac_ext <<_ACEOF
9961/* confdefs.h. */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
9965/* end confdefs.h. */
9966
9967/* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9970#ifdef __cplusplus
9971extern "C"
9972#endif
9973char dld_link ();
9974int
9975main ()
9976{
9977return dld_link ();
9978 ;
9979 return 0;
9980}
9981_ACEOF
9982rm -f conftest.$ac_objext conftest$ac_exeext
9983if { (ac_try="$ac_link"
9984case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987esac
9988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_link") 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9997 { (case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000esac
10001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_try") 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; } &&
10006 { ac_try='test -s conftest$ac_exeext'
10007 { (case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010esac
10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_try") 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; }; then
10016 ac_cv_lib_dld_dld_link=yes
10017else
10018 echo "$as_me: failed program was:" >&5
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_cv_lib_dld_dld_link=no
10022fi
10023
10024rm -f core conftest.err conftest.$ac_objext \
10025 conftest$ac_exeext conftest.$ac_ext
10026LIBS=$ac_check_lib_save_LIBS
10027fi
10028{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10029echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10030if test $ac_cv_lib_dld_dld_link = yes; then
10031
10032cat >>confdefs.h <<\_ACEOF
10033#define HAVE_DLD 1
10034_ACEOF
10035
10036 LIBADD_DL="$LIBADD_DL -ldld"
10037else
10038 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10039echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10040if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042else
10043 cat >conftest.$ac_ext <<_ACEOF
10044/* confdefs.h. */
10045_ACEOF
10046cat confdefs.h >>conftest.$ac_ext
10047cat >>conftest.$ac_ext <<_ACEOF
10048/* end confdefs.h. */
10049/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10051#define _dyld_func_lookup innocuous__dyld_func_lookup
10052
10053/* System header to define __stub macros and hopefully few prototypes,
10054 which can conflict with char _dyld_func_lookup (); below.
10055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10056 <limits.h> exists even on freestanding compilers. */
10057
10058#ifdef __STDC__
10059# include <limits.h>
10060#else
10061# include <assert.h>
10062#endif
10063
10064#undef _dyld_func_lookup
10065
10066/* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
10069#ifdef __cplusplus
10070extern "C"
10071#endif
10072char _dyld_func_lookup ();
10073/* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10077choke me
10078#endif
10079
10080int
10081main ()
10082{
10083return _dyld_func_lookup ();
10084 ;
10085 return 0;
10086}
10087_ACEOF
10088rm -f conftest.$ac_objext conftest$ac_exeext
10089if { (ac_try="$ac_link"
10090case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10093esac
10094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_link") 2>conftest.er1
10096 ac_status=$?
10097 grep -v '^ *+' conftest.er1 >conftest.err
10098 rm -f conftest.er1
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10103 { (case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10106esac
10107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_try") 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; } &&
10112 { ac_try='test -s conftest$ac_exeext'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10116esac
10117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_cv_func__dyld_func_lookup=yes
10123else
10124 echo "$as_me: failed program was:" >&5
10125sed 's/^/| /' conftest.$ac_ext >&5
10126
10127 ac_cv_func__dyld_func_lookup=no
10128fi
10129
10130rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132fi
10133{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10134echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10135if test $ac_cv_func__dyld_func_lookup = yes; then
10136
10137cat >>confdefs.h <<\_ACEOF
10138#define HAVE_DYLD 1
10139_ACEOF
10140
10141fi
10142
10143
10144fi
10145
10146
10147fi
10148
10149
10150fi
10151
10152rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10154
10155fi
10156
10157
10158fi
10159
10160
10161fi
10162
10163
10164if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10165then
10166 lt_save_LIBS="$LIBS"
10167 LIBS="$LIBS $LIBADD_DL"
10168
10169for ac_func in dlerror
10170do
10171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10172{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10174if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10176else
10177 cat >conftest.$ac_ext <<_ACEOF
10178/* confdefs.h. */
10179_ACEOF
10180cat confdefs.h >>conftest.$ac_ext
10181cat >>conftest.$ac_ext <<_ACEOF
10182/* end confdefs.h. */
10183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10185#define $ac_func innocuous_$ac_func
10186
10187/* System header to define __stub macros and hopefully few prototypes,
10188 which can conflict with char $ac_func (); below.
10189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10190 <limits.h> exists even on freestanding compilers. */
10191
10192#ifdef __STDC__
10193# include <limits.h>
10194#else
10195# include <assert.h>
10196#endif
10197
10198#undef $ac_func
10199
10200/* Override any GCC internal prototype to avoid an error.
10201 Use char because int might match the return type of a GCC
10202 builtin and then its argument prototype would still apply. */
10203#ifdef __cplusplus
10204extern "C"
10205#endif
10206char $ac_func ();
10207/* The GNU C library defines this for functions which it implements
10208 to always fail with ENOSYS. Some functions are actually named
10209 something starting with __ and the normal name is an alias. */
10210#if defined __stub_$ac_func || defined __stub___$ac_func
10211choke me
10212#endif
10213
10214int
10215main ()
10216{
10217return $ac_func ();
10218 ;
10219 return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext conftest$ac_exeext
10223if { (ac_try="$ac_link"
10224case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10227esac
10228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_link") 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10237 { (case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10240esac
10241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_try") 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest$ac_exeext'
10247 { (case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250esac
10251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_try") 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10256 eval "$as_ac_var=yes"
10257else
10258 echo "$as_me: failed program was:" >&5
10259sed 's/^/| /' conftest.$ac_ext >&5
10260
10261 eval "$as_ac_var=no"
10262fi
10263
10264rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266fi
10267ac_res=`eval echo '${'$as_ac_var'}'`
10268 { echo "$as_me:$LINENO: result: $ac_res" >&5
10269echo "${ECHO_T}$ac_res" >&6; }
10270if test `eval echo '${'$as_ac_var'}'` = yes; then
10271 cat >>confdefs.h <<_ACEOF
10272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10273_ACEOF
10274
10275fi
10276done
10277
10278 LIBS="$lt_save_LIBS"
10279fi
10280ac_ext=c
10281ac_cpp='$CPP $CPPFLAGS'
10282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10284ac_compiler_gnu=$ac_cv_c_compiler_gnu
10285
10286
10287
10288{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10289echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10290if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293 ac_cv_sys_symbol_underscore=no
10294 cat > conftest.$ac_ext <<EOF
10295void nm_test_func(){}
10296int main(){nm_test_func;return 0;}
10297EOF
10298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299 (eval $ac_compile) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; then
10303 # Now try to grab the symbols.
10304 ac_nlist=conftest.nm
10305 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10306 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } && test -s "$ac_nlist"; then
10310 # See whether the symbols have a leading underscore.
10311 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10312 ac_cv_sys_symbol_underscore=yes
10313 else
10314 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10315 :
10316 else
10317 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10318 fi
10319 fi
10320 else
10321 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10322 fi
10323 else
10324 echo "configure: failed program was:" >&5
10325 cat conftest.c >&5
10326 fi
10327 rm -rf conftest*
10328
10329fi
10330{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10331echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10332
10333
10334if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10335 if test x"$libltdl_cv_func_dlopen" = xyes ||
10336 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10337 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10338echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10339if test "${libltdl_cv_need_uscore+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10341else
10342 libltdl_cv_need_uscore=unknown
10343 save_LIBS="$LIBS"
10344 LIBS="$LIBS $LIBADD_DL"
10345 if test "$cross_compiling" = yes; then :
10346 libltdl_cv_need_uscore=cross
10347else
10348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10349 lt_status=$lt_dlunknown
10350 cat > conftest.$ac_ext <<EOF
Eric Christopher1a352922012-11-14 22:13:56 +000010351#line 10351 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010352#include "confdefs.h"
10353
10354#if HAVE_DLFCN_H
10355#include <dlfcn.h>
10356#endif
10357
10358#include <stdio.h>
10359
10360#ifdef RTLD_GLOBAL
10361# define LT_DLGLOBAL RTLD_GLOBAL
10362#else
10363# ifdef DL_GLOBAL
10364# define LT_DLGLOBAL DL_GLOBAL
10365# else
10366# define LT_DLGLOBAL 0
10367# endif
10368#endif
10369
10370/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10371 find out it does not work in some platform. */
10372#ifndef LT_DLLAZY_OR_NOW
10373# ifdef RTLD_LAZY
10374# define LT_DLLAZY_OR_NOW RTLD_LAZY
10375# else
10376# ifdef DL_LAZY
10377# define LT_DLLAZY_OR_NOW DL_LAZY
10378# else
10379# ifdef RTLD_NOW
10380# define LT_DLLAZY_OR_NOW RTLD_NOW
10381# else
10382# ifdef DL_NOW
10383# define LT_DLLAZY_OR_NOW DL_NOW
10384# else
10385# define LT_DLLAZY_OR_NOW 0
10386# endif
10387# endif
10388# endif
10389# endif
10390#endif
10391
10392#ifdef __cplusplus
10393extern "C" void exit (int);
10394#endif
10395
10396void fnord() { int i=42;}
10397int main ()
10398{
10399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10400 int status = $lt_dlunknown;
10401
10402 if (self)
10403 {
10404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10405 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10406 /* dlclose (self); */
10407 }
10408 else
10409 puts (dlerror ());
10410
10411 exit (status);
10412}
10413EOF
10414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10415 (eval $ac_link) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10419 (./conftest; exit; ) >&5 2>/dev/null
10420 lt_status=$?
10421 case x$lt_status in
10422 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10423 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10424 x$lt_dlunknown|x*) ;;
10425 esac
10426 else :
10427 # compilation failed
10428
10429 fi
10430fi
10431rm -fr conftest*
10432
10433 LIBS="$save_LIBS"
10434
10435fi
10436{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10437echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10438 fi
10439fi
10440
10441if test x"$libltdl_cv_need_uscore" = xyes; then
10442
10443cat >>confdefs.h <<\_ACEOF
10444#define NEED_USCORE 1
10445_ACEOF
10446
10447fi
10448
10449
10450{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10451echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10452if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455 # PORTME does your system automatically load deplibs for dlopen?
10456 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10457 # For now, we just catch OSes we know something about -- in the
10458 # future, we'll try test this programmatically.
10459 libltdl_cv_sys_dlopen_deplibs=unknown
10460 case "$host_os" in
10461 aix3*|aix4.1.*|aix4.2.*)
10462 # Unknown whether this is true for these versions of AIX, but
10463 # we want this `case' here to explicitly catch those versions.
10464 libltdl_cv_sys_dlopen_deplibs=unknown
10465 ;;
10466 aix[45]*)
10467 libltdl_cv_sys_dlopen_deplibs=yes
10468 ;;
10469 darwin*)
10470 # Assuming the user has installed a libdl from somewhere, this is true
10471 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10472 libltdl_cv_sys_dlopen_deplibs=yes
10473 ;;
10474 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10475 # GNU and its variants, using gnu ld.so (Glibc)
10476 libltdl_cv_sys_dlopen_deplibs=yes
10477 ;;
10478 hpux10*|hpux11*)
10479 libltdl_cv_sys_dlopen_deplibs=yes
10480 ;;
10481 interix*)
10482 libltdl_cv_sys_dlopen_deplibs=yes
10483 ;;
10484 irix[12345]*|irix6.[01]*)
10485 # Catch all versions of IRIX before 6.2, and indicate that we don't
10486 # know how it worked for any of those versions.
10487 libltdl_cv_sys_dlopen_deplibs=unknown
10488 ;;
10489 irix*)
10490 # The case above catches anything before 6.2, and it's known that
10491 # at 6.2 and later dlopen does load deplibs.
10492 libltdl_cv_sys_dlopen_deplibs=yes
10493 ;;
10494 netbsd*)
10495 libltdl_cv_sys_dlopen_deplibs=yes
10496 ;;
10497 openbsd*)
10498 libltdl_cv_sys_dlopen_deplibs=yes
10499 ;;
10500 osf[1234]*)
10501 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10502 # it did *not* use an RPATH in a shared library to find objects the
10503 # library depends on, so we explicitly say `no'.
10504 libltdl_cv_sys_dlopen_deplibs=no
10505 ;;
10506 osf5.0|osf5.0a|osf5.1)
10507 # dlopen *does* load deplibs and with the right loader patch applied
10508 # it even uses RPATH in a shared library to search for shared objects
10509 # that the library depends on, but there's no easy way to know if that
10510 # patch is installed. Since this is the case, all we can really
10511 # say is unknown -- it depends on the patch being installed. If
10512 # it is, this changes to `yes'. Without it, it would be `no'.
10513 libltdl_cv_sys_dlopen_deplibs=unknown
10514 ;;
10515 osf*)
10516 # the two cases above should catch all versions of osf <= 5.1. Read
10517 # the comments above for what we know about them.
10518 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10519 # is used to find them so we can finally say `yes'.
10520 libltdl_cv_sys_dlopen_deplibs=yes
10521 ;;
10522 solaris*)
10523 libltdl_cv_sys_dlopen_deplibs=yes
10524 ;;
10525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10526 libltdl_cv_sys_dlopen_deplibs=yes
10527 ;;
10528 esac
10529
10530fi
10531{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10532echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10533if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10534
10535cat >>confdefs.h <<\_ACEOF
10536#define LTDL_DLOPEN_DEPLIBS 1
10537_ACEOF
10538
10539fi
10540
10541
10542for ac_header in argz.h
10543do
10544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10550fi
10551ac_res=`eval echo '${'$as_ac_Header'}'`
10552 { echo "$as_me:$LINENO: result: $ac_res" >&5
10553echo "${ECHO_T}$ac_res" >&6; }
10554else
10555 # Is the header compilable?
10556{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10557echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
10565#include <$ac_header>
10566_ACEOF
10567rm -f conftest.$ac_objext
10568if { (ac_try="$ac_compile"
10569case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_compile") 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10582 { (case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585esac
10586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_try") 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest.$ac_objext'
10592 { (case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595esac
10596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_try") 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_header_compiler=yes
10602else
10603 echo "$as_me: failed program was:" >&5
10604sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 ac_header_compiler=no
10607fi
10608
10609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10611echo "${ECHO_T}$ac_header_compiler" >&6; }
10612
10613# Is the header present?
10614{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10615echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10616cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h. */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h. */
10622#include <$ac_header>
10623_ACEOF
10624if { (ac_try="$ac_cpp conftest.$ac_ext"
10625case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628esac
10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } >/dev/null; then
10637 if test -s conftest.err; then
10638 ac_cpp_err=$ac_c_preproc_warn_flag
10639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10640 else
10641 ac_cpp_err=
10642 fi
10643else
10644 ac_cpp_err=yes
10645fi
10646if test -z "$ac_cpp_err"; then
10647 ac_header_preproc=yes
10648else
10649 echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_header_preproc=no
10653fi
10654
10655rm -f conftest.err conftest.$ac_ext
10656{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10657echo "${ECHO_T}$ac_header_preproc" >&6; }
10658
10659# So? What about this header?
10660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10661 yes:no: )
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10666 ac_header_preproc=yes
10667 ;;
10668 no:yes:* )
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10681 ( cat <<\_ASBOX
10682## ------------------------------ ##
10683## Report this to bugs@yourdomain ##
10684## ------------------------------ ##
10685_ASBOX
10686 ) | sed "s/^/$as_me: WARNING: /" >&2
10687 ;;
10688esac
10689{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693else
10694 eval "$as_ac_Header=\$ac_header_preproc"
10695fi
10696ac_res=`eval echo '${'$as_ac_Header'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698echo "${ECHO_T}$ac_res" >&6; }
10699
10700fi
10701if test `eval echo '${'$as_ac_Header'}'` = yes; then
10702 cat >>confdefs.h <<_ACEOF
10703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10704_ACEOF
10705
10706fi
10707
10708done
10709
10710
10711{ echo "$as_me:$LINENO: checking for error_t" >&5
10712echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10713if test "${ac_cv_type_error_t+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716 cat >conftest.$ac_ext <<_ACEOF
10717/* confdefs.h. */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h. */
10722#if HAVE_ARGZ_H
10723# include <argz.h>
10724#endif
10725
10726typedef error_t ac__type_new_;
10727int
10728main ()
10729{
10730if ((ac__type_new_ *) 0)
10731 return 0;
10732if (sizeof (ac__type_new_))
10733 return 0;
10734 ;
10735 return 0;
10736}
10737_ACEOF
10738rm -f conftest.$ac_objext
10739if { (ac_try="$ac_compile"
10740case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10743esac
10744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745 (eval "$ac_compile") 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753 { (case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756esac
10757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_try") 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; } &&
10762 { ac_try='test -s conftest.$ac_objext'
10763 { (case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766esac
10767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_try") 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10772 ac_cv_type_error_t=yes
10773else
10774 echo "$as_me: failed program was:" >&5
10775sed 's/^/| /' conftest.$ac_ext >&5
10776
10777 ac_cv_type_error_t=no
10778fi
10779
10780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10781fi
10782{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10783echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10784if test $ac_cv_type_error_t = yes; then
10785
10786cat >>confdefs.h <<_ACEOF
10787#define HAVE_ERROR_T 1
10788_ACEOF
10789
10790
10791else
10792
10793cat >>confdefs.h <<\_ACEOF
10794#define error_t int
10795_ACEOF
10796
10797fi
10798
10799
10800
10801
10802
10803
10804
10805for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10806do
10807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10808{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10810if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812else
10813 cat >conftest.$ac_ext <<_ACEOF
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10821#define $ac_func innocuous_$ac_func
10822
10823/* System header to define __stub macros and hopefully few prototypes,
10824 which can conflict with char $ac_func (); below.
10825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10826 <limits.h> exists even on freestanding compilers. */
10827
10828#ifdef __STDC__
10829# include <limits.h>
10830#else
10831# include <assert.h>
10832#endif
10833
10834#undef $ac_func
10835
10836/* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10839#ifdef __cplusplus
10840extern "C"
10841#endif
10842char $ac_func ();
10843/* The GNU C library defines this for functions which it implements
10844 to always fail with ENOSYS. Some functions are actually named
10845 something starting with __ and the normal name is an alias. */
10846#if defined __stub_$ac_func || defined __stub___$ac_func
10847choke me
10848#endif
10849
10850int
10851main ()
10852{
10853return $ac_func ();
10854 ;
10855 return 0;
10856}
10857_ACEOF
10858rm -f conftest.$ac_objext conftest$ac_exeext
10859if { (ac_try="$ac_link"
10860case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863esac
10864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_link") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10873 { (case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_try") 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest$ac_exeext'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886esac
10887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; }; then
10892 eval "$as_ac_var=yes"
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 eval "$as_ac_var=no"
10898fi
10899
10900rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902fi
10903ac_res=`eval echo '${'$as_ac_var'}'`
10904 { echo "$as_me:$LINENO: result: $ac_res" >&5
10905echo "${ECHO_T}$ac_res" >&6; }
10906if test `eval echo '${'$as_ac_var'}'` = yes; then
10907 cat >>confdefs.h <<_ACEOF
10908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10909_ACEOF
10910
10911fi
10912done
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10942 stdio.h unistd.h
10943do
10944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950fi
10951ac_res=`eval echo '${'$as_ac_Header'}'`
10952 { echo "$as_me:$LINENO: result: $ac_res" >&5
10953echo "${ECHO_T}$ac_res" >&6; }
10954else
10955 # Is the header compilable?
10956{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10957echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
10965#include <$ac_header>
10966_ACEOF
10967rm -f conftest.$ac_objext
10968if { (ac_try="$ac_compile"
10969case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10972esac
10973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_compile") 2>conftest.er1
10975 ac_status=$?
10976 grep -v '^ *+' conftest.er1 >conftest.err
10977 rm -f conftest.er1
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985esac
10986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest.$ac_objext'
10992 { (case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10995esac
10996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_try") 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_header_compiler=yes
11002else
11003 echo "$as_me: failed program was:" >&5
11004sed 's/^/| /' conftest.$ac_ext >&5
11005
11006 ac_header_compiler=no
11007fi
11008
11009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11011echo "${ECHO_T}$ac_header_compiler" >&6; }
11012
11013# Is the header present?
11014{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11015echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11016cat >conftest.$ac_ext <<_ACEOF
11017/* confdefs.h. */
11018_ACEOF
11019cat confdefs.h >>conftest.$ac_ext
11020cat >>conftest.$ac_ext <<_ACEOF
11021/* end confdefs.h. */
11022#include <$ac_header>
11023_ACEOF
11024if { (ac_try="$ac_cpp conftest.$ac_ext"
11025case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } >/dev/null; then
11037 if test -s conftest.err; then
11038 ac_cpp_err=$ac_c_preproc_warn_flag
11039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11040 else
11041 ac_cpp_err=
11042 fi
11043else
11044 ac_cpp_err=yes
11045fi
11046if test -z "$ac_cpp_err"; then
11047 ac_header_preproc=yes
11048else
11049 echo "$as_me: failed program was:" >&5
11050sed 's/^/| /' conftest.$ac_ext >&5
11051
11052 ac_header_preproc=no
11053fi
11054
11055rm -f conftest.err conftest.$ac_ext
11056{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11057echo "${ECHO_T}$ac_header_preproc" >&6; }
11058
11059# So? What about this header?
11060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11061 yes:no: )
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11063echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11065echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11066 ac_header_preproc=yes
11067 ;;
11068 no:yes:* )
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11070echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11072echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11074echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11076echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11080echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11081 ( cat <<\_ASBOX
11082## ------------------------------ ##
11083## Report this to bugs@yourdomain ##
11084## ------------------------------ ##
11085_ASBOX
11086 ) | sed "s/^/$as_me: WARNING: /" >&2
11087 ;;
11088esac
11089{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093else
11094 eval "$as_ac_Header=\$ac_header_preproc"
11095fi
11096ac_res=`eval echo '${'$as_ac_Header'}'`
11097 { echo "$as_me:$LINENO: result: $ac_res" >&5
11098echo "${ECHO_T}$ac_res" >&6; }
11099
11100fi
11101if test `eval echo '${'$as_ac_Header'}'` = yes; then
11102 cat >>confdefs.h <<_ACEOF
11103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11104_ACEOF
11105
11106fi
11107
11108done
11109
11110
11111
11112
11113
11114for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11115do
11116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122fi
11123ac_res=`eval echo '${'$as_ac_Header'}'`
11124 { echo "$as_me:$LINENO: result: $ac_res" >&5
11125echo "${ECHO_T}$ac_res" >&6; }
11126else
11127 # Is the header compilable?
11128{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11129echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
11137#include <$ac_header>
11138_ACEOF
11139rm -f conftest.$ac_objext
11140if { (ac_try="$ac_compile"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_compile") 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157esac
11158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest.$ac_objext'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_header_compiler=yes
11174else
11175 echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_header_compiler=no
11179fi
11180
11181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11183echo "${ECHO_T}$ac_header_compiler" >&6; }
11184
11185# Is the header present?
11186{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11188cat >conftest.$ac_ext <<_ACEOF
11189/* confdefs.h. */
11190_ACEOF
11191cat confdefs.h >>conftest.$ac_ext
11192cat >>conftest.$ac_ext <<_ACEOF
11193/* end confdefs.h. */
11194#include <$ac_header>
11195_ACEOF
11196if { (ac_try="$ac_cpp conftest.$ac_ext"
11197case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200esac
11201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } >/dev/null; then
11209 if test -s conftest.err; then
11210 ac_cpp_err=$ac_c_preproc_warn_flag
11211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11212 else
11213 ac_cpp_err=
11214 fi
11215else
11216 ac_cpp_err=yes
11217fi
11218if test -z "$ac_cpp_err"; then
11219 ac_header_preproc=yes
11220else
11221 echo "$as_me: failed program was:" >&5
11222sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 ac_header_preproc=no
11225fi
11226
11227rm -f conftest.err conftest.$ac_ext
11228{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11229echo "${ECHO_T}$ac_header_preproc" >&6; }
11230
11231# So? What about this header?
11232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11233 yes:no: )
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11238 ac_header_preproc=yes
11239 ;;
11240 no:yes:* )
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11253 ( cat <<\_ASBOX
11254## ------------------------------ ##
11255## Report this to bugs@yourdomain ##
11256## ------------------------------ ##
11257_ASBOX
11258 ) | sed "s/^/$as_me: WARNING: /" >&2
11259 ;;
11260esac
11261{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265else
11266 eval "$as_ac_Header=\$ac_header_preproc"
11267fi
11268ac_res=`eval echo '${'$as_ac_Header'}'`
11269 { echo "$as_me:$LINENO: result: $ac_res" >&5
11270echo "${ECHO_T}$ac_res" >&6; }
11271
11272fi
11273if test `eval echo '${'$as_ac_Header'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11276_ACEOF
11277
11278fi
11279
11280done
11281
11282
11283
11284for ac_header in string.h strings.h
11285do
11286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292fi
11293ac_res=`eval echo '${'$as_ac_Header'}'`
11294 { echo "$as_me:$LINENO: result: $ac_res" >&5
11295echo "${ECHO_T}$ac_res" >&6; }
11296else
11297 # Is the header compilable?
11298{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11299echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
11307#include <$ac_header>
11308_ACEOF
11309rm -f conftest.$ac_objext
11310if { (ac_try="$ac_compile"
11311case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11314esac
11315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11324 { (case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327esac
11328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_try") 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest.$ac_objext'
11334 { (case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337esac
11338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_try") 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_header_compiler=yes
11344else
11345 echo "$as_me: failed program was:" >&5
11346sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 ac_header_compiler=no
11349fi
11350
11351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11353echo "${ECHO_T}$ac_header_compiler" >&6; }
11354
11355# Is the header present?
11356{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11358cat >conftest.$ac_ext <<_ACEOF
11359/* confdefs.h. */
11360_ACEOF
11361cat confdefs.h >>conftest.$ac_ext
11362cat >>conftest.$ac_ext <<_ACEOF
11363/* end confdefs.h. */
11364#include <$ac_header>
11365_ACEOF
11366if { (ac_try="$ac_cpp conftest.$ac_ext"
11367case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370esac
11371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } >/dev/null; then
11379 if test -s conftest.err; then
11380 ac_cpp_err=$ac_c_preproc_warn_flag
11381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11382 else
11383 ac_cpp_err=
11384 fi
11385else
11386 ac_cpp_err=yes
11387fi
11388if test -z "$ac_cpp_err"; then
11389 ac_header_preproc=yes
11390else
11391 echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_header_preproc=no
11395fi
11396
11397rm -f conftest.err conftest.$ac_ext
11398{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11399echo "${ECHO_T}$ac_header_preproc" >&6; }
11400
11401# So? What about this header?
11402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11403 yes:no: )
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11408 ac_header_preproc=yes
11409 ;;
11410 no:yes:* )
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11423 ( cat <<\_ASBOX
11424## ------------------------------ ##
11425## Report this to bugs@yourdomain ##
11426## ------------------------------ ##
11427_ASBOX
11428 ) | sed "s/^/$as_me: WARNING: /" >&2
11429 ;;
11430esac
11431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 eval "$as_ac_Header=\$ac_header_preproc"
11437fi
11438ac_res=`eval echo '${'$as_ac_Header'}'`
11439 { echo "$as_me:$LINENO: result: $ac_res" >&5
11440echo "${ECHO_T}$ac_res" >&6; }
11441
11442fi
11443if test `eval echo '${'$as_ac_Header'}'` = yes; then
11444 cat >>confdefs.h <<_ACEOF
11445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11446_ACEOF
11447 break
11448fi
11449
11450done
11451
11452
11453
11454
11455for ac_func in strchr index
11456do
11457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11458{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11460if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462else
11463 cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
11469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11471#define $ac_func innocuous_$ac_func
11472
11473/* System header to define __stub macros and hopefully few prototypes,
11474 which can conflict with char $ac_func (); below.
11475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11476 <limits.h> exists even on freestanding compilers. */
11477
11478#ifdef __STDC__
11479# include <limits.h>
11480#else
11481# include <assert.h>
11482#endif
11483
11484#undef $ac_func
11485
11486/* Override any GCC internal prototype to avoid an error.
11487 Use char because int might match the return type of a GCC
11488 builtin and then its argument prototype would still apply. */
11489#ifdef __cplusplus
11490extern "C"
11491#endif
11492char $ac_func ();
11493/* The GNU C library defines this for functions which it implements
11494 to always fail with ENOSYS. Some functions are actually named
11495 something starting with __ and the normal name is an alias. */
11496#if defined __stub_$ac_func || defined __stub___$ac_func
11497choke me
11498#endif
11499
11500int
11501main ()
11502{
11503return $ac_func ();
11504 ;
11505 return 0;
11506}
11507_ACEOF
11508rm -f conftest.$ac_objext conftest$ac_exeext
11509if { (ac_try="$ac_link"
11510case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11513esac
11514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_link") 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11523 { (case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526esac
11527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_try") 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; } &&
11532 { ac_try='test -s conftest$ac_exeext'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536esac
11537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 eval "$as_ac_var=yes"
11543else
11544 echo "$as_me: failed program was:" >&5
11545sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 eval "$as_ac_var=no"
11548fi
11549
11550rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552fi
11553ac_res=`eval echo '${'$as_ac_var'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555echo "${ECHO_T}$ac_res" >&6; }
11556if test `eval echo '${'$as_ac_var'}'` = yes; then
11557 cat >>confdefs.h <<_ACEOF
11558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11559_ACEOF
11560 break
11561fi
11562done
11563
11564
11565
11566for ac_func in strrchr rindex
11567do
11568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11569{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11571if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573else
11574 cat >conftest.$ac_ext <<_ACEOF
11575/* confdefs.h. */
11576_ACEOF
11577cat confdefs.h >>conftest.$ac_ext
11578cat >>conftest.$ac_ext <<_ACEOF
11579/* end confdefs.h. */
11580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11582#define $ac_func innocuous_$ac_func
11583
11584/* System header to define __stub macros and hopefully few prototypes,
11585 which can conflict with char $ac_func (); below.
11586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11587 <limits.h> exists even on freestanding compilers. */
11588
11589#ifdef __STDC__
11590# include <limits.h>
11591#else
11592# include <assert.h>
11593#endif
11594
11595#undef $ac_func
11596
11597/* Override any GCC internal prototype to avoid an error.
11598 Use char because int might match the return type of a GCC
11599 builtin and then its argument prototype would still apply. */
11600#ifdef __cplusplus
11601extern "C"
11602#endif
11603char $ac_func ();
11604/* The GNU C library defines this for functions which it implements
11605 to always fail with ENOSYS. Some functions are actually named
11606 something starting with __ and the normal name is an alias. */
11607#if defined __stub_$ac_func || defined __stub___$ac_func
11608choke me
11609#endif
11610
11611int
11612main ()
11613{
11614return $ac_func ();
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext conftest$ac_exeext
11620if { (ac_try="$ac_link"
11621case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624esac
11625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_link") 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } &&
11633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11634 { (case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11637esac
11638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639 (eval "$ac_try") 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try='test -s conftest$ac_exeext'
11644 { (case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11647esac
11648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_try") 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; }; then
11653 eval "$as_ac_var=yes"
11654else
11655 echo "$as_me: failed program was:" >&5
11656sed 's/^/| /' conftest.$ac_ext >&5
11657
11658 eval "$as_ac_var=no"
11659fi
11660
11661rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663fi
11664ac_res=`eval echo '${'$as_ac_var'}'`
11665 { echo "$as_me:$LINENO: result: $ac_res" >&5
11666echo "${ECHO_T}$ac_res" >&6; }
11667if test `eval echo '${'$as_ac_var'}'` = yes; then
11668 cat >>confdefs.h <<_ACEOF
11669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11670_ACEOF
11671 break
11672fi
11673done
11674
11675
11676
11677for ac_func in memcpy bcopy
11678do
11679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11680{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11682if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11684else
11685 cat >conftest.$ac_ext <<_ACEOF
11686/* confdefs.h. */
11687_ACEOF
11688cat confdefs.h >>conftest.$ac_ext
11689cat >>conftest.$ac_ext <<_ACEOF
11690/* end confdefs.h. */
11691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11693#define $ac_func innocuous_$ac_func
11694
11695/* System header to define __stub macros and hopefully few prototypes,
11696 which can conflict with char $ac_func (); below.
11697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11698 <limits.h> exists even on freestanding compilers. */
11699
11700#ifdef __STDC__
11701# include <limits.h>
11702#else
11703# include <assert.h>
11704#endif
11705
11706#undef $ac_func
11707
11708/* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
11711#ifdef __cplusplus
11712extern "C"
11713#endif
11714char $ac_func ();
11715/* The GNU C library defines this for functions which it implements
11716 to always fail with ENOSYS. Some functions are actually named
11717 something starting with __ and the normal name is an alias. */
11718#if defined __stub_$ac_func || defined __stub___$ac_func
11719choke me
11720#endif
11721
11722int
11723main ()
11724{
11725return $ac_func ();
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext conftest$ac_exeext
11731if { (ac_try="$ac_link"
11732case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11735esac
11736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748esac
11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest$ac_exeext'
11755 { (case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11758esac
11759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_try") 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 eval "$as_ac_var=yes"
11765else
11766 echo "$as_me: failed program was:" >&5
11767sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 eval "$as_ac_var=no"
11770fi
11771
11772rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11774fi
11775ac_res=`eval echo '${'$as_ac_var'}'`
11776 { echo "$as_me:$LINENO: result: $ac_res" >&5
11777echo "${ECHO_T}$ac_res" >&6; }
11778if test `eval echo '${'$as_ac_var'}'` = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11781_ACEOF
11782 break
11783fi
11784done
11785
11786
11787
11788for ac_func in memmove strcmp
11789do
11790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11791{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11793if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
11802/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11804#define $ac_func innocuous_$ac_func
11805
11806/* System header to define __stub macros and hopefully few prototypes,
11807 which can conflict with char $ac_func (); below.
11808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809 <limits.h> exists even on freestanding compilers. */
11810
11811#ifdef __STDC__
11812# include <limits.h>
11813#else
11814# include <assert.h>
11815#endif
11816
11817#undef $ac_func
11818
11819/* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822#ifdef __cplusplus
11823extern "C"
11824#endif
11825char $ac_func ();
11826/* The GNU C library defines this for functions which it implements
11827 to always fail with ENOSYS. Some functions are actually named
11828 something starting with __ and the normal name is an alias. */
11829#if defined __stub_$ac_func || defined __stub___$ac_func
11830choke me
11831#endif
11832
11833int
11834main ()
11835{
11836return $ac_func ();
11837 ;
11838 return 0;
11839}
11840_ACEOF
11841rm -f conftest.$ac_objext conftest$ac_exeext
11842if { (ac_try="$ac_link"
11843case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_link") 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869esac
11870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 eval "$as_ac_var=yes"
11876else
11877 echo "$as_me: failed program was:" >&5
11878sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 eval "$as_ac_var=no"
11881fi
11882
11883rm -f core conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11885fi
11886ac_res=`eval echo '${'$as_ac_var'}'`
11887 { echo "$as_me:$LINENO: result: $ac_res" >&5
11888echo "${ECHO_T}$ac_res" >&6; }
11889if test `eval echo '${'$as_ac_var'}'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11892_ACEOF
11893
11894fi
11895done
11896
11897
11898
11899
11900for ac_func in closedir opendir readdir
11901do
11902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11905if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907else
11908 cat >conftest.$ac_ext <<_ACEOF
11909/* confdefs.h. */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h. */
11914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916#define $ac_func innocuous_$ac_func
11917
11918/* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11922
11923#ifdef __STDC__
11924# include <limits.h>
11925#else
11926# include <assert.h>
11927#endif
11928
11929#undef $ac_func
11930
11931/* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934#ifdef __cplusplus
11935extern "C"
11936#endif
11937char $ac_func ();
11938/* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941#if defined __stub_$ac_func || defined __stub___$ac_func
11942choke me
11943#endif
11944
11945int
11946main ()
11947{
11948return $ac_func ();
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext conftest$ac_exeext
11954if { (ac_try="$ac_link"
11955case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958esac
11959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_link") 2>conftest.er1
11961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11968 { (case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11971esac
11972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_try") 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981esac
11982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_try") 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 eval "$as_ac_var=yes"
11988else
11989 echo "$as_me: failed program was:" >&5
11990sed 's/^/| /' conftest.$ac_ext >&5
11991
11992 eval "$as_ac_var=no"
11993fi
11994
11995rm -f core conftest.err conftest.$ac_objext \
11996 conftest$ac_exeext conftest.$ac_ext
11997fi
11998ac_res=`eval echo '${'$as_ac_var'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000echo "${ECHO_T}$ac_res" >&6; }
12001if test `eval echo '${'$as_ac_var'}'` = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12004_ACEOF
12005
12006fi
12007done
12008
12009
12010
12011{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12012echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12013
12014ICC=no
12015IXX=no
12016case $CC in
12017 icc*|icpc*)
12018 ICC=yes
12019 IXX=yes
12020 ;;
12021 *)
12022 ;;
12023esac
12024
12025if test "$GCC" != "yes" && test "$ICC" != "yes"
12026then
12027 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12028echo "$as_me: error: gcc|icc required but not found" >&2;}
12029 { (exit 1); exit 1; }; }
12030fi
12031
12032if test "$GXX" != "yes" && test "$IXX" != "yes"
12033then
12034 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12035echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12036 { (exit 1); exit 1; }; }
12037fi
12038
12039if test "$GCC" = "yes"
12040then
12041 cat >conftest.$ac_ext <<_ACEOF
12042#if !defined(__GNUC__) || __GNUC__ < 3
12043#error Unsupported GCC version
12044#endif
12045
12046_ACEOF
12047rm -f conftest.$ac_objext
12048if { (ac_try="$ac_compile"
12049case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12052esac
12053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054 (eval "$ac_compile") 2>conftest.er1
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12062 { (case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065esac
12066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_try") 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; } &&
12071 { ac_try='test -s conftest.$ac_objext'
12072 { (case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075esac
12076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_try") 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 :
12082else
12083 echo "$as_me: failed program was:" >&5
12084sed 's/^/| /' conftest.$ac_ext >&5
12085
12086 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12087echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12088 { (exit 1); exit 1; }; }
12089fi
12090
12091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092fi
12093
12094if test -z "$llvm_cv_gnu_make_command"
12095then
12096 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12097echo "$as_me: error: GNU Make required but not found" >&2;}
12098 { (exit 1); exit 1; }; }
12099fi
12100
12101{ echo "$as_me:$LINENO: result: ok" >&5
12102echo "${ECHO_T}ok" >&6; }
12103
12104{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12105echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012106NO_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 +000012107
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012108NO_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 +000012109
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012110COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12111
12112{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12113echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012114
12115
12116
12117{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12118echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12119if test "${ac_cv_lib_m_sin+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 ac_check_lib_save_LIBS=$LIBS
12123LIBS="-lm $LIBS"
12124cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h. */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h. */
12130
12131/* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12134#ifdef __cplusplus
12135extern "C"
12136#endif
12137char sin ();
12138int
12139main ()
12140{
12141return sin ();
12142 ;
12143 return 0;
12144}
12145_ACEOF
12146rm -f conftest.$ac_objext conftest$ac_exeext
12147if { (ac_try="$ac_link"
12148case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12151esac
12152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_link") 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161 { (case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12164esac
12165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_try") 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest$ac_exeext'
12171 { (case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12174esac
12175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_try") 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 ac_cv_lib_m_sin=yes
12181else
12182 echo "$as_me: failed program was:" >&5
12183sed 's/^/| /' conftest.$ac_ext >&5
12184
12185 ac_cv_lib_m_sin=no
12186fi
12187
12188rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190LIBS=$ac_check_lib_save_LIBS
12191fi
12192{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12193echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12194if test $ac_cv_lib_m_sin = yes; then
12195 cat >>confdefs.h <<_ACEOF
12196#define HAVE_LIBM 1
12197_ACEOF
12198
12199 LIBS="-lm $LIBS"
12200
12201fi
12202
12203if test "$llvm_cv_os_type" = "MingW" ; then
12204
12205{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12206echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12207if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210 ac_check_lib_save_LIBS=$LIBS
12211LIBS="-limagehlp $LIBS"
12212cat >conftest.$ac_ext <<_ACEOF
12213/* confdefs.h. */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h. */
12218
12219
12220int
12221main ()
12222{
12223return main ();
12224 ;
12225 return 0;
12226}
12227_ACEOF
12228rm -f conftest.$ac_objext conftest$ac_exeext
12229if { (ac_try="$ac_link"
12230case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12233esac
12234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_link") 2>conftest.er1
12236 ac_status=$?
12237 grep -v '^ *+' conftest.er1 >conftest.err
12238 rm -f conftest.er1
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12243 { (case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246esac
12247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_try") 2>&5
12249 ac_status=$?
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; } &&
12252 { ac_try='test -s conftest$ac_exeext'
12253 { (case "(($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_try") 2>&5
12259 ac_status=$?
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; }; then
12262 ac_cv_lib_imagehlp_main=yes
12263else
12264 echo "$as_me: failed program was:" >&5
12265sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 ac_cv_lib_imagehlp_main=no
12268fi
12269
12270rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272LIBS=$ac_check_lib_save_LIBS
12273fi
12274{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12275echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12276if test $ac_cv_lib_imagehlp_main = yes; then
12277 cat >>confdefs.h <<_ACEOF
12278#define HAVE_LIBIMAGEHLP 1
12279_ACEOF
12280
12281 LIBS="-limagehlp $LIBS"
12282
12283fi
12284
12285
12286{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12287echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12288if test "${ac_cv_lib_psapi_main+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290else
12291 ac_check_lib_save_LIBS=$LIBS
12292LIBS="-lpsapi $LIBS"
12293cat >conftest.$ac_ext <<_ACEOF
12294/* confdefs.h. */
12295_ACEOF
12296cat confdefs.h >>conftest.$ac_ext
12297cat >>conftest.$ac_ext <<_ACEOF
12298/* end confdefs.h. */
12299
12300
12301int
12302main ()
12303{
12304return main ();
12305 ;
12306 return 0;
12307}
12308_ACEOF
12309rm -f conftest.$ac_objext conftest$ac_exeext
12310if { (ac_try="$ac_link"
12311case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_link") 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12324 { (case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327esac
12328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_try") 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest$ac_exeext'
12334 { (case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12337esac
12338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_try") 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_lib_psapi_main=yes
12344else
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
12348 ac_cv_lib_psapi_main=no
12349fi
12350
12351rm -f core conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353LIBS=$ac_check_lib_save_LIBS
12354fi
12355{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12356echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12357if test $ac_cv_lib_psapi_main = yes; then
12358 cat >>confdefs.h <<_ACEOF
12359#define HAVE_LIBPSAPI 1
12360_ACEOF
12361
12362 LIBS="-lpsapi $LIBS"
12363
12364fi
12365
12366fi
12367
12368{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12369echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12370if test "${ac_cv_search_dlopen+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372else
12373 ac_func_search_save_LIBS=$LIBS
12374cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
12380
12381/* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12384#ifdef __cplusplus
12385extern "C"
12386#endif
12387char dlopen ();
12388int
12389main ()
12390{
12391return dlopen ();
12392 ;
12393 return 0;
12394}
12395_ACEOF
12396for ac_lib in '' dl; do
12397 if test -z "$ac_lib"; then
12398 ac_res="none required"
12399 else
12400 ac_res=-l$ac_lib
12401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12402 fi
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404if { (ac_try="$ac_link"
12405case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12408esac
12409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_link") 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421esac
12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest$ac_exeext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431esac
12432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_search_dlopen=$ac_res
12438else
12439 echo "$as_me: failed program was:" >&5
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
12442
12443fi
12444
12445rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext
12447 if test "${ac_cv_search_dlopen+set}" = set; then
12448 break
12449fi
12450done
12451if test "${ac_cv_search_dlopen+set}" = set; then
12452 :
12453else
12454 ac_cv_search_dlopen=no
12455fi
12456rm conftest.$ac_ext
12457LIBS=$ac_func_search_save_LIBS
12458fi
12459{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12460echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12461ac_res=$ac_cv_search_dlopen
12462if test "$ac_res" != no; then
12463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12464
12465cat >>confdefs.h <<\_ACEOF
12466#define HAVE_DLOPEN 1
12467_ACEOF
12468
12469else
12470 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12471echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12472fi
12473
12474
12475if test "$llvm_cv_enable_libffi" = "yes" ; then
12476 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12477echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12478if test "${ac_cv_search_ffi_call+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480else
12481 ac_func_search_save_LIBS=$LIBS
12482cat >conftest.$ac_ext <<_ACEOF
12483/* confdefs.h. */
12484_ACEOF
12485cat confdefs.h >>conftest.$ac_ext
12486cat >>conftest.$ac_ext <<_ACEOF
12487/* end confdefs.h. */
12488
12489/* Override any GCC internal prototype to avoid an error.
12490 Use char because int might match the return type of a GCC
12491 builtin and then its argument prototype would still apply. */
12492#ifdef __cplusplus
12493extern "C"
12494#endif
12495char ffi_call ();
12496int
12497main ()
12498{
12499return ffi_call ();
12500 ;
12501 return 0;
12502}
12503_ACEOF
12504for ac_lib in '' ffi; do
12505 if test -z "$ac_lib"; then
12506 ac_res="none required"
12507 else
12508 ac_res=-l$ac_lib
12509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12510 fi
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512if { (ac_try="$ac_link"
12513case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12516esac
12517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_link") 2>conftest.er1
12519 ac_status=$?
12520 grep -v '^ *+' conftest.er1 >conftest.err
12521 rm -f conftest.er1
12522 cat conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } &&
12525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12526 { (case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529esac
12530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_try") 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest$ac_exeext'
12536 { (case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12539esac
12540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_try") 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_cv_search_ffi_call=$ac_res
12546else
12547 echo "$as_me: failed program was:" >&5
12548sed 's/^/| /' conftest.$ac_ext >&5
12549
12550
12551fi
12552
12553rm -f core conftest.err conftest.$ac_objext \
12554 conftest$ac_exeext
12555 if test "${ac_cv_search_ffi_call+set}" = set; then
12556 break
12557fi
12558done
12559if test "${ac_cv_search_ffi_call+set}" = set; then
12560 :
12561else
12562 ac_cv_search_ffi_call=no
12563fi
12564rm conftest.$ac_ext
12565LIBS=$ac_func_search_save_LIBS
12566fi
12567{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12568echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12569ac_res=$ac_cv_search_ffi_call
12570if test "$ac_res" != no; then
12571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12572
12573cat >>confdefs.h <<\_ACEOF
12574#define HAVE_FFI_CALL 1
12575_ACEOF
12576
12577else
12578 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12579echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12580 { (exit 1); exit 1; }; }
12581fi
12582
12583fi
12584
12585{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12586echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12587if test "${ac_cv_search_mallinfo+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12589else
12590 ac_func_search_save_LIBS=$LIBS
12591cat >conftest.$ac_ext <<_ACEOF
12592/* confdefs.h. */
12593_ACEOF
12594cat confdefs.h >>conftest.$ac_ext
12595cat >>conftest.$ac_ext <<_ACEOF
12596/* end confdefs.h. */
12597
12598/* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12601#ifdef __cplusplus
12602extern "C"
12603#endif
12604char mallinfo ();
12605int
12606main ()
12607{
12608return mallinfo ();
12609 ;
12610 return 0;
12611}
12612_ACEOF
12613for ac_lib in '' malloc; do
12614 if test -z "$ac_lib"; then
12615 ac_res="none required"
12616 else
12617 ac_res=-l$ac_lib
12618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12619 fi
12620 rm -f conftest.$ac_objext conftest$ac_exeext
12621if { (ac_try="$ac_link"
12622case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12625esac
12626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_link") 2>conftest.er1
12628 ac_status=$?
12629 grep -v '^ *+' conftest.er1 >conftest.err
12630 rm -f conftest.er1
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638esac
12639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest$ac_exeext'
12645 { (case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648esac
12649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_try") 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_cv_search_mallinfo=$ac_res
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659
12660fi
12661
12662rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext
12664 if test "${ac_cv_search_mallinfo+set}" = set; then
12665 break
12666fi
12667done
12668if test "${ac_cv_search_mallinfo+set}" = set; then
12669 :
12670else
12671 ac_cv_search_mallinfo=no
12672fi
12673rm conftest.$ac_ext
12674LIBS=$ac_func_search_save_LIBS
12675fi
12676{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12677echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12678ac_res=$ac_cv_search_mallinfo
12679if test "$ac_res" != no; then
12680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12681
12682cat >>confdefs.h <<\_ACEOF
12683#define HAVE_MALLINFO 1
12684_ACEOF
12685
12686fi
12687
12688
12689if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12690
12691{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12692echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12693if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695else
12696 ac_check_lib_save_LIBS=$LIBS
12697LIBS="-lpthread $LIBS"
12698cat >conftest.$ac_ext <<_ACEOF
12699/* confdefs.h. */
12700_ACEOF
12701cat confdefs.h >>conftest.$ac_ext
12702cat >>conftest.$ac_ext <<_ACEOF
12703/* end confdefs.h. */
12704
12705/* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply. */
12708#ifdef __cplusplus
12709extern "C"
12710#endif
12711char pthread_mutex_init ();
12712int
12713main ()
12714{
12715return pthread_mutex_init ();
12716 ;
12717 return 0;
12718}
12719_ACEOF
12720rm -f conftest.$ac_objext conftest$ac_exeext
12721if { (ac_try="$ac_link"
12722case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12725esac
12726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727 (eval "$ac_link") 2>conftest.er1
12728 ac_status=$?
12729 grep -v '^ *+' conftest.er1 >conftest.err
12730 rm -f conftest.er1
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738esac
12739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; } &&
12744 { ac_try='test -s conftest$ac_exeext'
12745 { (case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12748esac
12749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_try") 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_cv_lib_pthread_pthread_mutex_init=yes
12755else
12756 echo "$as_me: failed program was:" >&5
12757sed 's/^/| /' conftest.$ac_ext >&5
12758
12759 ac_cv_lib_pthread_pthread_mutex_init=no
12760fi
12761
12762rm -f core conftest.err conftest.$ac_objext \
12763 conftest$ac_exeext conftest.$ac_ext
12764LIBS=$ac_check_lib_save_LIBS
12765fi
12766{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12767echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12768if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12769 cat >>confdefs.h <<_ACEOF
12770#define HAVE_LIBPTHREAD 1
12771_ACEOF
12772
12773 LIBS="-lpthread $LIBS"
12774
12775fi
12776
12777 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12778echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12779if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781else
12782 ac_func_search_save_LIBS=$LIBS
12783cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789
12790/* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12793#ifdef __cplusplus
12794extern "C"
12795#endif
12796char pthread_mutex_lock ();
12797int
12798main ()
12799{
12800return pthread_mutex_lock ();
12801 ;
12802 return 0;
12803}
12804_ACEOF
12805for ac_lib in '' pthread; do
12806 if test -z "$ac_lib"; then
12807 ac_res="none required"
12808 else
12809 ac_res=-l$ac_lib
12810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12811 fi
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813if { (ac_try="$ac_link"
12814case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817esac
12818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_link") 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830esac
12831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest$ac_exeext'
12837 { (case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840esac
12841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_try") 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_cv_search_pthread_mutex_lock=$ac_res
12847else
12848 echo "$as_me: failed program was:" >&5
12849sed 's/^/| /' conftest.$ac_ext >&5
12850
12851
12852fi
12853
12854rm -f core conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext
12856 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12857 break
12858fi
12859done
12860if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12861 :
12862else
12863 ac_cv_search_pthread_mutex_lock=no
12864fi
12865rm conftest.$ac_ext
12866LIBS=$ac_func_search_save_LIBS
12867fi
12868{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12869echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12870ac_res=$ac_cv_search_pthread_mutex_lock
12871if test "$ac_res" != no; then
12872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12873
12874cat >>confdefs.h <<\_ACEOF
12875#define HAVE_PTHREAD_MUTEX_LOCK 1
12876_ACEOF
12877
12878fi
12879
12880 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12881echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12882if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884else
12885 ac_func_search_save_LIBS=$LIBS
12886cat >conftest.$ac_ext <<_ACEOF
12887/* confdefs.h. */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h. */
12892
12893/* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
12896#ifdef __cplusplus
12897extern "C"
12898#endif
12899char pthread_rwlock_init ();
12900int
12901main ()
12902{
12903return pthread_rwlock_init ();
12904 ;
12905 return 0;
12906}
12907_ACEOF
12908for ac_lib in '' pthread; do
12909 if test -z "$ac_lib"; then
12910 ac_res="none required"
12911 else
12912 ac_res=-l$ac_lib
12913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12914 fi
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916if { (ac_try="$ac_link"
12917case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12920esac
12921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_link") 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12933esac
12934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12943esac
12944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 ac_cv_search_pthread_rwlock_init=$ac_res
12950else
12951 echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954
12955fi
12956
12957rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext
12959 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12960 break
12961fi
12962done
12963if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12964 :
12965else
12966 ac_cv_search_pthread_rwlock_init=no
12967fi
12968rm conftest.$ac_ext
12969LIBS=$ac_func_search_save_LIBS
12970fi
12971{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12972echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12973ac_res=$ac_cv_search_pthread_rwlock_init
12974if test "$ac_res" != no; then
12975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12976
12977cat >>confdefs.h <<\_ACEOF
12978#define HAVE_PTHREAD_RWLOCK_INIT 1
12979_ACEOF
12980
12981fi
12982
12983 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12984echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12985if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987else
12988 ac_func_search_save_LIBS=$LIBS
12989cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995
12996/* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
12999#ifdef __cplusplus
13000extern "C"
13001#endif
13002char pthread_getspecific ();
13003int
13004main ()
13005{
13006return pthread_getspecific ();
13007 ;
13008 return 0;
13009}
13010_ACEOF
13011for ac_lib in '' pthread; do
13012 if test -z "$ac_lib"; then
13013 ac_res="none required"
13014 else
13015 ac_res=-l$ac_lib
13016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13017 fi
13018 rm -f conftest.$ac_objext conftest$ac_exeext
13019if { (ac_try="$ac_link"
13020case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023esac
13024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_link") 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13033 { (case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13036esac
13037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038 (eval "$ac_try") 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest$ac_exeext'
13043 { (case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046esac
13047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_try") 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_search_pthread_getspecific=$ac_res
13053else
13054 echo "$as_me: failed program was:" >&5
13055sed 's/^/| /' conftest.$ac_ext >&5
13056
13057
13058fi
13059
13060rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext
13062 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13063 break
13064fi
13065done
13066if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13067 :
13068else
13069 ac_cv_search_pthread_getspecific=no
13070fi
13071rm conftest.$ac_ext
13072LIBS=$ac_func_search_save_LIBS
13073fi
13074{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13075echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13076ac_res=$ac_cv_search_pthread_getspecific
13077if test "$ac_res" != no; then
13078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13079
13080cat >>confdefs.h <<\_ACEOF
13081#define HAVE_PTHREAD_GETSPECIFIC 1
13082_ACEOF
13083
13084fi
13085
13086fi
13087
13088
13089# Check whether --with-udis86 was given.
13090if test "${with_udis86+set}" = set; then
13091 withval=$with_udis86;
13092 USE_UDIS86=1
13093
13094 case "$withval" in
13095 /usr/lib|yes) ;;
13096 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13097 esac
13098
13099{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13100echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13101if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103else
13104 ac_check_lib_save_LIBS=$LIBS
13105LIBS="-ludis86 $LIBS"
13106cat >conftest.$ac_ext <<_ACEOF
13107/* confdefs.h. */
13108_ACEOF
13109cat confdefs.h >>conftest.$ac_ext
13110cat >>conftest.$ac_ext <<_ACEOF
13111/* end confdefs.h. */
13112
13113/* Override any GCC internal prototype to avoid an error.
13114 Use char because int might match the return type of a GCC
13115 builtin and then its argument prototype would still apply. */
13116#ifdef __cplusplus
13117extern "C"
13118#endif
13119char ud_init ();
13120int
13121main ()
13122{
13123return ud_init ();
13124 ;
13125 return 0;
13126}
13127_ACEOF
13128rm -f conftest.$ac_objext conftest$ac_exeext
13129if { (ac_try="$ac_link"
13130case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146esac
13147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156esac
13157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_lib_udis86_ud_init=yes
13163else
13164 echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167 ac_cv_lib_udis86_ud_init=no
13168fi
13169
13170rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172LIBS=$ac_check_lib_save_LIBS
13173fi
13174{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13175echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13176if test $ac_cv_lib_udis86_ud_init = yes; then
13177 cat >>confdefs.h <<_ACEOF
13178#define HAVE_LIBUDIS86 1
13179_ACEOF
13180
13181 LIBS="-ludis86 $LIBS"
13182
13183else
13184
13185 echo "Error! You need to have libudis86 around."
13186 exit -1
13187
13188fi
13189
13190
13191else
13192 USE_UDIS86=0
13193
13194fi
13195
13196
13197cat >>confdefs.h <<_ACEOF
13198#define USE_UDIS86 $USE_UDIS86
13199_ACEOF
13200
13201
13202
13203# Check whether --with-oprofile was given.
13204if test "${with_oprofile+set}" = set; then
13205 withval=$with_oprofile;
13206 USE_OPROFILE=1
13207
13208 case "$withval" in
13209 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13210 no) llvm_cv_oppath=
13211 USE_OPROFILE=0
13212 ;;
13213 *) llvm_cv_oppath="${withval}/lib/oprofile"
13214 CPPFLAGS="-I${withval}/include";;
13215 esac
13216 if test -n "$llvm_cv_oppath" ; then
13217 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13218 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13219echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13220if test "${ac_cv_search_bfd_init+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222else
13223 ac_func_search_save_LIBS=$LIBS
13224cat >conftest.$ac_ext <<_ACEOF
13225/* confdefs.h. */
13226_ACEOF
13227cat confdefs.h >>conftest.$ac_ext
13228cat >>conftest.$ac_ext <<_ACEOF
13229/* end confdefs.h. */
13230
13231/* Override any GCC internal prototype to avoid an error.
13232 Use char because int might match the return type of a GCC
13233 builtin and then its argument prototype would still apply. */
13234#ifdef __cplusplus
13235extern "C"
13236#endif
13237char bfd_init ();
13238int
13239main ()
13240{
13241return bfd_init ();
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246for ac_lib in '' bfd; do
13247 if test -z "$ac_lib"; then
13248 ac_res="none required"
13249 else
13250 ac_res=-l$ac_lib
13251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13252 fi
13253 rm -f conftest.$ac_objext conftest$ac_exeext
13254if { (ac_try="$ac_link"
13255case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258esac
13259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_link") 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13268 { (case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13271esac
13272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273 (eval "$ac_try") 2>&5
13274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; } &&
13277 { ac_try='test -s conftest$ac_exeext'
13278 { (case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13281esac
13282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_try") 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_search_bfd_init=$ac_res
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292
13293fi
13294
13295rm -f core conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext
13297 if test "${ac_cv_search_bfd_init+set}" = set; then
13298 break
13299fi
13300done
13301if test "${ac_cv_search_bfd_init+set}" = set; then
13302 :
13303else
13304 ac_cv_search_bfd_init=no
13305fi
13306rm conftest.$ac_ext
13307LIBS=$ac_func_search_save_LIBS
13308fi
13309{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13310echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13311ac_res=$ac_cv_search_bfd_init
13312if test "$ac_res" != no; then
13313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13314
13315fi
13316
13317 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13318echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13319if test "${ac_cv_search_op_open_agent+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321else
13322 ac_func_search_save_LIBS=$LIBS
13323cat >conftest.$ac_ext <<_ACEOF
13324/* confdefs.h. */
13325_ACEOF
13326cat confdefs.h >>conftest.$ac_ext
13327cat >>conftest.$ac_ext <<_ACEOF
13328/* end confdefs.h. */
13329
13330/* Override any GCC internal prototype to avoid an error.
13331 Use char because int might match the return type of a GCC
13332 builtin and then its argument prototype would still apply. */
13333#ifdef __cplusplus
13334extern "C"
13335#endif
13336char op_open_agent ();
13337int
13338main ()
13339{
13340return op_open_agent ();
13341 ;
13342 return 0;
13343}
13344_ACEOF
13345for ac_lib in '' opagent; do
13346 if test -z "$ac_lib"; then
13347 ac_res="none required"
13348 else
13349 ac_res=-l$ac_lib
13350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13351 fi
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353if { (ac_try="$ac_link"
13354case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13357esac
13358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_link") 2>conftest.er1
13360 ac_status=$?
13361 grep -v '^ *+' conftest.er1 >conftest.err
13362 rm -f conftest.er1
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13367 { (case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370esac
13371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_try") 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380esac
13381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_try") 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_search_op_open_agent=$ac_res
13387else
13388 echo "$as_me: failed program was:" >&5
13389sed 's/^/| /' conftest.$ac_ext >&5
13390
13391
13392fi
13393
13394rm -f core conftest.err conftest.$ac_objext \
13395 conftest$ac_exeext
13396 if test "${ac_cv_search_op_open_agent+set}" = set; then
13397 break
13398fi
13399done
13400if test "${ac_cv_search_op_open_agent+set}" = set; then
13401 :
13402else
13403 ac_cv_search_op_open_agent=no
13404fi
13405rm conftest.$ac_ext
13406LIBS=$ac_func_search_save_LIBS
13407fi
13408{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13409echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13410ac_res=$ac_cv_search_op_open_agent
13411if test "$ac_res" != no; then
13412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13413
13414else
13415
13416 echo "Error! You need to have libopagent around."
13417 exit -1
13418
13419fi
13420
13421 if test "${ac_cv_header_opagent_h+set}" = set; then
13422 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13423echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13424if test "${ac_cv_header_opagent_h+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426fi
13427{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13428echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13429else
13430 # Is the header compilable?
13431{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13432echo $ECHO_N "checking opagent.h usability... $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$ac_includes_default
13440#include <opagent.h>
13441_ACEOF
13442rm -f conftest.$ac_objext
13443if { (ac_try="$ac_compile"
13444case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13447esac
13448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_compile") 2>conftest.er1
13450 ac_status=$?
13451 grep -v '^ *+' conftest.er1 >conftest.err
13452 rm -f conftest.er1
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13457 { (case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13460esac
13461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_try") 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; } &&
13466 { ac_try='test -s conftest.$ac_objext'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470esac
13471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_header_compiler=yes
13477else
13478 echo "$as_me: failed program was:" >&5
13479sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_header_compiler=no
13482fi
13483
13484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486echo "${ECHO_T}$ac_header_compiler" >&6; }
13487
13488# Is the header present?
13489{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13490echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13491cat >conftest.$ac_ext <<_ACEOF
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
13496/* end confdefs.h. */
13497#include <opagent.h>
13498_ACEOF
13499if { (ac_try="$ac_cpp conftest.$ac_ext"
13500case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503esac
13504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13506 ac_status=$?
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } >/dev/null; then
13512 if test -s conftest.err; then
13513 ac_cpp_err=$ac_c_preproc_warn_flag
13514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13515 else
13516 ac_cpp_err=
13517 fi
13518else
13519 ac_cpp_err=yes
13520fi
13521if test -z "$ac_cpp_err"; then
13522 ac_header_preproc=yes
13523else
13524 echo "$as_me: failed program was:" >&5
13525sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 ac_header_preproc=no
13528fi
13529
13530rm -f conftest.err conftest.$ac_ext
13531{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13532echo "${ECHO_T}$ac_header_preproc" >&6; }
13533
13534# So? What about this header?
13535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13536 yes:no: )
13537 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13538echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13540echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13541 ac_header_preproc=yes
13542 ;;
13543 no:yes:* )
13544 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13545echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13547echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13549echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13551echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13553echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13555echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13556 ( cat <<\_ASBOX
13557## ------------------------------ ##
13558## Report this to bugs@yourdomain ##
13559## ------------------------------ ##
13560_ASBOX
13561 ) | sed "s/^/$as_me: WARNING: /" >&2
13562 ;;
13563esac
13564{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13565echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13566if test "${ac_cv_header_opagent_h+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13568else
13569 ac_cv_header_opagent_h=$ac_header_preproc
13570fi
13571{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13572echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13573
13574fi
13575if test $ac_cv_header_opagent_h = yes; then
13576 :
13577else
13578
13579 echo "Error! You need to have opagent.h around."
13580 exit -1
13581
13582fi
13583
13584
13585 fi
13586
13587else
13588
13589 USE_OPROFILE=0
13590
13591
13592fi
13593
13594
13595cat >>confdefs.h <<_ACEOF
13596#define USE_OPROFILE $USE_OPROFILE
13597_ACEOF
13598
13599
13600
13601
13602
13603
13604
13605
13606ac_header_dirent=no
13607for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13608 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13609{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13610echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614 cat >conftest.$ac_ext <<_ACEOF
13615/* confdefs.h. */
13616_ACEOF
13617cat confdefs.h >>conftest.$ac_ext
13618cat >>conftest.$ac_ext <<_ACEOF
13619/* end confdefs.h. */
13620#include <sys/types.h>
13621#include <$ac_hdr>
13622
13623int
13624main ()
13625{
13626if ((DIR *) 0)
13627return 0;
13628 ;
13629 return 0;
13630}
13631_ACEOF
13632rm -f conftest.$ac_objext
13633if { (ac_try="$ac_compile"
13634case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637esac
13638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compile") 2>conftest.er1
13640 ac_status=$?
13641 grep -v '^ *+' conftest.er1 >conftest.err
13642 rm -f conftest.er1
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } &&
13646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13647 { (case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13650esac
13651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_try") 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest.$ac_objext'
13657 { (case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13660esac
13661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_try") 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 eval "$as_ac_Header=yes"
13667else
13668 echo "$as_me: failed program was:" >&5
13669sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 eval "$as_ac_Header=no"
13672fi
13673
13674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675fi
13676ac_res=`eval echo '${'$as_ac_Header'}'`
13677 { echo "$as_me:$LINENO: result: $ac_res" >&5
13678echo "${ECHO_T}$ac_res" >&6; }
13679if test `eval echo '${'$as_ac_Header'}'` = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13682_ACEOF
13683
13684ac_header_dirent=$ac_hdr; break
13685fi
13686
13687done
13688# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13689if test $ac_header_dirent = dirent.h; then
13690 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13691echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13692if test "${ac_cv_search_opendir+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694else
13695 ac_func_search_save_LIBS=$LIBS
13696cat >conftest.$ac_ext <<_ACEOF
13697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
13702
13703/* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13706#ifdef __cplusplus
13707extern "C"
13708#endif
13709char opendir ();
13710int
13711main ()
13712{
13713return opendir ();
13714 ;
13715 return 0;
13716}
13717_ACEOF
13718for ac_lib in '' dir; do
13719 if test -z "$ac_lib"; then
13720 ac_res="none required"
13721 else
13722 ac_res=-l$ac_lib
13723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13724 fi
13725 rm -f conftest.$ac_objext conftest$ac_exeext
13726if { (ac_try="$ac_link"
13727case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730esac
13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_link") 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743esac
13744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest$ac_exeext'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753esac
13754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_search_opendir=$ac_res
13760else
13761 echo "$as_me: failed program was:" >&5
13762sed 's/^/| /' conftest.$ac_ext >&5
13763
13764
13765fi
13766
13767rm -f core conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext
13769 if test "${ac_cv_search_opendir+set}" = set; then
13770 break
13771fi
13772done
13773if test "${ac_cv_search_opendir+set}" = set; then
13774 :
13775else
13776 ac_cv_search_opendir=no
13777fi
13778rm conftest.$ac_ext
13779LIBS=$ac_func_search_save_LIBS
13780fi
13781{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13782echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13783ac_res=$ac_cv_search_opendir
13784if test "$ac_res" != no; then
13785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13786
13787fi
13788
13789else
13790 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13791echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13792if test "${ac_cv_search_opendir+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794else
13795 ac_func_search_save_LIBS=$LIBS
13796cat >conftest.$ac_ext <<_ACEOF
13797/* confdefs.h. */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h. */
13802
13803/* Override any GCC internal prototype to avoid an error.
13804 Use char because int might match the return type of a GCC
13805 builtin and then its argument prototype would still apply. */
13806#ifdef __cplusplus
13807extern "C"
13808#endif
13809char opendir ();
13810int
13811main ()
13812{
13813return opendir ();
13814 ;
13815 return 0;
13816}
13817_ACEOF
13818for ac_lib in '' x; do
13819 if test -z "$ac_lib"; then
13820 ac_res="none required"
13821 else
13822 ac_res=-l$ac_lib
13823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13824 fi
13825 rm -f conftest.$ac_objext conftest$ac_exeext
13826if { (ac_try="$ac_link"
13827case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13830esac
13831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_link") 2>conftest.er1
13833 ac_status=$?
13834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13840 { (case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843esac
13844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_try") 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; } &&
13849 { ac_try='test -s conftest$ac_exeext'
13850 { (case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13853esac
13854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_try") 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 ac_cv_search_opendir=$ac_res
13860else
13861 echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
13864
13865fi
13866
13867rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext
13869 if test "${ac_cv_search_opendir+set}" = set; then
13870 break
13871fi
13872done
13873if test "${ac_cv_search_opendir+set}" = set; then
13874 :
13875else
13876 ac_cv_search_opendir=no
13877fi
13878rm conftest.$ac_ext
13879LIBS=$ac_func_search_save_LIBS
13880fi
13881{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13882echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13883ac_res=$ac_cv_search_opendir
13884if test "$ac_res" != no; then
13885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13886
13887fi
13888
13889fi
13890
13891{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13892echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13893if test "${ac_cv_header_mmap_anon+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895else
13896 ac_ext=c
13897ac_cpp='$CPP $CPPFLAGS'
13898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13900ac_compiler_gnu=$ac_cv_c_compiler_gnu
13901
13902 cat >conftest.$ac_ext <<_ACEOF
13903/* confdefs.h. */
13904_ACEOF
13905cat confdefs.h >>conftest.$ac_ext
13906cat >>conftest.$ac_ext <<_ACEOF
13907/* end confdefs.h. */
13908#include <sys/mman.h>
13909#include <unistd.h>
13910#include <fcntl.h>
13911int
13912main ()
13913{
13914mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13915 ;
13916 return 0;
13917}
13918_ACEOF
13919rm -f conftest.$ac_objext
13920if { (ac_try="$ac_compile"
13921case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924esac
13925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_compile") 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13934 { (case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937esac
13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_try") 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest.$ac_objext'
13944 { (case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947esac
13948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_try") 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 ac_cv_header_mmap_anon=yes
13954else
13955 echo "$as_me: failed program was:" >&5
13956sed 's/^/| /' conftest.$ac_ext >&5
13957
13958 ac_cv_header_mmap_anon=no
13959fi
13960
13961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 ac_ext=c
13963ac_cpp='$CPP $CPPFLAGS'
13964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13966ac_compiler_gnu=$ac_cv_c_compiler_gnu
13967
13968
13969fi
13970{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13971echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13972if test "$ac_cv_header_mmap_anon" = yes; then
13973
13974cat >>confdefs.h <<\_ACEOF
13975#define HAVE_MMAP_ANONYMOUS 1
13976_ACEOF
13977
13978fi
13979
13980{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13981echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13982if test "${ac_cv_header_stat_broken+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/stat.h>
13993
13994#if defined S_ISBLK && defined S_IFDIR
13995# if S_ISBLK (S_IFDIR)
13996You lose.
13997# endif
13998#endif
13999
14000#if defined S_ISBLK && defined S_IFCHR
14001# if S_ISBLK (S_IFCHR)
14002You lose.
14003# endif
14004#endif
14005
14006#if defined S_ISLNK && defined S_IFREG
14007# if S_ISLNK (S_IFREG)
14008You lose.
14009# endif
14010#endif
14011
14012#if defined S_ISSOCK && defined S_IFREG
14013# if S_ISSOCK (S_IFREG)
14014You lose.
14015# endif
14016#endif
14017
14018_ACEOF
14019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14020 $EGREP "You lose" >/dev/null 2>&1; then
14021 ac_cv_header_stat_broken=yes
14022else
14023 ac_cv_header_stat_broken=no
14024fi
14025rm -f conftest*
14026
14027fi
14028{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14029echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14030if test $ac_cv_header_stat_broken = yes; then
14031
14032cat >>confdefs.h <<\_ACEOF
14033#define STAT_MACROS_BROKEN 1
14034_ACEOF
14035
14036fi
14037
14038{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14039echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14040if test "${ac_cv_header_sys_wait_h+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042else
14043 cat >conftest.$ac_ext <<_ACEOF
14044/* confdefs.h. */
14045_ACEOF
14046cat confdefs.h >>conftest.$ac_ext
14047cat >>conftest.$ac_ext <<_ACEOF
14048/* end confdefs.h. */
14049#include <sys/types.h>
14050#include <sys/wait.h>
14051#ifndef WEXITSTATUS
14052# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14053#endif
14054#ifndef WIFEXITED
14055# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14056#endif
14057
14058int
14059main ()
14060{
14061 int s;
14062 wait (&s);
14063 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14064 ;
14065 return 0;
14066}
14067_ACEOF
14068rm -f conftest.$ac_objext
14069if { (ac_try="$ac_compile"
14070case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14073esac
14074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_compile") 2>conftest.er1
14076 ac_status=$?
14077 grep -v '^ *+' conftest.er1 >conftest.err
14078 rm -f conftest.er1
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } &&
14092 { ac_try='test -s conftest.$ac_objext'
14093 { (case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14096esac
14097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_try") 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 ac_cv_header_sys_wait_h=yes
14103else
14104 echo "$as_me: failed program was:" >&5
14105sed 's/^/| /' conftest.$ac_ext >&5
14106
14107 ac_cv_header_sys_wait_h=no
14108fi
14109
14110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111fi
14112{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14113echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14114if test $ac_cv_header_sys_wait_h = yes; then
14115
14116cat >>confdefs.h <<\_ACEOF
14117#define HAVE_SYS_WAIT_H 1
14118_ACEOF
14119
14120fi
14121
14122{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14123echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14124if test "${ac_cv_header_time+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14126else
14127 cat >conftest.$ac_ext <<_ACEOF
14128/* confdefs.h. */
14129_ACEOF
14130cat confdefs.h >>conftest.$ac_ext
14131cat >>conftest.$ac_ext <<_ACEOF
14132/* end confdefs.h. */
14133#include <sys/types.h>
14134#include <sys/time.h>
14135#include <time.h>
14136
14137int
14138main ()
14139{
14140if ((struct tm *) 0)
14141return 0;
14142 ;
14143 return 0;
14144}
14145_ACEOF
14146rm -f conftest.$ac_objext
14147if { (ac_try="$ac_compile"
14148case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14151esac
14152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_compile") 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164esac
14165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest.$ac_objext'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174esac
14175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_header_time=yes
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_cv_header_time=no
14186fi
14187
14188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189fi
14190{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14191echo "${ECHO_T}$ac_cv_header_time" >&6; }
14192if test $ac_cv_header_time = yes; then
14193
14194cat >>confdefs.h <<\_ACEOF
14195#define TIME_WITH_SYS_TIME 1
14196_ACEOF
14197
14198fi
14199
14200
14201
14202
14203
14204
14205
14206
14207for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14208do
14209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215fi
14216ac_res=`eval echo '${'$as_ac_Header'}'`
14217 { echo "$as_me:$LINENO: result: $ac_res" >&5
14218echo "${ECHO_T}$ac_res" >&6; }
14219else
14220 # Is the header compilable?
14221{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14222echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
14230#include <$ac_header>
14231_ACEOF
14232rm -f conftest.$ac_objext
14233if { (ac_try="$ac_compile"
14234case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14237esac
14238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239 (eval "$ac_compile") 2>conftest.er1
14240 ac_status=$?
14241 grep -v '^ *+' conftest.er1 >conftest.err
14242 rm -f conftest.er1
14243 cat conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14247 { (case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14250esac
14251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_try") 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } &&
14256 { ac_try='test -s conftest.$ac_objext'
14257 { (case "(($ac_try" in
14258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14260esac
14261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262 (eval "$ac_try") 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_header_compiler=yes
14267else
14268 echo "$as_me: failed program was:" >&5
14269sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 ac_header_compiler=no
14272fi
14273
14274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14276echo "${ECHO_T}$ac_header_compiler" >&6; }
14277
14278# Is the header present?
14279{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14280echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14281cat >conftest.$ac_ext <<_ACEOF
14282/* confdefs.h. */
14283_ACEOF
14284cat confdefs.h >>conftest.$ac_ext
14285cat >>conftest.$ac_ext <<_ACEOF
14286/* end confdefs.h. */
14287#include <$ac_header>
14288_ACEOF
14289if { (ac_try="$ac_cpp conftest.$ac_ext"
14290case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293esac
14294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } >/dev/null; then
14302 if test -s conftest.err; then
14303 ac_cpp_err=$ac_c_preproc_warn_flag
14304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14305 else
14306 ac_cpp_err=
14307 fi
14308else
14309 ac_cpp_err=yes
14310fi
14311if test -z "$ac_cpp_err"; then
14312 ac_header_preproc=yes
14313else
14314 echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317 ac_header_preproc=no
14318fi
14319
14320rm -f conftest.err conftest.$ac_ext
14321{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14322echo "${ECHO_T}$ac_header_preproc" >&6; }
14323
14324# So? What about this header?
14325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14326 yes:no: )
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14331 ac_header_preproc=yes
14332 ;;
14333 no:yes:* )
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14337echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14341echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14346 ( cat <<\_ASBOX
14347## ------------------------------ ##
14348## Report this to bugs@yourdomain ##
14349## ------------------------------ ##
14350_ASBOX
14351 ) | sed "s/^/$as_me: WARNING: /" >&2
14352 ;;
14353esac
14354{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358else
14359 eval "$as_ac_Header=\$ac_header_preproc"
14360fi
14361ac_res=`eval echo '${'$as_ac_Header'}'`
14362 { echo "$as_me:$LINENO: result: $ac_res" >&5
14363echo "${ECHO_T}$ac_res" >&6; }
14364
14365fi
14366if test `eval echo '${'$as_ac_Header'}'` = yes; then
14367 cat >>confdefs.h <<_ACEOF
14368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14369_ACEOF
14370
14371fi
14372
14373done
14374
14375
14376
14377
14378
14379
14380
14381for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14382do
14383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14389fi
14390ac_res=`eval echo '${'$as_ac_Header'}'`
14391 { echo "$as_me:$LINENO: result: $ac_res" >&5
14392echo "${ECHO_T}$ac_res" >&6; }
14393else
14394 # Is the header compilable?
14395{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14396echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
14404#include <$ac_header>
14405_ACEOF
14406rm -f conftest.$ac_objext
14407if { (ac_try="$ac_compile"
14408case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411esac
14412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424esac
14425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14434esac
14435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_header_compiler=yes
14441else
14442 echo "$as_me: failed program was:" >&5
14443sed 's/^/| /' conftest.$ac_ext >&5
14444
14445 ac_header_compiler=no
14446fi
14447
14448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14450echo "${ECHO_T}$ac_header_compiler" >&6; }
14451
14452# Is the header present?
14453{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14455cat >conftest.$ac_ext <<_ACEOF
14456/* confdefs.h. */
14457_ACEOF
14458cat confdefs.h >>conftest.$ac_ext
14459cat >>conftest.$ac_ext <<_ACEOF
14460/* end confdefs.h. */
14461#include <$ac_header>
14462_ACEOF
14463if { (ac_try="$ac_cpp conftest.$ac_ext"
14464case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467esac
14468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14470 ac_status=$?
14471 grep -v '^ *+' conftest.er1 >conftest.err
14472 rm -f conftest.er1
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } >/dev/null; then
14476 if test -s conftest.err; then
14477 ac_cpp_err=$ac_c_preproc_warn_flag
14478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14479 else
14480 ac_cpp_err=
14481 fi
14482else
14483 ac_cpp_err=yes
14484fi
14485if test -z "$ac_cpp_err"; then
14486 ac_header_preproc=yes
14487else
14488 echo "$as_me: failed program was:" >&5
14489sed 's/^/| /' conftest.$ac_ext >&5
14490
14491 ac_header_preproc=no
14492fi
14493
14494rm -f conftest.err conftest.$ac_ext
14495{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14496echo "${ECHO_T}$ac_header_preproc" >&6; }
14497
14498# So? What about this header?
14499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14500 yes:no: )
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14505 ac_header_preproc=yes
14506 ;;
14507 no:yes:* )
14508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14511echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14515echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14520 ( cat <<\_ASBOX
14521## ------------------------------ ##
14522## Report this to bugs@yourdomain ##
14523## ------------------------------ ##
14524_ASBOX
14525 ) | sed "s/^/$as_me: WARNING: /" >&2
14526 ;;
14527esac
14528{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14532else
14533 eval "$as_ac_Header=\$ac_header_preproc"
14534fi
14535ac_res=`eval echo '${'$as_ac_Header'}'`
14536 { echo "$as_me:$LINENO: result: $ac_res" >&5
14537echo "${ECHO_T}$ac_res" >&6; }
14538
14539fi
14540if test `eval echo '${'$as_ac_Header'}'` = yes; then
14541 cat >>confdefs.h <<_ACEOF
14542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14543_ACEOF
14544
14545fi
14546
14547done
14548
14549
14550
14551for ac_header in utime.h windows.h
14552do
14553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14559fi
14560ac_res=`eval echo '${'$as_ac_Header'}'`
14561 { echo "$as_me:$LINENO: result: $ac_res" >&5
14562echo "${ECHO_T}$ac_res" >&6; }
14563else
14564 # Is the header compilable?
14565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14566echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
14574#include <$ac_header>
14575_ACEOF
14576rm -f conftest.$ac_objext
14577if { (ac_try="$ac_compile"
14578case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14581esac
14582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_compile") 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14591 { (case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14594esac
14595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_try") 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604esac
14605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_header_compiler=yes
14611else
14612 echo "$as_me: failed program was:" >&5
14613sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 ac_header_compiler=no
14616fi
14617
14618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14620echo "${ECHO_T}$ac_header_compiler" >&6; }
14621
14622# Is the header present?
14623{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14625cat >conftest.$ac_ext <<_ACEOF
14626/* confdefs.h. */
14627_ACEOF
14628cat confdefs.h >>conftest.$ac_ext
14629cat >>conftest.$ac_ext <<_ACEOF
14630/* end confdefs.h. */
14631#include <$ac_header>
14632_ACEOF
14633if { (ac_try="$ac_cpp conftest.$ac_ext"
14634case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637esac
14638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14640 ac_status=$?
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } >/dev/null; then
14646 if test -s conftest.err; then
14647 ac_cpp_err=$ac_c_preproc_warn_flag
14648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14649 else
14650 ac_cpp_err=
14651 fi
14652else
14653 ac_cpp_err=yes
14654fi
14655if test -z "$ac_cpp_err"; then
14656 ac_header_preproc=yes
14657else
14658 echo "$as_me: failed program was:" >&5
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
14661 ac_header_preproc=no
14662fi
14663
14664rm -f conftest.err conftest.$ac_ext
14665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14666echo "${ECHO_T}$ac_header_preproc" >&6; }
14667
14668# So? What about this header?
14669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14670 yes:no: )
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14675 ac_header_preproc=yes
14676 ;;
14677 no:yes:* )
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14690 ( cat <<\_ASBOX
14691## ------------------------------ ##
14692## Report this to bugs@yourdomain ##
14693## ------------------------------ ##
14694_ASBOX
14695 ) | sed "s/^/$as_me: WARNING: /" >&2
14696 ;;
14697esac
14698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702else
14703 eval "$as_ac_Header=\$ac_header_preproc"
14704fi
14705ac_res=`eval echo '${'$as_ac_Header'}'`
14706 { echo "$as_me:$LINENO: result: $ac_res" >&5
14707echo "${ECHO_T}$ac_res" >&6; }
14708
14709fi
14710if test `eval echo '${'$as_ac_Header'}'` = yes; then
14711 cat >>confdefs.h <<_ACEOF
14712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14713_ACEOF
14714
14715fi
14716
14717done
14718
14719
14720
14721
14722
14723
14724for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14725do
14726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14732fi
14733ac_res=`eval echo '${'$as_ac_Header'}'`
14734 { echo "$as_me:$LINENO: result: $ac_res" >&5
14735echo "${ECHO_T}$ac_res" >&6; }
14736else
14737 # Is the header compilable?
14738{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14739echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
14747#include <$ac_header>
14748_ACEOF
14749rm -f conftest.$ac_objext
14750if { (ac_try="$ac_compile"
14751case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754esac
14755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_compile") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14764 { (case "(($ac_try" in
14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14767esac
14768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769 (eval "$ac_try") 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest.$ac_objext'
14774 { (case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14777esac
14778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_try") 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 ac_header_compiler=yes
14784else
14785 echo "$as_me: failed program was:" >&5
14786sed 's/^/| /' conftest.$ac_ext >&5
14787
14788 ac_header_compiler=no
14789fi
14790
14791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14793echo "${ECHO_T}$ac_header_compiler" >&6; }
14794
14795# Is the header present?
14796{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14798cat >conftest.$ac_ext <<_ACEOF
14799/* confdefs.h. */
14800_ACEOF
14801cat confdefs.h >>conftest.$ac_ext
14802cat >>conftest.$ac_ext <<_ACEOF
14803/* end confdefs.h. */
14804#include <$ac_header>
14805_ACEOF
14806if { (ac_try="$ac_cpp conftest.$ac_ext"
14807case "(($ac_try" in
14808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14809 *) ac_try_echo=$ac_try;;
14810esac
14811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14813 ac_status=$?
14814 grep -v '^ *+' conftest.er1 >conftest.err
14815 rm -f conftest.er1
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } >/dev/null; then
14819 if test -s conftest.err; then
14820 ac_cpp_err=$ac_c_preproc_warn_flag
14821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14822 else
14823 ac_cpp_err=
14824 fi
14825else
14826 ac_cpp_err=yes
14827fi
14828if test -z "$ac_cpp_err"; then
14829 ac_header_preproc=yes
14830else
14831 echo "$as_me: failed program was:" >&5
14832sed 's/^/| /' conftest.$ac_ext >&5
14833
14834 ac_header_preproc=no
14835fi
14836
14837rm -f conftest.err conftest.$ac_ext
14838{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14839echo "${ECHO_T}$ac_header_preproc" >&6; }
14840
14841# So? What about this header?
14842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14843 yes:no: )
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14848 ac_header_preproc=yes
14849 ;;
14850 no:yes:* )
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14863 ( cat <<\_ASBOX
14864## ------------------------------ ##
14865## Report this to bugs@yourdomain ##
14866## ------------------------------ ##
14867_ASBOX
14868 ) | sed "s/^/$as_me: WARNING: /" >&2
14869 ;;
14870esac
14871{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875else
14876 eval "$as_ac_Header=\$ac_header_preproc"
14877fi
14878ac_res=`eval echo '${'$as_ac_Header'}'`
14879 { echo "$as_me:$LINENO: result: $ac_res" >&5
14880echo "${ECHO_T}$ac_res" >&6; }
14881
14882fi
14883if test `eval echo '${'$as_ac_Header'}'` = yes; then
14884 cat >>confdefs.h <<_ACEOF
14885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14886_ACEOF
14887
14888fi
14889
14890done
14891
14892
14893
14894
14895
14896for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14897do
14898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14904fi
14905ac_res=`eval echo '${'$as_ac_Header'}'`
14906 { echo "$as_me:$LINENO: result: $ac_res" >&5
14907echo "${ECHO_T}$ac_res" >&6; }
14908else
14909 # Is the header compilable?
14910{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14911echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
14919#include <$ac_header>
14920_ACEOF
14921rm -f conftest.$ac_objext
14922if { (ac_try="$ac_compile"
14923case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14926esac
14927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_compile") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14936 { (case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14939esac
14940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_try") 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest.$ac_objext'
14946 { (case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14949esac
14950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_try") 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955 ac_header_compiler=yes
14956else
14957 echo "$as_me: failed program was:" >&5
14958sed 's/^/| /' conftest.$ac_ext >&5
14959
14960 ac_header_compiler=no
14961fi
14962
14963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14964{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14965echo "${ECHO_T}$ac_header_compiler" >&6; }
14966
14967# Is the header present?
14968{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14970cat >conftest.$ac_ext <<_ACEOF
14971/* confdefs.h. */
14972_ACEOF
14973cat confdefs.h >>conftest.$ac_ext
14974cat >>conftest.$ac_ext <<_ACEOF
14975/* end confdefs.h. */
14976#include <$ac_header>
14977_ACEOF
14978if { (ac_try="$ac_cpp conftest.$ac_ext"
14979case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982esac
14983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } >/dev/null; then
14991 if test -s conftest.err; then
14992 ac_cpp_err=$ac_c_preproc_warn_flag
14993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14994 else
14995 ac_cpp_err=
14996 fi
14997else
14998 ac_cpp_err=yes
14999fi
15000if test -z "$ac_cpp_err"; then
15001 ac_header_preproc=yes
15002else
15003 echo "$as_me: failed program was:" >&5
15004sed 's/^/| /' conftest.$ac_ext >&5
15005
15006 ac_header_preproc=no
15007fi
15008
15009rm -f conftest.err conftest.$ac_ext
15010{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15011echo "${ECHO_T}$ac_header_preproc" >&6; }
15012
15013# So? What about this header?
15014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15015 yes:no: )
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15019echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15020 ac_header_preproc=yes
15021 ;;
15022 no:yes:* )
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15028echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15030echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15032echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15034echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15035 ( cat <<\_ASBOX
15036## ------------------------------ ##
15037## Report this to bugs@yourdomain ##
15038## ------------------------------ ##
15039_ASBOX
15040 ) | sed "s/^/$as_me: WARNING: /" >&2
15041 ;;
15042esac
15043{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047else
15048 eval "$as_ac_Header=\$ac_header_preproc"
15049fi
15050ac_res=`eval echo '${'$as_ac_Header'}'`
15051 { echo "$as_me:$LINENO: result: $ac_res" >&5
15052echo "${ECHO_T}$ac_res" >&6; }
15053
15054fi
15055if test `eval echo '${'$as_ac_Header'}'` = yes; then
15056 cat >>confdefs.h <<_ACEOF
15057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15058_ACEOF
15059
15060fi
15061
15062done
15063
15064
15065for ac_header in valgrind/valgrind.h
15066do
15067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073fi
15074ac_res=`eval echo '${'$as_ac_Header'}'`
15075 { echo "$as_me:$LINENO: result: $ac_res" >&5
15076echo "${ECHO_T}$ac_res" >&6; }
15077else
15078 # Is the header compilable?
15079{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15080echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
15088#include <$ac_header>
15089_ACEOF
15090rm -f conftest.$ac_objext
15091if { (ac_try="$ac_compile"
15092case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_compile") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15105 { (case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108esac
15109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_try") 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest.$ac_objext'
15115 { (case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15118esac
15119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_try") 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
15124 ac_header_compiler=yes
15125else
15126 echo "$as_me: failed program was:" >&5
15127sed 's/^/| /' conftest.$ac_ext >&5
15128
15129 ac_header_compiler=no
15130fi
15131
15132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15133{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15134echo "${ECHO_T}$ac_header_compiler" >&6; }
15135
15136# Is the header present?
15137{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15139cat >conftest.$ac_ext <<_ACEOF
15140/* confdefs.h. */
15141_ACEOF
15142cat confdefs.h >>conftest.$ac_ext
15143cat >>conftest.$ac_ext <<_ACEOF
15144/* end confdefs.h. */
15145#include <$ac_header>
15146_ACEOF
15147if { (ac_try="$ac_cpp conftest.$ac_ext"
15148case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151esac
15152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15154 ac_status=$?
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } >/dev/null; then
15160 if test -s conftest.err; then
15161 ac_cpp_err=$ac_c_preproc_warn_flag
15162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15163 else
15164 ac_cpp_err=
15165 fi
15166else
15167 ac_cpp_err=yes
15168fi
15169if test -z "$ac_cpp_err"; then
15170 ac_header_preproc=yes
15171else
15172 echo "$as_me: failed program was:" >&5
15173sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 ac_header_preproc=no
15176fi
15177
15178rm -f conftest.err conftest.$ac_ext
15179{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15180echo "${ECHO_T}$ac_header_preproc" >&6; }
15181
15182# So? What about this header?
15183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15184 yes:no: )
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15189 ac_header_preproc=yes
15190 ;;
15191 no:yes:* )
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15204 ( cat <<\_ASBOX
15205## ------------------------------ ##
15206## Report this to bugs@yourdomain ##
15207## ------------------------------ ##
15208_ASBOX
15209 ) | sed "s/^/$as_me: WARNING: /" >&2
15210 ;;
15211esac
15212{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216else
15217 eval "$as_ac_Header=\$ac_header_preproc"
15218fi
15219ac_res=`eval echo '${'$as_ac_Header'}'`
15220 { echo "$as_me:$LINENO: result: $ac_res" >&5
15221echo "${ECHO_T}$ac_res" >&6; }
15222
15223fi
15224if test `eval echo '${'$as_ac_Header'}'` = yes; then
15225 cat >>confdefs.h <<_ACEOF
15226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15227_ACEOF
15228
15229fi
15230
15231done
15232
15233
15234for ac_header in fenv.h
15235do
15236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15242fi
15243ac_res=`eval echo '${'$as_ac_Header'}'`
15244 { echo "$as_me:$LINENO: result: $ac_res" >&5
15245echo "${ECHO_T}$ac_res" >&6; }
15246else
15247 # Is the header compilable?
15248{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15249echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
15257#include <$ac_header>
15258_ACEOF
15259rm -f conftest.$ac_objext
15260if { (ac_try="$ac_compile"
15261case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264esac
15265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_compile") 2>conftest.er1
15267 ac_status=$?
15268 grep -v '^ *+' conftest.er1 >conftest.err
15269 rm -f conftest.er1
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_try") 2>&5
15280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; } &&
15283 { ac_try='test -s conftest.$ac_objext'
15284 { (case "(($ac_try" in
15285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15287esac
15288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_try") 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 ac_header_compiler=yes
15294else
15295 echo "$as_me: failed program was:" >&5
15296sed 's/^/| /' conftest.$ac_ext >&5
15297
15298 ac_header_compiler=no
15299fi
15300
15301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15303echo "${ECHO_T}$ac_header_compiler" >&6; }
15304
15305# Is the header present?
15306{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15308cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314#include <$ac_header>
15315_ACEOF
15316if { (ac_try="$ac_cpp conftest.$ac_ext"
15317case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15320esac
15321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } >/dev/null; then
15329 if test -s conftest.err; then
15330 ac_cpp_err=$ac_c_preproc_warn_flag
15331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15332 else
15333 ac_cpp_err=
15334 fi
15335else
15336 ac_cpp_err=yes
15337fi
15338if test -z "$ac_cpp_err"; then
15339 ac_header_preproc=yes
15340else
15341 echo "$as_me: failed program was:" >&5
15342sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_header_preproc=no
15345fi
15346
15347rm -f conftest.err conftest.$ac_ext
15348{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15349echo "${ECHO_T}$ac_header_preproc" >&6; }
15350
15351# So? What about this header?
15352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15353 yes:no: )
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15357echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15358 ac_header_preproc=yes
15359 ;;
15360 no:yes:* )
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15364echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15366echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15368echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15370echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15372echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15373 ( cat <<\_ASBOX
15374## ------------------------------ ##
15375## Report this to bugs@yourdomain ##
15376## ------------------------------ ##
15377_ASBOX
15378 ) | sed "s/^/$as_me: WARNING: /" >&2
15379 ;;
15380esac
15381{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385else
15386 eval "$as_ac_Header=\$ac_header_preproc"
15387fi
15388ac_res=`eval echo '${'$as_ac_Header'}'`
15389 { echo "$as_me:$LINENO: result: $ac_res" >&5
15390echo "${ECHO_T}$ac_res" >&6; }
15391
15392fi
15393if test `eval echo '${'$as_ac_Header'}'` = yes; then
15394 cat >>confdefs.h <<_ACEOF
15395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15396_ACEOF
15397
15398fi
15399
15400done
15401
15402if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15403
15404for ac_header in pthread.h
15405do
15406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412fi
15413ac_res=`eval echo '${'$as_ac_Header'}'`
15414 { echo "$as_me:$LINENO: result: $ac_res" >&5
15415echo "${ECHO_T}$ac_res" >&6; }
15416else
15417 # Is the header compilable?
15418{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15419echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
15427#include <$ac_header>
15428_ACEOF
15429rm -f conftest.$ac_objext
15430if { (ac_try="$ac_compile"
15431case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434esac
15435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_compile") 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15444 { (case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447esac
15448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_try") 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest.$ac_objext'
15454 { (case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15457esac
15458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459 (eval "$ac_try") 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_header_compiler=yes
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 ac_header_compiler=no
15469fi
15470
15471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15473echo "${ECHO_T}$ac_header_compiler" >&6; }
15474
15475# Is the header present?
15476{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15478cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484#include <$ac_header>
15485_ACEOF
15486if { (ac_try="$ac_cpp conftest.$ac_ext"
15487case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490esac
15491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } >/dev/null; then
15499 if test -s conftest.err; then
15500 ac_cpp_err=$ac_c_preproc_warn_flag
15501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15502 else
15503 ac_cpp_err=
15504 fi
15505else
15506 ac_cpp_err=yes
15507fi
15508if test -z "$ac_cpp_err"; then
15509 ac_header_preproc=yes
15510else
15511 echo "$as_me: failed program was:" >&5
15512sed 's/^/| /' conftest.$ac_ext >&5
15513
15514 ac_header_preproc=no
15515fi
15516
15517rm -f conftest.err conftest.$ac_ext
15518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15519echo "${ECHO_T}$ac_header_preproc" >&6; }
15520
15521# So? What about this header?
15522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15523 yes:no: )
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15528 ac_header_preproc=yes
15529 ;;
15530 no:yes:* )
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15543 ( cat <<\_ASBOX
15544## ------------------------------ ##
15545## Report this to bugs@yourdomain ##
15546## ------------------------------ ##
15547_ASBOX
15548 ) | sed "s/^/$as_me: WARNING: /" >&2
15549 ;;
15550esac
15551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555else
15556 eval "$as_ac_Header=\$ac_header_preproc"
15557fi
15558ac_res=`eval echo '${'$as_ac_Header'}'`
15559 { echo "$as_me:$LINENO: result: $ac_res" >&5
15560echo "${ECHO_T}$ac_res" >&6; }
15561
15562fi
15563if test `eval echo '${'$as_ac_Header'}'` = yes; then
15564 cat >>confdefs.h <<_ACEOF
15565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15566_ACEOF
15567 HAVE_PTHREAD=1
15568
15569else
15570 HAVE_PTHREAD=0
15571
15572fi
15573
15574done
15575
15576else
15577 HAVE_PTHREAD=0
15578
15579fi
15580
15581if test "$llvm_cv_enable_libffi" = "yes" ; then
15582
15583
15584for ac_header in ffi.h ffi/ffi.h
15585do
15586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592fi
15593ac_res=`eval echo '${'$as_ac_Header'}'`
15594 { echo "$as_me:$LINENO: result: $ac_res" >&5
15595echo "${ECHO_T}$ac_res" >&6; }
15596else
15597 # Is the header compilable?
15598{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15599echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
15607#include <$ac_header>
15608_ACEOF
15609rm -f conftest.$ac_objext
15610if { (ac_try="$ac_compile"
15611case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15614esac
15615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_compile") 2>conftest.er1
15617 ac_status=$?
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15624 { (case "(($ac_try" in
15625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15626 *) ac_try_echo=$ac_try;;
15627esac
15628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15629 (eval "$ac_try") 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15637esac
15638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_try") 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; }; then
15643 ac_header_compiler=yes
15644else
15645 echo "$as_me: failed program was:" >&5
15646sed 's/^/| /' conftest.$ac_ext >&5
15647
15648 ac_header_compiler=no
15649fi
15650
15651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15652{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15653echo "${ECHO_T}$ac_header_compiler" >&6; }
15654
15655# Is the header present?
15656{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15658cat >conftest.$ac_ext <<_ACEOF
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
15664#include <$ac_header>
15665_ACEOF
15666if { (ac_try="$ac_cpp conftest.$ac_ext"
15667case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15670esac
15671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } >/dev/null; then
15679 if test -s conftest.err; then
15680 ac_cpp_err=$ac_c_preproc_warn_flag
15681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15682 else
15683 ac_cpp_err=
15684 fi
15685else
15686 ac_cpp_err=yes
15687fi
15688if test -z "$ac_cpp_err"; then
15689 ac_header_preproc=yes
15690else
15691 echo "$as_me: failed program was:" >&5
15692sed 's/^/| /' conftest.$ac_ext >&5
15693
15694 ac_header_preproc=no
15695fi
15696
15697rm -f conftest.err conftest.$ac_ext
15698{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15699echo "${ECHO_T}$ac_header_preproc" >&6; }
15700
15701# So? What about this header?
15702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15703 yes:no: )
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15707echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15708 ac_header_preproc=yes
15709 ;;
15710 no:yes:* )
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15712echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15714echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15716echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15718echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15720echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15722echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15723 ( cat <<\_ASBOX
15724## ------------------------------ ##
15725## Report this to bugs@yourdomain ##
15726## ------------------------------ ##
15727_ASBOX
15728 ) | sed "s/^/$as_me: WARNING: /" >&2
15729 ;;
15730esac
15731{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15735else
15736 eval "$as_ac_Header=\$ac_header_preproc"
15737fi
15738ac_res=`eval echo '${'$as_ac_Header'}'`
15739 { echo "$as_me:$LINENO: result: $ac_res" >&5
15740echo "${ECHO_T}$ac_res" >&6; }
15741
15742fi
15743if test `eval echo '${'$as_ac_Header'}'` = yes; then
15744 cat >>confdefs.h <<_ACEOF
15745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15746_ACEOF
15747
15748fi
15749
15750done
15751
15752fi
15753
15754
15755for ac_header in CrashReporterClient.h
15756do
15757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15763fi
15764ac_res=`eval echo '${'$as_ac_Header'}'`
15765 { echo "$as_me:$LINENO: result: $ac_res" >&5
15766echo "${ECHO_T}$ac_res" >&6; }
15767else
15768 # Is the header compilable?
15769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15770echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
15778#include <$ac_header>
15779_ACEOF
15780rm -f conftest.$ac_objext
15781if { (ac_try="$ac_compile"
15782case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15785esac
15786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_compile") 2>conftest.er1
15788 ac_status=$?
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15795 { (case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798esac
15799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_try") 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; } &&
15804 { ac_try='test -s conftest.$ac_objext'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15808esac
15809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_try") 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_header_compiler=yes
15815else
15816 echo "$as_me: failed program was:" >&5
15817sed 's/^/| /' conftest.$ac_ext >&5
15818
15819 ac_header_compiler=no
15820fi
15821
15822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15824echo "${ECHO_T}$ac_header_compiler" >&6; }
15825
15826# Is the header present?
15827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15829cat >conftest.$ac_ext <<_ACEOF
15830/* confdefs.h. */
15831_ACEOF
15832cat confdefs.h >>conftest.$ac_ext
15833cat >>conftest.$ac_ext <<_ACEOF
15834/* end confdefs.h. */
15835#include <$ac_header>
15836_ACEOF
15837if { (ac_try="$ac_cpp conftest.$ac_ext"
15838case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15841esac
15842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } >/dev/null; then
15850 if test -s conftest.err; then
15851 ac_cpp_err=$ac_c_preproc_warn_flag
15852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15853 else
15854 ac_cpp_err=
15855 fi
15856else
15857 ac_cpp_err=yes
15858fi
15859if test -z "$ac_cpp_err"; then
15860 ac_header_preproc=yes
15861else
15862 echo "$as_me: failed program was:" >&5
15863sed 's/^/| /' conftest.$ac_ext >&5
15864
15865 ac_header_preproc=no
15866fi
15867
15868rm -f conftest.err conftest.$ac_ext
15869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15870echo "${ECHO_T}$ac_header_preproc" >&6; }
15871
15872# So? What about this header?
15873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15874 yes:no: )
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15879 ac_header_preproc=yes
15880 ;;
15881 no:yes:* )
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15894 ( cat <<\_ASBOX
15895## ------------------------------ ##
15896## Report this to bugs@yourdomain ##
15897## ------------------------------ ##
15898_ASBOX
15899 ) | sed "s/^/$as_me: WARNING: /" >&2
15900 ;;
15901esac
15902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15906else
15907 eval "$as_ac_Header=\$ac_header_preproc"
15908fi
15909ac_res=`eval echo '${'$as_ac_Header'}'`
15910 { echo "$as_me:$LINENO: result: $ac_res" >&5
15911echo "${ECHO_T}$ac_res" >&6; }
15912
15913fi
15914if test `eval echo '${'$as_ac_Header'}'` = yes; then
15915 cat >>confdefs.h <<_ACEOF
15916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15917_ACEOF
15918
15919fi
15920
15921done
15922
15923
15924{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15925echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15926cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932extern const char *__crashreporter_info__;
15933 int main() {
15934 __crashreporter_info__ = "test";
15935 return 0;
15936 }
15937
15938_ACEOF
15939rm -f conftest.$ac_objext conftest$ac_exeext
15940if { (ac_try="$ac_link"
15941case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15944esac
15945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_link") 2>conftest.er1
15947 ac_status=$?
15948 grep -v '^ *+' conftest.er1 >conftest.err
15949 rm -f conftest.er1
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15954 { (case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15957esac
15958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_try") 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; } &&
15963 { ac_try='test -s conftest$ac_exeext'
15964 { (case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15967esac
15968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_try") 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; }; then
15973 { echo "$as_me:$LINENO: result: yes" >&5
15974echo "${ECHO_T}yes" >&6; }
15975
15976cat >>confdefs.h <<\_ACEOF
15977#define HAVE_CRASHREPORTER_INFO 1
15978_ACEOF
15979
15980else
15981 echo "$as_me: failed program was:" >&5
15982sed 's/^/| /' conftest.$ac_ext >&5
15983
15984 { echo "$as_me:$LINENO: result: no" >&5
15985echo "${ECHO_T}no" >&6; }
15986
15987cat >>confdefs.h <<\_ACEOF
15988#define HAVE_CRASHREPORTER_INFO 0
15989_ACEOF
15990
15991fi
15992
15993rm -f core conftest.err conftest.$ac_objext \
15994 conftest$ac_exeext conftest.$ac_ext
15995
15996
15997
15998
15999 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16000echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16001if test "${ac_cv_huge_val_sanity+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003else
16004
16005 ac_ext=cpp
16006ac_cpp='$CXXCPP $CPPFLAGS'
16007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16010
16011 ac_save_CXXFLAGS=$CXXFLAGS
Benjamin Kramer00171802012-05-05 15:02:39 +000016012 CXXFLAGS="$CXXFLAGS -pedantic"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000016013 if test "$cross_compiling" = yes; then
16014 ac_cv_huge_val_sanity=yes
16015else
16016 cat >conftest.$ac_ext <<_ACEOF
16017/* confdefs.h. */
16018_ACEOF
16019cat confdefs.h >>conftest.$ac_ext
16020cat >>conftest.$ac_ext <<_ACEOF
16021/* end confdefs.h. */
16022#include <math.h>
16023int
16024main ()
16025{
16026double x = HUGE_VAL; return x != x;
16027 ;
16028 return 0;
16029}
16030_ACEOF
16031rm -f conftest$ac_exeext
16032if { (ac_try="$ac_link"
16033case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036esac
16037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_link") 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16042 { (case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16045esac
16046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_try") 2>&5
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_cv_huge_val_sanity=yes
16052else
16053 echo "$as_me: program exited with status $ac_status" >&5
16054echo "$as_me: failed program was:" >&5
16055sed 's/^/| /' conftest.$ac_ext >&5
16056
16057( exit $ac_status )
16058ac_cv_huge_val_sanity=no
16059fi
16060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16061fi
16062
16063
16064 CXXFLAGS=$ac_save_CXXFLAGS
16065 ac_ext=c
16066ac_cpp='$CPP $CPPFLAGS'
16067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16069ac_compiler_gnu=$ac_cv_c_compiler_gnu
16070
16071
16072fi
16073{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16074echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16075 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16076
16077
16078{ echo "$as_me:$LINENO: checking for pid_t" >&5
16079echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16080if test "${ac_cv_type_pid_t+set}" = set; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16082else
16083 cat >conftest.$ac_ext <<_ACEOF
16084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
16089$ac_includes_default
16090typedef pid_t ac__type_new_;
16091int
16092main ()
16093{
16094if ((ac__type_new_ *) 0)
16095 return 0;
16096if (sizeof (ac__type_new_))
16097 return 0;
16098 ;
16099 return 0;
16100}
16101_ACEOF
16102rm -f conftest.$ac_objext
16103if { (ac_try="$ac_compile"
16104case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107esac
16108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_compile") 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16117 { (case "(($ac_try" in
16118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119 *) ac_try_echo=$ac_try;;
16120esac
16121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122 (eval "$ac_try") 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest.$ac_objext'
16127 { (case "(($ac_try" in
16128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129 *) ac_try_echo=$ac_try;;
16130esac
16131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132 (eval "$ac_try") 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_cv_type_pid_t=yes
16137else
16138 echo "$as_me: failed program was:" >&5
16139sed 's/^/| /' conftest.$ac_ext >&5
16140
16141 ac_cv_type_pid_t=no
16142fi
16143
16144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145fi
16146{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16147echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16148if test $ac_cv_type_pid_t = yes; then
16149 :
16150else
16151
16152cat >>confdefs.h <<_ACEOF
16153#define pid_t int
16154_ACEOF
16155
16156fi
16157
16158{ echo "$as_me:$LINENO: checking for size_t" >&5
16159echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16160if test "${ac_cv_type_size_t+set}" = set; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16162else
16163 cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169$ac_includes_default
16170typedef size_t ac__type_new_;
16171int
16172main ()
16173{
16174if ((ac__type_new_ *) 0)
16175 return 0;
16176if (sizeof (ac__type_new_))
16177 return 0;
16178 ;
16179 return 0;
16180}
16181_ACEOF
16182rm -f conftest.$ac_objext
16183if { (ac_try="$ac_compile"
16184case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16187esac
16188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_compile") 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200esac
16201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest.$ac_objext'
16207 { (case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210esac
16211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_try") 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_cv_type_size_t=yes
16217else
16218 echo "$as_me: failed program was:" >&5
16219sed 's/^/| /' conftest.$ac_ext >&5
16220
16221 ac_cv_type_size_t=no
16222fi
16223
16224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225fi
16226{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16227echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16228if test $ac_cv_type_size_t = yes; then
16229 :
16230else
16231
16232cat >>confdefs.h <<_ACEOF
16233#define size_t unsigned int
16234_ACEOF
16235
16236fi
16237
16238
16239cat >>confdefs.h <<_ACEOF
16240#define RETSIGTYPE void
16241_ACEOF
16242
16243{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16244echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16245if test "${ac_cv_struct_tm+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16247else
16248 cat >conftest.$ac_ext <<_ACEOF
16249/* confdefs.h. */
16250_ACEOF
16251cat confdefs.h >>conftest.$ac_ext
16252cat >>conftest.$ac_ext <<_ACEOF
16253/* end confdefs.h. */
16254#include <sys/types.h>
16255#include <time.h>
16256
16257int
16258main ()
16259{
16260struct tm *tp; tp->tm_sec;
16261 ;
16262 return 0;
16263}
16264_ACEOF
16265rm -f conftest.$ac_objext
16266if { (ac_try="$ac_compile"
16267case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16270esac
16271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_compile") 2>conftest.er1
16273 ac_status=$?
16274 grep -v '^ *+' conftest.er1 >conftest.err
16275 rm -f conftest.er1
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16280 { (case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16283esac
16284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_try") 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest.$ac_objext'
16290 { (case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16293esac
16294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_try") 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 ac_cv_struct_tm=time.h
16300else
16301 echo "$as_me: failed program was:" >&5
16302sed 's/^/| /' conftest.$ac_ext >&5
16303
16304 ac_cv_struct_tm=sys/time.h
16305fi
16306
16307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308fi
16309{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16310echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16311if test $ac_cv_struct_tm = sys/time.h; then
16312
16313cat >>confdefs.h <<\_ACEOF
16314#define TM_IN_SYS_TIME 1
16315_ACEOF
16316
16317fi
16318
16319{ echo "$as_me:$LINENO: checking for int64_t" >&5
16320echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16321if test "${ac_cv_type_int64_t+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323else
16324 cat >conftest.$ac_ext <<_ACEOF
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
16330$ac_includes_default
16331typedef int64_t ac__type_new_;
16332int
16333main ()
16334{
16335if ((ac__type_new_ *) 0)
16336 return 0;
16337if (sizeof (ac__type_new_))
16338 return 0;
16339 ;
16340 return 0;
16341}
16342_ACEOF
16343rm -f conftest.$ac_objext
16344if { (ac_try="$ac_compile"
16345case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16348esac
16349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_compile") 2>conftest.er1
16351 ac_status=$?
16352 grep -v '^ *+' conftest.er1 >conftest.err
16353 rm -f conftest.er1
16354 cat conftest.err >&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16358 { (case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16361esac
16362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_try") 2>&5
16364 ac_status=$?
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; } &&
16367 { ac_try='test -s conftest.$ac_objext'
16368 { (case "(($ac_try" in
16369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370 *) ac_try_echo=$ac_try;;
16371esac
16372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373 (eval "$ac_try") 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; }; then
16377 ac_cv_type_int64_t=yes
16378else
16379 echo "$as_me: failed program was:" >&5
16380sed 's/^/| /' conftest.$ac_ext >&5
16381
16382 ac_cv_type_int64_t=no
16383fi
16384
16385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386fi
16387{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16388echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16389if test $ac_cv_type_int64_t = yes; then
16390
16391cat >>confdefs.h <<_ACEOF
16392#define HAVE_INT64_T 1
16393_ACEOF
16394
16395
16396else
16397 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16398echo "$as_me: error: Type int64_t required but not found" >&2;}
16399 { (exit 1); exit 1; }; }
16400fi
16401
16402{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16403echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16404if test "${ac_cv_type_uint64_t+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16406else
16407 cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414typedef uint64_t ac__type_new_;
16415int
16416main ()
16417{
16418if ((ac__type_new_ *) 0)
16419 return 0;
16420if (sizeof (ac__type_new_))
16421 return 0;
16422 ;
16423 return 0;
16424}
16425_ACEOF
16426rm -f conftest.$ac_objext
16427if { (ac_try="$ac_compile"
16428case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431esac
16432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_compile") 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441 { (case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444esac
16445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_try") 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest.$ac_objext'
16451 { (case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16454esac
16455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_try") 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_type_uint64_t=yes
16461else
16462 echo "$as_me: failed program was:" >&5
16463sed 's/^/| /' conftest.$ac_ext >&5
16464
16465 ac_cv_type_uint64_t=no
16466fi
16467
16468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469fi
16470{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16471echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16472if test $ac_cv_type_uint64_t = yes; then
16473
16474cat >>confdefs.h <<_ACEOF
16475#define HAVE_UINT64_T 1
16476_ACEOF
16477
16478
16479else
16480 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16481echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16482if test "${ac_cv_type_u_int64_t+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16484else
16485 cat >conftest.$ac_ext <<_ACEOF
16486/* confdefs.h. */
16487_ACEOF
16488cat confdefs.h >>conftest.$ac_ext
16489cat >>conftest.$ac_ext <<_ACEOF
16490/* end confdefs.h. */
16491$ac_includes_default
16492typedef u_int64_t ac__type_new_;
16493int
16494main ()
16495{
16496if ((ac__type_new_ *) 0)
16497 return 0;
16498if (sizeof (ac__type_new_))
16499 return 0;
16500 ;
16501 return 0;
16502}
16503_ACEOF
16504rm -f conftest.$ac_objext
16505if { (ac_try="$ac_compile"
16506case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16509esac
16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_compile") 2>conftest.er1
16512 ac_status=$?
16513 grep -v '^ *+' conftest.er1 >conftest.err
16514 rm -f conftest.er1
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16522esac
16523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_cv_type_u_int64_t=yes
16539else
16540 echo "$as_me: failed program was:" >&5
16541sed 's/^/| /' conftest.$ac_ext >&5
16542
16543 ac_cv_type_u_int64_t=no
16544fi
16545
16546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547fi
16548{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16549echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16550if test $ac_cv_type_u_int64_t = yes; then
16551
16552cat >>confdefs.h <<_ACEOF
16553#define HAVE_U_INT64_T 1
16554_ACEOF
16555
16556
16557else
16558 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16559echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16560 { (exit 1); exit 1; }; }
16561fi
16562
16563fi
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16575do
16576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16577{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16579if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581else
16582 cat >conftest.$ac_ext <<_ACEOF
16583/* confdefs.h. */
16584_ACEOF
16585cat confdefs.h >>conftest.$ac_ext
16586cat >>conftest.$ac_ext <<_ACEOF
16587/* end confdefs.h. */
16588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16590#define $ac_func innocuous_$ac_func
16591
16592/* System header to define __stub macros and hopefully few prototypes,
16593 which can conflict with char $ac_func (); below.
16594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16595 <limits.h> exists even on freestanding compilers. */
16596
16597#ifdef __STDC__
16598# include <limits.h>
16599#else
16600# include <assert.h>
16601#endif
16602
16603#undef $ac_func
16604
16605/* Override any GCC internal prototype to avoid an error.
16606 Use char because int might match the return type of a GCC
16607 builtin and then its argument prototype would still apply. */
16608#ifdef __cplusplus
16609extern "C"
16610#endif
16611char $ac_func ();
16612/* The GNU C library defines this for functions which it implements
16613 to always fail with ENOSYS. Some functions are actually named
16614 something starting with __ and the normal name is an alias. */
16615#if defined __stub_$ac_func || defined __stub___$ac_func
16616choke me
16617#endif
16618
16619int
16620main ()
16621{
16622return $ac_func ();
16623 ;
16624 return 0;
16625}
16626_ACEOF
16627rm -f conftest.$ac_objext conftest$ac_exeext
16628if { (ac_try="$ac_link"
16629case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_link") 2>conftest.er1
16635 ac_status=$?
16636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } &&
16641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645esac
16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest$ac_exeext'
16652 { (case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16655esac
16656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_try") 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 eval "$as_ac_var=yes"
16662else
16663 echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
16665
16666 eval "$as_ac_var=no"
16667fi
16668
16669rm -f core conftest.err conftest.$ac_objext \
16670 conftest$ac_exeext conftest.$ac_ext
16671fi
16672ac_res=`eval echo '${'$as_ac_var'}'`
16673 { echo "$as_me:$LINENO: result: $ac_res" >&5
16674echo "${ECHO_T}$ac_res" >&6; }
16675if test `eval echo '${'$as_ac_var'}'` = yes; then
16676 cat >>confdefs.h <<_ACEOF
16677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16678_ACEOF
16679
16680fi
16681done
16682
16683
16684
16685
16686
16687for ac_func in powf fmodf strtof round
16688do
16689as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16690{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16692if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16694else
16695 cat >conftest.$ac_ext <<_ACEOF
16696/* confdefs.h. */
16697_ACEOF
16698cat confdefs.h >>conftest.$ac_ext
16699cat >>conftest.$ac_ext <<_ACEOF
16700/* end confdefs.h. */
16701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16703#define $ac_func innocuous_$ac_func
16704
16705/* System header to define __stub macros and hopefully few prototypes,
16706 which can conflict with char $ac_func (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16709
16710#ifdef __STDC__
16711# include <limits.h>
16712#else
16713# include <assert.h>
16714#endif
16715
16716#undef $ac_func
16717
16718/* Override any GCC internal prototype to avoid an error.
16719 Use char because int might match the return type of a GCC
16720 builtin and then its argument prototype would still apply. */
16721#ifdef __cplusplus
16722extern "C"
16723#endif
16724char $ac_func ();
16725/* The GNU C library defines this for functions which it implements
16726 to always fail with ENOSYS. Some functions are actually named
16727 something starting with __ and the normal name is an alias. */
16728#if defined __stub_$ac_func || defined __stub___$ac_func
16729choke me
16730#endif
16731
16732int
16733main ()
16734{
16735return $ac_func ();
16736 ;
16737 return 0;
16738}
16739_ACEOF
16740rm -f conftest.$ac_objext conftest$ac_exeext
16741if { (ac_try="$ac_link"
16742case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16745esac
16746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_link") 2>conftest.er1
16748 ac_status=$?
16749 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16758esac
16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest$ac_exeext'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768esac
16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 eval "$as_ac_var=yes"
16775else
16776 echo "$as_me: failed program was:" >&5
16777sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 eval "$as_ac_var=no"
16780fi
16781
16782rm -f core conftest.err conftest.$ac_objext \
16783 conftest$ac_exeext conftest.$ac_ext
16784fi
16785ac_res=`eval echo '${'$as_ac_var'}'`
16786 { echo "$as_me:$LINENO: result: $ac_res" >&5
16787echo "${ECHO_T}$ac_res" >&6; }
16788if test `eval echo '${'$as_ac_var'}'` = yes; then
16789 cat >>confdefs.h <<_ACEOF
16790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16791_ACEOF
16792
16793fi
16794done
16795
16796
16797
16798
16799
16800
16801for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16802do
16803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16804{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16806if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808else
16809 cat >conftest.$ac_ext <<_ACEOF
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
16815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16817#define $ac_func innocuous_$ac_func
16818
16819/* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
16823
16824#ifdef __STDC__
16825# include <limits.h>
16826#else
16827# include <assert.h>
16828#endif
16829
16830#undef $ac_func
16831
16832/* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16835#ifdef __cplusplus
16836extern "C"
16837#endif
16838char $ac_func ();
16839/* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842#if defined __stub_$ac_func || defined __stub___$ac_func
16843choke me
16844#endif
16845
16846int
16847main ()
16848{
16849return $ac_func ();
16850 ;
16851 return 0;
16852}
16853_ACEOF
16854rm -f conftest.$ac_objext conftest$ac_exeext
16855if { (ac_try="$ac_link"
16856case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872esac
16873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest$ac_exeext'
16879 { (case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882esac
16883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_try") 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 eval "$as_ac_var=yes"
16889else
16890 echo "$as_me: failed program was:" >&5
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
16893 eval "$as_ac_var=no"
16894fi
16895
16896rm -f core conftest.err conftest.$ac_objext \
16897 conftest$ac_exeext conftest.$ac_ext
16898fi
16899ac_res=`eval echo '${'$as_ac_var'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901echo "${ECHO_T}$ac_res" >&6; }
16902if test `eval echo '${'$as_ac_var'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16905_ACEOF
16906
16907fi
16908done
16909
16910
16911
16912
16913for ac_func in isatty mkdtemp mkstemp
16914do
16915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16920else
16921 cat >conftest.$ac_ext <<_ACEOF
16922/* confdefs.h. */
16923_ACEOF
16924cat confdefs.h >>conftest.$ac_ext
16925cat >>conftest.$ac_ext <<_ACEOF
16926/* end confdefs.h. */
16927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16929#define $ac_func innocuous_$ac_func
16930
16931/* System header to define __stub macros and hopefully few prototypes,
16932 which can conflict with char $ac_func (); below.
16933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16934 <limits.h> exists even on freestanding compilers. */
16935
16936#ifdef __STDC__
16937# include <limits.h>
16938#else
16939# include <assert.h>
16940#endif
16941
16942#undef $ac_func
16943
16944/* Override any GCC internal prototype to avoid an error.
16945 Use char because int might match the return type of a GCC
16946 builtin and then its argument prototype would still apply. */
16947#ifdef __cplusplus
16948extern "C"
16949#endif
16950char $ac_func ();
16951/* The GNU C library defines this for functions which it implements
16952 to always fail with ENOSYS. Some functions are actually named
16953 something starting with __ and the normal name is an alias. */
16954#if defined __stub_$ac_func || defined __stub___$ac_func
16955choke me
16956#endif
16957
16958int
16959main ()
16960{
16961return $ac_func ();
16962 ;
16963 return 0;
16964}
16965_ACEOF
16966rm -f conftest.$ac_objext conftest$ac_exeext
16967if { (ac_try="$ac_link"
16968case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971esac
16972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_link") 2>conftest.er1
16974 ac_status=$?
16975 grep -v '^ *+' conftest.er1 >conftest.err
16976 rm -f conftest.er1
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16981 { (case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16984esac
16985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_try") 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest$ac_exeext'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994esac
16995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 eval "$as_ac_var=yes"
17001else
17002 echo "$as_me: failed program was:" >&5
17003sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 eval "$as_ac_var=no"
17006fi
17007
17008rm -f core conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext conftest.$ac_ext
17010fi
17011ac_res=`eval echo '${'$as_ac_var'}'`
17012 { echo "$as_me:$LINENO: result: $ac_res" >&5
17013echo "${ECHO_T}$ac_res" >&6; }
17014if test `eval echo '${'$as_ac_var'}'` = yes; then
17015 cat >>confdefs.h <<_ACEOF
17016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17017_ACEOF
17018
17019fi
17020done
17021
17022
17023
17024
17025
17026
17027
17028for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17029do
17030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17033if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035else
17036 cat >conftest.$ac_ext <<_ACEOF
17037/* confdefs.h. */
17038_ACEOF
17039cat confdefs.h >>conftest.$ac_ext
17040cat >>conftest.$ac_ext <<_ACEOF
17041/* end confdefs.h. */
17042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17044#define $ac_func innocuous_$ac_func
17045
17046/* System header to define __stub macros and hopefully few prototypes,
17047 which can conflict with char $ac_func (); below.
17048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049 <limits.h> exists even on freestanding compilers. */
17050
17051#ifdef __STDC__
17052# include <limits.h>
17053#else
17054# include <assert.h>
17055#endif
17056
17057#undef $ac_func
17058
17059/* Override any GCC internal prototype to avoid an error.
17060 Use char because int might match the return type of a GCC
17061 builtin and then its argument prototype would still apply. */
17062#ifdef __cplusplus
17063extern "C"
17064#endif
17065char $ac_func ();
17066/* The GNU C library defines this for functions which it implements
17067 to always fail with ENOSYS. Some functions are actually named
17068 something starting with __ and the normal name is an alias. */
17069#if defined __stub_$ac_func || defined __stub___$ac_func
17070choke me
17071#endif
17072
17073int
17074main ()
17075{
17076return $ac_func ();
17077 ;
17078 return 0;
17079}
17080_ACEOF
17081rm -f conftest.$ac_objext conftest$ac_exeext
17082if { (ac_try="$ac_link"
17083case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086esac
17087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_link") 2>conftest.er1
17089 ac_status=$?
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest$ac_exeext'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109esac
17110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 eval "$as_ac_var=yes"
17116else
17117 echo "$as_me: failed program was:" >&5
17118sed 's/^/| /' conftest.$ac_ext >&5
17119
17120 eval "$as_ac_var=no"
17121fi
17122
17123rm -f core conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17125fi
17126ac_res=`eval echo '${'$as_ac_var'}'`
17127 { echo "$as_me:$LINENO: result: $ac_res" >&5
17128echo "${ECHO_T}$ac_res" >&6; }
17129if test `eval echo '${'$as_ac_var'}'` = yes; then
17130 cat >>confdefs.h <<_ACEOF
17131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17132_ACEOF
17133
17134fi
17135done
17136
17137
17138
17139
17140for ac_func in strerror strerror_r setenv
17141do
17142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147else
17148 cat >conftest.$ac_ext <<_ACEOF
17149/* confdefs.h. */
17150_ACEOF
17151cat confdefs.h >>conftest.$ac_ext
17152cat >>conftest.$ac_ext <<_ACEOF
17153/* end confdefs.h. */
17154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17156#define $ac_func innocuous_$ac_func
17157
17158/* System header to define __stub macros and hopefully few prototypes,
17159 which can conflict with char $ac_func (); below.
17160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17161 <limits.h> exists even on freestanding compilers. */
17162
17163#ifdef __STDC__
17164# include <limits.h>
17165#else
17166# include <assert.h>
17167#endif
17168
17169#undef $ac_func
17170
17171/* Override any GCC internal prototype to avoid an error.
17172 Use char because int might match the return type of a GCC
17173 builtin and then its argument prototype would still apply. */
17174#ifdef __cplusplus
17175extern "C"
17176#endif
17177char $ac_func ();
17178/* The GNU C library defines this for functions which it implements
17179 to always fail with ENOSYS. Some functions are actually named
17180 something starting with __ and the normal name is an alias. */
17181#if defined __stub_$ac_func || defined __stub___$ac_func
17182choke me
17183#endif
17184
17185int
17186main ()
17187{
17188return $ac_func ();
17189 ;
17190 return 0;
17191}
17192_ACEOF
17193rm -f conftest.$ac_objext conftest$ac_exeext
17194if { (ac_try="$ac_link"
17195case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198esac
17199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_link") 2>conftest.er1
17201 ac_status=$?
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
17207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17208 { (case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17211esac
17212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_try") 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest$ac_exeext'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221esac
17222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 eval "$as_ac_var=yes"
17228else
17229 echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 eval "$as_ac_var=no"
17233fi
17234
17235rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17237fi
17238ac_res=`eval echo '${'$as_ac_var'}'`
17239 { echo "$as_me:$LINENO: result: $ac_res" >&5
17240echo "${ECHO_T}$ac_res" >&6; }
17241if test `eval echo '${'$as_ac_var'}'` = yes; then
17242 cat >>confdefs.h <<_ACEOF
17243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17244_ACEOF
17245
17246fi
17247done
17248
17249
17250
17251
17252
17253for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17254do
17255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17256{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17258if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260else
17261 cat >conftest.$ac_ext <<_ACEOF
17262/* confdefs.h. */
17263_ACEOF
17264cat confdefs.h >>conftest.$ac_ext
17265cat >>conftest.$ac_ext <<_ACEOF
17266/* end confdefs.h. */
17267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17269#define $ac_func innocuous_$ac_func
17270
17271/* System header to define __stub macros and hopefully few prototypes,
17272 which can conflict with char $ac_func (); below.
17273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17274 <limits.h> exists even on freestanding compilers. */
17275
17276#ifdef __STDC__
17277# include <limits.h>
17278#else
17279# include <assert.h>
17280#endif
17281
17282#undef $ac_func
17283
17284/* Override any GCC internal prototype to avoid an error.
17285 Use char because int might match the return type of a GCC
17286 builtin and then its argument prototype would still apply. */
17287#ifdef __cplusplus
17288extern "C"
17289#endif
17290char $ac_func ();
17291/* The GNU C library defines this for functions which it implements
17292 to always fail with ENOSYS. Some functions are actually named
17293 something starting with __ and the normal name is an alias. */
17294#if defined __stub_$ac_func || defined __stub___$ac_func
17295choke me
17296#endif
17297
17298int
17299main ()
17300{
17301return $ac_func ();
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306rm -f conftest.$ac_objext conftest$ac_exeext
17307if { (ac_try="$ac_link"
17308case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17311esac
17312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_link") 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17321 { (case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17324esac
17325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_try") 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest$ac_exeext'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17334esac
17335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
17340 eval "$as_ac_var=yes"
17341else
17342 echo "$as_me: failed program was:" >&5
17343sed 's/^/| /' conftest.$ac_ext >&5
17344
17345 eval "$as_ac_var=no"
17346fi
17347
17348rm -f core conftest.err conftest.$ac_objext \
17349 conftest$ac_exeext conftest.$ac_ext
17350fi
17351ac_res=`eval echo '${'$as_ac_var'}'`
17352 { echo "$as_me:$LINENO: result: $ac_res" >&5
17353echo "${ECHO_T}$ac_res" >&6; }
17354if test `eval echo '${'$as_ac_var'}'` = yes; then
17355 cat >>confdefs.h <<_ACEOF
17356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17357_ACEOF
17358
17359fi
17360done
17361
17362
17363
17364
17365
17366
17367for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17368do
17369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17370{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374else
17375 cat >conftest.$ac_ext <<_ACEOF
17376/* confdefs.h. */
17377_ACEOF
17378cat confdefs.h >>conftest.$ac_ext
17379cat >>conftest.$ac_ext <<_ACEOF
17380/* end confdefs.h. */
17381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17383#define $ac_func innocuous_$ac_func
17384
17385/* System header to define __stub macros and hopefully few prototypes,
17386 which can conflict with char $ac_func (); below.
17387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 <limits.h> exists even on freestanding compilers. */
17389
17390#ifdef __STDC__
17391# include <limits.h>
17392#else
17393# include <assert.h>
17394#endif
17395
17396#undef $ac_func
17397
17398/* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17401#ifdef __cplusplus
17402extern "C"
17403#endif
17404char $ac_func ();
17405/* The GNU C library defines this for functions which it implements
17406 to always fail with ENOSYS. Some functions are actually named
17407 something starting with __ and the normal name is an alias. */
17408#if defined __stub_$ac_func || defined __stub___$ac_func
17409choke me
17410#endif
17411
17412int
17413main ()
17414{
17415return $ac_func ();
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest.$ac_objext conftest$ac_exeext
17421if { (ac_try="$ac_link"
17422case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17425esac
17426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17438esac
17439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17441 ac_status=$?
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest$ac_exeext'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17448esac
17449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 eval "$as_ac_var=yes"
17455else
17456 echo "$as_me: failed program was:" >&5
17457sed 's/^/| /' conftest.$ac_ext >&5
17458
17459 eval "$as_ac_var=no"
17460fi
17461
17462rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17464fi
17465ac_res=`eval echo '${'$as_ac_var'}'`
17466 { echo "$as_me:$LINENO: result: $ac_res" >&5
17467echo "${ECHO_T}$ac_res" >&6; }
17468if test `eval echo '${'$as_ac_var'}'` = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17471_ACEOF
17472
17473fi
17474done
17475
17476{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17477echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17478if test "${llvm_cv_c_printf_a+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480else
17481 ac_ext=c
17482ac_cpp='$CPP $CPPFLAGS'
17483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17485ac_compiler_gnu=$ac_cv_c_compiler_gnu
17486
17487 if test "$cross_compiling" = yes; then
17488 llvmac_cv_c_printf_a=no
17489else
17490 cat >conftest.$ac_ext <<_ACEOF
17491
17492 /* confdefs.h. */
17493_ACEOF
17494cat confdefs.h >>conftest.$ac_ext
17495cat >>conftest.$ac_ext <<_ACEOF
17496/* end confdefs.h. */
17497
17498#include <stdio.h>
17499#include <stdlib.h>
17500
17501int
17502main ()
17503{
17504
17505volatile double A, B;
17506char Buffer[100];
17507A = 1;
17508A /= 10.0;
17509sprintf(Buffer, "%a", A);
17510B = atof(Buffer);
17511if (A != B)
17512 return (1);
17513if (A != 0x1.999999999999ap-4)
17514 return (1);
17515return (0);
17516 ;
17517 return 0;
17518}
17519_ACEOF
17520rm -f conftest$ac_exeext
17521if { (ac_try="$ac_link"
17522case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17525esac
17526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534esac
17535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 llvm_cv_c_printf_a=yes
17541else
17542 echo "$as_me: program exited with status $ac_status" >&5
17543echo "$as_me: failed program was:" >&5
17544sed 's/^/| /' conftest.$ac_ext >&5
17545
17546( exit $ac_status )
17547llvmac_cv_c_printf_a=no
17548fi
17549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17550fi
17551
17552
17553 ac_ext=c
17554ac_cpp='$CPP $CPPFLAGS'
17555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17557ac_compiler_gnu=$ac_cv_c_compiler_gnu
17558
17559fi
17560{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17561echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17562 if test "$llvm_cv_c_printf_a" = "yes"; then
17563
17564cat >>confdefs.h <<\_ACEOF
17565#define HAVE_PRINTF_A 1
17566_ACEOF
17567
17568 fi
17569
17570
17571{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17572echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17573if test "${ac_cv_func_rand48+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575else
17576 ac_ext=cpp
17577ac_cpp='$CXXCPP $CPPFLAGS'
17578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17581
17582 cat >conftest.$ac_ext <<_ACEOF
17583/* confdefs.h. */
17584_ACEOF
17585cat confdefs.h >>conftest.$ac_ext
17586cat >>conftest.$ac_ext <<_ACEOF
17587/* end confdefs.h. */
17588#include <stdlib.h>
17589int
17590main ()
17591{
17592srand48(0);lrand48();drand48();
17593 ;
17594 return 0;
17595}
17596_ACEOF
17597rm -f conftest.$ac_objext
17598if { (ac_try="$ac_compile"
17599case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17602esac
17603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_compile") 2>conftest.er1
17605 ac_status=$?
17606 grep -v '^ *+' conftest.er1 >conftest.err
17607 rm -f conftest.er1
17608 cat conftest.err >&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17612 { (case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17615esac
17616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_try") 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try='test -s conftest.$ac_objext'
17622 { (case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17625esac
17626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_try") 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; }; then
17631 ac_cv_func_rand48=yes
17632else
17633 echo "$as_me: failed program was:" >&5
17634sed 's/^/| /' conftest.$ac_ext >&5
17635
17636 ac_cv_func_rand48=no
17637fi
17638
17639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640 ac_ext=c
17641ac_cpp='$CPP $CPPFLAGS'
17642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644ac_compiler_gnu=$ac_cv_c_compiler_gnu
17645
17646fi
17647{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17648echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17649
17650if test "$ac_cv_func_rand48" = "yes" ; then
17651
17652cat >>confdefs.h <<\_ACEOF
17653#define HAVE_RAND48 1
17654_ACEOF
17655
17656fi
17657
17658
17659{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17660echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17661if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17663else
17664 cat >conftest.$ac_ext <<_ACEOF
17665/* confdefs.h. */
17666_ACEOF
17667cat confdefs.h >>conftest.$ac_ext
17668cat >>conftest.$ac_ext <<_ACEOF
17669/* end confdefs.h. */
17670$ac_includes_default
17671int
17672main ()
17673{
17674#ifndef strerror_s
17675 char *p = (char *) strerror_s;
17676 return !p;
17677#endif
17678
17679 ;
17680 return 0;
17681}
17682_ACEOF
17683rm -f conftest.$ac_objext
17684if { (ac_try="$ac_compile"
17685case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17688esac
17689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_compile") 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17701esac
17702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest.$ac_objext'
17708 { (case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17711esac
17712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_try") 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
17717 ac_cv_have_decl_strerror_s=yes
17718else
17719 echo "$as_me: failed program was:" >&5
17720sed 's/^/| /' conftest.$ac_ext >&5
17721
17722 ac_cv_have_decl_strerror_s=no
17723fi
17724
17725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17726fi
17727{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17728echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17729if test $ac_cv_have_decl_strerror_s = yes; then
17730
17731cat >>confdefs.h <<_ACEOF
17732#define HAVE_DECL_STRERROR_S 1
17733_ACEOF
17734
17735
17736else
17737 cat >>confdefs.h <<_ACEOF
17738#define HAVE_DECL_STRERROR_S 0
17739_ACEOF
17740
17741
17742fi
17743
17744
17745
17746if test "$llvm_cv_os_type" = "MingW" ; then
17747 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17748echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17749if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17751else
17752 ac_check_lib_save_LIBS=$LIBS
17753LIBS="-lgcc $LIBS"
17754cat >conftest.$ac_ext <<_ACEOF
17755/* confdefs.h. */
17756_ACEOF
17757cat confdefs.h >>conftest.$ac_ext
17758cat >>conftest.$ac_ext <<_ACEOF
17759/* end confdefs.h. */
17760
17761/* Override any GCC internal prototype to avoid an error.
17762 Use char because int might match the return type of a GCC
17763 builtin and then its argument prototype would still apply. */
17764#ifdef __cplusplus
17765extern "C"
17766#endif
17767char _alloca ();
17768int
17769main ()
17770{
17771return _alloca ();
17772 ;
17773 return 0;
17774}
17775_ACEOF
17776rm -f conftest.$ac_objext conftest$ac_exeext
17777if { (ac_try="$ac_link"
17778case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781esac
17782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_link") 2>conftest.er1
17784 ac_status=$?
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
17790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17791 { (case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17794esac
17795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_try") 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
17801 { (case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804esac
17805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_try") 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 ac_cv_lib_gcc__alloca=yes
17811else
17812 echo "$as_me: failed program was:" >&5
17813sed 's/^/| /' conftest.$ac_ext >&5
17814
17815 ac_cv_lib_gcc__alloca=no
17816fi
17817
17818rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17820LIBS=$ac_check_lib_save_LIBS
17821fi
17822{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17823echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17824if test $ac_cv_lib_gcc__alloca = yes; then
17825
17826cat >>confdefs.h <<\_ACEOF
17827#define HAVE__ALLOCA 1
17828_ACEOF
17829
17830fi
17831
17832 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17833echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17834if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836else
17837 ac_check_lib_save_LIBS=$LIBS
17838LIBS="-lgcc $LIBS"
17839cat >conftest.$ac_ext <<_ACEOF
17840/* confdefs.h. */
17841_ACEOF
17842cat confdefs.h >>conftest.$ac_ext
17843cat >>conftest.$ac_ext <<_ACEOF
17844/* end confdefs.h. */
17845
17846/* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17849#ifdef __cplusplus
17850extern "C"
17851#endif
17852char __alloca ();
17853int
17854main ()
17855{
17856return __alloca ();
17857 ;
17858 return 0;
17859}
17860_ACEOF
17861rm -f conftest.$ac_objext conftest$ac_exeext
17862if { (ac_try="$ac_link"
17863case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866esac
17867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17876 { (case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17879esac
17880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_try") 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest$ac_exeext'
17886 { (case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17889esac
17890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_try") 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; }; then
17895 ac_cv_lib_gcc___alloca=yes
17896else
17897 echo "$as_me: failed program was:" >&5
17898sed 's/^/| /' conftest.$ac_ext >&5
17899
17900 ac_cv_lib_gcc___alloca=no
17901fi
17902
17903rm -f core conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17905LIBS=$ac_check_lib_save_LIBS
17906fi
17907{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17908echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17909if test $ac_cv_lib_gcc___alloca = yes; then
17910
17911cat >>confdefs.h <<\_ACEOF
17912#define HAVE___ALLOCA 1
17913_ACEOF
17914
17915fi
17916
17917 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17918echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17919if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17921else
17922 ac_check_lib_save_LIBS=$LIBS
17923LIBS="-lgcc $LIBS"
17924cat >conftest.$ac_ext <<_ACEOF
17925/* confdefs.h. */
17926_ACEOF
17927cat confdefs.h >>conftest.$ac_ext
17928cat >>conftest.$ac_ext <<_ACEOF
17929/* end confdefs.h. */
17930
17931/* Override any GCC internal prototype to avoid an error.
17932 Use char because int might match the return type of a GCC
17933 builtin and then its argument prototype would still apply. */
17934#ifdef __cplusplus
17935extern "C"
17936#endif
17937char __chkstk ();
17938int
17939main ()
17940{
17941return __chkstk ();
17942 ;
17943 return 0;
17944}
17945_ACEOF
17946rm -f conftest.$ac_objext conftest$ac_exeext
17947if { (ac_try="$ac_link"
17948case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17951esac
17952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_link") 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17961 { (case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17964esac
17965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_try") 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest$ac_exeext'
17971 { (case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17974esac
17975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_try") 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 ac_cv_lib_gcc___chkstk=yes
17981else
17982 echo "$as_me: failed program was:" >&5
17983sed 's/^/| /' conftest.$ac_ext >&5
17984
17985 ac_cv_lib_gcc___chkstk=no
17986fi
17987
17988rm -f core conftest.err conftest.$ac_objext \
17989 conftest$ac_exeext conftest.$ac_ext
17990LIBS=$ac_check_lib_save_LIBS
17991fi
17992{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17993echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17994if test $ac_cv_lib_gcc___chkstk = yes; then
17995
17996cat >>confdefs.h <<\_ACEOF
17997#define HAVE___CHKSTK 1
17998_ACEOF
17999
18000fi
18001
18002 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18003echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18004if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18005 echo $ECHO_N "(cached) $ECHO_C" >&6
18006else
18007 ac_check_lib_save_LIBS=$LIBS
18008LIBS="-lgcc $LIBS"
18009cat >conftest.$ac_ext <<_ACEOF
18010/* confdefs.h. */
18011_ACEOF
18012cat confdefs.h >>conftest.$ac_ext
18013cat >>conftest.$ac_ext <<_ACEOF
18014/* end confdefs.h. */
18015
18016/* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18019#ifdef __cplusplus
18020extern "C"
18021#endif
18022char ___chkstk ();
18023int
18024main ()
18025{
18026return ___chkstk ();
18027 ;
18028 return 0;
18029}
18030_ACEOF
18031rm -f conftest.$ac_objext conftest$ac_exeext
18032if { (ac_try="$ac_link"
18033case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036esac
18037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_link") 2>conftest.er1
18039 ac_status=$?
18040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049esac
18050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest$ac_exeext'
18056 { (case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18059esac
18060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061 (eval "$ac_try") 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 ac_cv_lib_gcc____chkstk=yes
18066else
18067 echo "$as_me: failed program was:" >&5
18068sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 ac_cv_lib_gcc____chkstk=no
18071fi
18072
18073rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18075LIBS=$ac_check_lib_save_LIBS
18076fi
18077{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18078echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18079if test $ac_cv_lib_gcc____chkstk = yes; then
18080
18081cat >>confdefs.h <<\_ACEOF
18082#define HAVE____CHKSTK 1
18083_ACEOF
18084
18085fi
18086
18087
18088 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18089echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18090if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092else
18093 ac_check_lib_save_LIBS=$LIBS
18094LIBS="-lgcc $LIBS"
18095cat >conftest.$ac_ext <<_ACEOF
18096/* confdefs.h. */
18097_ACEOF
18098cat confdefs.h >>conftest.$ac_ext
18099cat >>conftest.$ac_ext <<_ACEOF
18100/* end confdefs.h. */
18101
18102/* Override any GCC internal prototype to avoid an error.
18103 Use char because int might match the return type of a GCC
18104 builtin and then its argument prototype would still apply. */
18105#ifdef __cplusplus
18106extern "C"
18107#endif
18108char __ashldi3 ();
18109int
18110main ()
18111{
18112return __ashldi3 ();
18113 ;
18114 return 0;
18115}
18116_ACEOF
18117rm -f conftest.$ac_objext conftest$ac_exeext
18118if { (ac_try="$ac_link"
18119case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_link") 2>conftest.er1
18125 ac_status=$?
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
18131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18132 { (case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18135esac
18136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_try") 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try='test -s conftest$ac_exeext'
18142 { (case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18145esac
18146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_try") 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_lib_gcc___ashldi3=yes
18152else
18153 echo "$as_me: failed program was:" >&5
18154sed 's/^/| /' conftest.$ac_ext >&5
18155
18156 ac_cv_lib_gcc___ashldi3=no
18157fi
18158
18159rm -f core conftest.err conftest.$ac_objext \
18160 conftest$ac_exeext conftest.$ac_ext
18161LIBS=$ac_check_lib_save_LIBS
18162fi
18163{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18164echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18165if test $ac_cv_lib_gcc___ashldi3 = yes; then
18166
18167cat >>confdefs.h <<\_ACEOF
18168#define HAVE___ASHLDI3 1
18169_ACEOF
18170
18171fi
18172
18173 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18174echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18175if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18177else
18178 ac_check_lib_save_LIBS=$LIBS
18179LIBS="-lgcc $LIBS"
18180cat >conftest.$ac_ext <<_ACEOF
18181/* confdefs.h. */
18182_ACEOF
18183cat confdefs.h >>conftest.$ac_ext
18184cat >>conftest.$ac_ext <<_ACEOF
18185/* end confdefs.h. */
18186
18187/* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18190#ifdef __cplusplus
18191extern "C"
18192#endif
18193char __ashrdi3 ();
18194int
18195main ()
18196{
18197return __ashrdi3 ();
18198 ;
18199 return 0;
18200}
18201_ACEOF
18202rm -f conftest.$ac_objext conftest$ac_exeext
18203if { (ac_try="$ac_link"
18204case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207esac
18208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_link") 2>conftest.er1
18210 ac_status=$?
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18217 { (case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220esac
18221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_try") 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest$ac_exeext'
18227 { (case "(($ac_try" in
18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229 *) ac_try_echo=$ac_try;;
18230esac
18231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232 (eval "$ac_try") 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_cv_lib_gcc___ashrdi3=yes
18237else
18238 echo "$as_me: failed program was:" >&5
18239sed 's/^/| /' conftest.$ac_ext >&5
18240
18241 ac_cv_lib_gcc___ashrdi3=no
18242fi
18243
18244rm -f core conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18246LIBS=$ac_check_lib_save_LIBS
18247fi
18248{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18249echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18250if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18251
18252cat >>confdefs.h <<\_ACEOF
18253#define HAVE___ASHRDI3 1
18254_ACEOF
18255
18256fi
18257
18258 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18259echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18260if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18262else
18263 ac_check_lib_save_LIBS=$LIBS
18264LIBS="-lgcc $LIBS"
18265cat >conftest.$ac_ext <<_ACEOF
18266/* confdefs.h. */
18267_ACEOF
18268cat confdefs.h >>conftest.$ac_ext
18269cat >>conftest.$ac_ext <<_ACEOF
18270/* end confdefs.h. */
18271
18272/* Override any GCC internal prototype to avoid an error.
18273 Use char because int might match the return type of a GCC
18274 builtin and then its argument prototype would still apply. */
18275#ifdef __cplusplus
18276extern "C"
18277#endif
18278char __divdi3 ();
18279int
18280main ()
18281{
18282return __divdi3 ();
18283 ;
18284 return 0;
18285}
18286_ACEOF
18287rm -f conftest.$ac_objext conftest$ac_exeext
18288if { (ac_try="$ac_link"
18289case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18292esac
18293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_link") 2>conftest.er1
18295 ac_status=$?
18296 grep -v '^ *+' conftest.er1 >conftest.err
18297 rm -f conftest.er1
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18302 { (case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18305esac
18306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_try") 2>&5
18308 ac_status=$?
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; } &&
18311 { ac_try='test -s conftest$ac_exeext'
18312 { (case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18315esac
18316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_try") 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_lib_gcc___divdi3=yes
18322else
18323 echo "$as_me: failed program was:" >&5
18324sed 's/^/| /' conftest.$ac_ext >&5
18325
18326 ac_cv_lib_gcc___divdi3=no
18327fi
18328
18329rm -f core conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331LIBS=$ac_check_lib_save_LIBS
18332fi
18333{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18334echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18335if test $ac_cv_lib_gcc___divdi3 = yes; then
18336
18337cat >>confdefs.h <<\_ACEOF
18338#define HAVE___DIVDI3 1
18339_ACEOF
18340
18341fi
18342
18343 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18344echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18345if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18347else
18348 ac_check_lib_save_LIBS=$LIBS
18349LIBS="-lgcc $LIBS"
18350cat >conftest.$ac_ext <<_ACEOF
18351/* confdefs.h. */
18352_ACEOF
18353cat confdefs.h >>conftest.$ac_ext
18354cat >>conftest.$ac_ext <<_ACEOF
18355/* end confdefs.h. */
18356
18357/* Override any GCC internal prototype to avoid an error.
18358 Use char because int might match the return type of a GCC
18359 builtin and then its argument prototype would still apply. */
18360#ifdef __cplusplus
18361extern "C"
18362#endif
18363char __fixdfdi ();
18364int
18365main ()
18366{
18367return __fixdfdi ();
18368 ;
18369 return 0;
18370}
18371_ACEOF
18372rm -f conftest.$ac_objext conftest$ac_exeext
18373if { (ac_try="$ac_link"
18374case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377esac
18378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_link") 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
18386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18387 { (case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390esac
18391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_try") 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; } &&
18396 { ac_try='test -s conftest$ac_exeext'
18397 { (case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18400esac
18401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_try") 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 ac_cv_lib_gcc___fixdfdi=yes
18407else
18408 echo "$as_me: failed program was:" >&5
18409sed 's/^/| /' conftest.$ac_ext >&5
18410
18411 ac_cv_lib_gcc___fixdfdi=no
18412fi
18413
18414rm -f core conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416LIBS=$ac_check_lib_save_LIBS
18417fi
18418{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18419echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18420if test $ac_cv_lib_gcc___fixdfdi = yes; then
18421
18422cat >>confdefs.h <<\_ACEOF
18423#define HAVE___FIXDFDI 1
18424_ACEOF
18425
18426fi
18427
18428 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18429echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18430if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18432else
18433 ac_check_lib_save_LIBS=$LIBS
18434LIBS="-lgcc $LIBS"
18435cat >conftest.$ac_ext <<_ACEOF
18436/* confdefs.h. */
18437_ACEOF
18438cat confdefs.h >>conftest.$ac_ext
18439cat >>conftest.$ac_ext <<_ACEOF
18440/* end confdefs.h. */
18441
18442/* Override any GCC internal prototype to avoid an error.
18443 Use char because int might match the return type of a GCC
18444 builtin and then its argument prototype would still apply. */
18445#ifdef __cplusplus
18446extern "C"
18447#endif
18448char __fixsfdi ();
18449int
18450main ()
18451{
18452return __fixsfdi ();
18453 ;
18454 return 0;
18455}
18456_ACEOF
18457rm -f conftest.$ac_objext conftest$ac_exeext
18458if { (ac_try="$ac_link"
18459case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462esac
18463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_link") 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475esac
18476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest$ac_exeext'
18482 { (case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485esac
18486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_try") 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 ac_cv_lib_gcc___fixsfdi=yes
18492else
18493 echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496 ac_cv_lib_gcc___fixsfdi=no
18497fi
18498
18499rm -f core conftest.err conftest.$ac_objext \
18500 conftest$ac_exeext conftest.$ac_ext
18501LIBS=$ac_check_lib_save_LIBS
18502fi
18503{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18504echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18505if test $ac_cv_lib_gcc___fixsfdi = yes; then
18506
18507cat >>confdefs.h <<\_ACEOF
18508#define HAVE___FIXSFDI 1
18509_ACEOF
18510
18511fi
18512
18513 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18514echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18515if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517else
18518 ac_check_lib_save_LIBS=$LIBS
18519LIBS="-lgcc $LIBS"
18520cat >conftest.$ac_ext <<_ACEOF
18521/* confdefs.h. */
18522_ACEOF
18523cat confdefs.h >>conftest.$ac_ext
18524cat >>conftest.$ac_ext <<_ACEOF
18525/* end confdefs.h. */
18526
18527/* Override any GCC internal prototype to avoid an error.
18528 Use char because int might match the return type of a GCC
18529 builtin and then its argument prototype would still apply. */
18530#ifdef __cplusplus
18531extern "C"
18532#endif
18533char __floatdidf ();
18534int
18535main ()
18536{
18537return __floatdidf ();
18538 ;
18539 return 0;
18540}
18541_ACEOF
18542rm -f conftest.$ac_objext conftest$ac_exeext
18543if { (ac_try="$ac_link"
18544case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18547esac
18548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_link") 2>conftest.er1
18550 ac_status=$?
18551 grep -v '^ *+' conftest.er1 >conftest.err
18552 rm -f conftest.er1
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } &&
18556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18557 { (case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560esac
18561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_try") 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try='test -s conftest$ac_exeext'
18567 { (case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570esac
18571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_try") 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; }; then
18576 ac_cv_lib_gcc___floatdidf=yes
18577else
18578 echo "$as_me: failed program was:" >&5
18579sed 's/^/| /' conftest.$ac_ext >&5
18580
18581 ac_cv_lib_gcc___floatdidf=no
18582fi
18583
18584rm -f core conftest.err conftest.$ac_objext \
18585 conftest$ac_exeext conftest.$ac_ext
18586LIBS=$ac_check_lib_save_LIBS
18587fi
18588{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18589echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18590if test $ac_cv_lib_gcc___floatdidf = yes; then
18591
18592cat >>confdefs.h <<\_ACEOF
18593#define HAVE___FLOATDIDF 1
18594_ACEOF
18595
18596fi
18597
18598 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18599echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18600if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602else
18603 ac_check_lib_save_LIBS=$LIBS
18604LIBS="-lgcc $LIBS"
18605cat >conftest.$ac_ext <<_ACEOF
18606/* confdefs.h. */
18607_ACEOF
18608cat confdefs.h >>conftest.$ac_ext
18609cat >>conftest.$ac_ext <<_ACEOF
18610/* end confdefs.h. */
18611
18612/* Override any GCC internal prototype to avoid an error.
18613 Use char because int might match the return type of a GCC
18614 builtin and then its argument prototype would still apply. */
18615#ifdef __cplusplus
18616extern "C"
18617#endif
18618char __lshrdi3 ();
18619int
18620main ()
18621{
18622return __lshrdi3 ();
18623 ;
18624 return 0;
18625}
18626_ACEOF
18627rm -f conftest.$ac_objext conftest$ac_exeext
18628if { (ac_try="$ac_link"
18629case "(($ac_try" in
18630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631 *) ac_try_echo=$ac_try;;
18632esac
18633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634 (eval "$ac_link") 2>conftest.er1
18635 ac_status=$?
18636 grep -v '^ *+' conftest.er1 >conftest.err
18637 rm -f conftest.er1
18638 cat conftest.err >&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } &&
18641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18642 { (case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18645esac
18646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_try") 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest$ac_exeext'
18652 { (case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18655esac
18656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_try") 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 ac_cv_lib_gcc___lshrdi3=yes
18662else
18663 echo "$as_me: failed program was:" >&5
18664sed 's/^/| /' conftest.$ac_ext >&5
18665
18666 ac_cv_lib_gcc___lshrdi3=no
18667fi
18668
18669rm -f core conftest.err conftest.$ac_objext \
18670 conftest$ac_exeext conftest.$ac_ext
18671LIBS=$ac_check_lib_save_LIBS
18672fi
18673{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18674echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18675if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18676
18677cat >>confdefs.h <<\_ACEOF
18678#define HAVE___LSHRDI3 1
18679_ACEOF
18680
18681fi
18682
18683 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18684echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18685if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18687else
18688 ac_check_lib_save_LIBS=$LIBS
18689LIBS="-lgcc $LIBS"
18690cat >conftest.$ac_ext <<_ACEOF
18691/* confdefs.h. */
18692_ACEOF
18693cat confdefs.h >>conftest.$ac_ext
18694cat >>conftest.$ac_ext <<_ACEOF
18695/* end confdefs.h. */
18696
18697/* Override any GCC internal prototype to avoid an error.
18698 Use char because int might match the return type of a GCC
18699 builtin and then its argument prototype would still apply. */
18700#ifdef __cplusplus
18701extern "C"
18702#endif
18703char __moddi3 ();
18704int
18705main ()
18706{
18707return __moddi3 ();
18708 ;
18709 return 0;
18710}
18711_ACEOF
18712rm -f conftest.$ac_objext conftest$ac_exeext
18713if { (ac_try="$ac_link"
18714case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18717esac
18718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_link") 2>conftest.er1
18720 ac_status=$?
18721 grep -v '^ *+' conftest.er1 >conftest.err
18722 rm -f conftest.er1
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_try") 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest$ac_exeext'
18737 { (case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18740esac
18741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_try") 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_cv_lib_gcc___moddi3=yes
18747else
18748 echo "$as_me: failed program was:" >&5
18749sed 's/^/| /' conftest.$ac_ext >&5
18750
18751 ac_cv_lib_gcc___moddi3=no
18752fi
18753
18754rm -f core conftest.err conftest.$ac_objext \
18755 conftest$ac_exeext conftest.$ac_ext
18756LIBS=$ac_check_lib_save_LIBS
18757fi
18758{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18759echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18760if test $ac_cv_lib_gcc___moddi3 = yes; then
18761
18762cat >>confdefs.h <<\_ACEOF
18763#define HAVE___MODDI3 1
18764_ACEOF
18765
18766fi
18767
18768 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18769echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18770if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18772else
18773 ac_check_lib_save_LIBS=$LIBS
18774LIBS="-lgcc $LIBS"
18775cat >conftest.$ac_ext <<_ACEOF
18776/* confdefs.h. */
18777_ACEOF
18778cat confdefs.h >>conftest.$ac_ext
18779cat >>conftest.$ac_ext <<_ACEOF
18780/* end confdefs.h. */
18781
18782/* Override any GCC internal prototype to avoid an error.
18783 Use char because int might match the return type of a GCC
18784 builtin and then its argument prototype would still apply. */
18785#ifdef __cplusplus
18786extern "C"
18787#endif
18788char __udivdi3 ();
18789int
18790main ()
18791{
18792return __udivdi3 ();
18793 ;
18794 return 0;
18795}
18796_ACEOF
18797rm -f conftest.$ac_objext conftest$ac_exeext
18798if { (ac_try="$ac_link"
18799case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18802esac
18803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_link") 2>conftest.er1
18805 ac_status=$?
18806 grep -v '^ *+' conftest.er1 >conftest.err
18807 rm -f conftest.er1
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18812 { (case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18815esac
18816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_try") 2>&5
18818 ac_status=$?
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try='test -s conftest$ac_exeext'
18822 { (case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18825esac
18826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_try") 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18831 ac_cv_lib_gcc___udivdi3=yes
18832else
18833 echo "$as_me: failed program was:" >&5
18834sed 's/^/| /' conftest.$ac_ext >&5
18835
18836 ac_cv_lib_gcc___udivdi3=no
18837fi
18838
18839rm -f core conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
18841LIBS=$ac_check_lib_save_LIBS
18842fi
18843{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18844echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18845if test $ac_cv_lib_gcc___udivdi3 = yes; then
18846
18847cat >>confdefs.h <<\_ACEOF
18848#define HAVE___UDIVDI3 1
18849_ACEOF
18850
18851fi
18852
18853 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18854echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18855if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18857else
18858 ac_check_lib_save_LIBS=$LIBS
18859LIBS="-lgcc $LIBS"
18860cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866
18867/* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18870#ifdef __cplusplus
18871extern "C"
18872#endif
18873char __umoddi3 ();
18874int
18875main ()
18876{
18877return __umoddi3 ();
18878 ;
18879 return 0;
18880}
18881_ACEOF
18882rm -f conftest.$ac_objext conftest$ac_exeext
18883if { (ac_try="$ac_link"
18884case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18887esac
18888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_link") 2>conftest.er1
18890 ac_status=$?
18891 grep -v '^ *+' conftest.er1 >conftest.err
18892 rm -f conftest.er1
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18897 { (case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900esac
18901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_try") 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } &&
18906 { ac_try='test -s conftest$ac_exeext'
18907 { (case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18910esac
18911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_try") 2>&5
18913 ac_status=$?
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; }; then
18916 ac_cv_lib_gcc___umoddi3=yes
18917else
18918 echo "$as_me: failed program was:" >&5
18919sed 's/^/| /' conftest.$ac_ext >&5
18920
18921 ac_cv_lib_gcc___umoddi3=no
18922fi
18923
18924rm -f core conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18926LIBS=$ac_check_lib_save_LIBS
18927fi
18928{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18929echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18930if test $ac_cv_lib_gcc___umoddi3 = yes; then
18931
18932cat >>confdefs.h <<\_ACEOF
18933#define HAVE___UMODDI3 1
18934_ACEOF
18935
18936fi
18937
18938
18939 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18940echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18941if test "${ac_cv_lib_gcc___main+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943else
18944 ac_check_lib_save_LIBS=$LIBS
18945LIBS="-lgcc $LIBS"
18946cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952
18953/* Override any GCC internal prototype to avoid an error.
18954 Use char because int might match the return type of a GCC
18955 builtin and then its argument prototype would still apply. */
18956#ifdef __cplusplus
18957extern "C"
18958#endif
18959char __main ();
18960int
18961main ()
18962{
18963return __main ();
18964 ;
18965 return 0;
18966}
18967_ACEOF
18968rm -f conftest.$ac_objext conftest$ac_exeext
18969if { (ac_try="$ac_link"
18970case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973esac
18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_link") 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
18982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18983 { (case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18986esac
18987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_try") 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest$ac_exeext'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996esac
18997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_cv_lib_gcc___main=yes
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007 ac_cv_lib_gcc___main=no
19008fi
19009
19010rm -f core conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
19012LIBS=$ac_check_lib_save_LIBS
19013fi
19014{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19015echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19016if test $ac_cv_lib_gcc___main = yes; then
19017
19018cat >>confdefs.h <<\_ACEOF
19019#define HAVE___MAIN 1
19020_ACEOF
19021
19022fi
19023
19024 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19025echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19026if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19028else
19029 ac_check_lib_save_LIBS=$LIBS
19030LIBS="-lgcc $LIBS"
19031cat >conftest.$ac_ext <<_ACEOF
19032/* confdefs.h. */
19033_ACEOF
19034cat confdefs.h >>conftest.$ac_ext
19035cat >>conftest.$ac_ext <<_ACEOF
19036/* end confdefs.h. */
19037
19038/* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19041#ifdef __cplusplus
19042extern "C"
19043#endif
19044char __cmpdi2 ();
19045int
19046main ()
19047{
19048return __cmpdi2 ();
19049 ;
19050 return 0;
19051}
19052_ACEOF
19053rm -f conftest.$ac_objext conftest$ac_exeext
19054if { (ac_try="$ac_link"
19055case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058esac
19059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_link") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19068 { (case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071esac
19072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_try") 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081esac
19082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_try") 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_cv_lib_gcc___cmpdi2=yes
19088else
19089 echo "$as_me: failed program was:" >&5
19090sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 ac_cv_lib_gcc___cmpdi2=no
19093fi
19094
19095rm -f core conftest.err conftest.$ac_objext \
19096 conftest$ac_exeext conftest.$ac_ext
19097LIBS=$ac_check_lib_save_LIBS
19098fi
19099{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19100echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19101if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19102
19103cat >>confdefs.h <<\_ACEOF
19104#define HAVE___CMPDI2 1
19105_ACEOF
19106
19107fi
19108
19109fi
19110
19111if test "$llvm_cv_os_type" = "MingW" ; then
19112 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19113echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19114 cat >conftest.$ac_ext <<_ACEOF
19115#include <windows.h>
19116#include <imagehlp.h>
19117extern void foo(PENUMLOADED_MODULES_CALLBACK);
19118extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19119_ACEOF
19120rm -f conftest.$ac_objext
19121if { (ac_try="$ac_compile"
19122case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125esac
19126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_compile") 2>conftest.er1
19128 ac_status=$?
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19135 { (case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19138esac
19139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_try") 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest.$ac_objext'
19145 { (case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19148esac
19149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_try") 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154
19155 { echo "$as_me:$LINENO: result: yes" >&5
19156echo "${ECHO_T}yes" >&6; }
19157 llvm_cv_win32_elmcb_pcstr="PCSTR"
19158
19159else
19160 echo "$as_me: failed program was:" >&5
19161sed 's/^/| /' conftest.$ac_ext >&5
19162
19163
19164 { echo "$as_me:$LINENO: result: no" >&5
19165echo "${ECHO_T}no" >&6; }
19166 llvm_cv_win32_elmcb_pcstr="PSTR"
19167
19168fi
19169
19170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171
19172cat >>confdefs.h <<_ACEOF
19173#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19174_ACEOF
19175
19176fi
19177
19178
19179{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19180echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19181if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183else
19184 ac_ext=cpp
19185ac_cpp='$CXXCPP $CPPFLAGS'
19186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19189
19190 cat >conftest.$ac_ext <<_ACEOF
19191/* confdefs.h. */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h. */
19196#include <math.h>
19197int
19198main ()
19199{
19200float f; isnan(f);
19201 ;
19202 return 0;
19203}
19204_ACEOF
19205rm -f conftest.$ac_objext
19206if { (ac_try="$ac_compile"
19207case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19210esac
19211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19213 ac_status=$?
19214 grep -v '^ *+' conftest.er1 >conftest.err
19215 rm -f conftest.er1
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } &&
19219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19220 { (case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19223esac
19224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_try") 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19233esac
19234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_func_isnan_in_math_h=yes
19240else
19241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_cv_func_isnan_in_math_h=no
19245fi
19246
19247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19248 ac_ext=c
19249ac_cpp='$CPP $CPPFLAGS'
19250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252ac_compiler_gnu=$ac_cv_c_compiler_gnu
19253
19254fi
19255{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19256echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19257
19258
19259if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19260
19261cat >>confdefs.h <<\_ACEOF
19262#define HAVE_ISNAN_IN_MATH_H 1
19263_ACEOF
19264
19265fi
19266
19267{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19268echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19269if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271else
19272 ac_ext=cpp
19273ac_cpp='$CXXCPP $CPPFLAGS'
19274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19277
19278 cat >conftest.$ac_ext <<_ACEOF
19279/* confdefs.h. */
19280_ACEOF
19281cat confdefs.h >>conftest.$ac_ext
19282cat >>conftest.$ac_ext <<_ACEOF
19283/* end confdefs.h. */
19284#include <cmath>
19285int
19286main ()
19287{
19288float f; isnan(f);
19289 ;
19290 return 0;
19291}
19292_ACEOF
19293rm -f conftest.$ac_objext
19294if { (ac_try="$ac_compile"
19295case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19298esac
19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_compile") 2>conftest.er1
19301 ac_status=$?
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19308 { (case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19311esac
19312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_try") 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest.$ac_objext'
19318 { (case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321esac
19322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_try") 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 ac_cv_func_isnan_in_cmath=yes
19328else
19329 echo "$as_me: failed program was:" >&5
19330sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 ac_cv_func_isnan_in_cmath=no
19333fi
19334
19335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19336 ac_ext=c
19337ac_cpp='$CPP $CPPFLAGS'
19338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340ac_compiler_gnu=$ac_cv_c_compiler_gnu
19341
19342fi
19343{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19344echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19345
19346if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19347
19348cat >>confdefs.h <<\_ACEOF
19349#define HAVE_ISNAN_IN_CMATH 1
19350_ACEOF
19351
19352fi
19353
19354{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19355echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19356if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19358else
19359 ac_ext=cpp
19360ac_cpp='$CXXCPP $CPPFLAGS'
19361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19364
19365 cat >conftest.$ac_ext <<_ACEOF
19366/* confdefs.h. */
19367_ACEOF
19368cat confdefs.h >>conftest.$ac_ext
19369cat >>conftest.$ac_ext <<_ACEOF
19370/* end confdefs.h. */
19371#include <cmath>
19372int
19373main ()
19374{
19375float f; std::isnan(f);
19376 ;
19377 return 0;
19378}
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (ac_try="$ac_compile"
19382case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19385esac
19386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_compile") 2>conftest.er1
19388 ac_status=$?
19389 grep -v '^ *+' conftest.er1 >conftest.err
19390 rm -f conftest.er1
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19395 { (case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19398esac
19399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400 (eval "$ac_try") 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; } &&
19404 { ac_try='test -s conftest.$ac_objext'
19405 { (case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408esac
19409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_try") 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_cv_func_std_isnan_in_cmath=yes
19415else
19416 echo "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419 ac_cv_func_std_isnan_in_cmath=no
19420fi
19421
19422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19423 ac_ext=c
19424ac_cpp='$CPP $CPPFLAGS'
19425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427ac_compiler_gnu=$ac_cv_c_compiler_gnu
19428
19429fi
19430{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19431echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19432
19433if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19434
19435cat >>confdefs.h <<\_ACEOF
19436#define HAVE_STD_ISNAN_IN_CMATH 1
19437_ACEOF
19438
19439fi
19440
19441
19442{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19443echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19444if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19446else
19447 ac_ext=cpp
19448ac_cpp='$CXXCPP $CPPFLAGS'
19449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19452
19453 cat >conftest.$ac_ext <<_ACEOF
19454/* confdefs.h. */
19455_ACEOF
19456cat confdefs.h >>conftest.$ac_ext
19457cat >>conftest.$ac_ext <<_ACEOF
19458/* end confdefs.h. */
19459#include <math.h>
19460int
19461main ()
19462{
19463float f; isinf(f);
19464 ;
19465 return 0;
19466}
19467_ACEOF
19468rm -f conftest.$ac_objext
19469if { (ac_try="$ac_compile"
19470case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19473esac
19474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_compile") 2>conftest.er1
19476 ac_status=$?
19477 grep -v '^ *+' conftest.er1 >conftest.err
19478 rm -f conftest.er1
19479 cat conftest.err >&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19483 { (case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19486esac
19487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_try") 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest.$ac_objext'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496esac
19497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 ac_cv_func_isinf_in_math_h=yes
19503else
19504 echo "$as_me: failed program was:" >&5
19505sed 's/^/| /' conftest.$ac_ext >&5
19506
19507 ac_cv_func_isinf_in_math_h=no
19508fi
19509
19510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19511 ac_ext=c
19512ac_cpp='$CPP $CPPFLAGS'
19513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516
19517fi
19518{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19519echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19520
19521if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19522
19523cat >>confdefs.h <<\_ACEOF
19524#define HAVE_ISINF_IN_MATH_H 1
19525_ACEOF
19526
19527fi
19528
19529{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19530echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19531if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19533else
19534 ac_ext=cpp
19535ac_cpp='$CXXCPP $CPPFLAGS'
19536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19539
19540 cat >conftest.$ac_ext <<_ACEOF
19541/* confdefs.h. */
19542_ACEOF
19543cat confdefs.h >>conftest.$ac_ext
19544cat >>conftest.$ac_ext <<_ACEOF
19545/* end confdefs.h. */
19546#include <cmath>
19547int
19548main ()
19549{
19550float f; isinf(f);
19551 ;
19552 return 0;
19553}
19554_ACEOF
19555rm -f conftest.$ac_objext
19556if { (ac_try="$ac_compile"
19557case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19560esac
19561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_compile") 2>conftest.er1
19563 ac_status=$?
19564 grep -v '^ *+' conftest.er1 >conftest.err
19565 rm -f conftest.er1
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19573esac
19574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest.$ac_objext'
19580 { (case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19583esac
19584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_try") 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_func_isinf_in_cmath=yes
19590else
19591 echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_cv_func_isinf_in_cmath=no
19595fi
19596
19597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19598 ac_ext=c
19599ac_cpp='$CPP $CPPFLAGS'
19600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602ac_compiler_gnu=$ac_cv_c_compiler_gnu
19603
19604fi
19605{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19606echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19607
19608if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19609
19610cat >>confdefs.h <<\_ACEOF
19611#define HAVE_ISINF_IN_CMATH 1
19612_ACEOF
19613
19614fi
19615
19616{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19617echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19618if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19620else
19621 ac_ext=cpp
19622ac_cpp='$CXXCPP $CPPFLAGS'
19623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19626
19627 cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h. */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h. */
19633#include <cmath>
19634int
19635main ()
19636{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019637float f; std::isinf(f);
Daniel Dunbarbf79f912011-10-18 23:10:58 +000019638 ;
19639 return 0;
19640}
19641_ACEOF
19642rm -f conftest.$ac_objext
19643if { (ac_try="$ac_compile"
19644case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19647esac
19648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_compile") 2>conftest.er1
19650 ac_status=$?
19651 grep -v '^ *+' conftest.er1 >conftest.err
19652 rm -f conftest.er1
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19657 { (case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19660esac
19661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_try") 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
19667 { (case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670esac
19671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_try") 2>&5
19673 ac_status=$?
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; }; then
19676 ac_cv_func_std_isinf_in_cmath=yes
19677else
19678 echo "$as_me: failed program was:" >&5
19679sed 's/^/| /' conftest.$ac_ext >&5
19680
19681 ac_cv_func_std_isinf_in_cmath=no
19682fi
19683
19684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 ac_ext=c
19686ac_cpp='$CPP $CPPFLAGS'
19687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689ac_compiler_gnu=$ac_cv_c_compiler_gnu
19690
19691fi
19692{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19693echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19694
19695if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19696
19697cat >>confdefs.h <<\_ACEOF
19698#define HAVE_STD_ISINF_IN_CMATH 1
19699_ACEOF
19700
19701fi
19702
19703{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19704echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19705if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19707else
19708 ac_ext=cpp
19709ac_cpp='$CXXCPP $CPPFLAGS'
19710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19713
19714 cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720#include <ieeefp.h>
19721int
19722main ()
19723{
19724float f; finite(f);
19725 ;
19726 return 0;
19727}
19728_ACEOF
19729rm -f conftest.$ac_objext
19730if { (ac_try="$ac_compile"
19731case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734esac
19735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_compile") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
19743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19744 { (case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19747esac
19748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_try") 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19757esac
19758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_try") 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 ac_cv_func_finite_in_ieeefp_h=yes
19764else
19765 echo "$as_me: failed program was:" >&5
19766sed 's/^/| /' conftest.$ac_ext >&5
19767
19768 ac_cv_func_finite_in_ieeefp_h=no
19769fi
19770
19771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19772 ac_ext=c
19773ac_cpp='$CPP $CPPFLAGS'
19774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776ac_compiler_gnu=$ac_cv_c_compiler_gnu
19777
19778fi
19779{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19780echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19781
19782if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19783
19784cat >>confdefs.h <<\_ACEOF
19785#define HAVE_FINITE_IN_IEEEFP_H 1
19786_ACEOF
19787
19788fi
19789
19790
19791
19792if test "$llvm_cv_platform_type" = "Unix" ; then
19793
19794
19795for ac_header in stdlib.h unistd.h
19796do
19797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803fi
19804ac_res=`eval echo '${'$as_ac_Header'}'`
19805 { echo "$as_me:$LINENO: result: $ac_res" >&5
19806echo "${ECHO_T}$ac_res" >&6; }
19807else
19808 # Is the header compilable?
19809{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19810echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
19818#include <$ac_header>
19819_ACEOF
19820rm -f conftest.$ac_objext
19821if { (ac_try="$ac_compile"
19822case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19825esac
19826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_compile") 2>conftest.er1
19828 ac_status=$?
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838esac
19839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; } &&
19844 { ac_try='test -s conftest.$ac_objext'
19845 { (case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848esac
19849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_try") 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 ac_header_compiler=yes
19855else
19856 echo "$as_me: failed program was:" >&5
19857sed 's/^/| /' conftest.$ac_ext >&5
19858
19859 ac_header_compiler=no
19860fi
19861
19862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19864echo "${ECHO_T}$ac_header_compiler" >&6; }
19865
19866# Is the header present?
19867{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19869cat >conftest.$ac_ext <<_ACEOF
19870/* confdefs.h. */
19871_ACEOF
19872cat confdefs.h >>conftest.$ac_ext
19873cat >>conftest.$ac_ext <<_ACEOF
19874/* end confdefs.h. */
19875#include <$ac_header>
19876_ACEOF
19877if { (ac_try="$ac_cpp conftest.$ac_ext"
19878case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19881esac
19882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19884 ac_status=$?
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } >/dev/null; then
19890 if test -s conftest.err; then
19891 ac_cpp_err=$ac_c_preproc_warn_flag
19892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19893 else
19894 ac_cpp_err=
19895 fi
19896else
19897 ac_cpp_err=yes
19898fi
19899if test -z "$ac_cpp_err"; then
19900 ac_header_preproc=yes
19901else
19902 echo "$as_me: failed program was:" >&5
19903sed 's/^/| /' conftest.$ac_ext >&5
19904
19905 ac_header_preproc=no
19906fi
19907
19908rm -f conftest.err conftest.$ac_ext
19909{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19910echo "${ECHO_T}$ac_header_preproc" >&6; }
19911
19912# So? What about this header?
19913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19914 yes:no: )
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19916echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19918echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19919 ac_header_preproc=yes
19920 ;;
19921 no:yes:* )
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19925echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19927echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19929echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19931echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19933echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19934 ( cat <<\_ASBOX
19935## ------------------------------ ##
19936## Report this to bugs@yourdomain ##
19937## ------------------------------ ##
19938_ASBOX
19939 ) | sed "s/^/$as_me: WARNING: /" >&2
19940 ;;
19941esac
19942{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19946else
19947 eval "$as_ac_Header=\$ac_header_preproc"
19948fi
19949ac_res=`eval echo '${'$as_ac_Header'}'`
19950 { echo "$as_me:$LINENO: result: $ac_res" >&5
19951echo "${ECHO_T}$ac_res" >&6; }
19952
19953fi
19954if test `eval echo '${'$as_ac_Header'}'` = yes; then
19955 cat >>confdefs.h <<_ACEOF
19956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19957_ACEOF
19958
19959fi
19960
19961done
19962
19963
19964for ac_func in getpagesize
19965do
19966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19967{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19969if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971else
19972 cat >conftest.$ac_ext <<_ACEOF
19973/* confdefs.h. */
19974_ACEOF
19975cat confdefs.h >>conftest.$ac_ext
19976cat >>conftest.$ac_ext <<_ACEOF
19977/* end confdefs.h. */
19978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19980#define $ac_func innocuous_$ac_func
19981
19982/* System header to define __stub macros and hopefully few prototypes,
19983 which can conflict with char $ac_func (); below.
19984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19985 <limits.h> exists even on freestanding compilers. */
19986
19987#ifdef __STDC__
19988# include <limits.h>
19989#else
19990# include <assert.h>
19991#endif
19992
19993#undef $ac_func
19994
19995/* Override any GCC internal prototype to avoid an error.
19996 Use char because int might match the return type of a GCC
19997 builtin and then its argument prototype would still apply. */
19998#ifdef __cplusplus
19999extern "C"
20000#endif
20001char $ac_func ();
20002/* The GNU C library defines this for functions which it implements
20003 to always fail with ENOSYS. Some functions are actually named
20004 something starting with __ and the normal name is an alias. */
20005#if defined __stub_$ac_func || defined __stub___$ac_func
20006choke me
20007#endif
20008
20009int
20010main ()
20011{
20012return $ac_func ();
20013 ;
20014 return 0;
20015}
20016_ACEOF
20017rm -f conftest.$ac_objext conftest$ac_exeext
20018if { (ac_try="$ac_link"
20019case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022esac
20023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_link") 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
20031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20032 { (case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035esac
20036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_try") 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; } &&
20041 { ac_try='test -s conftest$ac_exeext'
20042 { (case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045esac
20046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_try") 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 eval "$as_ac_var=yes"
20052else
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
20056 eval "$as_ac_var=no"
20057fi
20058
20059rm -f core conftest.err conftest.$ac_objext \
20060 conftest$ac_exeext conftest.$ac_ext
20061fi
20062ac_res=`eval echo '${'$as_ac_var'}'`
20063 { echo "$as_me:$LINENO: result: $ac_res" >&5
20064echo "${ECHO_T}$ac_res" >&6; }
20065if test `eval echo '${'$as_ac_var'}'` = yes; then
20066 cat >>confdefs.h <<_ACEOF
20067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20068_ACEOF
20069
20070fi
20071done
20072
20073{ echo "$as_me:$LINENO: checking for working mmap" >&5
20074echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20075if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077else
20078 if test "$cross_compiling" = yes; then
20079 ac_cv_func_mmap_fixed_mapped=no
20080else
20081 cat >conftest.$ac_ext <<_ACEOF
20082/* confdefs.h. */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
20086/* end confdefs.h. */
20087$ac_includes_default
20088/* malloc might have been renamed as rpl_malloc. */
20089#undef malloc
20090
20091/* Thanks to Mike Haertel and Jim Avera for this test.
20092 Here is a matrix of mmap possibilities:
20093 mmap private not fixed
20094 mmap private fixed at somewhere currently unmapped
20095 mmap private fixed at somewhere already mapped
20096 mmap shared not fixed
20097 mmap shared fixed at somewhere currently unmapped
20098 mmap shared fixed at somewhere already mapped
20099 For private mappings, we should verify that changes cannot be read()
20100 back from the file, nor mmap's back from the file at a different
20101 address. (There have been systems where private was not correctly
20102 implemented like the infamous i386 svr4.0, and systems where the
20103 VM page cache was not coherent with the file system buffer cache
20104 like early versions of FreeBSD and possibly contemporary NetBSD.)
20105 For shared mappings, we should conversely verify that changes get
20106 propagated back to all the places they're supposed to be.
20107
20108 Grep wants private fixed already mapped.
20109 The main things grep needs to know about mmap are:
20110 * does it exist and is it safe to write into the mmap'd area
20111 * how to use it (BSD variants) */
20112
20113#include <fcntl.h>
20114#include <sys/mman.h>
20115
20116#if !STDC_HEADERS && !HAVE_STDLIB_H
20117char *malloc ();
20118#endif
20119
20120/* This mess was copied from the GNU getpagesize.h. */
20121#if !HAVE_GETPAGESIZE
20122/* Assume that all systems that can run configure have sys/param.h. */
20123# if !HAVE_SYS_PARAM_H
20124# define HAVE_SYS_PARAM_H 1
20125# endif
20126
20127# ifdef _SC_PAGESIZE
20128# define getpagesize() sysconf(_SC_PAGESIZE)
20129# else /* no _SC_PAGESIZE */
20130# if HAVE_SYS_PARAM_H
20131# include <sys/param.h>
20132# ifdef EXEC_PAGESIZE
20133# define getpagesize() EXEC_PAGESIZE
20134# else /* no EXEC_PAGESIZE */
20135# ifdef NBPG
20136# define getpagesize() NBPG * CLSIZE
20137# ifndef CLSIZE
20138# define CLSIZE 1
20139# endif /* no CLSIZE */
20140# else /* no NBPG */
20141# ifdef NBPC
20142# define getpagesize() NBPC
20143# else /* no NBPC */
20144# ifdef PAGESIZE
20145# define getpagesize() PAGESIZE
20146# endif /* PAGESIZE */
20147# endif /* no NBPC */
20148# endif /* no NBPG */
20149# endif /* no EXEC_PAGESIZE */
20150# else /* no HAVE_SYS_PARAM_H */
20151# define getpagesize() 8192 /* punt totally */
20152# endif /* no HAVE_SYS_PARAM_H */
20153# endif /* no _SC_PAGESIZE */
20154
20155#endif /* no HAVE_GETPAGESIZE */
20156
20157int
20158main ()
20159{
20160 char *data, *data2, *data3;
20161 int i, pagesize;
20162 int fd;
20163
20164 pagesize = getpagesize ();
20165
20166 /* First, make a file with some known garbage in it. */
20167 data = (char *) malloc (pagesize);
20168 if (!data)
20169 return 1;
20170 for (i = 0; i < pagesize; ++i)
20171 *(data + i) = rand ();
20172 umask (0);
20173 fd = creat ("conftest.mmap", 0600);
20174 if (fd < 0)
20175 return 1;
20176 if (write (fd, data, pagesize) != pagesize)
20177 return 1;
20178 close (fd);
20179
20180 /* Next, try to mmap the file at a fixed address which already has
20181 something else allocated at it. If we can, also make sure that
20182 we see the same garbage. */
20183 fd = open ("conftest.mmap", O_RDWR);
20184 if (fd < 0)
20185 return 1;
20186 data2 = (char *) malloc (2 * pagesize);
20187 if (!data2)
20188 return 1;
20189 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20190 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20191 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20192 return 1;
20193 for (i = 0; i < pagesize; ++i)
20194 if (*(data + i) != *(data2 + i))
20195 return 1;
20196
20197 /* Finally, make sure that changes to the mapped area do not
20198 percolate back to the file as seen by read(). (This is a bug on
20199 some variants of i386 svr4.0.) */
20200 for (i = 0; i < pagesize; ++i)
20201 *(data2 + i) = *(data2 + i) + 1;
20202 data3 = (char *) malloc (pagesize);
20203 if (!data3)
20204 return 1;
20205 if (read (fd, data3, pagesize) != pagesize)
20206 return 1;
20207 for (i = 0; i < pagesize; ++i)
20208 if (*(data + i) != *(data3 + i))
20209 return 1;
20210 close (fd);
20211 return 0;
20212}
20213_ACEOF
20214rm -f conftest$ac_exeext
20215if { (ac_try="$ac_link"
20216case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20219esac
20220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_link") 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20228esac
20229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 ac_cv_func_mmap_fixed_mapped=yes
20235else
20236 echo "$as_me: program exited with status $ac_status" >&5
20237echo "$as_me: failed program was:" >&5
20238sed 's/^/| /' conftest.$ac_ext >&5
20239
20240( exit $ac_status )
20241ac_cv_func_mmap_fixed_mapped=no
20242fi
20243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20244fi
20245
20246
20247fi
20248{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20249echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20250if test $ac_cv_func_mmap_fixed_mapped = yes; then
20251
20252cat >>confdefs.h <<\_ACEOF
20253#define HAVE_MMAP 1
20254_ACEOF
20255
20256fi
20257rm -f conftest.mmap
20258
20259 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20260echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20261if test "${ac_cv_func_mmap_file+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263else
20264 ac_ext=c
20265ac_cpp='$CPP $CPPFLAGS'
20266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20268ac_compiler_gnu=$ac_cv_c_compiler_gnu
20269
20270 if test "$cross_compiling" = yes; then
20271 ac_cv_func_mmap_file=no
20272else
20273 cat >conftest.$ac_ext <<_ACEOF
20274
20275 /* confdefs.h. */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h. */
20280
20281#include <sys/types.h>
20282#include <sys/mman.h>
20283#include <fcntl.h>
20284
20285int
20286main ()
20287{
20288
20289 int fd;
20290 fd = creat ("foo",0777);
20291 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20292 unlink ("foo");
20293 return (fd != (int) MAP_FAILED);
20294 ;
20295 return 0;
20296}
20297_ACEOF
20298rm -f conftest$ac_exeext
20299if { (ac_try="$ac_link"
20300case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20303esac
20304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305 (eval "$ac_link") 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309 { (case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20312esac
20313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_try") 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 ac_cv_func_mmap_file=yes
20319else
20320 echo "$as_me: program exited with status $ac_status" >&5
20321echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324( exit $ac_status )
20325ac_cv_func_mmap_file=no
20326fi
20327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20328fi
20329
20330
20331 ac_ext=c
20332ac_cpp='$CPP $CPPFLAGS'
20333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20335ac_compiler_gnu=$ac_cv_c_compiler_gnu
20336
20337
20338fi
20339{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20340echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20341if test "$ac_cv_func_mmap_file" = yes; then
20342
20343cat >>confdefs.h <<\_ACEOF
20344#define HAVE_MMAP_FILE
20345_ACEOF
20346
20347 MMAP_FILE=yes
20348
20349fi
20350
20351 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20352echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20353if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355else
20356 if test "$llvm_cv_os_type" = "Interix" ; then
20357 ac_cv_need_dev_zero_for_mmap=yes
20358 else
20359 ac_cv_need_dev_zero_for_mmap=no
20360 fi
20361
20362fi
20363{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20364echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20365if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20366
20367cat >>confdefs.h <<\_ACEOF
20368#define NEED_DEV_ZERO_FOR_MMAP 1
20369_ACEOF
20370
20371fi
20372
20373 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20374 then
20375 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20376echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20377 fi
20378 if test "$ac_cv_func_mmap_file" = "no"
20379 then
20380 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20381echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20382 fi
20383fi
20384
20385{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20386echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20387ac_ext=cpp
20388ac_cpp='$CXXCPP $CPPFLAGS'
20389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20392
20393cat >conftest.$ac_ext <<_ACEOF
20394/* confdefs.h. */
20395_ACEOF
20396cat confdefs.h >>conftest.$ac_ext
20397cat >>conftest.$ac_ext <<_ACEOF
20398/* end confdefs.h. */
20399int main() {
20400 volatile unsigned long val = 1;
20401 __sync_synchronize();
20402 __sync_val_compare_and_swap(&val, 1, 0);
20403 __sync_add_and_fetch(&val, 1);
20404 __sync_sub_and_fetch(&val, 1);
20405 return 0;
20406 }
20407
20408_ACEOF
20409rm -f conftest.$ac_objext conftest$ac_exeext
20410if { (ac_try="$ac_link"
20411case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20414esac
20415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_link") 2>conftest.er1
20417 ac_status=$?
20418 grep -v '^ *+' conftest.er1 >conftest.err
20419 rm -f conftest.er1
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20424 { (case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20427esac
20428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_try") 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest$ac_exeext'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20437esac
20438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 ac_ext=c
20444ac_cpp='$CPP $CPPFLAGS'
20445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447ac_compiler_gnu=$ac_cv_c_compiler_gnu
20448
20449 { echo "$as_me:$LINENO: result: yes" >&5
20450echo "${ECHO_T}yes" >&6; }
20451
20452cat >>confdefs.h <<\_ACEOF
20453#define LLVM_HAS_ATOMICS 1
20454_ACEOF
20455
20456else
20457 echo "$as_me: failed program was:" >&5
20458sed 's/^/| /' conftest.$ac_ext >&5
20459
20460 { echo "$as_me:$LINENO: result: no" >&5
20461echo "${ECHO_T}no" >&6; }
20462
20463cat >>confdefs.h <<\_ACEOF
20464#define LLVM_HAS_ATOMICS 0
20465_ACEOF
20466
20467 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20468echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20469fi
20470
20471rm -f core conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
20473
20474
20475if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20476 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20477echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20478if test "${llvm_cv_linux_mixed+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20480else
20481 ac_ext=c
20482ac_cpp='$CPP $CPPFLAGS'
20483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20485ac_compiler_gnu=$ac_cv_c_compiler_gnu
20486
20487 cat >conftest.$ac_ext <<_ACEOF
20488/* confdefs.h. */
20489_ACEOF
20490cat confdefs.h >>conftest.$ac_ext
20491cat >>conftest.$ac_ext <<_ACEOF
20492/* end confdefs.h. */
20493#ifndef __x86_64__
20494 error: Not x86-64 even if uname says so!
20495 #endif
20496
20497int
20498main ()
20499{
20500
20501 ;
20502 return 0;
20503}
20504_ACEOF
20505rm -f conftest.$ac_objext
20506if { (ac_try="$ac_compile"
20507case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20510esac
20511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_compile") 2>conftest.er1
20513 ac_status=$?
20514 grep -v '^ *+' conftest.er1 >conftest.err
20515 rm -f conftest.er1
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20520 { (case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20523esac
20524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_try") 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest.$ac_objext'
20530 { (case "(($ac_try" in
20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20533esac
20534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535 (eval "$ac_try") 2>&5
20536 ac_status=$?
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); }; }; then
20539 llvm_cv_linux_mixed=no
20540else
20541 echo "$as_me: failed program was:" >&5
20542sed 's/^/| /' conftest.$ac_ext >&5
20543
20544 llvm_cv_linux_mixed=yes
20545fi
20546
20547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20548 ac_ext=c
20549ac_cpp='$CPP $CPPFLAGS'
20550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20552ac_compiler_gnu=$ac_cv_c_compiler_gnu
20553
20554
20555fi
20556{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20557echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20558
20559 if test "$llvm_cv_linux_mixed" = "yes"; then
20560 llvm_cv_target_arch="x86"
20561 ARCH="x86"
20562 fi
20563fi
20564
20565
20566for ac_func in __dso_handle
20567do
20568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20571if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20573else
20574 cat >conftest.$ac_ext <<_ACEOF
20575/* confdefs.h. */
20576_ACEOF
20577cat confdefs.h >>conftest.$ac_ext
20578cat >>conftest.$ac_ext <<_ACEOF
20579/* end confdefs.h. */
20580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20582#define $ac_func innocuous_$ac_func
20583
20584/* System header to define __stub macros and hopefully few prototypes,
20585 which can conflict with char $ac_func (); below.
20586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20587 <limits.h> exists even on freestanding compilers. */
20588
20589#ifdef __STDC__
20590# include <limits.h>
20591#else
20592# include <assert.h>
20593#endif
20594
20595#undef $ac_func
20596
20597/* Override any GCC internal prototype to avoid an error.
20598 Use char because int might match the return type of a GCC
20599 builtin and then its argument prototype would still apply. */
20600#ifdef __cplusplus
20601extern "C"
20602#endif
20603char $ac_func ();
20604/* The GNU C library defines this for functions which it implements
20605 to always fail with ENOSYS. Some functions are actually named
20606 something starting with __ and the normal name is an alias. */
20607#if defined __stub_$ac_func || defined __stub___$ac_func
20608choke me
20609#endif
20610
20611int
20612main ()
20613{
20614return $ac_func ();
20615 ;
20616 return 0;
20617}
20618_ACEOF
20619rm -f conftest.$ac_objext conftest$ac_exeext
20620if { (ac_try="$ac_link"
20621case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624esac
20625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_link") 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637esac
20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest$ac_exeext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647esac
20648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 eval "$as_ac_var=yes"
20654else
20655 echo "$as_me: failed program was:" >&5
20656sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 eval "$as_ac_var=no"
20659fi
20660
20661rm -f core conftest.err conftest.$ac_objext \
20662 conftest$ac_exeext conftest.$ac_ext
20663fi
20664ac_res=`eval echo '${'$as_ac_var'}'`
20665 { echo "$as_me:$LINENO: result: $ac_res" >&5
20666echo "${ECHO_T}$ac_res" >&6; }
20667if test `eval echo '${'$as_ac_var'}'` = yes; then
20668 cat >>confdefs.h <<_ACEOF
20669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20670_ACEOF
20671
20672fi
20673done
20674
20675
20676SHLIBEXT=$libltdl_cv_shlibext
20677
20678
20679SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20680
20681
20682# Translate the various configuration directories and other basic
20683# information into substitutions that will end up in Makefile.config.in
20684# that these configured values can be used by the makefiles
20685if test "${prefix}" = "NONE" ; then
20686 prefix="/usr/local"
20687fi
20688eval LLVM_PREFIX="${prefix}";
20689eval LLVM_BINDIR="${prefix}/bin";
20690eval LLVM_LIBDIR="${prefix}/lib";
20691eval LLVM_DATADIR="${prefix}/share/llvm";
20692eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20693eval LLVM_ETCDIR="${prefix}/etc/llvm";
20694eval LLVM_INCLUDEDIR="${prefix}/include";
20695eval LLVM_INFODIR="${prefix}/info";
20696eval LLVM_MANDIR="${prefix}/man";
20697LLVM_CONFIGTIME=`date`
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709# Place the various directores into the config.h file as #defines so that we
20710# can know about the installation paths within LLVM.
20711
20712cat >>confdefs.h <<_ACEOF
20713#define LLVM_PREFIX "$LLVM_PREFIX"
20714_ACEOF
20715
20716
20717cat >>confdefs.h <<_ACEOF
20718#define LLVM_BINDIR "$LLVM_BINDIR"
20719_ACEOF
20720
20721
20722cat >>confdefs.h <<_ACEOF
20723#define LLVM_LIBDIR "$LLVM_LIBDIR"
20724_ACEOF
20725
20726
20727cat >>confdefs.h <<_ACEOF
20728#define LLVM_DATADIR "$LLVM_DATADIR"
20729_ACEOF
20730
20731
20732cat >>confdefs.h <<_ACEOF
20733#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20734_ACEOF
20735
20736
20737cat >>confdefs.h <<_ACEOF
20738#define LLVM_ETCDIR "$LLVM_ETCDIR"
20739_ACEOF
20740
20741
20742cat >>confdefs.h <<_ACEOF
20743#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20744_ACEOF
20745
20746
20747cat >>confdefs.h <<_ACEOF
20748#define LLVM_INFODIR "$LLVM_INFODIR"
20749_ACEOF
20750
20751
20752cat >>confdefs.h <<_ACEOF
20753#define LLVM_MANDIR "$LLVM_MANDIR"
20754_ACEOF
20755
20756
20757cat >>confdefs.h <<_ACEOF
20758#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20759_ACEOF
20760
20761
20762cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020763#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020764_ACEOF
20765
20766
20767# Determine which bindings to build.
20768if test "$BINDINGS_TO_BUILD" = auto ; then
20769 BINDINGS_TO_BUILD=""
20770 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20771 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20772 fi
20773fi
20774BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20775
20776
20777# This isn't really configurey, but it avoids having to repeat the list in
20778# other files.
20779ALL_BINDINGS=ocaml
20780
20781
20782# Do any work necessary to ensure that bindings have what they need.
20783binding_prereqs_failed=0
20784for a_binding in $BINDINGS_TO_BUILD ; do
20785 case "$a_binding" in
20786 ocaml)
20787 if test "x$OCAMLC" = x ; then
20788 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20789echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20790 binding_prereqs_failed=1
20791 fi
20792 if test "x$OCAMLDEP" = x ; then
20793 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20794echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20795 binding_prereqs_failed=1
20796 fi
20797 if test "x$OCAMLOPT" = x ; then
20798 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20799echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20800 fi
20801 if test "x$with_ocaml_libdir" != xauto ; then
20802 OCAML_LIBDIR=$with_ocaml_libdir
20803
20804 else
20805 ocaml_stdlib="`"$OCAMLC" -where`"
20806 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20807 then
20808 # ocaml stdlib is beneath our prefix; use stdlib
20809 OCAML_LIBDIR=$ocaml_stdlib
20810
20811 else
20812 # ocaml stdlib is outside our prefix; use libdir/ocaml
20813 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20814
20815 fi
20816 fi
20817 ;;
20818 esac
20819done
20820if test "$binding_prereqs_failed" = 1 ; then
20821 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20822echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20823 { (exit 1); exit 1; }; }
20824fi
20825
20826{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20827echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20828if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20830else
20831 ac_ext=cpp
20832ac_cpp='$CXXCPP $CPPFLAGS'
20833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20836
20837 oldcxxflags="$CXXFLAGS"
Benjamin Kramer00171802012-05-05 15:02:39 +000020838 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020839 cat >conftest.$ac_ext <<_ACEOF
20840/* confdefs.h. */
20841_ACEOF
20842cat confdefs.h >>conftest.$ac_ext
20843cat >>conftest.$ac_ext <<_ACEOF
20844/* end confdefs.h. */
Benjamin Kramer00171802012-05-05 15:02:39 +000020845template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020846int
20847main ()
20848{
Benjamin Kramer00171802012-05-05 15:02:39 +000020849X<int>().f();
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020850 ;
20851 return 0;
20852}
20853_ACEOF
20854rm -f conftest.$ac_objext
20855if { (ac_try="$ac_compile"
20856case "(($ac_try" in
20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858 *) ac_try_echo=$ac_try;;
20859esac
20860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861 (eval "$ac_compile") 2>conftest.er1
20862 ac_status=$?
20863 grep -v '^ *+' conftest.er1 >conftest.err
20864 rm -f conftest.er1
20865 cat conftest.err >&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } &&
20868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20869 { (case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872esac
20873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_try") 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; } &&
20878 { ac_try='test -s conftest.$ac_objext'
20879 { (case "(($ac_try" in
20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20882esac
20883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884 (eval "$ac_try") 2>&5
20885 ac_status=$?
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; }; then
20888 llvm_cv_cxx_visibility_inlines_hidden=yes
20889else
20890 echo "$as_me: failed program was:" >&5
20891sed 's/^/| /' conftest.$ac_ext >&5
20892
20893 llvm_cv_cxx_visibility_inlines_hidden=no
20894fi
20895
20896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897 CXXFLAGS="$oldcxxflags"
20898 ac_ext=c
20899ac_cpp='$CPP $CPPFLAGS'
20900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902ac_compiler_gnu=$ac_cv_c_compiler_gnu
20903
20904
20905fi
20906{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20907echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20908if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20909 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20910
20911else
20912 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20913
20914fi
20915
20916
20917if test "$llvm_cv_link_use_r" = "yes" ; then
20918 RPATH="-Wl,-R"
20919else
20920 RPATH="-Wl,-rpath"
20921fi
20922
20923
20924if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20925 RDYNAMIC="-Wl,-export-dynamic"
20926else
20927 RDYNAMIC=""
20928fi
20929
20930
20931
Reid Spencer421ec052005-02-24 18:53:47 +000020932
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020933ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020934
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020935ac_config_files="$ac_config_files Makefile.llvm.config"
20936
John Criswell451f67f2003-10-16 01:45:35 +000020937
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020938ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020939
20940
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020941ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020942
20943
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020944ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020945
20946
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020947ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020948
20949
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020950ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020951
20952
20953
John Criswell451f67f2003-10-16 01:45:35 +000020954cat >confcache <<\_ACEOF
20955# This file is a shell script that caches the results of configure
20956# tests run on this system so they can be shared between configure
20957# scripts and configure runs, see configure's option --config-cache.
20958# It is not useful on other systems. If it contains results you don't
20959# want to keep, you may remove or edit it.
20960#
20961# config.status only pays attention to the cache file if you give it
20962# the --recheck option to rerun configure.
20963#
20964# `ac_cv_env_foo' variables (set or unset) will be overridden when
20965# loading this file, other *unset* `ac_cv_foo' will be assigned the
20966# following values.
20967
20968_ACEOF
20969
20970# The following way of writing the cache mishandles newlines in values,
20971# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020972# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020973# Ultrix sh set writes to stderr and can't be redirected directly,
20974# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020975(
20976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20977 eval ac_val=\$$ac_var
20978 case $ac_val in #(
20979 *${as_nl}*)
20980 case $ac_var in #(
20981 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20982echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20983 esac
20984 case $ac_var in #(
20985 _ | IFS | as_nl) ;; #(
20986 *) $as_unset $ac_var ;;
20987 esac ;;
20988 esac
20989 done
20990
John Criswell451f67f2003-10-16 01:45:35 +000020991 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20993 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020994 # `set' does not quote correctly, so add quotes (double-quote
20995 # substitution turns \\\\ into \\, and sed turns \\ into \).
20996 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000020997 "s/'/'\\\\''/g;
20998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020999 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000021000 *)
21001 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000021003 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021004 esac |
21005 sort
21006) |
John Criswell451f67f2003-10-16 01:45:35 +000021007 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021008 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000021009 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021010 :clear
John Criswell451f67f2003-10-16 01:45:35 +000021011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21012 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21014 :end' >>confcache
21015if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21016 if test -w "$cache_file"; then
21017 test "x$cache_file" != "x/dev/null" &&
21018 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21019echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021020 cat confcache >$cache_file
21021 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021022 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21023echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021024 fi
21025fi
21026rm -f confcache
21027
21028test "x$prefix" = xNONE && prefix=$ac_default_prefix
21029# Let make expand exec_prefix.
21030test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21031
John Criswell451f67f2003-10-16 01:45:35 +000021032# Transform confdefs.h into DEFS.
21033# Protect against shell expansion while executing Makefile rules.
21034# Protect against Makefile macro expansion.
21035#
21036# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021037# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021038# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021039ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021040t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021041:clear
21042s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021043t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021044s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021045t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021046b any
21047:quote
21048s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21049s/\[/\\&/g
21050s/\]/\\&/g
21051s/\$/$$/g
21052H
21053:any
21054${
21055 g
21056 s/^\n//
21057 s/\n/ /g
21058 p
21059}
21060'
21061DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021062
21063
21064ac_libobjs=
21065ac_ltlibobjs=
21066for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21067 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021068 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21069 ac_i=`echo "$ac_i" | sed "$ac_script"`
21070 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21071 # will be set to the directory where LIBOBJS objects are built.
21072 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21073 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021074done
21075LIBOBJS=$ac_libobjs
21076
21077LTLIBOBJS=$ac_ltlibobjs
21078
21079
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021080if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21081 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21082Usually this means the macro was only invoked conditionally." >&5
21083echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21084Usually this means the macro was only invoked conditionally." >&2;}
21085 { (exit 1); exit 1; }; }
21086fi
21087if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21088 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21089Usually this means the macro was only invoked conditionally." >&5
21090echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21091Usually this means the macro was only invoked conditionally." >&2;}
21092 { (exit 1); exit 1; }; }
21093fi
John Criswell451f67f2003-10-16 01:45:35 +000021094
21095: ${CONFIG_STATUS=./config.status}
21096ac_clean_files_save=$ac_clean_files
21097ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21098{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21099echo "$as_me: creating $CONFIG_STATUS" >&6;}
21100cat >$CONFIG_STATUS <<_ACEOF
21101#! $SHELL
21102# Generated by $as_me.
21103# Run this file to recreate the current configuration.
21104# Compiler output produced by configure, useful for debugging
21105# configure, is in config.log if it exists.
21106
21107debug=false
21108ac_cs_recheck=false
21109ac_cs_silent=false
21110SHELL=\${CONFIG_SHELL-$SHELL}
21111_ACEOF
21112
21113cat >>$CONFIG_STATUS <<\_ACEOF
21114## --------------------- ##
21115## M4sh Initialization. ##
21116## --------------------- ##
21117
Dan Gohman324f6082009-03-25 00:52:11 +000021118# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021119if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21120 emulate sh
21121 NULLCMD=:
21122 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21123 # is contrary to our usage. Disable this feature.
21124 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021125 setopt NO_GLOB_SUBST
21126else
21127 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021128fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021129BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021130DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021131
John Criswell451f67f2003-10-16 01:45:35 +000021132
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021133# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021134# Avoid depending upon Character Ranges.
21135as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21136as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21137as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21138as_cr_digits='0123456789'
21139as_cr_alnum=$as_cr_Letters$as_cr_digits
21140
21141# The user is always right.
21142if test "${PATH_SEPARATOR+set}" != set; then
21143 echo "#! /bin/sh" >conf$$.sh
21144 echo "exit 0" >>conf$$.sh
21145 chmod +x conf$$.sh
21146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21147 PATH_SEPARATOR=';'
21148 else
21149 PATH_SEPARATOR=:
21150 fi
21151 rm -f conf$$.sh
21152fi
21153
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021154# Support unset when possible.
21155if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21156 as_unset=unset
21157else
21158 as_unset=false
21159fi
John Criswell451f67f2003-10-16 01:45:35 +000021160
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021161
21162# IFS
21163# We need space, tab and new line, in precisely that order. Quoting is
21164# there to prevent editors from complaining about space-tab.
21165# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21166# splitting by setting IFS to empty value.)
21167as_nl='
21168'
21169IFS=" "" $as_nl"
21170
21171# Find who we are. Look in the path if we contain no directory separator.
21172case $0 in
21173 *[\\/]* ) as_myself=$0 ;;
21174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021175for as_dir in $PATH
21176do
21177 IFS=$as_save_IFS
21178 test -z "$as_dir" && as_dir=.
21179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21180done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021181IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021182
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021183 ;;
21184esac
21185# We did not find ourselves, most probably we were run as `sh COMMAND'
21186# in which case we are not to be found in the path.
21187if test "x$as_myself" = x; then
21188 as_myself=$0
21189fi
21190if test ! -f "$as_myself"; then
21191 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21192 { (exit 1); exit 1; }
21193fi
21194
21195# Work around bugs in pre-3.0 UWIN ksh.
21196for as_var in ENV MAIL MAILPATH
21197do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21198done
21199PS1='$ '
21200PS2='> '
21201PS4='+ '
21202
21203# NLS nuisances.
21204for as_var in \
21205 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21206 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21207 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021208do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021209 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21210 eval $as_var=C; export $as_var
21211 else
21212 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21213 fi
21214done
21215
21216# Required to use basename.
21217if expr a : '\(a\)' >/dev/null 2>&1 &&
21218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21219 as_expr=expr
21220else
21221 as_expr=false
21222fi
21223
21224if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21225 as_basename=basename
21226else
21227 as_basename=false
21228fi
21229
21230
21231# Name of the executable.
21232as_me=`$as_basename -- "$0" ||
21233$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21234 X"$0" : 'X\(//\)$' \| \
21235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21236echo X/"$0" |
21237 sed '/^.*\/\([^/][^/]*\)\/*$/{
21238 s//\1/
21239 q
21240 }
21241 /^X\/\(\/\/\)$/{
21242 s//\1/
21243 q
21244 }
21245 /^X\/\(\/\).*/{
21246 s//\1/
21247 q
21248 }
21249 s/.*/./; q'`
21250
21251# CDPATH.
21252$as_unset CDPATH
21253
21254
21255
John Criswell451f67f2003-10-16 01:45:35 +000021256 as_lineno_1=$LINENO
21257 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021258 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021259 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021260
21261 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21262 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021263 # line-number line after each line using $LINENO; the second 'sed'
21264 # does the real work. The second script uses 'N' to pair each
21265 # line-number line with the line containing $LINENO, and appends
21266 # trailing '-' during substitution so that $LINENO is not a special
21267 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021268 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021269 # scripts with optimization help from Paolo Bonzini. Blame Lee
21270 # E. McMahon (1931-1989) for sed's syntax. :-)
21271 sed -n '
21272 p
21273 /[$]LINENO/=
21274 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021275 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021276 s/[$]LINENO.*/&-/
21277 t lineno
21278 b
21279 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021280 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021281 :loop
21282 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021283 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021284 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021285 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021286 chmod +x "$as_me.lineno" ||
21287 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021288 { (exit 1); exit 1; }; }
21289
21290 # Don't try to exec as it changes $[0], causing all sort of problems
21291 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021292 # original and so on. Autoconf is especially sensitive to this).
21293 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021294 # Exit status is that of the last command.
21295 exit
21296}
21297
21298
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021299if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21300 as_dirname=dirname
21301else
21302 as_dirname=false
21303fi
21304
21305ECHO_C= ECHO_N= ECHO_T=
21306case `echo -n x` in
21307-n*)
21308 case `echo 'x\c'` in
21309 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21310 *) ECHO_C='\c';;
21311 esac;;
21312*)
21313 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021314esac
21315
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021316if expr a : '\(a\)' >/dev/null 2>&1 &&
21317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021318 as_expr=expr
21319else
21320 as_expr=false
21321fi
21322
21323rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021324if test -d conf$$.dir; then
21325 rm -f conf$$.dir/conf$$.file
21326else
21327 rm -f conf$$.dir
21328 mkdir conf$$.dir
21329fi
John Criswell451f67f2003-10-16 01:45:35 +000021330echo >conf$$.file
21331if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021332 as_ln_s='ln -s'
21333 # ... but there are two gotchas:
21334 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21335 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21336 # In both cases, we have to default to `cp -p'.
21337 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021338 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021339elif ln conf$$.file conf$$ 2>/dev/null; then
21340 as_ln_s=ln
21341else
21342 as_ln_s='cp -p'
21343fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021344rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21345rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021346
21347if mkdir -p . 2>/dev/null; then
21348 as_mkdir_p=:
21349else
Reid Spencer9964cd82005-01-01 09:26:55 +000021350 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021351 as_mkdir_p=false
21352fi
21353
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021354# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21355# systems may use methods other than mode bits to determine executability.
21356cat >conf$$.file <<_ASEOF
21357#! /bin/sh
21358exit 0
21359_ASEOF
21360chmod +x conf$$.file
21361if test -x conf$$.file >/dev/null 2>&1; then
21362 as_executable_p="test -x"
21363else
21364 as_executable_p=:
21365fi
21366rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021367
21368# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021369as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021370
21371# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021372as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021373
21374
John Criswell451f67f2003-10-16 01:45:35 +000021375exec 6>&1
21376
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021377# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021378# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021379# values after options handling.
21380ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021381This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021382generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021383
21384 CONFIG_FILES = $CONFIG_FILES
21385 CONFIG_HEADERS = $CONFIG_HEADERS
21386 CONFIG_LINKS = $CONFIG_LINKS
21387 CONFIG_COMMANDS = $CONFIG_COMMANDS
21388 $ $0 $@
21389
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021390on `(hostname || uname -n) 2>/dev/null | sed 1q`
21391"
21392
John Criswell451f67f2003-10-16 01:45:35 +000021393_ACEOF
21394
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021395cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021396# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021397config_files="$ac_config_files"
21398config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021399
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021400_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021401
21402cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021403ac_cs_usage="\
21404\`$as_me' instantiates files from templates according to the
21405current configuration.
21406
21407Usage: $0 [OPTIONS] [FILE]...
21408
21409 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021410 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021411 -q, --quiet do not print progress messages
21412 -d, --debug don't remove temporary files
21413 --recheck update $as_me by reconfiguring in the same conditions
21414 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021415 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021416
21417Configuration files:
21418$config_files
21419
21420Configuration commands:
21421$config_commands
21422
21423Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021424
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021425_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021426cat >>$CONFIG_STATUS <<_ACEOF
21427ac_cs_version="\\
21428[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021429configured by $0, generated by GNU Autoconf 2.60,
21430 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021431
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021432Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021433This config.status script is free software; the Free Software Foundation
21434gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021435
21436ac_pwd='$ac_pwd'
21437srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021438INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021439_ACEOF
21440
21441cat >>$CONFIG_STATUS <<\_ACEOF
21442# If no file are specified by the user, then we need to provide default
21443# value. By we need to know if files were specified by the user.
21444ac_need_defaults=:
21445while test $# != 0
21446do
21447 case $1 in
21448 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021451 ac_shift=:
21452 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021453 *)
John Criswell451f67f2003-10-16 01:45:35 +000021454 ac_option=$1
21455 ac_optarg=$2
21456 ac_shift=shift
21457 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021458 esac
21459
21460 case $ac_option in
21461 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021462 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21463 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021464 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21465 echo "$ac_cs_version"; exit ;;
21466 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021467 debug=: ;;
21468 --file | --fil | --fi | --f )
21469 $ac_shift
21470 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21471 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021472 --he | --h | --help | --hel | -h )
21473 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21475 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21476 ac_cs_silent=: ;;
21477
21478 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021479 -*) { echo "$as_me: error: unrecognized option: $1
21480Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021481 { (exit 1); exit 1; }; } ;;
21482
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021483 *) ac_config_targets="$ac_config_targets $1"
21484 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021485
21486 esac
21487 shift
21488done
21489
21490ac_configure_extra_args=
21491
21492if $ac_cs_silent; then
21493 exec 6>/dev/null
21494 ac_configure_extra_args="$ac_configure_extra_args --silent"
21495fi
21496
21497_ACEOF
21498cat >>$CONFIG_STATUS <<_ACEOF
21499if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021500 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21501 CONFIG_SHELL=$SHELL
21502 export CONFIG_SHELL
21503 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021504fi
21505
21506_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021507cat >>$CONFIG_STATUS <<\_ACEOF
21508exec 5>>config.log
21509{
21510 echo
21511 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21512## Running $as_me. ##
21513_ASBOX
21514 echo "$ac_log"
21515} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021517_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021518cat >>$CONFIG_STATUS <<_ACEOF
21519#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021520# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021521#
Reid Spencer421ec052005-02-24 18:53:47 +000021522llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021523
21524_ACEOF
21525
Dan Gohman324f6082009-03-25 00:52:11 +000021526cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021527
21528# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021529for ac_config_target in $ac_config_targets
21530do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021531 case $ac_config_target in
21532 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21533 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021534 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021535 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21536 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21537 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21538 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21539 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21540
John Criswell451f67f2003-10-16 01:45:35 +000021541 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21542echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21543 { (exit 1); exit 1; }; };;
21544 esac
21545done
21546
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021547
John Criswell451f67f2003-10-16 01:45:35 +000021548# If the user did not use the arguments to specify the items to instantiate,
21549# then the envvar interface is used. Set only those that are not.
21550# We use the long form for the default assignment because of an extremely
21551# bizarre bug on SunOS 4.1.3.
21552if $ac_need_defaults; then
21553 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21554 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21555fi
21556
21557# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021558# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021559# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021560# Hook for its removal unless debugging.
21561# Note that there is a small window in which the directory will not be cleaned:
21562# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021563$debug ||
21564{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021565 tmp=
21566 trap 'exit_status=$?
21567 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21568' 0
John Criswell451f67f2003-10-16 01:45:35 +000021569 trap '{ (exit 1); exit 1; }' 1 2 13 15
21570}
John Criswell451f67f2003-10-16 01:45:35 +000021571# Create a (secure) tmp directory for tmp files.
21572
21573{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021575 test -n "$tmp" && test -d "$tmp"
21576} ||
21577{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021578 tmp=./conf$$-$RANDOM
21579 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021580} ||
21581{
21582 echo "$me: cannot create a temporary directory in ." >&2
21583 { (exit 1); exit 1; }
21584}
21585
John Criswell451f67f2003-10-16 01:45:35 +000021586#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021587# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021588#
21589
21590# No need to generate the scripts if there are no CONFIG_FILES.
21591# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021592if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021593
21594_ACEOF
21595
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021596
21597
21598ac_delim='%!_!# '
21599for ac_last_try in false false false false false :; do
21600 cat >conf$$subs.sed <<_ACEOF
21601SHELL!$SHELL$ac_delim
21602PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21603PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21604PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21605PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21606PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21607PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21608exec_prefix!$exec_prefix$ac_delim
21609prefix!$prefix$ac_delim
21610program_transform_name!$program_transform_name$ac_delim
21611bindir!$bindir$ac_delim
21612sbindir!$sbindir$ac_delim
21613libexecdir!$libexecdir$ac_delim
21614datarootdir!$datarootdir$ac_delim
21615datadir!$datadir$ac_delim
21616sysconfdir!$sysconfdir$ac_delim
21617sharedstatedir!$sharedstatedir$ac_delim
21618localstatedir!$localstatedir$ac_delim
21619includedir!$includedir$ac_delim
21620oldincludedir!$oldincludedir$ac_delim
21621docdir!$docdir$ac_delim
21622infodir!$infodir$ac_delim
21623htmldir!$htmldir$ac_delim
21624dvidir!$dvidir$ac_delim
21625pdfdir!$pdfdir$ac_delim
21626psdir!$psdir$ac_delim
21627libdir!$libdir$ac_delim
21628localedir!$localedir$ac_delim
21629mandir!$mandir$ac_delim
21630DEFS!$DEFS$ac_delim
21631ECHO_C!$ECHO_C$ac_delim
21632ECHO_N!$ECHO_N$ac_delim
21633ECHO_T!$ECHO_T$ac_delim
21634LIBS!$LIBS$ac_delim
21635build_alias!$build_alias$ac_delim
21636host_alias!$host_alias$ac_delim
21637target_alias!$target_alias$ac_delim
21638LLVM_SRC!$LLVM_SRC$ac_delim
21639LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021640LLVM_VERSION!$LLVM_VERSION$ac_delim
21641CC!$CC$ac_delim
21642CFLAGS!$CFLAGS$ac_delim
21643LDFLAGS!$LDFLAGS$ac_delim
21644CPPFLAGS!$CPPFLAGS$ac_delim
21645ac_ct_CC!$ac_ct_CC$ac_delim
21646EXEEXT!$EXEEXT$ac_delim
21647OBJEXT!$OBJEXT$ac_delim
21648CXX!$CXX$ac_delim
21649CXXFLAGS!$CXXFLAGS$ac_delim
21650ac_ct_CXX!$ac_ct_CXX$ac_delim
21651CPP!$CPP$ac_delim
21652ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21653LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21654subdirs!$subdirs$ac_delim
21655build!$build$ac_delim
21656build_cpu!$build_cpu$ac_delim
21657build_vendor!$build_vendor$ac_delim
21658build_os!$build_os$ac_delim
21659host!$host$ac_delim
21660host_cpu!$host_cpu$ac_delim
21661host_vendor!$host_vendor$ac_delim
21662host_os!$host_os$ac_delim
21663target!$target$ac_delim
21664target_cpu!$target_cpu$ac_delim
21665target_vendor!$target_vendor$ac_delim
21666target_os!$target_os$ac_delim
21667OS!$OS$ac_delim
21668HOST_OS!$HOST_OS$ac_delim
21669TARGET_OS!$TARGET_OS$ac_delim
21670LINKALL!$LINKALL$ac_delim
21671NOLINKALL!$NOLINKALL$ac_delim
21672LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21673LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21674ARCH!$ARCH$ac_delim
21675ENDIAN!$ENDIAN$ac_delim
21676GREP!$GREP$ac_delim
21677EGREP!$EGREP$ac_delim
21678LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21679BUILD_CC!$BUILD_CC$ac_delim
21680BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21681BUILD_CXX!$BUILD_CXX$ac_delim
21682CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021683ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Craig Topper8ee39632012-11-12 06:11:12 +000021684ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021685ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21686ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21687DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Craig Topper8ee39632012-11-12 06:11:12 +000021688ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021689ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21690EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21691DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21692DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21693JIT!$JIT$ac_delim
21694TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21695ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21696ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21697ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021698_ACEOF
21699
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021700 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021701 break
21702 elif $ac_last_try; then
21703 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21704echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21705 { (exit 1); exit 1; }; }
21706 else
21707 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021708 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021709done
21710
21711ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21712if test -n "$ac_eof"; then
21713 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21714 ac_eof=`expr $ac_eof + 1`
21715fi
21716
21717cat >>$CONFIG_STATUS <<_ACEOF
21718cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021719/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21720_ACEOF
21721sed '
21722s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21723s/^/s,@/; s/!/@,|#_!!_#|/
21724:n
21725t n
21726s/'"$ac_delim"'$/,g/; t
21727s/$/\\/; p
21728N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21729' >>$CONFIG_STATUS <conf$$subs.sed
21730rm -f conf$$subs.sed
21731cat >>$CONFIG_STATUS <<_ACEOF
21732CEOF$ac_eof
21733_ACEOF
21734
21735
21736ac_delim='%!_!# '
21737for ac_last_try in false false false false false :; do
21738 cat >conf$$subs.sed <<_ACEOF
Craig Topper8ee39632012-11-12 06:11:12 +000021739ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21740ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopherb2bc6e42012-03-26 02:09:01 +000021741ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021742ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21743ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21744TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21745LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21746LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21747LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21748LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021749OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21750EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21751EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21752BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21753NM!$NM$ac_delim
21754ifGNUmake!$ifGNUmake$ac_delim
21755LN_S!$LN_S$ac_delim
21756CMP!$CMP$ac_delim
21757CP!$CP$ac_delim
21758DATE!$DATE$ac_delim
21759FIND!$FIND$ac_delim
21760MKDIR!$MKDIR$ac_delim
21761MV!$MV$ac_delim
21762RANLIB!$RANLIB$ac_delim
21763AR!$AR$ac_delim
21764RM!$RM$ac_delim
21765SED!$SED$ac_delim
21766TAR!$TAR$ac_delim
21767BINPWD!$BINPWD$ac_delim
21768GRAPHVIZ!$GRAPHVIZ$ac_delim
21769DOT!$DOT$ac_delim
21770FDP!$FDP$ac_delim
21771NEATO!$NEATO$ac_delim
21772TWOPI!$TWOPI$ac_delim
21773CIRCO!$CIRCO$ac_delim
21774GV!$GV$ac_delim
21775DOTTY!$DOTTY$ac_delim
21776XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021777INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21778INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21779INSTALL_DATA!$INSTALL_DATA$ac_delim
21780BZIP2!$BZIP2$ac_delim
21781CAT!$CAT$ac_delim
21782DOXYGEN!$DOXYGEN$ac_delim
21783GROFF!$GROFF$ac_delim
21784GZIPBIN!$GZIPBIN$ac_delim
21785POD2HTML!$POD2HTML$ac_delim
21786POD2MAN!$POD2MAN$ac_delim
21787PDFROFF!$PDFROFF$ac_delim
21788RUNTEST!$RUNTEST$ac_delim
21789TCLSH!$TCLSH$ac_delim
21790ZIP!$ZIP$ac_delim
21791OCAMLC!$OCAMLC$ac_delim
21792OCAMLOPT!$OCAMLOPT$ac_delim
21793OCAMLDEP!$OCAMLDEP$ac_delim
21794OCAMLDOC!$OCAMLDOC$ac_delim
21795GAS!$GAS$ac_delim
21796HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21797INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21798INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21799CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21800CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21801LIBADD_DL!$LIBADD_DL$ac_delim
21802NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21803NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021804COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021805USE_UDIS86!$USE_UDIS86$ac_delim
21806USE_OPROFILE!$USE_OPROFILE$ac_delim
21807HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21808HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21809MMAP_FILE!$MMAP_FILE$ac_delim
21810SHLIBEXT!$SHLIBEXT$ac_delim
21811SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21812LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21813LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21814LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21815LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21816LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21817LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21818LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21819LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21820LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21821LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21822BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21823ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21824OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21825ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21826RPATH!$RPATH$ac_delim
21827RDYNAMIC!$RDYNAMIC$ac_delim
21828LIBOBJS!$LIBOBJS$ac_delim
21829LTLIBOBJS!$LTLIBOBJS$ac_delim
21830_ACEOF
21831
Craig Topper8ee39632012-11-12 06:11:12 +000021832 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021833 break
21834 elif $ac_last_try; then
21835 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21836echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21837 { (exit 1); exit 1; }; }
21838 else
21839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21840 fi
21841done
21842
21843ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21844if test -n "$ac_eof"; then
21845 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21846 ac_eof=`expr $ac_eof + 1`
21847fi
21848
21849cat >>$CONFIG_STATUS <<_ACEOF
21850cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021851/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21852_ACEOF
21853sed '
21854s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21855s/^/s,@/; s/!/@,|#_!!_#|/
21856:n
21857t n
21858s/'"$ac_delim"'$/,g/; t
21859s/$/\\/; p
21860N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21861' >>$CONFIG_STATUS <conf$$subs.sed
21862rm -f conf$$subs.sed
21863cat >>$CONFIG_STATUS <<_ACEOF
21864:end
21865s/|#_!!_#|//g
21866CEOF$ac_eof
21867_ACEOF
21868
21869
21870# VPATH may cause trouble with some makes, so we remove $(srcdir),
21871# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21872# trailing colons and then remove the whole line if VPATH becomes empty
21873# (actually we leave an empty line to preserve line numbers).
21874if test "x$srcdir" = x.; then
21875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21876s/:*\$(srcdir):*/:/
21877s/:*\${srcdir}:*/:/
21878s/:*@srcdir@:*/:/
21879s/^\([^=]*=[ ]*\):*/\1/
21880s/:*$//
21881s/^[^=]*=[ ]*$//
21882}'
21883fi
21884
21885cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021886fi # test -n "$CONFIG_FILES"
21887
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021888
21889for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21890do
21891 case $ac_tag in
21892 :[FHLC]) ac_mode=$ac_tag; continue;;
21893 esac
21894 case $ac_mode$ac_tag in
21895 :[FHL]*:*);;
21896 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21897echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21898 { (exit 1); exit 1; }; };;
21899 :[FH]-) ac_tag=-:-;;
21900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21901 esac
21902 ac_save_IFS=$IFS
21903 IFS=:
21904 set x $ac_tag
21905 IFS=$ac_save_IFS
21906 shift
21907 ac_file=$1
21908 shift
21909
21910 case $ac_mode in
21911 :L) ac_source=$1;;
21912 :[FH])
21913 ac_file_inputs=
21914 for ac_f
21915 do
21916 case $ac_f in
21917 -) ac_f="$tmp/stdin";;
21918 *) # Look for the file first in the build tree, then in the source tree
21919 # (if the path is not absolute). The absolute path cannot be DOS-style,
21920 # because $ac_f cannot contain `:'.
21921 test -f "$ac_f" ||
21922 case $ac_f in
21923 [\\/$]*) false;;
21924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21925 esac ||
21926 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21927echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21928 { (exit 1); exit 1; }; };;
21929 esac
21930 ac_file_inputs="$ac_file_inputs $ac_f"
21931 done
21932
21933 # Let's still pretend it is `configure' which instantiates (i.e., don't
21934 # use $as_me), people would be surprised to read:
21935 # /* config.h. Generated by config.status. */
21936 configure_input="Generated from "`IFS=:
21937 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21938 if test x"$ac_file" != x-; then
21939 configure_input="$ac_file. $configure_input"
21940 { echo "$as_me:$LINENO: creating $ac_file" >&5
21941echo "$as_me: creating $ac_file" >&6;}
21942 fi
21943
21944 case $ac_tag in
21945 *:-:* | *:-) cat >"$tmp/stdin";;
21946 esac
21947 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021948 esac
21949
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021950 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021951$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021952 X"$ac_file" : 'X\(//\)[^/]' \| \
21953 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021954 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021955echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21957 s//\1/
21958 q
21959 }
21960 /^X\(\/\/\)[^/].*/{
21961 s//\1/
21962 q
21963 }
21964 /^X\(\/\/\)$/{
21965 s//\1/
21966 q
21967 }
21968 /^X\(\/\).*/{
21969 s//\1/
21970 q
21971 }
21972 s/.*/./; q'`
21973 { as_dir="$ac_dir"
21974 case $as_dir in #(
21975 -*) as_dir=./$as_dir;;
21976 esac
21977 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021978 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021979 while :; do
21980 case $as_dir in #(
21981 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21982 *) as_qdir=$as_dir;;
21983 esac
21984 as_dirs="'$as_qdir' $as_dirs"
21985 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021986$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021987 X"$as_dir" : 'X\(//\)[^/]' \| \
21988 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021989 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021990echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21992 s//\1/
21993 q
21994 }
21995 /^X\(\/\/\)[^/].*/{
21996 s//\1/
21997 q
21998 }
21999 /^X\(\/\/\)$/{
22000 s//\1/
22001 q
22002 }
22003 /^X\(\/\).*/{
22004 s//\1/
22005 q
22006 }
22007 s/.*/./; q'`
22008 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000022009 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022010 test -z "$as_dirs" || eval "mkdir $as_dirs"
22011 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22012echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022013 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000022014 ac_builddir=.
22015
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022016case "$ac_dir" in
22017.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22018*)
John Criswell451f67f2003-10-16 01:45:35 +000022019 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022020 # A ".." for each directory in $ac_dir_suffix.
22021 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22022 case $ac_top_builddir_sub in
22023 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22024 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22025 esac ;;
22026esac
22027ac_abs_top_builddir=$ac_pwd
22028ac_abs_builddir=$ac_pwd$ac_dir_suffix
22029# for backward compatibility:
22030ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000022031
22032case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022033 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000022034 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022035 ac_top_srcdir=$ac_top_builddir_sub
22036 ac_abs_top_srcdir=$ac_pwd ;;
22037 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022038 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022039 ac_top_srcdir=$srcdir
22040 ac_abs_top_srcdir=$srcdir ;;
22041 *) # Relative name.
22042 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22043 ac_top_srcdir=$ac_top_build_prefix$srcdir
22044 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022045esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022046ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022047
Dan Gohman324f6082009-03-25 00:52:11 +000022048
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022049 case $ac_mode in
22050 :F)
22051 #
22052 # CONFIG_FILE
22053 #
Dan Gohman324f6082009-03-25 00:52:11 +000022054
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022055 case $INSTALL in
22056 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22057 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22058 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022059_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022060
22061cat >>$CONFIG_STATUS <<\_ACEOF
22062# If the template does not know about datarootdir, expand it.
22063# FIXME: This hack should be removed a few years after 2.60.
22064ac_datarootdir_hack=; ac_datarootdir_seen=
22065
22066case `sed -n '/datarootdir/ {
22067 p
22068 q
22069}
22070/@datadir@/p
22071/@docdir@/p
22072/@infodir@/p
22073/@localedir@/p
22074/@mandir@/p
22075' $ac_file_inputs` in
22076*datarootdir*) ac_datarootdir_seen=yes;;
22077*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22078 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22079echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22080_ACEOF
22081cat >>$CONFIG_STATUS <<_ACEOF
22082 ac_datarootdir_hack='
22083 s&@datadir@&$datadir&g
22084 s&@docdir@&$docdir&g
22085 s&@infodir@&$infodir&g
22086 s&@localedir@&$localedir&g
22087 s&@mandir@&$mandir&g
22088 s&\\\${datarootdir}&$datarootdir&g' ;;
22089esac
22090_ACEOF
22091
22092# Neutralize VPATH when `$srcdir' = `.'.
22093# Shell code in configure.ac might set extrasub.
22094# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022095cat >>$CONFIG_STATUS <<_ACEOF
22096 sed "$ac_vpsub
22097$extrasub
22098_ACEOF
22099cat >>$CONFIG_STATUS <<\_ACEOF
22100:t
22101/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022102s&@configure_input@&$configure_input&;t t
22103s&@top_builddir@&$ac_top_builddir_sub&;t t
22104s&@srcdir@&$ac_srcdir&;t t
22105s&@abs_srcdir@&$ac_abs_srcdir&;t t
22106s&@top_srcdir@&$ac_top_srcdir&;t t
22107s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22108s&@builddir@&$ac_builddir&;t t
22109s&@abs_builddir@&$ac_abs_builddir&;t t
22110s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022111s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022112$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022113" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022114
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022115test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22116 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22117 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22118 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22119which seems to be undefined. Please make sure it is defined." >&5
22120echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22121which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022122
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022123 rm -f "$tmp/stdin"
22124 case $ac_file in
22125 -) cat "$tmp/out"; rm -f "$tmp/out";;
22126 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022127 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022128 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022129
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022130
22131 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22132echo "$as_me: executing $ac_file commands" >&6;}
22133 ;;
22134 esac
22135
22136
22137 case $ac_file$ac_mode in
Benjamin Kramer00171802012-05-05 15:02:39 +000022138 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22139 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22140 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22141 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22142 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22143 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22144 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22145 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22146 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22147 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022148
22149 esac
22150done # for ac_tag
22151
John Criswell451f67f2003-10-16 01:45:35 +000022152
22153{ (exit 0); exit 0; }
22154_ACEOF
22155chmod +x $CONFIG_STATUS
22156ac_clean_files=$ac_clean_files_save
22157
22158
22159# configure is writing to config.log, and then calls config.status.
22160# config.status does its own redirection, appending to config.log.
22161# Unfortunately, on DOS this fails, as config.log is still kept open
22162# by configure, so config.status won't be able to write to it; its
22163# output is simply discarded. So we exec the FD to /dev/null,
22164# effectively closing config.log, so it can be properly (re)opened and
22165# appended to by config.status. When coming back to configure, we
22166# need to make the FD available again.
22167if test "$no_create" != yes; then
22168 ac_cs_success=:
22169 ac_config_status_args=
22170 test "$silent" = yes &&
22171 ac_config_status_args="$ac_config_status_args --quiet"
22172 exec 5>/dev/null
22173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22174 exec 5>>config.log
22175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22176 # would make configure fail if this is the last instruction.
22177 $ac_cs_success || { (exit 1); exit 1; }
22178fi
22179
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022180#
22181# CONFIG_SUBDIRS section.
22182#
22183if test "$no_recursion" != yes; then
22184
22185 # Remove --cache-file and --srcdir arguments so they do not pile up.
22186 ac_sub_configure_args=
22187 ac_prev=
22188 eval "set x $ac_configure_args"
22189 shift
22190 for ac_arg
22191 do
22192 if test -n "$ac_prev"; then
22193 ac_prev=
22194 continue
22195 fi
22196 case $ac_arg in
22197 -cache-file | --cache-file | --cache-fil | --cache-fi \
22198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22199 ac_prev=cache_file ;;
22200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22202 | --c=*)
22203 ;;
22204 --config-cache | -C)
22205 ;;
22206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22207 ac_prev=srcdir ;;
22208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22209 ;;
22210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22211 ac_prev=prefix ;;
22212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22213 ;;
22214 *)
22215 case $ac_arg in
22216 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22217 esac
22218 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22219 esac
22220 done
22221
22222 # Always prepend --prefix to ensure using the same prefix
22223 # in subdir configurations.
22224 ac_arg="--prefix=$prefix"
22225 case $ac_arg in
22226 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22227 esac
22228 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22229
22230 ac_popdir=`pwd`
22231 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22232
22233 # Do not complain, so a configure script can configure whichever
22234 # parts of a large source tree are present.
22235 test -d "$srcdir/$ac_dir" || continue
22236
22237 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22238 echo "$as_me:$LINENO: $ac_msg" >&5
22239 echo "$ac_msg" >&6
22240 { as_dir="$ac_dir"
22241 case $as_dir in #(
22242 -*) as_dir=./$as_dir;;
22243 esac
22244 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22245 as_dirs=
22246 while :; do
22247 case $as_dir in #(
22248 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22249 *) as_qdir=$as_dir;;
22250 esac
22251 as_dirs="'$as_qdir' $as_dirs"
22252 as_dir=`$as_dirname -- "$as_dir" ||
22253$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22254 X"$as_dir" : 'X\(//\)[^/]' \| \
22255 X"$as_dir" : 'X\(//\)$' \| \
22256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22257echo X"$as_dir" |
22258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22259 s//\1/
22260 q
22261 }
22262 /^X\(\/\/\)[^/].*/{
22263 s//\1/
22264 q
22265 }
22266 /^X\(\/\/\)$/{
22267 s//\1/
22268 q
22269 }
22270 /^X\(\/\).*/{
22271 s//\1/
22272 q
22273 }
22274 s/.*/./; q'`
22275 test -d "$as_dir" && break
22276 done
22277 test -z "$as_dirs" || eval "mkdir $as_dirs"
22278 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22279echo "$as_me: error: cannot create directory $as_dir" >&2;}
22280 { (exit 1); exit 1; }; }; }
22281 ac_builddir=.
22282
22283case "$ac_dir" in
22284.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22285*)
22286 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22287 # A ".." for each directory in $ac_dir_suffix.
22288 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22289 case $ac_top_builddir_sub in
22290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22292 esac ;;
22293esac
22294ac_abs_top_builddir=$ac_pwd
22295ac_abs_builddir=$ac_pwd$ac_dir_suffix
22296# for backward compatibility:
22297ac_top_builddir=$ac_top_build_prefix
22298
22299case $srcdir in
22300 .) # We are building in place.
22301 ac_srcdir=.
22302 ac_top_srcdir=$ac_top_builddir_sub
22303 ac_abs_top_srcdir=$ac_pwd ;;
22304 [\\/]* | ?:[\\/]* ) # Absolute name.
22305 ac_srcdir=$srcdir$ac_dir_suffix;
22306 ac_top_srcdir=$srcdir
22307 ac_abs_top_srcdir=$srcdir ;;
22308 *) # Relative name.
22309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22310 ac_top_srcdir=$ac_top_build_prefix$srcdir
22311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22312esac
22313ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22314
22315
22316 cd "$ac_dir"
22317
22318 # Check for guested configure; otherwise get Cygnus style configure.
22319 if test -f "$ac_srcdir/configure.gnu"; then
22320 ac_sub_configure=$ac_srcdir/configure.gnu
22321 elif test -f "$ac_srcdir/configure"; then
22322 ac_sub_configure=$ac_srcdir/configure
22323 elif test -f "$ac_srcdir/configure.in"; then
22324 # This should be Cygnus configure.
22325 ac_sub_configure=$ac_aux_dir/configure
22326 else
22327 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22328echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22329 ac_sub_configure=
22330 fi
22331
22332 # The recursion is here.
22333 if test -n "$ac_sub_configure"; then
22334 # Make the cache file name correct relative to the subdirectory.
22335 case $cache_file in
22336 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22337 *) # Relative name.
22338 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22339 esac
22340
22341 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22342echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22343 # The eval makes quoting arguments work.
22344 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22345 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22346 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22347echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22348 { (exit 1); exit 1; }; }
22349 fi
22350
22351 cd "$ac_popdir"
22352 done
22353fi
22354