blob: db45550ce7db9a43d5a02a4899323d0d7e13d0a7 [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
694ENABLE_DOCS
695ENABLE_DOXYGEN
696ENABLE_THREADS
697ENABLE_PTHREADS
698ENABLE_PIC
699ENABLE_SHARED
700ENABLE_EMBED_STDCXX
701ENABLE_TIMESTAMPS
702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711BINUTILS_INCDIR
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
735XDOT_PY
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000736INSTALL_PROGRAM
737INSTALL_SCRIPT
738INSTALL_DATA
739BZIP2
740CAT
741DOXYGEN
742GROFF
743GZIPBIN
744POD2HTML
745POD2MAN
746PDFROFF
747RUNTEST
748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
754GAS
755HAVE_LINK_VERSION_SCRIPT
756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000763COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769SHLIBEXT
770SHLIBPATH_VAR
771LLVM_PREFIX
772LLVM_BINDIR
773LLVM_LIBDIR
774LLVM_DATADIR
775LLVM_DOCSDIR
776LLVM_ETCDIR
777LLVM_INCLUDEDIR
778LLVM_INFODIR
779LLVM_MANDIR
780LLVM_CONFIGTIME
781BINDINGS_TO_BUILD
782ALL_BINDINGS
783OCAML_LIBDIR
784ENABLE_VISIBILITY_INLINES_HIDDEN
785RPATH
786RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000787LIBOBJS
788LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000789ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000790 ac_precious_vars='build_alias
791host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000792target_alias
793CC
794CFLAGS
795LDFLAGS
796CPPFLAGS
797CXX
798CXXFLAGS
799CCC
800CPP'
801ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000828# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000837includedir='${prefix}/include'
838oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000848
849ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000850ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000855 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000856 ac_prev=
857 continue
858 fi
859
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
John Criswell451f67f2003-10-16 01:45:35 +0000864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000891 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000892 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000894 datadir=$ac_optarg ;;
895
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
John Criswell451f67f2003-10-16 01:45:35 +0000903 -disable-* | --disable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000906 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000909 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000910 eval enable_$ac_feature=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000921
922 -enable-* | --enable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000929 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
John Criswell451f67f2003-10-16 01:45:35 +0000962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
John Criswell451f67f2003-10-16 01:45:35 +0000991 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000992 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
John Criswell451f67f2003-10-16 01:45:35 +00001070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001122 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001125 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001126 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001127
1128 -without-* | --without-*)
1129 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001134 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001135 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) { echo "$as_me: error: unrecognized option: $ac_option
1156Try \`$0 --help' for more information." >&2
1157 { (exit 1); exit 1; }; }
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001166 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 ;;
1176
1177 esac
1178done
1179
1180if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 { echo "$as_me: error: missing argument to $ac_option" >&2
1183 { (exit 1); exit 1; }; }
1184fi
1185
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001186# Be sure to have absolute directory names.
1187for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001191do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001192 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001193 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001196 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001197 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { echo "$as_me: error: Working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1233
1234
John Criswell451f67f2003-10-16 01:45:35 +00001235# Find the source files, if location was not specified.
1236if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001240$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001241 X"$0" : 'X\(//\)[^/]' \| \
1242 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001244echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\/\)[^/].*/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\).*/{
1258 s//\1/
1259 q
1260 }
1261 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001262 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001263 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001264 srcdir=..
1265 fi
1266else
1267 ac_srcdir_defaulted=no
1268fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001269if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001272 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001273fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001277 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001278 pwd)`
1279# When building in place, set srcdir=.
1280if test "$ac_abs_confdir" = "$ac_pwd"; then
1281 srcdir=.
1282fi
1283# Remove unnecessary trailing slashes from srcdir.
1284# Double slashes in file names in object file debugging info
1285# mess up M-x gdb in Emacs.
1286case $srcdir in
1287*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288esac
1289for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294done
John Criswell451f67f2003-10-16 01:45:35 +00001295
1296#
1297# Report the --help message.
1298#
1299if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1302 cat <<_ACEOF
1303\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304
1305Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308VAR=VALUE. See below for descriptions of some of the useful variables.
1309
1310Defaults for the options are specified in brackets.
1311
1312Configuration:
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322
John Criswell451f67f2003-10-16 01:45:35 +00001323Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001325 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001327 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001328
1329By default, \`make install' will install all the files in
1330\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332for instance \`--prefix=\$HOME'.
1333
1334For better control, use the options below.
1335
1336Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001356_ACEOF
1357
1358 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001359
1360System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1370 esac
1371 cat <<\_ACEOF
1372
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001373Optional Features:
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-polly Use polly if available (default is YES)
1377 --enable-optimized Compile with optimizations enabled (default is NO)
1378 --enable-profiling Compile with profiling enabled (default is NO)
1379 --enable-assertions Compile with assertion checks enabled (default is
1380 YES)
1381 --enable-expensive-checks
1382 Compile with expensive debug checks enabled (default
1383 is NO)
1384 --enable-debug-runtime Build runtime libs with debug symbols (default is
1385 NO)
1386 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1387 optimization is on and YES if it's off)
1388 --enable-jit Enable Just In Time Compiling (default is YES)
1389 --enable-docs Build documents (default is YES)
1390 --enable-doxygen Build doxygen documentation (default is NO)
1391 --enable-threads Use threads if available (default is YES)
1392 --enable-pthreads Use pthreads if available (default is YES)
1393 --enable-pic Build LLVM with Position Independent Code (default
1394 is YES)
1395 --enable-shared Build a shared library and link tools against it
1396 (default is NO)
1397 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1398 Win32 DLL (default is YES)
1399 --enable-timestamps Enable embedding timestamp information in build
1400 (default is YES)
1401 --enable-targets Build specific host targets: all or
1402 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001403 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1404 xcore, msp430, ptx, cbe, and cpp (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001405 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1406 %a (default is YES)
1407 --enable-bindings Build specific language bindings:
1408 all,auto,none,{binding-name} (default=auto)
1409 --enable-libffi Check for the presence of libffi (default is NO)
1410 --enable-ltdl-install install libltdl
1411
John Criswell451f67f2003-10-16 01:45:35 +00001412Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-llvmsrc Location of LLVM Source Code
1416 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001417 --with-optimize-option Select the compiler options to use for optimized
1418 builds
1419 --with-extra-options Specify additional options to compile LLVM with
1420 --with-extra-ld-options Specify additional options to link LLVM with
1421 --with-ocaml-libdir Specify install location for ocaml bindings (default
1422 is stdlib)
1423 --with-clang-resource-dir
1424 Relative directory from the Clang binary for
1425 resource files
1426 --with-c-include-dirs Colon separated list of directories clang will
1427 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001428 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001429 --with-binutils-include Specify path to binutils/include/ containing
1430 plugin-api.h file for gold plugin.
1431 --with-bug-report-url Specify the URL where bug reports should be
1432 submitted (default=http://llvm.org/bugs/)
1433 --with-tclinclude directory where tcl headers are
1434 --with-udis86=<path> Use udis86 external x86 disassembler library
1435 --with-oprofile=<prefix>
1436 Tell OProfile >= 0.9.4 how to symbolize JIT output
1437
1438Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CXX C++ compiler command
1446 CXXFLAGS C++ compiler flags
1447 CPP C preprocessor
1448
1449Use these variables to override the choices made by `configure' or to help
1450it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001451
1452Report bugs to <bugs@yourdomain>.
1453_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001454ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001455fi
1456
1457if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001460 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001461 ac_builddir=.
1462
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
John Criswell451f67f2003-10-16 01:45:35 +00001466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001478
1479case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001480 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001481 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001485 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001492esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001494
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001503 else
1504 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001507 done
1508fi
1509
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001510test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001511if $ac_init_version; then
1512 cat <<\_ACEOF
1513[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001514generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001515
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001516Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15172002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001518This configure script is free software; the Free Software Foundation
1519gives unlimited permission to copy, distribute and modify it.
1520_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001521 exit
John Criswell451f67f2003-10-16 01:45:35 +00001522fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001523cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001524This file contains any messages produced by compilers while
1525running configure, to aid debugging if configure makes a mistake.
1526
1527It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001528generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001529
1530 $ $0 $@
1531
1532_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001533exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001534{
1535cat <<_ASUNAME
1536## --------- ##
1537## Platform. ##
1538## --------- ##
1539
1540hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1541uname -m = `(uname -m) 2>/dev/null || echo unknown`
1542uname -r = `(uname -r) 2>/dev/null || echo unknown`
1543uname -s = `(uname -s) 2>/dev/null || echo unknown`
1544uname -v = `(uname -v) 2>/dev/null || echo unknown`
1545
1546/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1547/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1548
1549/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1550/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1551/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001552/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001553/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1554/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1555/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1556
1557_ASUNAME
1558
1559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560for as_dir in $PATH
1561do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 echo "PATH: $as_dir"
1565done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001566IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001567
1568} >&5
1569
1570cat >&5 <<_ACEOF
1571
1572
1573## ----------- ##
1574## Core tests. ##
1575## ----------- ##
1576
1577_ACEOF
1578
1579
1580# Keep a trace of the command line.
1581# Strip out --no-create and --no-recursion so they do not pile up.
1582# Strip out --silent because we don't want to record it for future runs.
1583# Also quote any args containing shell meta-characters.
1584# Make two passes to allow for proper duplicate-argument suppression.
1585ac_configure_args=
1586ac_configure_args0=
1587ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001588ac_must_keep_next=false
1589for ac_pass in 1 2
1590do
1591 for ac_arg
1592 do
1593 case $ac_arg in
1594 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1596 | -silent | --silent | --silen | --sile | --sil)
1597 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001598 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001599 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1600 esac
1601 case $ac_pass in
1602 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1603 2)
1604 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1605 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001606 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001607 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001608 case $ac_arg in
1609 *=* | --config-cache | -C | -disable-* | --disable-* \
1610 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1611 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1612 | -with-* | --with-* | -without-* | --without-* | --x)
1613 case "$ac_configure_args0 " in
1614 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1615 esac
1616 ;;
1617 -* ) ac_must_keep_next=true ;;
1618 esac
John Criswell451f67f2003-10-16 01:45:35 +00001619 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001620 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001621 ;;
1622 esac
1623 done
1624done
1625$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1626$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1627
1628# When interrupted or exit'd, cleanup temporary files, and complete
1629# config.log. We remove comments because anyway the quotes in there
1630# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001631# WARNING: Use '\'' to represent an apostrophe within the trap.
1632# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001633trap 'exit_status=$?
1634 # Save into config.log some information that might help in debugging.
1635 {
1636 echo
1637
1638 cat <<\_ASBOX
1639## ---------------- ##
1640## Cache variables. ##
1641## ---------------- ##
1642_ASBOX
1643 echo
1644 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001645(
1646 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1647 eval ac_val=\$$ac_var
1648 case $ac_val in #(
1649 *${as_nl}*)
1650 case $ac_var in #(
1651 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1652echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1653 esac
1654 case $ac_var in #(
1655 _ | IFS | as_nl) ;; #(
1656 *) $as_unset $ac_var ;;
1657 esac ;;
1658 esac
1659 done
John Criswell451f67f2003-10-16 01:45:35 +00001660 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001661 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1662 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001663 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001664 "s/'\''/'\''\\\\'\'''\''/g;
1665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1666 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001667 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001669 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001670 esac |
1671 sort
1672)
John Criswell451f67f2003-10-16 01:45:35 +00001673 echo
1674
1675 cat <<\_ASBOX
1676## ----------------- ##
1677## Output variables. ##
1678## ----------------- ##
1679_ASBOX
1680 echo
1681 for ac_var in $ac_subst_vars
1682 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001683 eval ac_val=\$$ac_var
1684 case $ac_val in
1685 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686 esac
1687 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001688 done | sort
1689 echo
1690
1691 if test -n "$ac_subst_files"; then
1692 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001693## ------------------- ##
1694## File substitutions. ##
1695## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001696_ASBOX
1697 echo
1698 for ac_var in $ac_subst_files
1699 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001700 eval ac_val=\$$ac_var
1701 case $ac_val in
1702 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1703 esac
1704 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001705 done | sort
1706 echo
1707 fi
1708
1709 if test -s confdefs.h; then
1710 cat <<\_ASBOX
1711## ----------- ##
1712## confdefs.h. ##
1713## ----------- ##
1714_ASBOX
1715 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001716 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001717 echo
1718 fi
1719 test "$ac_signal" != 0 &&
1720 echo "$as_me: caught signal $ac_signal"
1721 echo "$as_me: exit $exit_status"
1722 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001723 rm -f core *.core core.conftest.* &&
1724 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001725 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001726' 0
John Criswell451f67f2003-10-16 01:45:35 +00001727for ac_signal in 1 2 13 15; do
1728 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1729done
1730ac_signal=0
1731
1732# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001733rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001734
1735# Predefined preprocessor variables.
1736
1737cat >>confdefs.h <<_ACEOF
1738#define PACKAGE_NAME "$PACKAGE_NAME"
1739_ACEOF
1740
1741
1742cat >>confdefs.h <<_ACEOF
1743#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1744_ACEOF
1745
1746
1747cat >>confdefs.h <<_ACEOF
1748#define PACKAGE_VERSION "$PACKAGE_VERSION"
1749_ACEOF
1750
1751
1752cat >>confdefs.h <<_ACEOF
1753#define PACKAGE_STRING "$PACKAGE_STRING"
1754_ACEOF
1755
1756
1757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1759_ACEOF
1760
1761
1762# Let the site file select an alternate cache file if it wants to.
1763# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001764if test -n "$CONFIG_SITE"; then
1765 set x "$CONFIG_SITE"
1766elif test "x$prefix" != xNONE; then
1767 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1768else
1769 set x "$ac_default_prefix/share/config.site" \
1770 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001771fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001772shift
1773for ac_site_file
1774do
John Criswell451f67f2003-10-16 01:45:35 +00001775 if test -r "$ac_site_file"; then
1776 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1777echo "$as_me: loading site script $ac_site_file" >&6;}
1778 sed 's/^/| /' "$ac_site_file" >&5
1779 . "$ac_site_file"
1780 fi
1781done
1782
1783if test -r "$cache_file"; then
1784 # Some versions of bash will fail to source /dev/null (special
1785 # files actually), so we avoid doing that.
1786 if test -f "$cache_file"; then
1787 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1788echo "$as_me: loading cache $cache_file" >&6;}
1789 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001790 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1791 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001792 esac
1793 fi
1794else
1795 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1796echo "$as_me: creating cache $cache_file" >&6;}
1797 >$cache_file
1798fi
1799
1800# Check that the precious variables saved in the cache have kept the same
1801# value.
1802ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001803for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001804 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1805 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001806 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1807 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001808 case $ac_old_set,$ac_new_set in
1809 set,)
1810 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1811echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1812 ac_cache_corrupted=: ;;
1813 ,set)
1814 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1815echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1816 ac_cache_corrupted=: ;;
1817 ,);;
1818 *)
1819 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001820 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001821echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001822 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001823echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001824 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001825echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001826 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001827 fi;;
1828 esac
1829 # Pass precious variables to config.status.
1830 if test "$ac_new_set" = set; then
1831 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001832 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001833 *) ac_arg=$ac_var=$ac_new_val ;;
1834 esac
1835 case " $ac_configure_args " in
1836 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1837 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1838 esac
1839 fi
1840done
1841if $ac_cache_corrupted; then
1842 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1843echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1844 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1845echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1846 { (exit 1); exit 1; }; }
1847fi
1848
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
John Criswell451f67f2003-10-16 01:45:35 +00001873ac_ext=c
1874ac_cpp='$CPP $CPPFLAGS'
1875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878
1879
1880
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001881LLVM_SRC_ROOT="../.."
1882LLVM_OBJ_ROOT="../.."
1883
1884LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1885LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001886
1887
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001888# Check whether --with-llvmsrc was given.
1889if test "${with_llvmsrc+set}" = set; then
1890 withval=$with_llvmsrc; llvm_src="$withval"
1891else
1892 llvm_src="$LLVM_ABS_SRC_ROOT"
1893fi
1894
1895 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001896
1897
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001898# Check whether --with-llvmobj was given.
1899if test "${with_llvmobj+set}" = set; then
1900 withval=$with_llvmobj; llvm_obj="$withval"
1901else
1902 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1903fi
Dan Gohman324f6082009-03-25 00:52:11 +00001904
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001905 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001906
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001907 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001908
1909
1910
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001911{ echo "$as_me:$LINENO: checking llvm-config" >&5
1912echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1913llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1914if ! test -f "$llvm_config_path" ; then
1915 llvm_config_path="no"
1916fi
1917{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1918echo "${ECHO_T}$llvm_config_path" >&6; }
1919
1920{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1921echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1922if test "$llvm_config_path" != no ; then
1923 llvm_package_version=`$llvm_config_path --version`
1924else
1925 llvm_package_version="unknown";
1926fi
1927{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1928echo "${ECHO_T}$llvm_package_version" >&6; }
1929LLVM_VERSION=$llvm_package_version
1930
1931
1932
1933
John Criswell451f67f2003-10-16 01:45:35 +00001934ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001935for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001936 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001940 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001944 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
1949done
1950if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001953 { (exit 1); exit 1; }; }
1954fi
John Criswell451f67f2003-10-16 01:45:35 +00001955
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001963
1964
1965
1966
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001967ac_ext=c
1968ac_cpp='$CPP $CPPFLAGS'
1969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972if test -n "$ac_tool_prefix"; then
1973 for ac_prog in clang llvm-gcc gcc
1974 do
1975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984else
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1995 fi
1996done
1997done
1998IFS=$as_save_IFS
1999
2000fi
2001fi
2002CC=$ac_cv_prog_CC
2003if test -n "$CC"; then
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005echo "${ECHO_T}$CC" >&6; }
2006else
2007 { echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6; }
2009fi
2010
2011
2012 test -n "$CC" && break
2013 done
2014fi
2015if test -z "$CC"; then
2016 ac_ct_CC=$CC
2017 for ac_prog in clang llvm-gcc gcc
2018do
2019 # Extract the first word of "$ac_prog", so it can be a program name with args.
2020set dummy $ac_prog; ac_word=$2
2021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026 if test -n "$ac_ct_CC"; then
2027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028else
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2036 ac_cv_prog_ac_ct_CC="$ac_prog"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 break 2
2039 fi
2040done
2041done
2042IFS=$as_save_IFS
2043
2044fi
2045fi
2046ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047if test -n "$ac_ct_CC"; then
2048 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049echo "${ECHO_T}$ac_ct_CC" >&6; }
2050else
2051 { echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6; }
2053fi
2054
2055
2056 test -n "$ac_ct_CC" && break
2057done
2058
2059 if test "x$ac_ct_CC" = x; then
2060 CC=""
2061 else
2062 case $cross_compiling:$ac_tool_warned in
2063yes:)
2064{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2065whose name does not start with the host triplet. If you think this
2066configuration is useful to you, please write to autoconf@gnu.org." >&5
2067echo "$as_me: 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." >&2;}
2070ac_tool_warned=yes ;;
2071esac
2072 CC=$ac_ct_CC
2073 fi
2074fi
2075
2076
2077test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2078See \`config.log' for more details." >&5
2079echo "$as_me: error: no acceptable C compiler found in \$PATH
2080See \`config.log' for more details." >&2;}
2081 { (exit 1); exit 1; }; }
2082
2083# Provide some information about the compiler.
2084echo "$as_me:$LINENO: checking for C compiler version" >&5
2085ac_compiler=`set X $ac_compile; echo $2`
2086{ (ac_try="$ac_compiler --version >&5"
2087case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090esac
2091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092 (eval "$ac_compiler --version >&5") 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096{ (ac_try="$ac_compiler -v >&5"
2097case "(($ac_try" in
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2100esac
2101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102 (eval "$ac_compiler -v >&5") 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2106{ (ac_try="$ac_compiler -V >&5"
2107case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110esac
2111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112 (eval "$ac_compiler -V >&5") 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116
2117cat >conftest.$ac_ext <<_ACEOF
2118/* confdefs.h. */
2119_ACEOF
2120cat confdefs.h >>conftest.$ac_ext
2121cat >>conftest.$ac_ext <<_ACEOF
2122/* end confdefs.h. */
2123
2124int
2125main ()
2126{
2127
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132ac_clean_files_save=$ac_clean_files
2133ac_clean_files="$ac_clean_files a.out a.exe b.out"
2134# Try to create an executable without -o first, disregard a.out.
2135# It will help us diagnose broken compilers, and finding out an intuition
2136# of exeext.
2137{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2138echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2139ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2140#
2141# List of possible output files, starting from the most likely.
2142# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2143# only as a last resort. b.out is created by i960 compilers.
2144ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2145#
2146# The IRIX 6 linker writes into existing files which may not be
2147# executable, retaining their permissions. Remove them first so a
2148# subsequent execution test works.
2149ac_rmfiles=
2150for ac_file in $ac_files
2151do
2152 case $ac_file in
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2155 esac
2156done
2157rm -f $ac_rmfiles
2158
2159if { (ac_try="$ac_link_default"
2160case "(($ac_try" in
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2163esac
2164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2165 (eval "$ac_link_default") 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2170# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2171# in a Makefile. We should not override ac_cv_exeext if it was cached,
2172# so that the user can short-circuit this test for compilers unknown to
2173# Autoconf.
2174for ac_file in $ac_files
2175do
2176 test -f "$ac_file" || continue
2177 case $ac_file in
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2179 ;;
2180 [ab].out )
2181 # We found the default executable, but exeext='' is most
2182 # certainly right.
2183 break;;
2184 *.* )
2185 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2186 then :; else
2187 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 fi
2189 # We set ac_cv_exeext here because the later test for it is not
2190 # safe: cross compilers may not add the suffix if given an `-o'
2191 # argument, so we may need to know it at that point already.
2192 # Even if this section looks crufty: it has the advantage of
2193 # actually working.
2194 break;;
2195 * )
2196 break;;
2197 esac
2198done
2199test "$ac_cv_exeext" = no && ac_cv_exeext=
2200
2201else
2202 echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206See \`config.log' for more details." >&5
2207echo "$as_me: error: C compiler cannot create executables
2208See \`config.log' for more details." >&2;}
2209 { (exit 77); exit 77; }; }
2210fi
2211
2212ac_exeext=$ac_cv_exeext
2213{ echo "$as_me:$LINENO: result: $ac_file" >&5
2214echo "${ECHO_T}$ac_file" >&6; }
2215
2216# Check that the compiler produces executables we can run. If not, either
2217# the compiler is broken, or we cross compile.
2218{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221# If not cross compiling, check that we can run a simple program.
2222if test "$cross_compiling" != yes; then
2223 if { ac_try='./$ac_file'
2224 { (case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227esac
2228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_try") 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 cross_compiling=no
2234 else
2235 if test "$cross_compiling" = maybe; then
2236 cross_compiling=yes
2237 else
2238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2245 fi
2246 fi
2247fi
2248{ echo "$as_me:$LINENO: result: yes" >&5
2249echo "${ECHO_T}yes" >&6; }
2250
2251rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252ac_clean_files=$ac_clean_files_save
2253# Check that the compiler produces executables we can run. If not, either
2254# the compiler is broken, or we cross compile.
2255{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2257{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258echo "${ECHO_T}$cross_compiling" >&6; }
2259
2260{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2262if { (ac_try="$ac_link"
2263case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266esac
2267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268 (eval "$ac_link") 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2273# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2274# work properly (i.e., refer to `conftest.exe'), while it won't with
2275# `rm'.
2276for ac_file in conftest.exe conftest conftest.*; do
2277 test -f "$ac_file" || continue
2278 case $ac_file in
2279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2280 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 break;;
2282 * ) break;;
2283 esac
2284done
2285else
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest$ac_cv_exeext
2294{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295echo "${ECHO_T}$ac_cv_exeext" >&6; }
2296
2297rm -f conftest.$ac_ext
2298EXEEXT=$ac_cv_exeext
2299ac_exeext=$EXEEXT
2300{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2302if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305 cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h. */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h. */
2311
2312int
2313main ()
2314{
2315
2316 ;
2317 return 0;
2318}
2319_ACEOF
2320rm -f conftest.o conftest.obj
2321if { (ac_try="$ac_compile"
2322case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2325esac
2326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_compile") 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 for ac_file in conftest.o conftest.obj conftest.*; do
2332 test -f "$ac_file" || continue;
2333 case $ac_file in
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336 break;;
2337 esac
2338done
2339else
2340 echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344See \`config.log' for more details." >&5
2345echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2348fi
2349
2350rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351fi
2352{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353echo "${ECHO_T}$ac_cv_objext" >&6; }
2354OBJEXT=$ac_cv_objext
2355ac_objext=$OBJEXT
2356{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2358if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361 cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
2367
2368int
2369main ()
2370{
2371#ifndef __GNUC__
2372 choke me
2373#endif
2374
2375 ;
2376 return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (ac_try="$ac_compile"
2381case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384esac
2385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_compile") 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2394 { (case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2397esac
2398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_try") 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407esac
2408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_try") 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_compiler_gnu=yes
2414else
2415 echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 ac_compiler_gnu=no
2419fi
2420
2421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422ac_cv_c_compiler_gnu=$ac_compiler_gnu
2423
2424fi
2425{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2426echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2427GCC=`test $ac_compiler_gnu = yes && echo yes`
2428ac_test_CFLAGS=${CFLAGS+set}
2429ac_save_CFLAGS=$CFLAGS
2430{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2431echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2432if test "${ac_cv_prog_cc_g+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435 ac_save_c_werror_flag=$ac_c_werror_flag
2436 ac_c_werror_flag=yes
2437 ac_cv_prog_cc_g=no
2438 CFLAGS="-g"
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445
2446int
2447main ()
2448{
2449
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (ac_try="$ac_compile"
2456case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compile") 2>conftest.er1
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2469 { (case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472esac
2473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474 (eval "$ac_try") 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482esac
2483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_try") 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 ac_cv_prog_cc_g=yes
2489else
2490 echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 CFLAGS=""
2494 cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h. */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h. */
2500
2501int
2502main ()
2503{
2504
2505 ;
2506 return 0;
2507}
2508_ACEOF
2509rm -f conftest.$ac_objext
2510if { (ac_try="$ac_compile"
2511case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514esac
2515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_compile") 2>conftest.er1
2517 ac_status=$?
2518 grep -v '^ *+' conftest.er1 >conftest.err
2519 rm -f conftest.er1
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2524 { (case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_try") 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_try") 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 :
2544else
2545 echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_c_werror_flag=$ac_save_c_werror_flag
2549 CFLAGS="-g"
2550 cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
2556
2557int
2558main ()
2559{
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (ac_try="$ac_compile"
2567case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_compile") 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2580 { (case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583esac
2584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_try") 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593esac
2594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_try") 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 ac_cv_prog_cc_g=yes
2600else
2601 echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604
2605fi
2606
2607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
2614 ac_c_werror_flag=$ac_save_c_werror_flag
2615fi
2616{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2617echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2618if test "$ac_test_CFLAGS" = set; then
2619 CFLAGS=$ac_save_CFLAGS
2620elif test $ac_cv_prog_cc_g = yes; then
2621 if test "$GCC" = yes; then
2622 CFLAGS="-g -O2"
2623 else
2624 CFLAGS="-g"
2625 fi
2626else
2627 if test "$GCC" = yes; then
2628 CFLAGS="-O2"
2629 else
2630 CFLAGS=
2631 fi
2632fi
2633{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2634echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_cc_c89+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638 ac_cv_prog_cc_c89=no
2639ac_save_CC=$CC
2640cat >conftest.$ac_ext <<_ACEOF
2641/* confdefs.h. */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h. */
2646#include <stdarg.h>
2647#include <stdio.h>
2648#include <sys/types.h>
2649#include <sys/stat.h>
2650/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2651struct buf { int x; };
2652FILE * (*rcsopen) (struct buf *, struct stat *, int);
2653static char *e (p, i)
2654 char **p;
2655 int i;
2656{
2657 return p[i];
2658}
2659static char *f (char * (*g) (char **, int), char **p, ...)
2660{
2661 char *s;
2662 va_list v;
2663 va_start (v,p);
2664 s = g (p, va_arg (v,int));
2665 va_end (v);
2666 return s;
2667}
2668
2669/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2670 function prototypes and stuff, but not '\xHH' hex character constants.
2671 These don't provoke an error unfortunately, instead are silently treated
2672 as 'x'. The following induces an error, until -std is added to get
2673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2674 array size at least. It's necessary to write '\x00'==0 to get something
2675 that's true only with -std. */
2676int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677
2678/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2679 inside strings and character constants. */
2680#define FOO(x) 'x'
2681int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2682
2683int test (int i, double x);
2684struct s1 {int (*f) (int a);};
2685struct s2 {int (*f) (double a);};
2686int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2687int argc;
2688char **argv;
2689int
2690main ()
2691{
2692return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2699do
2700 CC="$ac_save_CC $ac_arg"
2701 rm -f conftest.$ac_objext
2702if { (ac_try="$ac_compile"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compile") 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2716 { (case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719esac
2720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_try") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729esac
2730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_try") 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 ac_cv_prog_cc_c89=$ac_arg
2736else
2737 echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740
2741fi
2742
2743rm -f core conftest.err conftest.$ac_objext
2744 test "x$ac_cv_prog_cc_c89" != "xno" && break
2745done
2746rm -f conftest.$ac_ext
2747CC=$ac_save_CC
2748
2749fi
2750# AC_CACHE_VAL
2751case "x$ac_cv_prog_cc_c89" in
2752 x)
2753 { echo "$as_me:$LINENO: result: none needed" >&5
2754echo "${ECHO_T}none needed" >&6; } ;;
2755 xno)
2756 { echo "$as_me:$LINENO: result: unsupported" >&5
2757echo "${ECHO_T}unsupported" >&6; } ;;
2758 *)
2759 CC="$CC $ac_cv_prog_cc_c89"
2760 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2761echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2762esac
2763
2764
2765ac_ext=c
2766ac_cpp='$CPP $CPPFLAGS'
2767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771ac_ext=cpp
2772ac_cpp='$CXXCPP $CPPFLAGS'
2773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2776if test -z "$CXX"; then
2777 if test -n "$CCC"; then
2778 CXX=$CCC
2779 else
2780 if test -n "$ac_tool_prefix"; then
2781 for ac_prog in clang++ llvm-g++ g++
2782 do
2783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2784set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787if test "${ac_cv_prog_CXX+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
2790 if test -n "$CXX"; then
2791 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810CXX=$ac_cv_prog_CXX
2811if test -n "$CXX"; then
2812 { echo "$as_me:$LINENO: result: $CXX" >&5
2813echo "${ECHO_T}$CXX" >&6; }
2814else
2815 { echo "$as_me:$LINENO: result: no" >&5
2816echo "${ECHO_T}no" >&6; }
2817fi
2818
2819
2820 test -n "$CXX" && break
2821 done
2822fi
2823if test -z "$CXX"; then
2824 ac_ct_CXX=$CXX
2825 for ac_prog in clang++ llvm-g++ g++
2826do
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828set dummy $ac_prog; ac_word=$2
2829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834 if test -n "$ac_ct_CXX"; then
2835 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_ac_ct_CXX="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848done
2849done
2850IFS=$as_save_IFS
2851
2852fi
2853fi
2854ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2855if test -n "$ac_ct_CXX"; then
2856 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2857echo "${ECHO_T}$ac_ct_CXX" >&6; }
2858else
2859 { echo "$as_me:$LINENO: result: no" >&5
2860echo "${ECHO_T}no" >&6; }
2861fi
2862
2863
2864 test -n "$ac_ct_CXX" && break
2865done
2866
2867 if test "x$ac_ct_CXX" = x; then
2868 CXX="g++"
2869 else
2870 case $cross_compiling:$ac_tool_warned in
2871yes:)
2872{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2873whose name does not start with the host triplet. If you think this
2874configuration is useful to you, please write to autoconf@gnu.org." >&5
2875echo "$as_me: 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." >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880 CXX=$ac_ct_CXX
2881 fi
2882fi
2883
2884 fi
2885fi
2886# Provide some information about the compiler.
2887echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2888ac_compiler=`set X $ac_compile; echo $2`
2889{ (ac_try="$ac_compiler --version >&5"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compiler --version >&5") 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899{ (ac_try="$ac_compiler -v >&5"
2900case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903esac
2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compiler -v >&5") 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909{ (ac_try="$ac_compiler -V >&5"
2910case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913esac
2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compiler -V >&5") 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }
2919
2920{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2921echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2922if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 cat >conftest.$ac_ext <<_ACEOF
2926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h. */
2931
2932int
2933main ()
2934{
2935#ifndef __GNUC__
2936 choke me
2937#endif
2938
2939 ;
2940 return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext
2944if { (ac_try="$ac_compile"
2945case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2958 { (case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_try") 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 ac_compiler_gnu=yes
2978else
2979 echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 ac_compiler_gnu=no
2983fi
2984
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2987
2988fi
2989{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2990echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2991GXX=`test $ac_compiler_gnu = yes && echo yes`
2992ac_test_CXXFLAGS=${CXXFLAGS+set}
2993ac_save_CXXFLAGS=$CXXFLAGS
2994{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2995echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2996if test "${ac_cv_prog_cxx_g+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998else
2999 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3000 ac_cxx_werror_flag=yes
3001 ac_cv_prog_cxx_g=no
3002 CXXFLAGS="-g"
3003 cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h. */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h. */
3009
3010int
3011main ()
3012{
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext
3019if { (ac_try="$ac_compile"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_cv_prog_cxx_g=yes
3053else
3054 echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 CXXFLAGS=""
3058 cat >conftest.$ac_ext <<_ACEOF
3059/* confdefs.h. */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h. */
3064
3065int
3066main ()
3067{
3068
3069 ;
3070 return 0;
3071}
3072_ACEOF
3073rm -f conftest.$ac_objext
3074if { (ac_try="$ac_compile"
3075case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_compile") 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_try") 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 :
3108else
3109 echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3113 CXXFLAGS="-g"
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 ac_cv_prog_cxx_g=yes
3164else
3165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168
3169fi
3170
3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3179fi
3180{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3181echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3182if test "$ac_test_CXXFLAGS" = set; then
3183 CXXFLAGS=$ac_save_CXXFLAGS
3184elif test $ac_cv_prog_cxx_g = yes; then
3185 if test "$GXX" = yes; then
3186 CXXFLAGS="-g -O2"
3187 else
3188 CXXFLAGS="-g"
3189 fi
3190else
3191 if test "$GXX" = yes; then
3192 CXXFLAGS="-O2"
3193 else
3194 CXXFLAGS=
3195 fi
3196fi
3197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
3203ac_ext=c
3204ac_cpp='$CPP $CPPFLAGS'
3205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3209echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3210# On Suns, sometimes $CPP names a directory.
3211if test -n "$CPP" && test -d "$CPP"; then
3212 CPP=
3213fi
3214if test -z "$CPP"; then
3215 if test "${ac_cv_prog_CPP+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218 # Double quotes because CPP needs to be expanded
3219 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3220 do
3221 ac_preproc_ok=false
3222for ac_c_preproc_warn_flag in '' yes
3223do
3224 # Use a header file that comes with gcc, so configuring glibc
3225 # with a fresh cross-compiler works.
3226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3227 # <limits.h> exists even on freestanding compilers.
3228 # On the NeXT, cc -E runs the code through the compiler's parser,
3229 # not just through cpp. "Syntax error" is here to catch this case.
3230 cat >conftest.$ac_ext <<_ACEOF
3231/* confdefs.h. */
3232_ACEOF
3233cat confdefs.h >>conftest.$ac_ext
3234cat >>conftest.$ac_ext <<_ACEOF
3235/* end confdefs.h. */
3236#ifdef __STDC__
3237# include <limits.h>
3238#else
3239# include <assert.h>
3240#endif
3241 Syntax error
3242_ACEOF
3243if { (ac_try="$ac_cpp conftest.$ac_ext"
3244case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
3248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } >/dev/null; then
3256 if test -s conftest.err; then
3257 ac_cpp_err=$ac_c_preproc_warn_flag
3258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3259 else
3260 ac_cpp_err=
3261 fi
3262else
3263 ac_cpp_err=yes
3264fi
3265if test -z "$ac_cpp_err"; then
3266 :
3267else
3268 echo "$as_me: failed program was:" >&5
3269sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 # Broken: fails on valid input.
3272continue
3273fi
3274
3275rm -f conftest.err conftest.$ac_ext
3276
3277 # OK, works on sane cases. Now check whether nonexistent headers
3278 # can be detected and how.
3279 cat >conftest.$ac_ext <<_ACEOF
3280/* confdefs.h. */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h. */
3285#include <ac_nonexistent.h>
3286_ACEOF
3287if { (ac_try="$ac_cpp conftest.$ac_ext"
3288case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
3292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_c_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 else
3304 ac_cpp_err=
3305 fi
3306else
3307 ac_cpp_err=yes
3308fi
3309if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input.
3311continue
3312else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 # Passes both tests.
3317ac_preproc_ok=:
3318break
3319fi
3320
3321rm -f conftest.err conftest.$ac_ext
3322
3323done
3324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3325rm -f conftest.err conftest.$ac_ext
3326if $ac_preproc_ok; then
3327 break
3328fi
3329
3330 done
3331 ac_cv_prog_CPP=$CPP
3332
3333fi
3334 CPP=$ac_cv_prog_CPP
3335else
3336 ac_cv_prog_CPP=$CPP
3337fi
3338{ echo "$as_me:$LINENO: result: $CPP" >&5
3339echo "${ECHO_T}$CPP" >&6; }
3340ac_preproc_ok=false
3341for ac_c_preproc_warn_flag in '' yes
3342do
3343 # Use a header file that comes with gcc, so configuring glibc
3344 # with a fresh cross-compiler works.
3345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3346 # <limits.h> exists even on freestanding compilers.
3347 # On the NeXT, cc -E runs the code through the compiler's parser,
3348 # not just through cpp. "Syntax error" is here to catch this case.
3349 cat >conftest.$ac_ext <<_ACEOF
3350/* confdefs.h. */
3351_ACEOF
3352cat confdefs.h >>conftest.$ac_ext
3353cat >>conftest.$ac_ext <<_ACEOF
3354/* end confdefs.h. */
3355#ifdef __STDC__
3356# include <limits.h>
3357#else
3358# include <assert.h>
3359#endif
3360 Syntax error
3361_ACEOF
3362if { (ac_try="$ac_cpp conftest.$ac_ext"
3363case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366esac
3367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_c_preproc_warn_flag
3377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378 else
3379 ac_cpp_err=
3380 fi
3381else
3382 ac_cpp_err=yes
3383fi
3384if test -z "$ac_cpp_err"; then
3385 :
3386else
3387 echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 # Broken: fails on valid input.
3391continue
3392fi
3393
3394rm -f conftest.err conftest.$ac_ext
3395
3396 # OK, works on sane cases. Now check whether nonexistent headers
3397 # can be detected and how.
3398 cat >conftest.$ac_ext <<_ACEOF
3399/* confdefs.h. */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h. */
3404#include <ac_nonexistent.h>
3405_ACEOF
3406if { (ac_try="$ac_cpp conftest.$ac_ext"
3407case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410esac
3411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 else
3423 ac_cpp_err=
3424 fi
3425else
3426 ac_cpp_err=yes
3427fi
3428if test -z "$ac_cpp_err"; then
3429 # Broken: success on invalid input.
3430continue
3431else
3432 echo "$as_me: failed program was:" >&5
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 # Passes both tests.
3436ac_preproc_ok=:
3437break
3438fi
3439
3440rm -f conftest.err conftest.$ac_ext
3441
3442done
3443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444rm -f conftest.err conftest.$ac_ext
3445if $ac_preproc_ok; then
3446 :
3447else
3448 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3449See \`config.log' for more details." >&5
3450echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3451See \`config.log' for more details." >&2;}
3452 { (exit 1); exit 1; }; }
3453fi
3454
3455ac_ext=c
3456ac_cpp='$CPP $CPPFLAGS'
3457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460
3461
3462
3463
3464# Check whether --enable-polly was given.
3465if test "${enable_polly+set}" = set; then
3466 enableval=$enable_polly;
3467else
3468 enableval=default
3469fi
3470
3471case "$enableval" in
3472 yes) ENABLE_POLLY=1
3473 ;;
3474 no) ENABLE_POLLY=0
3475 ;;
3476 default) ENABLE_POLLY=1
3477 ;;
3478 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3479echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3480 { (exit 1); exit 1; }; } ;;
3481esac
3482
3483
3484if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3485 LLVM_HAS_POLLY=1
3486
3487 subdirs="$subdirs tools/polly"
3488
3489fi
3490
3491
3492# Make sure we can run config.sub.
3493$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3494 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3495echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3496 { (exit 1); exit 1; }; }
3497
3498{ echo "$as_me:$LINENO: checking build system type" >&5
3499echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3500if test "${ac_cv_build+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503 ac_build_alias=$build_alias
3504test "x$ac_build_alias" = x &&
3505 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3506test "x$ac_build_alias" = x &&
3507 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3508echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3509 { (exit 1); exit 1; }; }
3510ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3511 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3512echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3513 { (exit 1); exit 1; }; }
3514
3515fi
3516{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3517echo "${ECHO_T}$ac_cv_build" >&6; }
3518case $ac_cv_build in
3519*-*-*) ;;
3520*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3521echo "$as_me: error: invalid value of canonical build" >&2;}
3522 { (exit 1); exit 1; }; };;
3523esac
3524build=$ac_cv_build
3525ac_save_IFS=$IFS; IFS='-'
3526set x $ac_cv_build
3527shift
3528build_cpu=$1
3529build_vendor=$2
3530shift; shift
3531# Remember, the first character of IFS is used to create $*,
3532# except with old shells:
3533build_os=$*
3534IFS=$ac_save_IFS
3535case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3536
3537
3538{ echo "$as_me:$LINENO: checking host system type" >&5
3539echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3540if test "${ac_cv_host+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543 if test "x$host_alias" = x; then
3544 ac_cv_host=$ac_cv_build
3545else
3546 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3547 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3548echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3549 { (exit 1); exit 1; }; }
3550fi
3551
3552fi
3553{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3554echo "${ECHO_T}$ac_cv_host" >&6; }
3555case $ac_cv_host in
3556*-*-*) ;;
3557*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3558echo "$as_me: error: invalid value of canonical host" >&2;}
3559 { (exit 1); exit 1; }; };;
3560esac
3561host=$ac_cv_host
3562ac_save_IFS=$IFS; IFS='-'
3563set x $ac_cv_host
3564shift
3565host_cpu=$1
3566host_vendor=$2
3567shift; shift
3568# Remember, the first character of IFS is used to create $*,
3569# except with old shells:
3570host_os=$*
3571IFS=$ac_save_IFS
3572case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3573
3574
3575{ echo "$as_me:$LINENO: checking target system type" >&5
3576echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3577if test "${ac_cv_target+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
3580 if test "x$target_alias" = x; then
3581 ac_cv_target=$ac_cv_host
3582else
3583 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3584 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3585echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3586 { (exit 1); exit 1; }; }
3587fi
3588
3589fi
3590{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3591echo "${ECHO_T}$ac_cv_target" >&6; }
3592case $ac_cv_target in
3593*-*-*) ;;
3594*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3595echo "$as_me: error: invalid value of canonical target" >&2;}
3596 { (exit 1); exit 1; }; };;
3597esac
3598target=$ac_cv_target
3599ac_save_IFS=$IFS; IFS='-'
3600set x $ac_cv_target
3601shift
3602target_cpu=$1
3603target_vendor=$2
3604shift; shift
3605# Remember, the first character of IFS is used to create $*,
3606# except with old shells:
3607target_os=$*
3608IFS=$ac_save_IFS
3609case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3610
3611
3612# The aliases save the names the user supplied, while $host etc.
3613# will get canonicalized.
3614test -n "$target_alias" &&
3615 test "$program_prefix$program_suffix$program_transform_name" = \
3616 NONENONEs,x,x, &&
3617 program_prefix=${target_alias}-
3618
3619{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3620echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3621if test "${llvm_cv_os_type+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624 case $host in
3625 *-*-aix*)
3626 llvm_cv_link_all_option="-Wl,--whole-archive"
3627 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3628 llvm_cv_os_type="AIX"
3629 llvm_cv_platform_type="Unix" ;;
3630 *-*-irix*)
3631 llvm_cv_link_all_option="-Wl,--whole-archive"
3632 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3633 llvm_cv_os_type="IRIX"
3634 llvm_cv_platform_type="Unix" ;;
3635 *-*-cygwin*)
3636 llvm_cv_link_all_option="-Wl,--whole-archive"
3637 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3638 llvm_cv_os_type="Cygwin"
3639 llvm_cv_platform_type="Unix" ;;
3640 *-*-darwin*)
3641 llvm_cv_link_all_option="-Wl,-all_load"
3642 llvm_cv_no_link_all_option="-Wl,-noall_load"
3643 llvm_cv_os_type="Darwin"
3644 llvm_cv_platform_type="Unix" ;;
3645 *-*-minix*)
3646 llvm_cv_link_all_option="-Wl,-all_load"
3647 llvm_cv_no_link_all_option="-Wl,-noall_load"
3648 llvm_cv_os_type="Minix"
3649 llvm_cv_platform_type="Unix" ;;
3650 *-*-freebsd*)
3651 llvm_cv_link_all_option="-Wl,--whole-archive"
3652 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3653 llvm_cv_os_type="FreeBSD"
3654 llvm_cv_platform_type="Unix" ;;
3655 *-*-openbsd*)
3656 llvm_cv_link_all_option="-Wl,--whole-archive"
3657 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3658 llvm_cv_os_type="OpenBSD"
3659 llvm_cv_platform_type="Unix" ;;
3660 *-*-netbsd*)
3661 llvm_cv_link_all_option="-Wl,--whole-archive"
3662 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3663 llvm_cv_os_type="NetBSD"
3664 llvm_cv_platform_type="Unix" ;;
3665 *-*-dragonfly*)
3666 llvm_cv_link_all_option="-Wl,--whole-archive"
3667 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3668 llvm_cv_os_type="DragonFly"
3669 llvm_cv_platform_type="Unix" ;;
3670 *-*-hpux*)
3671 llvm_cv_link_all_option="-Wl,--whole-archive"
3672 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673 llvm_cv_os_type="HP-UX"
3674 llvm_cv_platform_type="Unix" ;;
3675 *-*-interix*)
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="Interix"
3679 llvm_cv_platform_type="Unix" ;;
3680 *-*-linux*)
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="Linux"
3684 llvm_cv_platform_type="Unix" ;;
3685 *-*-solaris*)
3686 llvm_cv_link_all_option="-Wl,-z,allextract"
3687 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3688 llvm_cv_os_type="SunOS"
3689 llvm_cv_platform_type="Unix" ;;
3690 *-*-auroraux*)
3691 llvm_cv_link_all_option="-Wl,-z,allextract"
3692 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3693 llvm_cv_os_type="AuroraUX"
3694 llvm_cv_platform_type="Unix" ;;
3695 *-*-win32*)
3696 llvm_cv_link_all_option="-Wl,--whole-archive"
3697 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698 llvm_cv_os_type="Win32"
3699 llvm_cv_platform_type="Win32" ;;
3700 *-*-mingw*)
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="MingW"
3704 llvm_cv_platform_type="Win32" ;;
3705 *-*-haiku*)
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="Haiku"
3709 llvm_cv_platform_type="Unix" ;;
3710 *-unknown-eabi*)
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="Freestanding"
3714 llvm_cv_platform_type="Unix" ;;
3715 *-unknown-elf*)
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="Freestanding"
3719 llvm_cv_platform_type="Unix" ;;
3720 *)
3721 llvm_cv_link_all_option=""
3722 llvm_cv_no_link_all_option=""
3723 llvm_cv_os_type="Unknown"
3724 llvm_cv_platform_type="Unknown" ;;
3725esac
3726fi
3727{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3728echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3729
3730{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3731echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3732if test "${llvm_cv_target_os_type+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 case $target in
3736 *-*-aix*)
3737 llvm_cv_target_os_type="AIX" ;;
3738 *-*-irix*)
3739 llvm_cv_target_os_type="IRIX" ;;
3740 *-*-cygwin*)
3741 llvm_cv_target_os_type="Cygwin" ;;
3742 *-*-darwin*)
3743 llvm_cv_target_os_type="Darwin" ;;
3744 *-*-minix*)
3745 llvm_cv_target_os_type="Minix" ;;
3746 *-*-freebsd*)
3747 llvm_cv_target_os_type="FreeBSD" ;;
3748 *-*-openbsd*)
3749 llvm_cv_target_os_type="OpenBSD" ;;
3750 *-*-netbsd*)
3751 llvm_cv_target_os_type="NetBSD" ;;
3752 *-*-dragonfly*)
3753 llvm_cv_target_os_type="DragonFly" ;;
3754 *-*-hpux*)
3755 llvm_cv_target_os_type="HP-UX" ;;
3756 *-*-interix*)
3757 llvm_cv_target_os_type="Interix" ;;
3758 *-*-linux*)
3759 llvm_cv_target_os_type="Linux" ;;
3760 *-*-solaris*)
3761 llvm_cv_target_os_type="SunOS" ;;
3762 *-*-auroraux*)
3763 llvm_cv_target_os_type="AuroraUX" ;;
3764 *-*-win32*)
3765 llvm_cv_target_os_type="Win32" ;;
3766 *-*-mingw*)
3767 llvm_cv_target_os_type="MingW" ;;
3768 *-*-haiku*)
3769 llvm_cv_target_os_type="Haiku" ;;
3770 *-*-rtems*)
3771 llvm_cv_target_os_type="RTEMS" ;;
3772 *-*-nacl*)
3773 llvm_cv_target_os_type="NativeClient" ;;
3774 *-unknown-eabi*)
3775 llvm_cv_target_os_type="Freestanding" ;;
3776 *)
3777 llvm_cv_target_os_type="Unknown" ;;
3778esac
3779fi
3780{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3781echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3782
3783if test "$llvm_cv_os_type" = "Unknown" ; then
3784 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3785echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3786 { (exit 1); exit 1; }; }
3787fi
3788
3789OS=$llvm_cv_os_type
3790
3791HOST_OS=$llvm_cv_os_type
3792
3793TARGET_OS=$llvm_cv_target_os_type
3794
3795
3796LINKALL=$llvm_cv_link_all_option
3797
3798NOLINKALL=$llvm_cv_no_link_all_option
3799
3800
3801case $llvm_cv_platform_type in
3802 Unix)
3803
3804cat >>confdefs.h <<\_ACEOF
3805#define LLVM_ON_UNIX 1
3806_ACEOF
3807
3808 LLVM_ON_UNIX=1
3809
3810 LLVM_ON_WIN32=0
3811
3812 ;;
3813 Win32)
3814
3815cat >>confdefs.h <<\_ACEOF
3816#define LLVM_ON_WIN32 1
3817_ACEOF
3818
3819 LLVM_ON_UNIX=0
3820
3821 LLVM_ON_WIN32=1
3822
3823 ;;
3824esac
3825
3826{ echo "$as_me:$LINENO: checking target architecture" >&5
3827echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3828if test "${llvm_cv_target_arch+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831 case $target in
3832 i?86-*) llvm_cv_target_arch="x86" ;;
3833 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3834 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3835 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003836 arm*-*) llvm_cv_target_arch="ARM" ;;
3837 mips-*) llvm_cv_target_arch="Mips" ;;
3838 xcore-*) llvm_cv_target_arch="XCore" ;;
3839 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003840 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003841 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3842 ptx-*) llvm_cv_target_arch="PTX" ;;
3843 *) llvm_cv_target_arch="Unknown" ;;
3844esac
3845fi
3846{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3847echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3848
3849if test "$llvm_cv_target_arch" = "Unknown" ; then
3850 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3851echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3852fi
3853
3854# Determine the LLVM native architecture for the target
3855case "$llvm_cv_target_arch" in
3856 x86) LLVM_NATIVE_ARCH="X86" ;;
3857 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3858 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3859esac
3860
3861ARCH=$llvm_cv_target_arch
3862
3863
3864
3865
3866{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3867echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3868if test "${ac_cv_path_GREP+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 # Extract the first word of "grep ggrep" to use in msg output
3872if test -z "$GREP"; then
3873set dummy grep ggrep; ac_prog_name=$2
3874if test "${ac_cv_path_GREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877 ac_path_GREP_found=false
3878# Loop through the user's path and test for each of PROGNAME-LIST
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in grep ggrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3887 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3888 # Check for GNU ac_path_GREP and select it if it is found.
3889 # Check for GNU $ac_path_GREP
3890case `"$ac_path_GREP" --version 2>&1` in
3891*GNU*)
3892 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3893*)
3894 ac_count=0
3895 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3896 while :
3897 do
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 echo 'GREP' >> "conftest.nl"
3902 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 ac_count=`expr $ac_count + 1`
3905 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_GREP="$ac_path_GREP"
3908 ac_path_GREP_max=$ac_count
3909 fi
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3912 done
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914esac
3915
3916
3917 $ac_path_GREP_found && break 3
3918 done
3919done
3920
3921done
3922IFS=$as_save_IFS
3923
3924
3925fi
3926
3927GREP="$ac_cv_path_GREP"
3928if test -z "$GREP"; then
3929 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931 { (exit 1); exit 1; }; }
3932fi
3933
3934else
3935 ac_cv_path_GREP=$GREP
3936fi
3937
3938
3939fi
3940{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3941echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3942 GREP="$ac_cv_path_GREP"
3943
3944
3945{ echo "$as_me:$LINENO: checking for egrep" >&5
3946echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3947if test "${ac_cv_path_EGREP+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
3950 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3951 then ac_cv_path_EGREP="$GREP -E"
3952 else
3953 # Extract the first word of "egrep" to use in msg output
3954if test -z "$EGREP"; then
3955set dummy egrep; ac_prog_name=$2
3956if test "${ac_cv_path_EGREP+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959 ac_path_EGREP_found=false
3960# Loop through the user's path and test for each of PROGNAME-LIST
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_prog in egrep; do
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3969 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3970 # Check for GNU ac_path_EGREP and select it if it is found.
3971 # Check for GNU $ac_path_EGREP
3972case `"$ac_path_EGREP" --version 2>&1` in
3973*GNU*)
3974 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3975*)
3976 ac_count=0
3977 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3978 while :
3979 do
3980 cat "conftest.in" "conftest.in" >"conftest.tmp"
3981 mv "conftest.tmp" "conftest.in"
3982 cp "conftest.in" "conftest.nl"
3983 echo 'EGREP' >> "conftest.nl"
3984 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3986 ac_count=`expr $ac_count + 1`
3987 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3988 # Best one so far, save it but keep looking for a better one
3989 ac_cv_path_EGREP="$ac_path_EGREP"
3990 ac_path_EGREP_max=$ac_count
3991 fi
3992 # 10*(2^10) chars as input seems more than enough
3993 test $ac_count -gt 10 && break
3994 done
3995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996esac
3997
3998
3999 $ac_path_EGREP_found && break 3
4000 done
4001done
4002
4003done
4004IFS=$as_save_IFS
4005
4006
4007fi
4008
4009EGREP="$ac_cv_path_EGREP"
4010if test -z "$EGREP"; then
4011 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4012echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4013 { (exit 1); exit 1; }; }
4014fi
4015
4016else
4017 ac_cv_path_EGREP=$EGREP
4018fi
4019
4020
4021 fi
4022fi
4023{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4024echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4025 EGREP="$ac_cv_path_EGREP"
4026
4027
4028{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4029echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4030if test "${ac_cv_header_stdc+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039#include <stdlib.h>
4040#include <stdarg.h>
4041#include <string.h>
4042#include <float.h>
4043
4044int
4045main ()
4046{
4047
4048 ;
4049 return 0;
4050}
4051_ACEOF
4052rm -f conftest.$ac_objext
4053if { (ac_try="$ac_compile"
4054case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4067 { (case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070esac
4071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080esac
4081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_try") 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_header_stdc=yes
4087else
4088 echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 ac_cv_header_stdc=no
4092fi
4093
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095
4096if test $ac_cv_header_stdc = yes; then
4097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4098 cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h. */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h. */
4104#include <string.h>
4105
4106_ACEOF
4107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "memchr" >/dev/null 2>&1; then
4109 :
4110else
4111 ac_cv_header_stdc=no
4112fi
4113rm -f conftest*
4114
4115fi
4116
4117if test $ac_cv_header_stdc = yes; then
4118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4119 cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h. */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h. */
4125#include <stdlib.h>
4126
4127_ACEOF
4128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 $EGREP "free" >/dev/null 2>&1; then
4130 :
4131else
4132 ac_cv_header_stdc=no
4133fi
4134rm -f conftest*
4135
4136fi
4137
4138if test $ac_cv_header_stdc = yes; then
4139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4140 if test "$cross_compiling" = yes; then
4141 :
4142else
4143 cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
4145_ACEOF
4146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
4148/* end confdefs.h. */
4149#include <ctype.h>
4150#include <stdlib.h>
4151#if ((' ' & 0x0FF) == 0x020)
4152# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154#else
4155# define ISLOWER(c) \
4156 (('a' <= (c) && (c) <= 'i') \
4157 || ('j' <= (c) && (c) <= 'r') \
4158 || ('s' <= (c) && (c) <= 'z'))
4159# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4160#endif
4161
4162#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163int
4164main ()
4165{
4166 int i;
4167 for (i = 0; i < 256; i++)
4168 if (XOR (islower (i), ISLOWER (i))
4169 || toupper (i) != TOUPPER (i))
4170 return 2;
4171 return 0;
4172}
4173_ACEOF
4174rm -f conftest$ac_exeext
4175if { (ac_try="$ac_link"
4176case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179esac
4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_link") 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4185 { (case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188esac
4189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_try") 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 :
4195else
4196 echo "$as_me: program exited with status $ac_status" >&5
4197echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200( exit $ac_status )
4201ac_cv_header_stdc=no
4202fi
4203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4204fi
4205
4206
4207fi
4208fi
4209{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4210echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4211if test $ac_cv_header_stdc = yes; then
4212
4213cat >>confdefs.h <<\_ACEOF
4214#define STDC_HEADERS 1
4215_ACEOF
4216
4217fi
4218
4219# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4230 inttypes.h stdint.h unistd.h
4231do
4232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4233{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238 cat >conftest.$ac_ext <<_ACEOF
4239/* confdefs.h. */
4240_ACEOF
4241cat confdefs.h >>conftest.$ac_ext
4242cat >>conftest.$ac_ext <<_ACEOF
4243/* end confdefs.h. */
4244$ac_includes_default
4245
4246#include <$ac_header>
4247_ACEOF
4248rm -f conftest.$ac_objext
4249if { (ac_try="$ac_compile"
4250case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 eval "$as_ac_Header=yes"
4283else
4284 echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 eval "$as_ac_Header=no"
4288fi
4289
4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291fi
4292ac_res=`eval echo '${'$as_ac_Header'}'`
4293 { echo "$as_me:$LINENO: result: $ac_res" >&5
4294echo "${ECHO_T}$ac_res" >&6; }
4295if test `eval echo '${'$as_ac_Header'}'` = yes; then
4296 cat >>confdefs.h <<_ACEOF
4297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4298_ACEOF
4299
4300fi
4301
4302done
4303
4304
4305{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4306echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4307if test "${ac_cv_c_bigendian+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310 # See if sys/param.h defines the BYTE_ORDER macro.
4311cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h. */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h. */
4317#include <sys/types.h>
4318#include <sys/param.h>
4319
4320int
4321main ()
4322{
4323#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4324 bogus endian macros
4325#endif
4326
4327 ;
4328 return 0;
4329}
4330_ACEOF
4331rm -f conftest.$ac_objext
4332if { (ac_try="$ac_compile"
4333case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336esac
4337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_compile") 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4346 { (case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349esac
4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_try") 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 # It does; now see whether it defined to BIG_ENDIAN or not.
4366cat >conftest.$ac_ext <<_ACEOF
4367/* confdefs.h. */
4368_ACEOF
4369cat confdefs.h >>conftest.$ac_ext
4370cat >>conftest.$ac_ext <<_ACEOF
4371/* end confdefs.h. */
4372#include <sys/types.h>
4373#include <sys/param.h>
4374
4375int
4376main ()
4377{
4378#if BYTE_ORDER != BIG_ENDIAN
4379 not big endian
4380#endif
4381
4382 ;
4383 return 0;
4384}
4385_ACEOF
4386rm -f conftest.$ac_objext
4387if { (ac_try="$ac_compile"
4388case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_compile") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4401 { (case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404esac
4405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_try") 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest.$ac_objext'
4411 { (case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414esac
4415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_try") 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_c_bigendian=yes
4421else
4422 echo "$as_me: failed program was:" >&5
4423sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 ac_cv_c_bigendian=no
4426fi
4427
4428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429else
4430 echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 # It does not; compile a test program.
4434if test "$cross_compiling" = yes; then
4435 # try to guess the endianness by grepping values into an object file
4436 ac_cv_c_bigendian=unknown
4437 cat >conftest.$ac_ext <<_ACEOF
4438/* confdefs.h. */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h. */
4443short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4444short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4445void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4446short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4447short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4448void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4449int
4450main ()
4451{
4452 _ascii (); _ebcdic ();
4453 ;
4454 return 0;
4455}
4456_ACEOF
4457rm -f conftest.$ac_objext
4458if { (ac_try="$ac_compile"
4459case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462esac
4463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_compile") 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
4476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485esac
4486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_try") 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4492 ac_cv_c_bigendian=yes
4493fi
4494if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4495 if test "$ac_cv_c_bigendian" = unknown; then
4496 ac_cv_c_bigendian=no
4497 else
4498 # finding both strings is unlikely to happen, but who knows?
4499 ac_cv_c_bigendian=unknown
4500 fi
4501fi
4502else
4503 echo "$as_me: failed program was:" >&5
4504sed 's/^/| /' conftest.$ac_ext >&5
4505
4506
4507fi
4508
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510else
4511 cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
4517$ac_includes_default
4518int
4519main ()
4520{
4521
4522 /* Are we little or big endian? From Harbison&Steele. */
4523 union
4524 {
4525 long int l;
4526 char c[sizeof (long int)];
4527 } u;
4528 u.l = 1;
4529 return u.c[sizeof (long int) - 1] == 1;
4530
4531 ;
4532 return 0;
4533}
4534_ACEOF
4535rm -f conftest$ac_exeext
4536if { (ac_try="$ac_link"
4537case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540esac
4541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_link") 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549esac
4550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_try") 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_cv_c_bigendian=no
4556else
4557 echo "$as_me: program exited with status $ac_status" >&5
4558echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
4561( exit $ac_status )
4562ac_cv_c_bigendian=yes
4563fi
4564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4565fi
4566
4567
4568fi
4569
4570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571fi
4572{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4573echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4574case $ac_cv_c_bigendian in
4575 yes)
4576 ENDIAN=big
4577 ;;
4578 no)
4579 ENDIAN=little
4580 ;;
4581 *)
4582 { { echo "$as_me:$LINENO: error: unknown endianness
4583presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4584echo "$as_me: error: unknown endianness
4585presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4586 { (exit 1); exit 1; }; } ;;
4587esac
4588
4589
4590if test "$cross_compiling" = yes; then
4591 LLVM_CROSS_COMPILING=1
4592
4593
4594{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4595echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4596if test "${ac_cv_build_exeext+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4600 ac_cv_build_exeext=.exe
4601else
4602 ac_build_prefix=${build_alias}-
4603
4604 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4605set dummy ${ac_build_prefix}gcc; ac_word=$2
4606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4608if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610else
4611 if test -n "$BUILD_CC"; then
4612 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4613else
4614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625done
4626done
4627IFS=$as_save_IFS
4628
4629fi
4630fi
4631BUILD_CC=$ac_cv_prog_BUILD_CC
4632if test -n "$BUILD_CC"; then
4633 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4634echo "${ECHO_T}$BUILD_CC" >&6; }
4635else
4636 { echo "$as_me:$LINENO: result: no" >&5
4637echo "${ECHO_T}no" >&6; }
4638fi
4639
4640
4641 if test -z "$BUILD_CC"; then
4642 # Extract the first word of "gcc", so it can be a program name with args.
4643set dummy gcc; ac_word=$2
4644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649 if test -n "$BUILD_CC"; then
4650 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_BUILD_CC="gcc"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663done
4664done
4665IFS=$as_save_IFS
4666
4667fi
4668fi
4669BUILD_CC=$ac_cv_prog_BUILD_CC
4670if test -n "$BUILD_CC"; then
4671 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4672echo "${ECHO_T}$BUILD_CC" >&6; }
4673else
4674 { echo "$as_me:$LINENO: result: no" >&5
4675echo "${ECHO_T}no" >&6; }
4676fi
4677
4678
4679 if test -z "$BUILD_CC"; then
4680 # Extract the first word of "cc", so it can be a program name with args.
4681set dummy cc; ac_word=$2
4682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687 if test -n "$BUILD_CC"; then
4688 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4689else
4690 ac_prog_rejected=no
4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH
4693do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4699 ac_prog_rejected=yes
4700 continue
4701 fi
4702 ac_cv_prog_BUILD_CC="cc"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706done
4707done
4708IFS=$as_save_IFS
4709
4710if test $ac_prog_rejected = yes; then
4711 # We found a bogon in the path, so make sure we never use it.
4712 set dummy $ac_cv_prog_BUILD_CC
4713 shift
4714 if test $# != 0; then
4715 # We chose a different compiler from the bogus one.
4716 # However, it has the same basename, so the bogon will be chosen
4717 # first if we set BUILD_CC to just the basename; use the full file name.
4718 shift
4719 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4720 fi
4721fi
4722fi
4723fi
4724BUILD_CC=$ac_cv_prog_BUILD_CC
4725if test -n "$BUILD_CC"; then
4726 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727echo "${ECHO_T}$BUILD_CC" >&6; }
4728else
4729 { echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6; }
4731fi
4732
4733
4734 fi
4735 fi
4736 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4737echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4738 { (exit 1); exit 1; }; }
4739 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4740 rm -f conftest*
4741 echo 'int main () { return 0; }' > conftest.$ac_ext
4742 ac_cv_build_exeext=
4743 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4744 (eval $ac_build_link) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; then
4748 for file in conftest.*; do
4749 case $file in
4750 *.c | *.o | *.obj | *.dSYM) ;;
4751 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4752 esac
4753 done
4754 else
4755 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4756echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4757 { (exit 1); exit 1; }; }
4758 fi
4759 rm -f conftest*
4760 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4761fi
4762fi
4763
4764BUILD_EXEEXT=""
4765test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4766{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4767echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4768ac_build_exeext=$BUILD_EXEEXT
4769
4770 ac_build_prefix=${build_alias}-
4771 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4772set dummy ${ac_build_prefix}g++; ac_word=$2
4773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4777else
4778 if test -n "$BUILD_CXX"; then
4779 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4780else
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4791 fi
4792done
4793done
4794IFS=$as_save_IFS
4795
4796fi
4797fi
4798BUILD_CXX=$ac_cv_prog_BUILD_CXX
4799if test -n "$BUILD_CXX"; then
4800 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4801echo "${ECHO_T}$BUILD_CXX" >&6; }
4802else
4803 { echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6; }
4805fi
4806
4807
4808 if test -z "$BUILD_CXX"; then
4809 # Extract the first word of "g++", so it can be a program name with args.
4810set dummy g++; ac_word=$2
4811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 if test -n "$BUILD_CXX"; then
4817 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_BUILD_CXX="g++"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830done
4831done
4832IFS=$as_save_IFS
4833
4834fi
4835fi
4836BUILD_CXX=$ac_cv_prog_BUILD_CXX
4837if test -n "$BUILD_CXX"; then
4838 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4839echo "${ECHO_T}$BUILD_CXX" >&6; }
4840else
4841 { echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6; }
4843fi
4844
4845
4846 if test -z "$BUILD_CXX"; then
4847 # Extract the first word of "c++", so it can be a program name with args.
4848set dummy c++; ac_word=$2
4849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854 if test -n "$BUILD_CXX"; then
4855 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4856else
4857 ac_prog_rejected=no
4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4866 ac_prog_rejected=yes
4867 continue
4868 fi
4869 ac_cv_prog_BUILD_CXX="c++"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873done
4874done
4875IFS=$as_save_IFS
4876
4877if test $ac_prog_rejected = yes; then
4878 # We found a bogon in the path, so make sure we never use it.
4879 set dummy $ac_cv_prog_BUILD_CXX
4880 shift
4881 if test $# != 0; then
4882 # We chose a different compiler from the bogus one.
4883 # However, it has the same basename, so the bogon will be chosen
4884 # first if we set BUILD_CXX to just the basename; use the full file name.
4885 shift
4886 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4887 fi
4888fi
4889fi
4890fi
4891BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892if test -n "$BUILD_CXX"; then
4893 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894echo "${ECHO_T}$BUILD_CXX" >&6; }
4895else
4896 { echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6; }
4898fi
4899
4900
4901 fi
4902 fi
4903else
4904 LLVM_CROSS_COMPILING=0
4905
4906fi
4907
4908if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4909 cvsbuild="yes"
4910 optimize="no"
4911 CVSBUILD=CVSBUILD=1
4912
4913else
4914 cvsbuild="no"
4915 optimize="yes"
4916fi
4917
4918
4919# Check whether --enable-optimized was given.
4920if test "${enable_optimized+set}" = set; then
4921 enableval=$enable_optimized;
4922else
4923 enableval=$optimize
4924fi
4925
4926if test ${enableval} = "no" ; then
4927 ENABLE_OPTIMIZED=
4928
4929else
4930 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4931
4932fi
4933
4934# Check whether --enable-profiling was given.
4935if test "${enable_profiling+set}" = set; then
4936 enableval=$enable_profiling;
4937else
4938 enableval="no"
4939fi
4940
4941if test ${enableval} = "no" ; then
4942 ENABLE_PROFILING=
4943
4944else
4945 ENABLE_PROFILING=ENABLE_PROFILING=1
4946
4947fi
4948
4949# Check whether --enable-assertions was given.
4950if test "${enable_assertions+set}" = set; then
4951 enableval=$enable_assertions;
4952else
4953 enableval="yes"
4954fi
4955
4956if test ${enableval} = "yes" ; then
4957 DISABLE_ASSERTIONS=
4958
4959else
4960 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4961
4962fi
4963
4964# Check whether --enable-expensive-checks was given.
4965if test "${enable_expensive_checks+set}" = set; then
4966 enableval=$enable_expensive_checks;
4967else
4968 enableval="no"
4969fi
4970
4971if test ${enableval} = "yes" ; then
4972 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4973
4974 EXPENSIVE_CHECKS=yes
4975
4976else
4977 ENABLE_EXPENSIVE_CHECKS=
4978
4979 EXPENSIVE_CHECKS=no
4980
4981fi
4982
4983# Check whether --enable-debug-runtime was given.
4984if test "${enable_debug_runtime+set}" = set; then
4985 enableval=$enable_debug_runtime;
4986else
4987 enableval=no
4988fi
4989
4990if test ${enableval} = "no" ; then
4991 DEBUG_RUNTIME=
4992
4993else
4994 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4995
4996fi
4997
4998# Check whether --enable-debug-symbols was given.
4999if test "${enable_debug_symbols+set}" = set; then
5000 enableval=$enable_debug_symbols;
5001else
5002 enableval=no
5003fi
5004
5005if test ${enableval} = "no" ; then
5006 DEBUG_SYMBOLS=
5007
5008else
5009 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5010
5011fi
5012
5013# Check whether --enable-jit was given.
5014if test "${enable_jit+set}" = set; then
5015 enableval=$enable_jit;
5016else
5017 enableval=default
5018fi
5019
5020if test ${enableval} = "no"
5021then
5022 JIT=
5023
5024else
5025 case "$llvm_cv_target_arch" in
5026 x86) TARGET_HAS_JIT=1
5027 ;;
5028 Sparc) TARGET_HAS_JIT=0
5029 ;;
5030 PowerPC) TARGET_HAS_JIT=1
5031 ;;
5032 x86_64) TARGET_HAS_JIT=1
5033 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005034 ARM) TARGET_HAS_JIT=1
5035 ;;
5036 Mips) TARGET_HAS_JIT=1
5037 ;;
5038 XCore) TARGET_HAS_JIT=0
5039 ;;
5040 MSP430) TARGET_HAS_JIT=0
5041 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005042 Hexagon) TARGET_HAS_JIT=0
5043 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005044 MBlaze) TARGET_HAS_JIT=0
5045 ;;
5046 PTX) TARGET_HAS_JIT=0
5047 ;;
5048 *) TARGET_HAS_JIT=0
5049 ;;
5050 esac
5051fi
5052
5053# Check whether --enable-docs was given.
5054if test "${enable_docs+set}" = set; then
5055 enableval=$enable_docs;
5056else
5057 enableval=default
5058fi
5059
5060case "$enableval" in
5061 yes) ENABLE_DOCS=1
5062 ;;
5063 no) ENABLE_DOCS=0
5064 ;;
5065 default) ENABLE_DOCS=1
5066 ;;
5067 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5068echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5069 { (exit 1); exit 1; }; } ;;
5070esac
5071
5072# Check whether --enable-doxygen was given.
5073if test "${enable_doxygen+set}" = set; then
5074 enableval=$enable_doxygen;
5075else
5076 enableval=default
5077fi
5078
5079case "$enableval" in
5080 yes) ENABLE_DOXYGEN=1
5081 ;;
5082 no) ENABLE_DOXYGEN=0
5083 ;;
5084 default) ENABLE_DOXYGEN=0
5085 ;;
5086 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5087echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5088 { (exit 1); exit 1; }; } ;;
5089esac
5090
5091# Check whether --enable-threads was given.
5092if test "${enable_threads+set}" = set; then
5093 enableval=$enable_threads;
5094else
5095 enableval=default
5096fi
5097
5098case "$enableval" in
5099 yes) ENABLE_THREADS=1
5100 ;;
5101 no) ENABLE_THREADS=0
5102 ;;
5103 default) ENABLE_THREADS=1
5104 ;;
5105 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5106echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5107 { (exit 1); exit 1; }; } ;;
5108esac
5109
5110cat >>confdefs.h <<_ACEOF
5111#define ENABLE_THREADS $ENABLE_THREADS
5112_ACEOF
5113
5114
5115# Check whether --enable-pthreads was given.
5116if test "${enable_pthreads+set}" = set; then
5117 enableval=$enable_pthreads;
5118else
5119 enableval=default
5120fi
5121
5122case "$enableval" in
5123 yes) ENABLE_PTHREADS=1
5124 ;;
5125 no) ENABLE_PTHREADS=0
5126 ;;
5127 default) ENABLE_PTHREADS=1
5128 ;;
5129 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5130echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5131 { (exit 1); exit 1; }; } ;;
5132esac
5133
5134# Check whether --enable-pic was given.
5135if test "${enable_pic+set}" = set; then
5136 enableval=$enable_pic;
5137else
5138 enableval=default
5139fi
5140
5141case "$enableval" in
5142 yes) ENABLE_PIC=1
5143 ;;
5144 no) ENABLE_PIC=0
5145 ;;
5146 default) ENABLE_PIC=1
5147 ;;
5148 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5149echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5150 { (exit 1); exit 1; }; } ;;
5151esac
5152
5153cat >>confdefs.h <<_ACEOF
5154#define ENABLE_PIC $ENABLE_PIC
5155_ACEOF
5156
5157
5158# Check whether --enable-shared was given.
5159if test "${enable_shared+set}" = set; then
5160 enableval=$enable_shared;
5161else
5162 enableval=default
5163fi
5164
5165case "$enableval" in
5166 yes) ENABLE_SHARED=1
5167 ;;
5168 no) ENABLE_SHARED=0
5169 ;;
5170 default) ENABLE_SHARED=0
5171 ;;
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5173echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5175esac
5176
5177# Check whether --enable-embed-stdcxx was given.
5178if test "${enable_embed_stdcxx+set}" = set; then
5179 enableval=$enable_embed_stdcxx;
5180else
5181 enableval=default
5182fi
5183
5184case "$enableval" in
5185 yes) ENABLE_EMBED_STDCXX=1
5186 ;;
5187 no) ENABLE_EMBED_STDCXX=0
5188 ;;
5189 default) ENABLE_EMBED_STDCXX=1
5190 ;;
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5192echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5194esac
5195
5196# Check whether --enable-timestamps was given.
5197if test "${enable_timestamps+set}" = set; then
5198 enableval=$enable_timestamps;
5199else
5200 enableval=default
5201fi
5202
5203case "$enableval" in
5204 yes) ENABLE_TIMESTAMPS=1
5205 ;;
5206 no) ENABLE_TIMESTAMPS=0
5207 ;;
5208 default) ENABLE_TIMESTAMPS=1
5209 ;;
5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5211echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5213esac
5214
5215cat >>confdefs.h <<_ACEOF
5216#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5217_ACEOF
5218
5219
5220TARGETS_TO_BUILD=""
5221# Check whether --enable-targets was given.
5222if test "${enable_targets+set}" = set; then
5223 enableval=$enable_targets;
5224else
5225 enableval=all
5226fi
5227
5228if test "$enableval" = host-only ; then
5229 enableval=host
5230fi
5231case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005232 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005233 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5234 case "$a_target" in
5235 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5236 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5237 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5238 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005239 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5240 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5241 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5242 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5243 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005244 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005245 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5246 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5247 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5248 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5249 host) case "$llvm_cv_target_arch" in
5250 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5251 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5252 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5253 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005254 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5255 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5256 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5257 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5258 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5259 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005260 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005261 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5262 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5263echo "$as_me: error: Can not set target to build" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5265 esac ;;
5266 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5267echo "$as_me: error: Unrecognized target $a_target" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5269 esac
5270 done
5271 ;;
5272esac
5273TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5274
5275
5276# Determine whether we are building LLVM support for the native architecture.
5277# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5278for a_target in $TARGETS_TO_BUILD; do
5279 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5280
5281cat >>confdefs.h <<_ACEOF
5282#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5283_ACEOF
5284
5285 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5286 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5287 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5288 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5289 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5290 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5291 fi
5292
5293cat >>confdefs.h <<_ACEOF
5294#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5295_ACEOF
5296
5297
5298cat >>confdefs.h <<_ACEOF
5299#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5300_ACEOF
5301
5302
5303cat >>confdefs.h <<_ACEOF
5304#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5305_ACEOF
5306
5307
5308cat >>confdefs.h <<_ACEOF
5309#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5310_ACEOF
5311
5312 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5313
5314cat >>confdefs.h <<_ACEOF
5315#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5316_ACEOF
5317
5318 fi
5319 fi
5320done
5321
5322# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5323# target feature def files.
5324LLVM_ENUM_TARGETS=""
5325LLVM_ENUM_ASM_PRINTERS=""
5326LLVM_ENUM_ASM_PARSERS=""
5327LLVM_ENUM_DISASSEMBLERS=""
5328for target_to_build in $TARGETS_TO_BUILD; do
5329 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5330 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5331 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5332 fi
5333 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5334 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5335 fi
5336 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5337 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5338 fi
5339done
5340
5341
5342
5343
5344
5345# Check whether --enable-cbe-printf-a was given.
5346if test "${enable_cbe_printf_a+set}" = set; then
5347 enableval=$enable_cbe_printf_a;
5348else
5349 enableval=default
5350fi
5351
5352case "$enableval" in
5353 yes) ENABLE_CBE_PRINTF_A=1
5354 ;;
5355 no) ENABLE_CBE_PRINTF_A=0
5356 ;;
5357 default) ENABLE_CBE_PRINTF_A=1
5358 ;;
5359 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5360echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5361 { (exit 1); exit 1; }; } ;;
5362esac
5363
5364cat >>confdefs.h <<_ACEOF
5365#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5366_ACEOF
5367
5368
5369
5370# Check whether --with-optimize-option was given.
5371if test "${with_optimize_option+set}" = set; then
5372 withval=$with_optimize_option;
5373else
5374 withval=default
5375fi
5376
5377{ echo "$as_me:$LINENO: checking optimization flags" >&5
5378echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5379case "$withval" in
5380 default)
5381 case "$llvm_cv_os_type" in
5382 FreeBSD) optimize_option=-O2 ;;
5383 MingW) optimize_option=-O2 ;;
5384 *) optimize_option=-O3 ;;
5385 esac ;;
5386 *) optimize_option="$withval" ;;
5387esac
5388OPTIMIZE_OPTION=$optimize_option
5389
5390{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5391echo "${ECHO_T}$optimize_option" >&6; }
5392
5393
5394# Check whether --with-extra-options was given.
5395if test "${with_extra_options+set}" = set; then
5396 withval=$with_extra_options;
5397else
5398 withval=default
5399fi
5400
5401case "$withval" in
5402 default) EXTRA_OPTIONS= ;;
5403 *) EXTRA_OPTIONS=$withval ;;
5404esac
5405EXTRA_OPTIONS=$EXTRA_OPTIONS
5406
5407
5408
5409# Check whether --with-extra-ld-options was given.
5410if test "${with_extra_ld_options+set}" = set; then
5411 withval=$with_extra_ld_options;
5412else
5413 withval=default
5414fi
5415
5416case "$withval" in
5417 default) EXTRA_LD_OPTIONS= ;;
5418 *) EXTRA_LD_OPTIONS=$withval ;;
5419esac
5420EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5421
5422
5423# Check whether --enable-bindings was given.
5424if test "${enable_bindings+set}" = set; then
5425 enableval=$enable_bindings;
5426else
5427 enableval=default
5428fi
5429
5430BINDINGS_TO_BUILD=""
5431case "$enableval" in
5432 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5433 all ) BINDINGS_TO_BUILD="ocaml" ;;
5434 none | no) BINDINGS_TO_BUILD="" ;;
5435 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5436 case "$a_binding" in
5437 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5438 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5439echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5440 { (exit 1); exit 1; }; } ;;
5441 esac
5442 done
5443 ;;
5444esac
5445
5446
5447# Check whether --with-ocaml-libdir was given.
5448if test "${with_ocaml_libdir+set}" = set; then
5449 withval=$with_ocaml_libdir;
5450else
5451 withval=auto
5452fi
5453
5454case "$withval" in
5455 auto) with_ocaml_libdir="$withval" ;;
5456 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5457 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5458echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5459 { (exit 1); exit 1; }; } ;;
5460esac
5461
5462
5463# Check whether --with-clang-resource-dir was given.
5464if test "${with_clang_resource_dir+set}" = set; then
5465 withval=$with_clang_resource_dir;
5466else
5467 withval=""
5468fi
5469
5470
5471cat >>confdefs.h <<_ACEOF
5472#define CLANG_RESOURCE_DIR "$withval"
5473_ACEOF
5474
5475
5476
5477# Check whether --with-c-include-dirs was given.
5478if test "${with_c_include_dirs+set}" = set; then
5479 withval=$with_c_include_dirs;
5480else
5481 withval=""
5482fi
5483
5484
5485cat >>confdefs.h <<_ACEOF
5486#define C_INCLUDE_DIRS "$withval"
5487_ACEOF
5488
5489
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005490# Clang normally uses the system c++ headers and libraries. With this option,
5491# clang will use the ones provided by a gcc installation instead. This option should
5492# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005493
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005494# Check whether --with-gcc-toolchain was given.
5495if test "${with_gcc_toolchain+set}" = set; then
5496 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005497else
5498 withval=""
5499fi
5500
5501
5502cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005503#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005504_ACEOF
5505
5506
5507
5508# Check whether --with-binutils-include was given.
5509if test "${with_binutils_include+set}" = set; then
5510 withval=$with_binutils_include;
5511else
5512 withval=default
5513fi
5514
5515case "$withval" in
5516 default) WITH_BINUTILS_INCDIR=default ;;
5517 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5518 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5519echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5520 { (exit 1); exit 1; }; } ;;
5521esac
5522if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5523 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5524
5525 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5526 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5527 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5528echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5529 { (exit 1); exit 1; }; };
5530 fi
5531fi
5532
5533
5534# Check whether --with-bug-report-url was given.
5535if test "${with_bug_report_url+set}" = set; then
5536 withval=$with_bug_report_url;
5537else
5538 withval="http://llvm.org/bugs/"
5539fi
5540
5541
5542cat >>confdefs.h <<_ACEOF
5543#define BUG_REPORT_URL "$withval"
5544_ACEOF
5545
5546
5547# Check whether --enable-libffi was given.
5548if test "${enable_libffi+set}" = set; then
5549 enableval=$enable_libffi; case "$enableval" in
5550 yes) llvm_cv_enable_libffi="yes" ;;
5551 no) llvm_cv_enable_libffi="no" ;;
5552 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5553echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5554 { (exit 1); exit 1; }; } ;;
5555 esac
5556else
5557 llvm_cv_enable_libffi=no
5558fi
5559
5560
5561
5562{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5563echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5564if test "${lt_cv_path_NM+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567 if test -n "$NM"; then
5568 # Let the user override the test.
5569 lt_cv_path_NM="$NM"
5570else
5571 lt_nm_to_check="${ac_tool_prefix}nm"
5572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573 lt_nm_to_check="$lt_nm_to_check nm"
5574 fi
5575 for lt_tmp_nm in $lt_nm_to_check; do
5576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5578 IFS="$lt_save_ifs"
5579 test -z "$ac_dir" && ac_dir=.
5580 tmp_nm="$ac_dir/$lt_tmp_nm"
5581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582 # Check to see if the nm accepts a BSD-compat flag.
5583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584 # nm: unknown option "B" ignored
5585 # Tru64's nm complains that /dev/null is an invalid object file
5586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587 */dev/null* | *'Invalid file or object type'*)
5588 lt_cv_path_NM="$tmp_nm -B"
5589 break
5590 ;;
5591 *)
5592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593 */dev/null*)
5594 lt_cv_path_NM="$tmp_nm -p"
5595 break
5596 ;;
5597 *)
5598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599 continue # so that we can try to find one that supports BSD flags
5600 ;;
5601 esac
5602 ;;
5603 esac
5604 fi
5605 done
5606 IFS="$lt_save_ifs"
5607 done
5608 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5609fi
5610fi
5611{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5612echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5613NM="$lt_cv_path_NM"
5614
5615
5616
5617{ echo "$as_me:$LINENO: checking for GNU make" >&5
5618echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5619if test "${llvm_cv_gnu_make_command+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622 llvm_cv_gnu_make_command=''
5623 for a in "$MAKE" make gmake gnumake ; do
5624 if test -z "$a" ; then continue ; fi ;
5625 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5626 then
5627 llvm_cv_gnu_make_command=$a ;
5628 break;
5629 fi
5630 done
5631fi
5632{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5633echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5634 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5635 ifGNUmake='' ;
5636 else
5637 ifGNUmake='#' ;
5638 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5639echo "${ECHO_T}\"Not found\"" >&6; };
5640 fi
5641
5642
5643{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5644echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5645LN_S=$as_ln_s
5646if test "$LN_S" = "ln -s"; then
5647 { echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6; }
5649else
5650 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5651echo "${ECHO_T}no, using $LN_S" >&6; }
5652fi
5653
5654# Extract the first word of "cmp", so it can be a program name with args.
5655set dummy cmp; ac_word=$2
5656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5658if test "${ac_cv_path_CMP+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661 case $CMP in
5662 [\\/]* | ?:[\\/]*)
5663 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5664 ;;
5665 *)
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5673 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677done
5678done
5679IFS=$as_save_IFS
5680
5681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5682 ;;
5683esac
5684fi
5685CMP=$ac_cv_path_CMP
5686if test -n "$CMP"; then
5687 { echo "$as_me:$LINENO: result: $CMP" >&5
5688echo "${ECHO_T}$CMP" >&6; }
5689else
5690 { echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6; }
5692fi
5693
5694
5695# Extract the first word of "cp", so it can be a program name with args.
5696set dummy cp; ac_word=$2
5697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5699if test "${ac_cv_path_CP+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 case $CP in
5703 [\\/]* | ?:[\\/]*)
5704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5705 ;;
5706 *)
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718done
5719done
5720IFS=$as_save_IFS
5721
5722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5723 ;;
5724esac
5725fi
5726CP=$ac_cv_path_CP
5727if test -n "$CP"; then
5728 { echo "$as_me:$LINENO: result: $CP" >&5
5729echo "${ECHO_T}$CP" >&6; }
5730else
5731 { echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6; }
5733fi
5734
5735
5736# Extract the first word of "date", so it can be a program name with args.
5737set dummy date; ac_word=$2
5738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5740if test "${ac_cv_path_DATE+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743 case $DATE in
5744 [\\/]* | ?:[\\/]*)
5745 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5746 ;;
5747 *)
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760done
5761IFS=$as_save_IFS
5762
5763 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5764 ;;
5765esac
5766fi
5767DATE=$ac_cv_path_DATE
5768if test -n "$DATE"; then
5769 { echo "$as_me:$LINENO: result: $DATE" >&5
5770echo "${ECHO_T}$DATE" >&6; }
5771else
5772 { echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6; }
5774fi
5775
5776
5777# Extract the first word of "find", so it can be a program name with args.
5778set dummy find; ac_word=$2
5779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5781if test "${ac_cv_path_FIND+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 case $FIND in
5785 [\\/]* | ?:[\\/]*)
5786 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5787 ;;
5788 *)
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 break 2
5799 fi
5800done
5801done
5802IFS=$as_save_IFS
5803
5804 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5805 ;;
5806esac
5807fi
5808FIND=$ac_cv_path_FIND
5809if test -n "$FIND"; then
5810 { echo "$as_me:$LINENO: result: $FIND" >&5
5811echo "${ECHO_T}$FIND" >&6; }
5812else
5813 { echo "$as_me:$LINENO: result: no" >&5
5814echo "${ECHO_T}no" >&6; }
5815fi
5816
5817
5818# Extract the first word of "grep", so it can be a program name with args.
5819set dummy grep; ac_word=$2
5820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822if test "${ac_cv_path_GREP+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825 case $GREP in
5826 [\\/]* | ?:[\\/]*)
5827 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5828 ;;
5829 *)
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5840 fi
5841done
5842done
5843IFS=$as_save_IFS
5844
5845 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5846 ;;
5847esac
5848fi
5849GREP=$ac_cv_path_GREP
5850if test -n "$GREP"; then
5851 { echo "$as_me:$LINENO: result: $GREP" >&5
5852echo "${ECHO_T}$GREP" >&6; }
5853else
5854 { echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6; }
5856fi
5857
5858
5859# Extract the first word of "mkdir", so it can be a program name with args.
5860set dummy mkdir; ac_word=$2
5861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863if test "${ac_cv_path_MKDIR+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866 case $MKDIR in
5867 [\\/]* | ?:[\\/]*)
5868 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5869 ;;
5870 *)
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882done
5883done
5884IFS=$as_save_IFS
5885
5886 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5887 ;;
5888esac
5889fi
5890MKDIR=$ac_cv_path_MKDIR
5891if test -n "$MKDIR"; then
5892 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5893echo "${ECHO_T}$MKDIR" >&6; }
5894else
5895 { echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6; }
5897fi
5898
5899
5900# Extract the first word of "mv", so it can be a program name with args.
5901set dummy mv; ac_word=$2
5902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904if test "${ac_cv_path_MV+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907 case $MV in
5908 [\\/]* | ?:[\\/]*)
5909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5910 ;;
5911 *)
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923done
5924done
5925IFS=$as_save_IFS
5926
5927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5928 ;;
5929esac
5930fi
5931MV=$ac_cv_path_MV
5932if test -n "$MV"; then
5933 { echo "$as_me:$LINENO: result: $MV" >&5
5934echo "${ECHO_T}$MV" >&6; }
5935else
5936 { echo "$as_me:$LINENO: result: no" >&5
5937echo "${ECHO_T}no" >&6; }
5938fi
5939
5940
5941if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5943set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946if test "${ac_cv_prog_RANLIB+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948else
5949 if test -n "$RANLIB"; then
5950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5951else
5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963done
5964done
5965IFS=$as_save_IFS
5966
5967fi
5968fi
5969RANLIB=$ac_cv_prog_RANLIB
5970if test -n "$RANLIB"; then
5971 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5972echo "${ECHO_T}$RANLIB" >&6; }
5973else
5974 { echo "$as_me:$LINENO: result: no" >&5
5975echo "${ECHO_T}no" >&6; }
5976fi
5977
5978
5979fi
5980if test -z "$ac_cv_prog_RANLIB"; then
5981 ac_ct_RANLIB=$RANLIB
5982 # Extract the first word of "ranlib", so it can be a program name with args.
5983set dummy ranlib; ac_word=$2
5984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989 if test -n "$ac_ct_RANLIB"; then
5990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5991else
5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_ac_ct_RANLIB="ranlib"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003done
6004done
6005IFS=$as_save_IFS
6006
6007fi
6008fi
6009ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6010if test -n "$ac_ct_RANLIB"; then
6011 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6012echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6013else
6014 { echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6; }
6016fi
6017
6018 if test "x$ac_ct_RANLIB" = x; then
6019 RANLIB=":"
6020 else
6021 case $cross_compiling:$ac_tool_warned in
6022yes:)
6023{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6024whose name does not start with the host triplet. If you think this
6025configuration is useful to you, please write to autoconf@gnu.org." >&5
6026echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6027whose name does not start with the host triplet. If you think this
6028configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6029ac_tool_warned=yes ;;
6030esac
6031 RANLIB=$ac_ct_RANLIB
6032 fi
6033else
6034 RANLIB="$ac_cv_prog_RANLIB"
6035fi
6036
6037if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6039set dummy ${ac_tool_prefix}ar; ac_word=$2
6040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042if test "${ac_cv_prog_AR+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045 if test -n "$AR"; then
6046 ac_cv_prog_AR="$AR" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_AR="${ac_tool_prefix}ar"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059done
6060done
6061IFS=$as_save_IFS
6062
6063fi
6064fi
6065AR=$ac_cv_prog_AR
6066if test -n "$AR"; then
6067 { echo "$as_me:$LINENO: result: $AR" >&5
6068echo "${ECHO_T}$AR" >&6; }
6069else
6070 { echo "$as_me:$LINENO: result: no" >&5
6071echo "${ECHO_T}no" >&6; }
6072fi
6073
6074
6075fi
6076if test -z "$ac_cv_prog_AR"; then
6077 ac_ct_AR=$AR
6078 # Extract the first word of "ar", so it can be a program name with args.
6079set dummy ar; ac_word=$2
6080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084else
6085 if test -n "$ac_ct_AR"; then
6086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_AR="ar"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099done
6100done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105ac_ct_AR=$ac_cv_prog_ac_ct_AR
6106if test -n "$ac_ct_AR"; then
6107 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6108echo "${ECHO_T}$ac_ct_AR" >&6; }
6109else
6110 { echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6; }
6112fi
6113
6114 if test "x$ac_ct_AR" = x; then
6115 AR="false"
6116 else
6117 case $cross_compiling:$ac_tool_warned in
6118yes:)
6119{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120whose name does not start with the host triplet. If you think this
6121configuration is useful to you, please write to autoconf@gnu.org." >&5
6122echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123whose name does not start with the host triplet. If you think this
6124configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125ac_tool_warned=yes ;;
6126esac
6127 AR=$ac_ct_AR
6128 fi
6129else
6130 AR="$ac_cv_prog_AR"
6131fi
6132
6133# Extract the first word of "rm", so it can be a program name with args.
6134set dummy rm; ac_word=$2
6135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137if test "${ac_cv_path_RM+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140 case $RM in
6141 [\\/]* | ?:[\\/]*)
6142 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6143 ;;
6144 *)
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156done
6157done
6158IFS=$as_save_IFS
6159
6160 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6161 ;;
6162esac
6163fi
6164RM=$ac_cv_path_RM
6165if test -n "$RM"; then
6166 { echo "$as_me:$LINENO: result: $RM" >&5
6167echo "${ECHO_T}$RM" >&6; }
6168else
6169 { echo "$as_me:$LINENO: result: no" >&5
6170echo "${ECHO_T}no" >&6; }
6171fi
6172
6173
6174# Extract the first word of "sed", so it can be a program name with args.
6175set dummy sed; ac_word=$2
6176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178if test "${ac_cv_path_SED+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181 case $SED in
6182 [\\/]* | ?:[\\/]*)
6183 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6184 ;;
6185 *)
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197done
6198done
6199IFS=$as_save_IFS
6200
6201 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6202 ;;
6203esac
6204fi
6205SED=$ac_cv_path_SED
6206if test -n "$SED"; then
6207 { echo "$as_me:$LINENO: result: $SED" >&5
6208echo "${ECHO_T}$SED" >&6; }
6209else
6210 { echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6; }
6212fi
6213
6214
6215# Extract the first word of "tar", so it can be a program name with args.
6216set dummy tar; ac_word=$2
6217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6219if test "${ac_cv_path_TAR+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221else
6222 case $TAR in
6223 [\\/]* | ?:[\\/]*)
6224 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6225 ;;
6226 *)
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6237 fi
6238done
6239done
6240IFS=$as_save_IFS
6241
6242 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6243 ;;
6244esac
6245fi
6246TAR=$ac_cv_path_TAR
6247if test -n "$TAR"; then
6248 { echo "$as_me:$LINENO: result: $TAR" >&5
6249echo "${ECHO_T}$TAR" >&6; }
6250else
6251 { echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6; }
6253fi
6254
6255
6256# Extract the first word of "pwd", so it can be a program name with args.
6257set dummy pwd; ac_word=$2
6258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260if test "${ac_cv_path_BINPWD+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else
6263 case $BINPWD in
6264 [\\/]* | ?:[\\/]*)
6265 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6266 ;;
6267 *)
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279done
6280done
6281IFS=$as_save_IFS
6282
6283 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6284 ;;
6285esac
6286fi
6287BINPWD=$ac_cv_path_BINPWD
6288if test -n "$BINPWD"; then
6289 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6290echo "${ECHO_T}$BINPWD" >&6; }
6291else
6292 { echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6; }
6294fi
6295
6296
6297
6298# Extract the first word of "Graphviz", so it can be a program name with args.
6299set dummy Graphviz; ac_word=$2
6300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304else
6305 case $GRAPHVIZ in
6306 [\\/]* | ?:[\\/]*)
6307 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6308 ;;
6309 *)
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321done
6322done
6323IFS=$as_save_IFS
6324
6325 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6326 ;;
6327esac
6328fi
6329GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6330if test -n "$GRAPHVIZ"; then
6331 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6332echo "${ECHO_T}$GRAPHVIZ" >&6; }
6333else
6334 { echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6; }
6336fi
6337
6338
6339if test "$GRAPHVIZ" != "echo Graphviz" ; then
6340
6341cat >>confdefs.h <<\_ACEOF
6342#define HAVE_GRAPHVIZ 1
6343_ACEOF
6344
6345 if test "$llvm_cv_os_type" = "MingW" ; then
6346 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6347 fi
6348
6349cat >>confdefs.h <<_ACEOF
6350#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6351_ACEOF
6352
6353fi
6354# Extract the first word of "dot", so it can be a program name with args.
6355set dummy dot; ac_word=$2
6356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358if test "${ac_cv_path_DOT+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 case $DOT in
6362 [\\/]* | ?:[\\/]*)
6363 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6364 ;;
6365 *)
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377done
6378done
6379IFS=$as_save_IFS
6380
6381 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6382 ;;
6383esac
6384fi
6385DOT=$ac_cv_path_DOT
6386if test -n "$DOT"; then
6387 { echo "$as_me:$LINENO: result: $DOT" >&5
6388echo "${ECHO_T}$DOT" >&6; }
6389else
6390 { echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6; }
6392fi
6393
6394
6395if test "$DOT" != "echo dot" ; then
6396
6397cat >>confdefs.h <<\_ACEOF
6398#define HAVE_DOT 1
6399_ACEOF
6400
6401 if test "$llvm_cv_os_type" = "MingW" ; then
6402 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6403 fi
6404
6405cat >>confdefs.h <<_ACEOF
6406#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6407_ACEOF
6408
6409fi
6410# Extract the first word of "fdp", so it can be a program name with args.
6411set dummy fdp; ac_word=$2
6412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414if test "${ac_cv_path_FDP+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416else
6417 case $FDP in
6418 [\\/]* | ?:[\\/]*)
6419 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6420 ;;
6421 *)
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433done
6434done
6435IFS=$as_save_IFS
6436
6437 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6438 ;;
6439esac
6440fi
6441FDP=$ac_cv_path_FDP
6442if test -n "$FDP"; then
6443 { echo "$as_me:$LINENO: result: $FDP" >&5
6444echo "${ECHO_T}$FDP" >&6; }
6445else
6446 { echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6; }
6448fi
6449
6450
6451if test "$FDP" != "echo fdp" ; then
6452
6453cat >>confdefs.h <<\_ACEOF
6454#define HAVE_FDP 1
6455_ACEOF
6456
6457 if test "$llvm_cv_os_type" = "MingW" ; then
6458 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6459 fi
6460
6461cat >>confdefs.h <<_ACEOF
6462#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6463_ACEOF
6464
6465fi
6466# Extract the first word of "neato", so it can be a program name with args.
6467set dummy neato; ac_word=$2
6468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470if test "${ac_cv_path_NEATO+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
6473 case $NEATO in
6474 [\\/]* | ?:[\\/]*)
6475 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6476 ;;
6477 *)
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490done
6491IFS=$as_save_IFS
6492
6493 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6494 ;;
6495esac
6496fi
6497NEATO=$ac_cv_path_NEATO
6498if test -n "$NEATO"; then
6499 { echo "$as_me:$LINENO: result: $NEATO" >&5
6500echo "${ECHO_T}$NEATO" >&6; }
6501else
6502 { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
6504fi
6505
6506
6507if test "$NEATO" != "echo neato" ; then
6508
6509cat >>confdefs.h <<\_ACEOF
6510#define HAVE_NEATO 1
6511_ACEOF
6512
6513 if test "$llvm_cv_os_type" = "MingW" ; then
6514 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515 fi
6516
6517cat >>confdefs.h <<_ACEOF
6518#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6519_ACEOF
6520
6521fi
6522# Extract the first word of "twopi", so it can be a program name with args.
6523set dummy twopi; ac_word=$2
6524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526if test "${ac_cv_path_TWOPI+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529 case $TWOPI in
6530 [\\/]* | ?:[\\/]*)
6531 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6532 ;;
6533 *)
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546done
6547IFS=$as_save_IFS
6548
6549 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6550 ;;
6551esac
6552fi
6553TWOPI=$ac_cv_path_TWOPI
6554if test -n "$TWOPI"; then
6555 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6556echo "${ECHO_T}$TWOPI" >&6; }
6557else
6558 { echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6; }
6560fi
6561
6562
6563if test "$TWOPI" != "echo twopi" ; then
6564
6565cat >>confdefs.h <<\_ACEOF
6566#define HAVE_TWOPI 1
6567_ACEOF
6568
6569 if test "$llvm_cv_os_type" = "MingW" ; then
6570 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6571 fi
6572
6573cat >>confdefs.h <<_ACEOF
6574#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6575_ACEOF
6576
6577fi
6578# Extract the first word of "circo", so it can be a program name with args.
6579set dummy circo; ac_word=$2
6580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582if test "${ac_cv_path_CIRCO+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585 case $CIRCO in
6586 [\\/]* | ?:[\\/]*)
6587 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6588 ;;
6589 *)
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602done
6603IFS=$as_save_IFS
6604
6605 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6606 ;;
6607esac
6608fi
6609CIRCO=$ac_cv_path_CIRCO
6610if test -n "$CIRCO"; then
6611 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6612echo "${ECHO_T}$CIRCO" >&6; }
6613else
6614 { echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6; }
6616fi
6617
6618
6619if test "$CIRCO" != "echo circo" ; then
6620
6621cat >>confdefs.h <<\_ACEOF
6622#define HAVE_CIRCO 1
6623_ACEOF
6624
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6627 fi
6628
6629cat >>confdefs.h <<_ACEOF
6630#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6631_ACEOF
6632
6633fi
6634for ac_prog in gv gsview32
6635do
6636 # Extract the first word of "$ac_prog", so it can be a program name with args.
6637set dummy $ac_prog; ac_word=$2
6638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640if test "${ac_cv_path_GV+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 case $GV in
6644 [\\/]* | ?:[\\/]*)
6645 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6646 ;;
6647 *)
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659done
6660done
6661IFS=$as_save_IFS
6662
6663 ;;
6664esac
6665fi
6666GV=$ac_cv_path_GV
6667if test -n "$GV"; then
6668 { echo "$as_me:$LINENO: result: $GV" >&5
6669echo "${ECHO_T}$GV" >&6; }
6670else
6671 { echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6; }
6673fi
6674
6675
6676 test -n "$GV" && break
6677done
6678test -n "$GV" || GV="echo gv"
6679
6680if test "$GV" != "echo gv" ; then
6681
6682cat >>confdefs.h <<\_ACEOF
6683#define HAVE_GV 1
6684_ACEOF
6685
6686 if test "$llvm_cv_os_type" = "MingW" ; then
6687 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6688 fi
6689
6690cat >>confdefs.h <<_ACEOF
6691#define LLVM_PATH_GV "$GV${EXEEXT}"
6692_ACEOF
6693
6694fi
6695# Extract the first word of "dotty", so it can be a program name with args.
6696set dummy dotty; ac_word=$2
6697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699if test "${ac_cv_path_DOTTY+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702 case $DOTTY in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6705 ;;
6706 *)
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6723 ;;
6724esac
6725fi
6726DOTTY=$ac_cv_path_DOTTY
6727if test -n "$DOTTY"; then
6728 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6729echo "${ECHO_T}$DOTTY" >&6; }
6730else
6731 { echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6; }
6733fi
6734
6735
6736if test "$DOTTY" != "echo dotty" ; then
6737
6738cat >>confdefs.h <<\_ACEOF
6739#define HAVE_DOTTY 1
6740_ACEOF
6741
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744 fi
6745
6746cat >>confdefs.h <<_ACEOF
6747#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6748_ACEOF
6749
6750fi
6751# Extract the first word of "xdot.py", so it can be a program name with args.
6752set dummy xdot.py; ac_word=$2
6753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755if test "${ac_cv_path_XDOT_PY+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 case $XDOT_PY in
6759 [\\/]* | ?:[\\/]*)
6760 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6761 ;;
6762 *)
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774done
6775done
6776IFS=$as_save_IFS
6777
6778 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6779 ;;
6780esac
6781fi
6782XDOT_PY=$ac_cv_path_XDOT_PY
6783if test -n "$XDOT_PY"; then
6784 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6785echo "${ECHO_T}$XDOT_PY" >&6; }
6786else
6787 { echo "$as_me:$LINENO: result: no" >&5
6788echo "${ECHO_T}no" >&6; }
6789fi
6790
6791
6792if test "$XDOT_PY" != "echo xdot.py" ; then
6793
6794cat >>confdefs.h <<\_ACEOF
6795#define HAVE_XDOT_PY 1
6796_ACEOF
6797
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800 fi
6801
6802cat >>confdefs.h <<_ACEOF
6803#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6804_ACEOF
6805
6806fi
6807
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006808# Find a good install program. We prefer a C program (faster),
6809# so one script is as good as another. But avoid the broken or
6810# incompatible versions:
6811# SysV /etc/install, /usr/sbin/install
6812# SunOS /usr/etc/install
6813# IRIX /sbin/install
6814# AIX /bin/install
6815# AmigaOS /C/install, which installs bootblocks on floppy discs
6816# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6817# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6818# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6819# OS/2's system install, which has a completely different semantic
6820# ./install, which can be erroneously created by make from ./install.sh.
6821{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6822echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6823if test -z "$INSTALL"; then
6824if test "${ac_cv_path_install+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 # Account for people who put trailing slashes in PATH elements.
6833case $as_dir/ in
6834 ./ | .// | /cC/* | \
6835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6837 /usr/ucb/* ) ;;
6838 *)
6839 # OSF1 and SCO ODT 3.0 have their own names for install.
6840 # Don't use installbsd from OSF since it installs stuff as root
6841 # by default.
6842 for ac_prog in ginstall scoinst install; do
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6845 if test $ac_prog = install &&
6846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6847 # AIX install. It has an incompatible calling convention.
6848 :
6849 elif test $ac_prog = install &&
6850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6851 # program-specific install script used by HP pwplus--don't use.
6852 :
6853 else
6854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6855 break 3
6856 fi
6857 fi
6858 done
6859 done
6860 ;;
6861esac
6862done
6863IFS=$as_save_IFS
6864
6865
6866fi
6867 if test "${ac_cv_path_install+set}" = set; then
6868 INSTALL=$ac_cv_path_install
6869 else
6870 # As a last resort, use the slow shell script. Don't cache a
6871 # value for INSTALL within a source directory, because that will
6872 # break other packages using the cache if that directory is
6873 # removed, or if the value is a relative name.
6874 INSTALL=$ac_install_sh
6875 fi
6876fi
6877{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6878echo "${ECHO_T}$INSTALL" >&6; }
6879
6880# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6881# It thinks the first close brace ends the variable substitution.
6882test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6883
6884test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6885
6886test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6887
6888case "$INSTALL" in
6889 [\\/$]* | ?:[\\/]* ) ;;
6890 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6891esac
6892
6893# Extract the first word of "bzip2", so it can be a program name with args.
6894set dummy bzip2; ac_word=$2
6895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897if test "${ac_cv_path_BZIP2+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899else
6900 case $BZIP2 in
6901 [\\/]* | ?:[\\/]*)
6902 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6903 ;;
6904 *)
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916done
6917done
6918IFS=$as_save_IFS
6919
6920 ;;
6921esac
6922fi
6923BZIP2=$ac_cv_path_BZIP2
6924if test -n "$BZIP2"; then
6925 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6926echo "${ECHO_T}$BZIP2" >&6; }
6927else
6928 { echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6; }
6930fi
6931
6932
6933# Extract the first word of "cat", so it can be a program name with args.
6934set dummy cat; ac_word=$2
6935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937if test "${ac_cv_path_CAT+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940 case $CAT in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956done
6957done
6958IFS=$as_save_IFS
6959
6960 ;;
6961esac
6962fi
6963CAT=$ac_cv_path_CAT
6964if test -n "$CAT"; then
6965 { echo "$as_me:$LINENO: result: $CAT" >&5
6966echo "${ECHO_T}$CAT" >&6; }
6967else
6968 { echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6; }
6970fi
6971
6972
6973# Extract the first word of "doxygen", so it can be a program name with args.
6974set dummy doxygen; ac_word=$2
6975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977if test "${ac_cv_path_DOXYGEN+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979else
6980 case $DOXYGEN in
6981 [\\/]* | ?:[\\/]*)
6982 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6983 ;;
6984 *)
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996done
6997done
6998IFS=$as_save_IFS
6999
7000 ;;
7001esac
7002fi
7003DOXYGEN=$ac_cv_path_DOXYGEN
7004if test -n "$DOXYGEN"; then
7005 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7006echo "${ECHO_T}$DOXYGEN" >&6; }
7007else
7008 { echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6; }
7010fi
7011
7012
7013# Extract the first word of "groff", so it can be a program name with args.
7014set dummy groff; ac_word=$2
7015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7017if test "${ac_cv_path_GROFF+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019else
7020 case $GROFF in
7021 [\\/]* | ?:[\\/]*)
7022 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7023 ;;
7024 *)
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036done
7037done
7038IFS=$as_save_IFS
7039
7040 ;;
7041esac
7042fi
7043GROFF=$ac_cv_path_GROFF
7044if test -n "$GROFF"; then
7045 { echo "$as_me:$LINENO: result: $GROFF" >&5
7046echo "${ECHO_T}$GROFF" >&6; }
7047else
7048 { echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6; }
7050fi
7051
7052
7053# Extract the first word of "gzip", so it can be a program name with args.
7054set dummy gzip; ac_word=$2
7055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057if test "${ac_cv_path_GZIPBIN+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059else
7060 case $GZIPBIN in
7061 [\\/]* | ?:[\\/]*)
7062 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7063 ;;
7064 *)
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 break 2
7075 fi
7076done
7077done
7078IFS=$as_save_IFS
7079
7080 ;;
7081esac
7082fi
7083GZIPBIN=$ac_cv_path_GZIPBIN
7084if test -n "$GZIPBIN"; then
7085 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7086echo "${ECHO_T}$GZIPBIN" >&6; }
7087else
7088 { echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6; }
7090fi
7091
7092
7093# Extract the first word of "pod2html", so it can be a program name with args.
7094set dummy pod2html; ac_word=$2
7095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_path_POD2HTML+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100 case $POD2HTML in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117done
7118IFS=$as_save_IFS
7119
7120 ;;
7121esac
7122fi
7123POD2HTML=$ac_cv_path_POD2HTML
7124if test -n "$POD2HTML"; then
7125 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7126echo "${ECHO_T}$POD2HTML" >&6; }
7127else
7128 { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
7130fi
7131
7132
7133# Extract the first word of "pod2man", so it can be a program name with args.
7134set dummy pod2man; ac_word=$2
7135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137if test "${ac_cv_path_POD2MAN+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140 case $POD2MAN in
7141 [\\/]* | ?:[\\/]*)
7142 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7143 ;;
7144 *)
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157done
7158IFS=$as_save_IFS
7159
7160 ;;
7161esac
7162fi
7163POD2MAN=$ac_cv_path_POD2MAN
7164if test -n "$POD2MAN"; then
7165 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7166echo "${ECHO_T}$POD2MAN" >&6; }
7167else
7168 { echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6; }
7170fi
7171
7172
7173# Extract the first word of "pdfroff", so it can be a program name with args.
7174set dummy pdfroff; ac_word=$2
7175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177if test "${ac_cv_path_PDFROFF+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180 case $PDFROFF in
7181 [\\/]* | ?:[\\/]*)
7182 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7183 ;;
7184 *)
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196done
7197done
7198IFS=$as_save_IFS
7199
7200 ;;
7201esac
7202fi
7203PDFROFF=$ac_cv_path_PDFROFF
7204if test -n "$PDFROFF"; then
7205 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7206echo "${ECHO_T}$PDFROFF" >&6; }
7207else
7208 { echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6; }
7210fi
7211
7212
7213# Extract the first word of "runtest", so it can be a program name with args.
7214set dummy runtest; ac_word=$2
7215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217if test "${ac_cv_path_RUNTEST+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220 case $RUNTEST in
7221 [\\/]* | ?:[\\/]*)
7222 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7223 ;;
7224 *)
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236done
7237done
7238IFS=$as_save_IFS
7239
7240 ;;
7241esac
7242fi
7243RUNTEST=$ac_cv_path_RUNTEST
7244if test -n "$RUNTEST"; then
7245 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7246echo "${ECHO_T}$RUNTEST" >&6; }
7247else
7248 { echo "$as_me:$LINENO: result: no" >&5
7249echo "${ECHO_T}no" >&6; }
7250fi
7251
7252
7253
7254no_itcl=true
7255{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7256echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7257
7258# Check whether --with-tclinclude was given.
7259if test "${with_tclinclude+set}" = set; then
7260 withval=$with_tclinclude; with_tclinclude=${withval}
7261else
7262 with_tclinclude=''
7263fi
7264
7265if test "${ac_cv_path_tclsh+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268
7269if test x"${with_tclinclude}" != x ; then
7270 if test -f ${with_tclinclude}/tclsh ; then
7271 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7272 elif test -f ${with_tclinclude}/src/tclsh ; then
7273 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7274 else
7275 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7276echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7277 { (exit 1); exit 1; }; }
7278 fi
7279fi
7280fi
7281
7282
7283if test x"${ac_cv_path_tclsh}" = x ; then
7284 { echo "$as_me:$LINENO: result: none" >&5
7285echo "${ECHO_T}none" >&6; }
7286 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
7287do
7288 # Extract the first word of "$ac_prog", so it can be a program name with args.
7289set dummy $ac_prog; ac_word=$2
7290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292if test "${ac_cv_path_TCLSH+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 case $TCLSH in
7296 [\\/]* | ?:[\\/]*)
7297 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7298 ;;
7299 *)
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7310 fi
7311done
7312done
7313IFS=$as_save_IFS
7314
7315 ;;
7316esac
7317fi
7318TCLSH=$ac_cv_path_TCLSH
7319if test -n "$TCLSH"; then
7320 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7321echo "${ECHO_T}$TCLSH" >&6; }
7322else
7323 { echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6; }
7325fi
7326
7327
7328 test -n "$TCLSH" && break
7329done
7330
7331 if test x"${TCLSH}" = x ; then
7332 ac_cv_path_tclsh='';
7333 else
7334 ac_cv_path_tclsh="${TCLSH}";
7335 fi
7336else
7337 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7338echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7339 TCLSH="${ac_cv_path_tclsh}"
7340
7341fi
7342
7343# Extract the first word of "zip", so it can be a program name with args.
7344set dummy zip; ac_word=$2
7345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347if test "${ac_cv_path_ZIP+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 case $ZIP in
7351 [\\/]* | ?:[\\/]*)
7352 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7353 ;;
7354 *)
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366done
7367done
7368IFS=$as_save_IFS
7369
7370 ;;
7371esac
7372fi
7373ZIP=$ac_cv_path_ZIP
7374if test -n "$ZIP"; then
7375 { echo "$as_me:$LINENO: result: $ZIP" >&5
7376echo "${ECHO_T}$ZIP" >&6; }
7377else
7378 { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
7380fi
7381
7382
7383for ac_prog in ocamlc
7384do
7385 # Extract the first word of "$ac_prog", so it can be a program name with args.
7386set dummy $ac_prog; ac_word=$2
7387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389if test "${ac_cv_path_OCAMLC+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391else
7392 case $OCAMLC in
7393 [\\/]* | ?:[\\/]*)
7394 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7395 ;;
7396 *)
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408done
7409done
7410IFS=$as_save_IFS
7411
7412 ;;
7413esac
7414fi
7415OCAMLC=$ac_cv_path_OCAMLC
7416if test -n "$OCAMLC"; then
7417 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7418echo "${ECHO_T}$OCAMLC" >&6; }
7419else
7420 { echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6; }
7422fi
7423
7424
7425 test -n "$OCAMLC" && break
7426done
7427
7428for ac_prog in ocamlopt
7429do
7430 # Extract the first word of "$ac_prog", so it can be a program name with args.
7431set dummy $ac_prog; ac_word=$2
7432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 case $OCAMLOPT in
7438 [\\/]* | ?:[\\/]*)
7439 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7440 ;;
7441 *)
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454done
7455IFS=$as_save_IFS
7456
7457 ;;
7458esac
7459fi
7460OCAMLOPT=$ac_cv_path_OCAMLOPT
7461if test -n "$OCAMLOPT"; then
7462 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7463echo "${ECHO_T}$OCAMLOPT" >&6; }
7464else
7465 { echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6; }
7467fi
7468
7469
7470 test -n "$OCAMLOPT" && break
7471done
7472
7473for ac_prog in ocamldep
7474do
7475 # Extract the first word of "$ac_prog", so it can be a program name with args.
7476set dummy $ac_prog; ac_word=$2
7477{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481else
7482 case $OCAMLDEP in
7483 [\\/]* | ?:[\\/]*)
7484 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7485 ;;
7486 *)
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 break 2
7497 fi
7498done
7499done
7500IFS=$as_save_IFS
7501
7502 ;;
7503esac
7504fi
7505OCAMLDEP=$ac_cv_path_OCAMLDEP
7506if test -n "$OCAMLDEP"; then
7507 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7508echo "${ECHO_T}$OCAMLDEP" >&6; }
7509else
7510 { echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6; }
7512fi
7513
7514
7515 test -n "$OCAMLDEP" && break
7516done
7517
7518for ac_prog in ocamldoc
7519do
7520 # Extract the first word of "$ac_prog", so it can be a program name with args.
7521set dummy $ac_prog; ac_word=$2
7522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7524if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526else
7527 case $OCAMLDOC in
7528 [\\/]* | ?:[\\/]*)
7529 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7530 ;;
7531 *)
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7539 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543done
7544done
7545IFS=$as_save_IFS
7546
7547 ;;
7548esac
7549fi
7550OCAMLDOC=$ac_cv_path_OCAMLDOC
7551if test -n "$OCAMLDOC"; then
7552 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7553echo "${ECHO_T}$OCAMLDOC" >&6; }
7554else
7555 { echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6; }
7557fi
7558
7559
7560 test -n "$OCAMLDOC" && break
7561done
7562
7563for ac_prog in gas as
7564do
7565 # Extract the first word of "$ac_prog", so it can be a program name with args.
7566set dummy $ac_prog; ac_word=$2
7567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569if test "${ac_cv_path_GAS+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 case $GAS in
7573 [\\/]* | ?:[\\/]*)
7574 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7575 ;;
7576 *)
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578for as_dir in $PATH
7579do
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588done
7589done
7590IFS=$as_save_IFS
7591
7592 ;;
7593esac
7594fi
7595GAS=$ac_cv_path_GAS
7596if test -n "$GAS"; then
7597 { echo "$as_me:$LINENO: result: $GAS" >&5
7598echo "${ECHO_T}$GAS" >&6; }
7599else
7600 { echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6; }
7602fi
7603
7604
7605 test -n "$GAS" && break
7606done
7607
7608
7609{ echo "$as_me:$LINENO: checking for linker version" >&5
7610echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7611if test "${llvm_cv_link_version+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614
7615 version_string="$(ld -v 2>&1 | head -1)"
7616
7617 # Check for ld64.
7618 if (echo "$version_string" | grep -q "ld64"); then
7619 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7620 else
7621 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7622 fi
7623
7624fi
7625{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7626echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7627
7628cat >>confdefs.h <<_ACEOF
7629#define HOST_LINK_VERSION "$llvm_cv_link_version"
7630_ACEOF
7631
7632
7633
7634{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7635echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7636if test "${llvm_cv_link_use_r+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639 ac_ext=c
7640ac_cpp='$CPP $CPPFLAGS'
7641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645 oldcflags="$CFLAGS"
7646 CFLAGS="$CFLAGS -Wl,-R."
7647 cat >conftest.$ac_ext <<_ACEOF
7648/* confdefs.h. */
7649_ACEOF
7650cat confdefs.h >>conftest.$ac_ext
7651cat >>conftest.$ac_ext <<_ACEOF
7652/* end confdefs.h. */
7653
7654int
7655main ()
7656{
7657
7658 ;
7659 return 0;
7660}
7661_ACEOF
7662rm -f conftest.$ac_objext conftest$ac_exeext
7663if { (ac_try="$ac_link"
7664case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667esac
7668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_link") 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } &&
7676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7677 { (case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680esac
7681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_try") 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 llvm_cv_link_use_r=yes
7697else
7698 echo "$as_me: failed program was:" >&5
7699sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 llvm_cv_link_use_r=no
7702fi
7703
7704rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
7706 CFLAGS="$oldcflags"
7707 ac_ext=c
7708ac_cpp='$CPP $CPPFLAGS'
7709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712
7713
7714fi
7715{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7716echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7717if test "$llvm_cv_link_use_r" = yes ; then
7718
7719cat >>confdefs.h <<\_ACEOF
7720#define HAVE_LINK_R 1
7721_ACEOF
7722
7723 fi
7724
7725
7726{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7727echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7728if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 ac_ext=c
7732ac_cpp='$CPP $CPPFLAGS'
7733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736
7737 oldcflags="$CFLAGS"
7738 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7739 cat >conftest.$ac_ext <<_ACEOF
7740/* confdefs.h. */
7741_ACEOF
7742cat confdefs.h >>conftest.$ac_ext
7743cat >>conftest.$ac_ext <<_ACEOF
7744/* end confdefs.h. */
7745
7746int
7747main ()
7748{
7749
7750 ;
7751 return 0;
7752}
7753_ACEOF
7754rm -f conftest.$ac_objext conftest$ac_exeext
7755if { (ac_try="$ac_link"
7756case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759esac
7760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_link") 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7769 { (case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772esac
7773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_try") 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7782esac
7783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_try") 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 llvm_cv_link_use_export_dynamic=yes
7789else
7790 echo "$as_me: failed program was:" >&5
7791sed 's/^/| /' conftest.$ac_ext >&5
7792
7793 llvm_cv_link_use_export_dynamic=no
7794fi
7795
7796rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 CFLAGS="$oldcflags"
7799 ac_ext=c
7800ac_cpp='$CPP $CPPFLAGS'
7801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805
7806fi
7807{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7808echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7809if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7810
7811cat >>confdefs.h <<\_ACEOF
7812#define HAVE_LINK_EXPORT_DYNAMIC 1
7813_ACEOF
7814
7815 fi
7816
7817
7818{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7819echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7820if test "${llvm_cv_link_use_version_script+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822else
7823 ac_ext=c
7824ac_cpp='$CPP $CPPFLAGS'
7825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828
7829 oldcflags="$CFLAGS"
7830
7831 # The following code is from the autoconf manual,
7832 # "11.13: Limitations of Usual Tools".
7833 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7834 # Use mktemp if possible; otherwise fall back on mkdir,
7835 # with $RANDOM to make collisions less likely.
7836 : ${TMPDIR=/tmp}
7837 {
7838 tmp=`
7839 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7840 ` &&
7841 test -n "$tmp" && test -d "$tmp"
7842 } || {
7843 tmp=$TMPDIR/foo$$-$RANDOM
7844 (umask 077 && mkdir "$tmp")
7845 } || exit $?
7846
7847 echo "{" > "$tmp/export.map"
7848 echo " global: main;" >> "$tmp/export.map"
7849 echo " local: *;" >> "$tmp/export.map"
7850 echo "};" >> "$tmp/export.map"
7851
7852 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7853 cat >conftest.$ac_ext <<_ACEOF
7854/* confdefs.h. */
7855_ACEOF
7856cat confdefs.h >>conftest.$ac_ext
7857cat >>conftest.$ac_ext <<_ACEOF
7858/* end confdefs.h. */
7859
7860int
7861main ()
7862{
7863
7864 ;
7865 return 0;
7866}
7867_ACEOF
7868rm -f conftest.$ac_objext conftest$ac_exeext
7869if { (ac_try="$ac_link"
7870case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873esac
7874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7886esac
7887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 llvm_cv_link_use_version_script=yes
7903else
7904 echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 llvm_cv_link_use_version_script=no
7908fi
7909
7910rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 rm "$tmp/export.map"
7913 rmdir "$tmp"
7914 CFLAGS="$oldcflags"
7915 ac_ext=c
7916ac_cpp='$CPP $CPPFLAGS'
7917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920
7921
7922fi
7923{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7924echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7925if test "$llvm_cv_link_use_version_script" = yes ; then
7926 HAVE_LINK_VERSION_SCRIPT=1
7927
7928 fi
7929
7930
7931
7932
7933{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7934echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7935if test "${ac_cv_c_const+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938 cat >conftest.$ac_ext <<_ACEOF
7939/* confdefs.h. */
7940_ACEOF
7941cat confdefs.h >>conftest.$ac_ext
7942cat >>conftest.$ac_ext <<_ACEOF
7943/* end confdefs.h. */
7944
7945int
7946main ()
7947{
7948/* FIXME: Include the comments suggested by Paul. */
7949#ifndef __cplusplus
7950 /* Ultrix mips cc rejects this. */
7951 typedef int charset[2];
7952 const charset x;
7953 /* SunOS 4.1.1 cc rejects this. */
7954 char const *const *ccp;
7955 char **p;
7956 /* NEC SVR4.0.2 mips cc rejects this. */
7957 struct point {int x, y;};
7958 static struct point const zero = {0,0};
7959 /* AIX XL C 1.02.0.0 rejects this.
7960 It does not let you subtract one const X* pointer from another in
7961 an arm of an if-expression whose if-part is not a constant
7962 expression */
7963 const char *g = "string";
7964 ccp = &g + (g ? g-g : 0);
7965 /* HPUX 7.0 cc rejects these. */
7966 ++ccp;
7967 p = (char**) ccp;
7968 ccp = (char const *const *) p;
7969 { /* SCO 3.2v4 cc rejects this. */
7970 char *t;
7971 char const *s = 0 ? (char *) 0 : (char const *) 0;
7972
7973 *t++ = 0;
7974 if (s) return 0;
7975 }
7976 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7977 int x[] = {25, 17};
7978 const int *foo = &x[0];
7979 ++foo;
7980 }
7981 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7982 typedef const int *iptr;
7983 iptr p = 0;
7984 ++p;
7985 }
7986 { /* AIX XL C 1.02.0.0 rejects this saying
7987 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7988 struct s { int j; const int *ap[3]; };
7989 struct s *b; b->j = 5;
7990 }
7991 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7992 const int foo = 10;
7993 if (!foo) return 0;
7994 }
7995 return !x[0] && !zero.x;
7996#endif
7997
7998 ;
7999 return 0;
8000}
8001_ACEOF
8002rm -f conftest.$ac_objext
8003if { (ac_try="$ac_compile"
8004case "(($ac_try" in
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8007esac
8008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8017 { (case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020esac
8021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_try") 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030esac
8031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_try") 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_c_const=yes
8037else
8038 echo "$as_me: failed program was:" >&5
8039sed 's/^/| /' conftest.$ac_ext >&5
8040
8041 ac_cv_c_const=no
8042fi
8043
8044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045fi
8046{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8047echo "${ECHO_T}$ac_cv_c_const" >&6; }
8048if test $ac_cv_c_const = no; then
8049
8050cat >>confdefs.h <<\_ACEOF
8051#define const
8052_ACEOF
8053
8054fi
8055
8056
8057
8058
8059
8060
8061ac_header_dirent=no
8062for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8063 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8064{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8065echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8068else
8069 cat >conftest.$ac_ext <<_ACEOF
8070/* confdefs.h. */
8071_ACEOF
8072cat confdefs.h >>conftest.$ac_ext
8073cat >>conftest.$ac_ext <<_ACEOF
8074/* end confdefs.h. */
8075#include <sys/types.h>
8076#include <$ac_hdr>
8077
8078int
8079main ()
8080{
8081if ((DIR *) 0)
8082return 0;
8083 ;
8084 return 0;
8085}
8086_ACEOF
8087rm -f conftest.$ac_objext
8088if { (ac_try="$ac_compile"
8089case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092esac
8093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_compile") 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8102 { (case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105esac
8106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_try") 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest.$ac_objext'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 eval "$as_ac_Header=yes"
8122else
8123 echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 eval "$as_ac_Header=no"
8127fi
8128
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130fi
8131ac_res=`eval echo '${'$as_ac_Header'}'`
8132 { echo "$as_me:$LINENO: result: $ac_res" >&5
8133echo "${ECHO_T}$ac_res" >&6; }
8134if test `eval echo '${'$as_ac_Header'}'` = yes; then
8135 cat >>confdefs.h <<_ACEOF
8136#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8137_ACEOF
8138
8139ac_header_dirent=$ac_hdr; break
8140fi
8141
8142done
8143# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8144if test $ac_header_dirent = dirent.h; then
8145 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8146echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8147if test "${ac_cv_search_opendir+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149else
8150 ac_func_search_save_LIBS=$LIBS
8151cat >conftest.$ac_ext <<_ACEOF
8152/* confdefs.h. */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h. */
8157
8158/* Override any GCC internal prototype to avoid an error.
8159 Use char because int might match the return type of a GCC
8160 builtin and then its argument prototype would still apply. */
8161#ifdef __cplusplus
8162extern "C"
8163#endif
8164char opendir ();
8165int
8166main ()
8167{
8168return opendir ();
8169 ;
8170 return 0;
8171}
8172_ACEOF
8173for ac_lib in '' dir; do
8174 if test -z "$ac_lib"; then
8175 ac_res="none required"
8176 else
8177 ac_res=-l$ac_lib
8178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8179 fi
8180 rm -f conftest.$ac_objext conftest$ac_exeext
8181if { (ac_try="$ac_link"
8182case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185esac
8186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_link") 2>conftest.er1
8188 ac_status=$?
8189 grep -v '^ *+' conftest.er1 >conftest.err
8190 rm -f conftest.er1
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8195 { (case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198esac
8199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_try") 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest$ac_exeext'
8205 { (case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8208esac
8209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_try") 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_cv_search_opendir=$ac_res
8215else
8216 echo "$as_me: failed program was:" >&5
8217sed 's/^/| /' conftest.$ac_ext >&5
8218
8219
8220fi
8221
8222rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext
8224 if test "${ac_cv_search_opendir+set}" = set; then
8225 break
8226fi
8227done
8228if test "${ac_cv_search_opendir+set}" = set; then
8229 :
8230else
8231 ac_cv_search_opendir=no
8232fi
8233rm conftest.$ac_ext
8234LIBS=$ac_func_search_save_LIBS
8235fi
8236{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8237echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8238ac_res=$ac_cv_search_opendir
8239if test "$ac_res" != no; then
8240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8241
8242fi
8243
8244else
8245 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8246echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8247if test "${ac_cv_search_opendir+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250 ac_func_search_save_LIBS=$LIBS
8251cat >conftest.$ac_ext <<_ACEOF
8252/* confdefs.h. */
8253_ACEOF
8254cat confdefs.h >>conftest.$ac_ext
8255cat >>conftest.$ac_ext <<_ACEOF
8256/* end confdefs.h. */
8257
8258/* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8261#ifdef __cplusplus
8262extern "C"
8263#endif
8264char opendir ();
8265int
8266main ()
8267{
8268return opendir ();
8269 ;
8270 return 0;
8271}
8272_ACEOF
8273for ac_lib in '' x; do
8274 if test -z "$ac_lib"; then
8275 ac_res="none required"
8276 else
8277 ac_res=-l$ac_lib
8278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8279 fi
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281if { (ac_try="$ac_link"
8282case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285esac
8286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_link") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_try") 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest$ac_exeext'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_search_opendir=$ac_res
8315else
8316 echo "$as_me: failed program was:" >&5
8317sed 's/^/| /' conftest.$ac_ext >&5
8318
8319
8320fi
8321
8322rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext
8324 if test "${ac_cv_search_opendir+set}" = set; then
8325 break
8326fi
8327done
8328if test "${ac_cv_search_opendir+set}" = set; then
8329 :
8330else
8331 ac_cv_search_opendir=no
8332fi
8333rm conftest.$ac_ext
8334LIBS=$ac_func_search_save_LIBS
8335fi
8336{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8337echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8338ac_res=$ac_cv_search_opendir
8339if test "$ac_res" != no; then
8340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8341
8342fi
8343
8344fi
8345
8346
8347for ac_header in dlfcn.h
8348do
8349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355fi
8356ac_res=`eval echo '${'$as_ac_Header'}'`
8357 { echo "$as_me:$LINENO: result: $ac_res" >&5
8358echo "${ECHO_T}$ac_res" >&6; }
8359else
8360 # Is the header compilable?
8361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8363cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h. */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h. */
8369$ac_includes_default
8370#include <$ac_header>
8371_ACEOF
8372rm -f conftest.$ac_objext
8373if { (ac_try="$ac_compile"
8374case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_compile") 2>conftest.er1
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387 { (case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_try") 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; } &&
8396 { ac_try='test -s conftest.$ac_objext'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400esac
8401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_header_compiler=yes
8407else
8408 echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 ac_header_compiler=no
8412fi
8413
8414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8416echo "${ECHO_T}$ac_header_compiler" >&6; }
8417
8418# Is the header present?
8419{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8421cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h. */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h. */
8427#include <$ac_header>
8428_ACEOF
8429if { (ac_try="$ac_cpp conftest.$ac_ext"
8430case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } >/dev/null; then
8442 if test -s conftest.err; then
8443 ac_cpp_err=$ac_c_preproc_warn_flag
8444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8445 else
8446 ac_cpp_err=
8447 fi
8448else
8449 ac_cpp_err=yes
8450fi
8451if test -z "$ac_cpp_err"; then
8452 ac_header_preproc=yes
8453else
8454 echo "$as_me: failed program was:" >&5
8455sed 's/^/| /' conftest.$ac_ext >&5
8456
8457 ac_header_preproc=no
8458fi
8459
8460rm -f conftest.err conftest.$ac_ext
8461{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8462echo "${ECHO_T}$ac_header_preproc" >&6; }
8463
8464# So? What about this header?
8465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8466 yes:no: )
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8471 ac_header_preproc=yes
8472 ;;
8473 no:yes:* )
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8486 ( cat <<\_ASBOX
8487## ------------------------------ ##
8488## Report this to bugs@yourdomain ##
8489## ------------------------------ ##
8490_ASBOX
8491 ) | sed "s/^/$as_me: WARNING: /" >&2
8492 ;;
8493esac
8494{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498else
8499 eval "$as_ac_Header=\$ac_header_preproc"
8500fi
8501ac_res=`eval echo '${'$as_ac_Header'}'`
8502 { echo "$as_me:$LINENO: result: $ac_res" >&5
8503echo "${ECHO_T}$ac_res" >&6; }
8504
8505fi
8506if test `eval echo '${'$as_ac_Header'}'` = yes; then
8507 cat >>confdefs.h <<_ACEOF
8508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8509_ACEOF
8510
8511fi
8512
8513done
8514
8515# Check whether --enable-ltdl-install was given.
8516if test "${enable_ltdl_install+set}" = set; then
8517 enableval=$enable_ltdl_install;
8518fi
8519
8520
8521
8522
8523if test x"${enable_ltdl_install-no}" != xno; then
8524 INSTALL_LTDL_TRUE=
8525 INSTALL_LTDL_FALSE='#'
8526else
8527 INSTALL_LTDL_TRUE='#'
8528 INSTALL_LTDL_FALSE=
8529fi
8530
8531
8532
8533if test x"${enable_ltdl_convenience-no}" != xno; then
8534 CONVENIENCE_LTDL_TRUE=
8535 CONVENIENCE_LTDL_FALSE='#'
8536else
8537 CONVENIENCE_LTDL_TRUE='#'
8538 CONVENIENCE_LTDL_FALSE=
8539fi
8540
8541
8542{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8543echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8544library_names_spec=
8545libname_spec='lib$name'
8546soname_spec=
8547shrext_cmds=".so"
8548postinstall_cmds=
8549postuninstall_cmds=
8550finish_cmds=
8551finish_eval=
8552shlibpath_var=
8553shlibpath_overrides_runpath=unknown
8554version_type=none
8555dynamic_linker="$host_os ld.so"
8556sys_lib_dlsearch_path_spec="/lib /usr/lib"
8557if test "$GCC" = yes; then
8558 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8559 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8560 # if the path contains ";" then we assume it to be the separator
8561 # otherwise default to the standard path separator (i.e. ":") - it is
8562 # assumed that no part of a normal pathname contains ";" but that should
8563 # okay in the real world where ";" in dirpaths is itself problematic.
8564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8565 else
8566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8567 fi
8568else
8569 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8570fi
8571need_lib_prefix=unknown
8572hardcode_into_libs=no
8573
8574# when you set need_version to no, make sure it does not cause -set_version
8575# flags to be left without arguments
8576need_version=unknown
8577
8578case $host_os in
8579aix3*)
8580 version_type=linux
8581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8582 shlibpath_var=LIBPATH
8583
8584 # AIX 3 has no versioning support, so we append a major version to the name.
8585 soname_spec='${libname}${release}${shared_ext}$major'
8586 ;;
8587
8588aix4* | aix5*)
8589 version_type=linux
8590 need_lib_prefix=no
8591 need_version=no
8592 hardcode_into_libs=yes
8593 if test "$host_cpu" = ia64; then
8594 # AIX 5 supports IA64
8595 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8596 shlibpath_var=LD_LIBRARY_PATH
8597 else
8598 # With GCC up to 2.95.x, collect2 would create an import file
8599 # for dependence libraries. The import file would start with
8600 # the line `#! .'. This would cause the generated library to
8601 # depend on `.', always an invalid library. This was fixed in
8602 # development snapshots of GCC prior to 3.0.
8603 case $host_os in
8604 aix4 | aix4.[01] | aix4.[01].*)
8605 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8606 echo ' yes '
8607 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8608 :
8609 else
8610 can_build_shared=no
8611 fi
8612 ;;
8613 esac
8614 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8615 # soname into executable. Probably we can add versioning support to
8616 # collect2, so additional links can be useful in future.
8617 if test "$aix_use_runtimelinking" = yes; then
8618 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8619 # instead of lib<name>.a to let people know that these are not
8620 # typical AIX shared libraries.
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622 else
8623 # We preserve .a as extension for shared libraries through AIX4.2
8624 # and later when we are not doing run time linking.
8625 library_names_spec='${libname}${release}.a $libname.a'
8626 soname_spec='${libname}${release}${shared_ext}$major'
8627 fi
8628 shlibpath_var=LIBPATH
8629 fi
8630 ;;
8631
8632amigaos*)
8633 library_names_spec='$libname.ixlibrary $libname.a'
8634 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8635 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'
8636 ;;
8637
8638beos*)
8639 library_names_spec='${libname}${shared_ext}'
8640 dynamic_linker="$host_os ld.so"
8641 shlibpath_var=LIBRARY_PATH
8642 ;;
8643
8644bsdi[45]*)
8645 version_type=linux
8646 need_version=no
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8648 soname_spec='${libname}${release}${shared_ext}$major'
8649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8650 shlibpath_var=LD_LIBRARY_PATH
8651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8653 # the default ld.so.conf also contains /usr/contrib/lib and
8654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8655 # libtool to hard-code these into programs
8656 ;;
8657
8658cygwin* | mingw* | pw32*)
8659 version_type=windows
8660 shrext_cmds=".dll"
8661 need_version=no
8662 need_lib_prefix=no
8663
8664 case $GCC,$host_os in
8665 yes,cygwin* | yes,mingw* | yes,pw32*)
8666 library_names_spec='$libname.dll.a'
8667 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8668 postinstall_cmds='base_file=`basename \${file}`~
8669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8670 dldir=$destdir/`dirname \$dlpath`~
8671 test -d \$dldir || mkdir -p \$dldir~
8672 $install_prog $dir/$dlname \$dldir/$dlname~
8673 chmod a+x \$dldir/$dlname'
8674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8675 dlpath=$dir/\$dldll~
8676 $rm \$dlpath'
8677 shlibpath_overrides_runpath=yes
8678
8679 case $host_os in
8680 cygwin*)
8681 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8682 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8683 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8684 ;;
8685 mingw*)
8686 # MinGW DLLs use traditional 'lib' prefix
8687 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8689 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8690 # It is most probably a Windows format PATH printed by
8691 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8692 # path with ; separators, and with drive letters. We can handle the
8693 # drive letters (cygwin fileutils understands them), so leave them,
8694 # especially as we might pass files found there to a mingw objdump,
8695 # which wouldn't understand a cygwinified path. Ahh.
8696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8697 else
8698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8699 fi
8700 ;;
8701 pw32*)
8702 # pw32 DLLs use 'pw' prefix rather than 'lib'
8703 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704 ;;
8705 esac
8706 ;;
8707
8708 *)
8709 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8710 ;;
8711 esac
8712 dynamic_linker='Win32 ld.exe'
8713 # FIXME: first we should search . and the directory the executable is in
8714 shlibpath_var=PATH
8715 ;;
8716
8717darwin* | rhapsody*)
8718 dynamic_linker="$host_os dyld"
8719 version_type=darwin
8720 need_lib_prefix=no
8721 need_version=no
8722 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8723 soname_spec='${libname}${release}${major}$shared_ext'
8724 shlibpath_overrides_runpath=yes
8725 shlibpath_var=DYLD_LIBRARY_PATH
8726 shrext_cmds='.dylib'
8727 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8728 if test "$GCC" = yes; then
8729 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"`
8730 else
8731 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8732 fi
8733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8734 ;;
8735
8736dgux*)
8737 version_type=linux
8738 need_lib_prefix=no
8739 need_version=no
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8741 soname_spec='${libname}${release}${shared_ext}$major'
8742 shlibpath_var=LD_LIBRARY_PATH
8743 ;;
8744
Rafael Espindola48381e52012-01-31 17:18:47 +00008745freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008746 dynamic_linker=no
8747 ;;
8748
8749kfreebsd*-gnu)
8750 version_type=linux
8751 need_lib_prefix=no
8752 need_version=no
8753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 shlibpath_var=LD_LIBRARY_PATH
8756 shlibpath_overrides_runpath=no
8757 hardcode_into_libs=yes
8758 dynamic_linker='GNU ld.so'
8759 ;;
8760
8761freebsd* | dragonfly*)
8762 # DragonFly does not have aout. When/if they implement a new
8763 # versioning mechanism, adjust this.
8764 if test -x /usr/bin/objformat; then
8765 objformat=`/usr/bin/objformat`
8766 else
8767 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008768 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008769 *) objformat=elf ;;
8770 esac
8771 fi
8772 version_type=freebsd-$objformat
8773 case $version_type in
8774 freebsd-elf*)
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8776 need_version=no
8777 need_lib_prefix=no
8778 ;;
8779 freebsd-*)
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8781 need_version=yes
8782 ;;
8783 esac
8784 shlibpath_var=LD_LIBRARY_PATH
8785 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008786 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008787 shlibpath_overrides_runpath=yes
8788 ;;
8789 freebsd3.[01]* | freebsdelf3.[01]*)
8790 shlibpath_overrides_runpath=yes
8791 hardcode_into_libs=yes
8792 ;;
8793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8795 shlibpath_overrides_runpath=no
8796 hardcode_into_libs=yes
8797 ;;
8798 freebsd*) # from 4.6 on
8799 shlibpath_overrides_runpath=yes
8800 hardcode_into_libs=yes
8801 ;;
8802 esac
8803 ;;
8804
8805gnu*)
8806 version_type=linux
8807 need_lib_prefix=no
8808 need_version=no
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 shlibpath_var=LD_LIBRARY_PATH
8812 hardcode_into_libs=yes
8813 ;;
8814
8815hpux9* | hpux10* | hpux11*)
8816 # Give a soname corresponding to the major version so that dld.sl refuses to
8817 # link against other versions.
8818 version_type=sunos
8819 need_lib_prefix=no
8820 need_version=no
8821 case $host_cpu in
8822 ia64*)
8823 shrext_cmds='.so'
8824 hardcode_into_libs=yes
8825 dynamic_linker="$host_os dld.so"
8826 shlibpath_var=LD_LIBRARY_PATH
8827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 if test "X$HPUX_IA64_MODE" = X32; then
8831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8832 else
8833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8834 fi
8835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8836 ;;
8837 hppa*64*)
8838 shrext_cmds='.sl'
8839 hardcode_into_libs=yes
8840 dynamic_linker="$host_os dld.sl"
8841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8847 ;;
8848 *)
8849 shrext_cmds='.sl'
8850 dynamic_linker="$host_os dld.sl"
8851 shlibpath_var=SHLIB_PATH
8852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854 soname_spec='${libname}${release}${shared_ext}$major'
8855 ;;
8856 esac
8857 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8858 postinstall_cmds='chmod 555 $lib'
8859 ;;
8860
8861interix3*)
8862 version_type=linux
8863 need_lib_prefix=no
8864 need_version=no
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 shlibpath_overrides_runpath=no
8870 hardcode_into_libs=yes
8871 ;;
8872
8873irix5* | irix6* | nonstopux*)
8874 case $host_os in
8875 nonstopux*) version_type=nonstopux ;;
8876 *)
8877 if test "$lt_cv_prog_gnu_ld" = yes; then
8878 version_type=linux
8879 else
8880 version_type=irix
8881 fi ;;
8882 esac
8883 need_lib_prefix=no
8884 need_version=no
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8887 case $host_os in
8888 irix5* | nonstopux*)
8889 libsuff= shlibsuff=
8890 ;;
8891 *)
8892 case $LD in # libtool.m4 will add one of these switches to LD
8893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8894 libsuff= shlibsuff= libmagic=32-bit;;
8895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8896 libsuff=32 shlibsuff=N32 libmagic=N32;;
8897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8898 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8899 *) libsuff= shlibsuff= libmagic=never-match;;
8900 esac
8901 ;;
8902 esac
8903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8904 shlibpath_overrides_runpath=no
8905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8907 hardcode_into_libs=yes
8908 ;;
8909
8910# No shared lib support for Linux oldld, aout, or coff.
8911linux*oldld* | linux*aout* | linux*coff*)
8912 dynamic_linker=no
8913 ;;
8914
8915# This must be Linux ELF.
8916linux*)
8917 version_type=linux
8918 need_lib_prefix=no
8919 need_version=no
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=no
8925 # This implies no fast_install, which is unacceptable.
8926 # Some rework will be needed to allow for fast_install
8927 # before this can be enabled.
8928 hardcode_into_libs=yes
8929
8930 # Append ld.so.conf contents to the search path
8931 if test -f /etc/ld.so.conf; then
8932 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' ' '`
8933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8934 fi
8935
8936 # We used to test for /lib/ld.so.1 and disable shared libraries on
8937 # powerpc, because MkLinux only supported shared libraries with the
8938 # GNU dynamic linker. Since this was broken with cross compilers,
8939 # most powerpc-linux boxes support dynamic linking these days and
8940 # people can always --disable-shared, the test was removed, and we
8941 # assume the GNU/Linux dynamic linker is in use.
8942 dynamic_linker='GNU/Linux ld.so'
8943 ;;
8944
8945knetbsd*-gnu)
8946 version_type=linux
8947 need_lib_prefix=no
8948 need_version=no
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=no
8953 hardcode_into_libs=yes
8954 dynamic_linker='GNU ld.so'
8955 ;;
8956
8957netbsd*)
8958 version_type=sunos
8959 need_lib_prefix=no
8960 need_version=no
8961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8964 dynamic_linker='NetBSD (a.out) ld.so'
8965 else
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 dynamic_linker='NetBSD ld.elf_so'
8969 fi
8970 shlibpath_var=LD_LIBRARY_PATH
8971 shlibpath_overrides_runpath=yes
8972 hardcode_into_libs=yes
8973 ;;
8974
8975newsos6)
8976 version_type=linux
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8980 ;;
8981
8982nto-qnx*)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=yes
8990 ;;
8991
8992openbsd*)
8993 version_type=sunos
8994 sys_lib_dlsearch_path_spec="/usr/lib"
8995 need_lib_prefix=no
8996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8997 case $host_os in
8998 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8999 *) need_version=no ;;
9000 esac
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9005 case $host_os in
9006 openbsd2.[89] | openbsd2.[89].*)
9007 shlibpath_overrides_runpath=no
9008 ;;
9009 *)
9010 shlibpath_overrides_runpath=yes
9011 ;;
9012 esac
9013 else
9014 shlibpath_overrides_runpath=yes
9015 fi
9016 ;;
9017
9018os2*)
9019 libname_spec='$name'
9020 shrext_cmds=".dll"
9021 need_lib_prefix=no
9022 library_names_spec='$libname${shared_ext} $libname.a'
9023 dynamic_linker='OS/2 ld.exe'
9024 shlibpath_var=LIBPATH
9025 ;;
9026
9027osf3* | osf4* | osf5*)
9028 version_type=osf
9029 need_lib_prefix=no
9030 need_version=no
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9036 ;;
9037
9038solaris*)
9039 version_type=linux
9040 need_lib_prefix=no
9041 need_version=no
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=yes
9046 hardcode_into_libs=yes
9047 # ldd complains unless libraries are executable
9048 postinstall_cmds='chmod +x $lib'
9049 ;;
9050
9051sunos4*)
9052 version_type=sunos
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9057 if test "$with_gnu_ld" = yes; then
9058 need_lib_prefix=no
9059 fi
9060 need_version=yes
9061 ;;
9062
9063sysv4 | sysv4.3*)
9064 version_type=linux
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 case $host_vendor in
9069 sni)
9070 shlibpath_overrides_runpath=no
9071 need_lib_prefix=no
9072 export_dynamic_flag_spec='${wl}-Blargedynsym'
9073 runpath_var=LD_RUN_PATH
9074 ;;
9075 siemens)
9076 need_lib_prefix=no
9077 ;;
9078 motorola)
9079 need_lib_prefix=no
9080 need_version=no
9081 shlibpath_overrides_runpath=no
9082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9083 ;;
9084 esac
9085 ;;
9086
9087sysv4*MP*)
9088 if test -d /usr/nec ;then
9089 version_type=linux
9090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9091 soname_spec='$libname${shared_ext}.$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 fi
9094 ;;
9095
9096sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9097 version_type=freebsd-elf
9098 need_lib_prefix=no
9099 need_version=no
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 hardcode_into_libs=yes
9104 if test "$with_gnu_ld" = yes; then
9105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9106 shlibpath_overrides_runpath=no
9107 else
9108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9109 shlibpath_overrides_runpath=yes
9110 case $host_os in
9111 sco3.2v5*)
9112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9113 ;;
9114 esac
9115 fi
9116 sys_lib_dlsearch_path_spec='/usr/lib'
9117 ;;
9118
9119uts4*)
9120 version_type=linux
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 ;;
9125
9126*)
9127 dynamic_linker=no
9128 ;;
9129esac
9130{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9131echo "${ECHO_T}$dynamic_linker" >&6; }
9132test "$dynamic_linker" = no && can_build_shared=no
9133
9134variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9135if test "$GCC" = yes; then
9136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9137fi
9138
9139
9140{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9141echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9142if test "${libltdl_cv_shlibext+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9144else
9145
9146module=yes
9147eval libltdl_cv_shlibext=$shrext_cmds
9148
9149fi
9150{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9151echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9152if test -n "$libltdl_cv_shlibext"; then
9153
9154cat >>confdefs.h <<_ACEOF
9155#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9156_ACEOF
9157
9158fi
9159
9160
9161{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9162echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9163if test "${libltdl_cv_shlibpath_var+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166 libltdl_cv_shlibpath_var="$shlibpath_var"
9167fi
9168{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9169echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9170if test -n "$libltdl_cv_shlibpath_var"; then
9171
9172cat >>confdefs.h <<_ACEOF
9173#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9174_ACEOF
9175
9176fi
9177
9178
9179{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9180echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9181if test "${libltdl_cv_sys_search_path+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183else
9184 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9185fi
9186{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9187echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9188if test -n "$libltdl_cv_sys_search_path"; then
9189 sys_search_path=
9190 for dir in $libltdl_cv_sys_search_path; do
9191 if test -z "$sys_search_path"; then
9192 sys_search_path="$dir"
9193 else
9194 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9195 fi
9196 done
9197
9198cat >>confdefs.h <<_ACEOF
9199#define LTDL_SYSSEARCHPATH "$sys_search_path"
9200_ACEOF
9201
9202fi
9203
9204{ echo "$as_me:$LINENO: checking for objdir" >&5
9205echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9206if test "${libltdl_cv_objdir+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209 libltdl_cv_objdir="$objdir"
9210 if test -n "$objdir"; then
9211 :
9212 else
9213 rm -f .libs 2>/dev/null
9214 mkdir .libs 2>/dev/null
9215 if test -d .libs; then
9216 libltdl_cv_objdir=.libs
9217 else
9218 # MS-DOS does not allow filenames that begin with a dot.
9219 libltdl_cv_objdir=_libs
9220 fi
9221 rmdir .libs 2>/dev/null
9222 fi
9223
9224fi
9225{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9226echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9227
9228cat >>confdefs.h <<_ACEOF
9229#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9230_ACEOF
9231
9232
9233
9234
9235
9236
9237# Check for command to grab the raw symbol name followed by C symbol from nm.
9238{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9239echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9240if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242else
9243
9244# These are sane defaults that work on at least a few old systems.
9245# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9246
9247# Character class describing NM global symbol codes.
9248symcode='[BCDEGRST]'
9249
9250# Regexp to match symbols that can be accessed directly from C.
9251sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9252
9253# Transform an extracted symbol line into a proper C declaration
9254lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9255
9256# Transform an extracted symbol line into symbol name and symbol address
9257lt_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'"
9258
9259# Define system-specific variables.
9260case $host_os in
9261aix*)
9262 symcode='[BCDT]'
9263 ;;
9264cygwin* | mingw* | pw32*)
9265 symcode='[ABCDGISTW]'
9266 ;;
9267hpux*) # Its linker distinguishes data from code symbols
9268 if test "$host_cpu" = ia64; then
9269 symcode='[ABCDEGRST]'
9270 fi
9271 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9272 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'"
9273 ;;
9274linux*)
9275 if test "$host_cpu" = ia64; then
9276 symcode='[ABCDGIRSTW]'
9277 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9278 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'"
9279 fi
9280 ;;
9281irix* | nonstopux*)
9282 symcode='[BCDEGRST]'
9283 ;;
9284osf*)
9285 symcode='[BCDEGQRST]'
9286 ;;
9287solaris*)
9288 symcode='[BDRT]'
9289 ;;
9290sco3.2v5*)
9291 symcode='[DT]'
9292 ;;
9293sysv4.2uw2*)
9294 symcode='[DT]'
9295 ;;
9296sysv5* | sco5v6* | unixware* | OpenUNIX*)
9297 symcode='[ABDT]'
9298 ;;
9299sysv4)
9300 symcode='[DFNSTU]'
9301 ;;
9302esac
9303
9304# Handle CRLF in mingw tool chain
9305opt_cr=
9306case $build_os in
9307mingw*)
9308 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9309 ;;
9310esac
9311
9312# If we're using GNU nm, then use its standard symbol codes.
9313case `$NM -V 2>&1` in
9314*GNU* | *'with BFD'*)
9315 symcode='[ABCDGIRSTW]' ;;
9316esac
9317
9318# Try without a prefix undercore, then with it.
9319for ac_symprfx in "" "_"; do
9320
9321 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9322 symxfrm="\\1 $ac_symprfx\\2 \\2"
9323
9324 # Write the raw and C identifiers.
9325 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9326
9327 # Check to see that the pipe works correctly.
9328 pipe_works=no
9329
9330 rm -f conftest*
9331 cat > conftest.$ac_ext <<EOF
9332#ifdef __cplusplus
9333extern "C" {
9334#endif
9335char nm_test_var;
9336void nm_test_func(){}
9337#ifdef __cplusplus
9338}
9339#endif
9340int main(){nm_test_var='a';nm_test_func();return(0);}
9341EOF
9342
9343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9344 (eval $ac_compile) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; then
9348 # Now try to grab the symbols.
9349 nlist=conftest.nm
9350 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9351 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } && test -s "$nlist"; then
9355 # Try sorting and uniquifying the output.
9356 if sort "$nlist" | uniq > "$nlist"T; then
9357 mv -f "$nlist"T "$nlist"
9358 else
9359 rm -f "$nlist"T
9360 fi
9361
9362 # Make sure that we snagged all the symbols we need.
9363 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9364 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9365 cat <<EOF > conftest.$ac_ext
9366#ifdef __cplusplus
9367extern "C" {
9368#endif
9369
9370EOF
9371 # Now generate the symbol file.
9372 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9373
9374 cat <<EOF >> conftest.$ac_ext
9375#if defined (__STDC__) && __STDC__
9376# define lt_ptr_t void *
9377#else
9378# define lt_ptr_t char *
9379# define const
9380#endif
9381
9382/* The mapping between symbol names and symbols. */
9383const struct {
9384 const char *name;
9385 lt_ptr_t address;
9386}
9387lt_preloaded_symbols[] =
9388{
9389EOF
9390 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9391 cat <<\EOF >> conftest.$ac_ext
9392 {0, (lt_ptr_t) 0}
9393};
9394
9395#ifdef __cplusplus
9396}
9397#endif
9398EOF
9399 # Now try linking the two files.
9400 mv conftest.$ac_objext conftstm.$ac_objext
9401 lt_save_LIBS="$LIBS"
9402 lt_save_CFLAGS="$CFLAGS"
9403 LIBS="conftstm.$ac_objext"
9404 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9410 pipe_works=yes
9411 fi
9412 LIBS="$lt_save_LIBS"
9413 CFLAGS="$lt_save_CFLAGS"
9414 else
9415 echo "cannot find nm_test_func in $nlist" >&5
9416 fi
9417 else
9418 echo "cannot find nm_test_var in $nlist" >&5
9419 fi
9420 else
9421 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9422 fi
9423 else
9424 echo "$progname: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 fi
9427 rm -f conftest* conftst*
9428
9429 # Do not use the global_symbol_pipe unless it works.
9430 if test "$pipe_works" = yes; then
9431 break
9432 else
9433 lt_cv_sys_global_symbol_pipe=
9434 fi
9435done
9436
9437fi
9438
9439if test -z "$lt_cv_sys_global_symbol_pipe"; then
9440 lt_cv_sys_global_symbol_to_cdecl=
9441fi
9442if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9443 { echo "$as_me:$LINENO: result: failed" >&5
9444echo "${ECHO_T}failed" >&6; }
9445else
9446 { echo "$as_me:$LINENO: result: ok" >&5
9447echo "${ECHO_T}ok" >&6; }
9448fi
9449
9450
9451{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9452echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9453if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9457 libltdl_cv_preloaded_symbols=yes
9458 else
9459 libltdl_cv_preloaded_symbols=no
9460 fi
9461
9462fi
9463{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9464echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9465if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9466
9467cat >>confdefs.h <<\_ACEOF
9468#define HAVE_PRELOADED_SYMBOLS 1
9469_ACEOF
9470
9471fi
9472
9473LIBADD_DL=
9474
9475ac_ext=c
9476ac_cpp='$CPP $CPPFLAGS'
9477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9479ac_compiler_gnu=$ac_cv_c_compiler_gnu
9480
9481
9482{ echo "$as_me:$LINENO: checking for shl_load" >&5
9483echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9484if test "${ac_cv_func_shl_load+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486else
9487 cat >conftest.$ac_ext <<_ACEOF
9488/* confdefs.h. */
9489_ACEOF
9490cat confdefs.h >>conftest.$ac_ext
9491cat >>conftest.$ac_ext <<_ACEOF
9492/* end confdefs.h. */
9493/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9495#define shl_load innocuous_shl_load
9496
9497/* System header to define __stub macros and hopefully few prototypes,
9498 which can conflict with char shl_load (); below.
9499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9500 <limits.h> exists even on freestanding compilers. */
9501
9502#ifdef __STDC__
9503# include <limits.h>
9504#else
9505# include <assert.h>
9506#endif
9507
9508#undef shl_load
9509
9510/* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9513#ifdef __cplusplus
9514extern "C"
9515#endif
9516char shl_load ();
9517/* The GNU C library defines this for functions which it implements
9518 to always fail with ENOSYS. Some functions are actually named
9519 something starting with __ and the normal name is an alias. */
9520#if defined __stub_shl_load || defined __stub___shl_load
9521choke me
9522#endif
9523
9524int
9525main ()
9526{
9527return shl_load ();
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext conftest$ac_exeext
9533if { (ac_try="$ac_link"
9534case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537esac
9538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_link") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9547 { (case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_try") 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9560esac
9561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_try") 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_func_shl_load=yes
9567else
9568 echo "$as_me: failed program was:" >&5
9569sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 ac_cv_func_shl_load=no
9572fi
9573
9574rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9576fi
9577{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9578echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9579if test $ac_cv_func_shl_load = yes; then
9580
9581cat >>confdefs.h <<\_ACEOF
9582#define HAVE_SHL_LOAD 1
9583_ACEOF
9584
9585else
9586 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9587echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9588if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590else
9591 ac_check_lib_save_LIBS=$LIBS
9592LIBS="-ldld $LIBS"
9593cat >conftest.$ac_ext <<_ACEOF
9594/* confdefs.h. */
9595_ACEOF
9596cat confdefs.h >>conftest.$ac_ext
9597cat >>conftest.$ac_ext <<_ACEOF
9598/* end confdefs.h. */
9599
9600/* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9603#ifdef __cplusplus
9604extern "C"
9605#endif
9606char shl_load ();
9607int
9608main ()
9609{
9610return shl_load ();
9611 ;
9612 return 0;
9613}
9614_ACEOF
9615rm -f conftest.$ac_objext conftest$ac_exeext
9616if { (ac_try="$ac_link"
9617case "(($ac_try" in
9618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9620esac
9621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622 (eval "$ac_link") 2>conftest.er1
9623 ac_status=$?
9624 grep -v '^ *+' conftest.er1 >conftest.err
9625 rm -f conftest.er1
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9630 { (case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633esac
9634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_try") 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest$ac_exeext'
9640 { (case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643esac
9644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_try") 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 ac_cv_lib_dld_shl_load=yes
9650else
9651 echo "$as_me: failed program was:" >&5
9652sed 's/^/| /' conftest.$ac_ext >&5
9653
9654 ac_cv_lib_dld_shl_load=no
9655fi
9656
9657rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659LIBS=$ac_check_lib_save_LIBS
9660fi
9661{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9662echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9663if test $ac_cv_lib_dld_shl_load = yes; then
9664
9665cat >>confdefs.h <<\_ACEOF
9666#define HAVE_SHL_LOAD 1
9667_ACEOF
9668
9669 LIBADD_DL="$LIBADD_DL -ldld"
9670else
9671 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9672echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9673if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675else
9676 ac_check_lib_save_LIBS=$LIBS
9677LIBS="-ldl $LIBS"
9678cat >conftest.$ac_ext <<_ACEOF
9679/* confdefs.h. */
9680_ACEOF
9681cat confdefs.h >>conftest.$ac_ext
9682cat >>conftest.$ac_ext <<_ACEOF
9683/* end confdefs.h. */
9684
9685/* Override any GCC internal prototype to avoid an error.
9686 Use char because int might match the return type of a GCC
9687 builtin and then its argument prototype would still apply. */
9688#ifdef __cplusplus
9689extern "C"
9690#endif
9691char dlopen ();
9692int
9693main ()
9694{
9695return dlopen ();
9696 ;
9697 return 0;
9698}
9699_ACEOF
9700rm -f conftest.$ac_objext conftest$ac_exeext
9701if { (ac_try="$ac_link"
9702case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_link") 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9715 { (case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718esac
9719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_try") 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728esac
9729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_try") 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_cv_lib_dl_dlopen=yes
9735else
9736 echo "$as_me: failed program was:" >&5
9737sed 's/^/| /' conftest.$ac_ext >&5
9738
9739 ac_cv_lib_dl_dlopen=no
9740fi
9741
9742rm -f core conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744LIBS=$ac_check_lib_save_LIBS
9745fi
9746{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9747echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9748if test $ac_cv_lib_dl_dlopen = yes; then
9749
9750cat >>confdefs.h <<\_ACEOF
9751#define HAVE_LIBDL 1
9752_ACEOF
9753
9754 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9755else
9756 cat >conftest.$ac_ext <<_ACEOF
9757/* confdefs.h. */
9758_ACEOF
9759cat confdefs.h >>conftest.$ac_ext
9760cat >>conftest.$ac_ext <<_ACEOF
9761/* end confdefs.h. */
9762#if HAVE_DLFCN_H
9763# include <dlfcn.h>
9764#endif
9765
9766int
9767main ()
9768{
9769dlopen(0, 0);
9770 ;
9771 return 0;
9772}
9773_ACEOF
9774rm -f conftest.$ac_objext conftest$ac_exeext
9775if { (ac_try="$ac_link"
9776case "(($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_link") 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792esac
9793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802esac
9803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_try") 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808
9809cat >>confdefs.h <<\_ACEOF
9810#define HAVE_LIBDL 1
9811_ACEOF
9812 libltdl_cv_func_dlopen="yes"
9813else
9814 echo "$as_me: failed program was:" >&5
9815sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9818echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9819if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821else
9822 ac_check_lib_save_LIBS=$LIBS
9823LIBS="-lsvld $LIBS"
9824cat >conftest.$ac_ext <<_ACEOF
9825/* confdefs.h. */
9826_ACEOF
9827cat confdefs.h >>conftest.$ac_ext
9828cat >>conftest.$ac_ext <<_ACEOF
9829/* end confdefs.h. */
9830
9831/* Override any GCC internal prototype to avoid an error.
9832 Use char because int might match the return type of a GCC
9833 builtin and then its argument prototype would still apply. */
9834#ifdef __cplusplus
9835extern "C"
9836#endif
9837char dlopen ();
9838int
9839main ()
9840{
9841return dlopen ();
9842 ;
9843 return 0;
9844}
9845_ACEOF
9846rm -f conftest.$ac_objext conftest$ac_exeext
9847if { (ac_try="$ac_link"
9848case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851esac
9852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864esac
9865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_try") 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest$ac_exeext'
9871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_try") 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_lib_svld_dlopen=yes
9881else
9882 echo "$as_me: failed program was:" >&5
9883sed 's/^/| /' conftest.$ac_ext >&5
9884
9885 ac_cv_lib_svld_dlopen=no
9886fi
9887
9888rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890LIBS=$ac_check_lib_save_LIBS
9891fi
9892{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9893echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9894if test $ac_cv_lib_svld_dlopen = yes; then
9895
9896cat >>confdefs.h <<\_ACEOF
9897#define HAVE_LIBDL 1
9898_ACEOF
9899
9900 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9901else
9902 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9903echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9904if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906else
9907 ac_check_lib_save_LIBS=$LIBS
9908LIBS="-ldld $LIBS"
9909cat >conftest.$ac_ext <<_ACEOF
9910/* confdefs.h. */
9911_ACEOF
9912cat confdefs.h >>conftest.$ac_ext
9913cat >>conftest.$ac_ext <<_ACEOF
9914/* end confdefs.h. */
9915
9916/* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919#ifdef __cplusplus
9920extern "C"
9921#endif
9922char dld_link ();
9923int
9924main ()
9925{
9926return dld_link ();
9927 ;
9928 return 0;
9929}
9930_ACEOF
9931rm -f conftest.$ac_objext conftest$ac_exeext
9932if { (ac_try="$ac_link"
9933case "(($ac_try" in
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9936esac
9937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_link") 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946 { (case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9949esac
9950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_try") 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest$ac_exeext'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959esac
9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_lib_dld_dld_link=yes
9966else
9967 echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970 ac_cv_lib_dld_dld_link=no
9971fi
9972
9973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975LIBS=$ac_check_lib_save_LIBS
9976fi
9977{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9978echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9979if test $ac_cv_lib_dld_dld_link = yes; then
9980
9981cat >>confdefs.h <<\_ACEOF
9982#define HAVE_DLD 1
9983_ACEOF
9984
9985 LIBADD_DL="$LIBADD_DL -ldld"
9986else
9987 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9988echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9989if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991else
9992 cat >conftest.$ac_ext <<_ACEOF
9993/* confdefs.h. */
9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h. */
9998/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000#define _dyld_func_lookup innocuous__dyld_func_lookup
10001
10002/* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char _dyld_func_lookup (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10006
10007#ifdef __STDC__
10008# include <limits.h>
10009#else
10010# include <assert.h>
10011#endif
10012
10013#undef _dyld_func_lookup
10014
10015/* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10018#ifdef __cplusplus
10019extern "C"
10020#endif
10021char _dyld_func_lookup ();
10022/* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10026choke me
10027#endif
10028
10029int
10030main ()
10031{
10032return _dyld_func_lookup ();
10033 ;
10034 return 0;
10035}
10036_ACEOF
10037rm -f conftest.$ac_objext conftest$ac_exeext
10038if { (ac_try="$ac_link"
10039case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042esac
10043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055esac
10056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest$ac_exeext'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065esac
10066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_func__dyld_func_lookup=yes
10072else
10073 echo "$as_me: failed program was:" >&5
10074sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_cv_func__dyld_func_lookup=no
10077fi
10078
10079rm -f core conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081fi
10082{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10083echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10084if test $ac_cv_func__dyld_func_lookup = yes; then
10085
10086cat >>confdefs.h <<\_ACEOF
10087#define HAVE_DYLD 1
10088_ACEOF
10089
10090fi
10091
10092
10093fi
10094
10095
10096fi
10097
10098
10099fi
10100
10101rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103
10104fi
10105
10106
10107fi
10108
10109
10110fi
10111
10112
10113if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10114then
10115 lt_save_LIBS="$LIBS"
10116 LIBS="$LIBS $LIBADD_DL"
10117
10118for ac_func in dlerror
10119do
10120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10121{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10123if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126 cat >conftest.$ac_ext <<_ACEOF
10127/* confdefs.h. */
10128_ACEOF
10129cat confdefs.h >>conftest.$ac_ext
10130cat >>conftest.$ac_ext <<_ACEOF
10131/* end confdefs.h. */
10132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10134#define $ac_func innocuous_$ac_func
10135
10136/* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char $ac_func (); below.
10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139 <limits.h> exists even on freestanding compilers. */
10140
10141#ifdef __STDC__
10142# include <limits.h>
10143#else
10144# include <assert.h>
10145#endif
10146
10147#undef $ac_func
10148
10149/* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10152#ifdef __cplusplus
10153extern "C"
10154#endif
10155char $ac_func ();
10156/* The GNU C library defines this for functions which it implements
10157 to always fail with ENOSYS. Some functions are actually named
10158 something starting with __ and the normal name is an alias. */
10159#if defined __stub_$ac_func || defined __stub___$ac_func
10160choke me
10161#endif
10162
10163int
10164main ()
10165{
10166return $ac_func ();
10167 ;
10168 return 0;
10169}
10170_ACEOF
10171rm -f conftest.$ac_objext conftest$ac_exeext
10172if { (ac_try="$ac_link"
10173case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10176esac
10177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_link") 2>conftest.er1
10179 ac_status=$?
10180 grep -v '^ *+' conftest.er1 >conftest.err
10181 rm -f conftest.er1
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10186 { (case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10189esac
10190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_try") 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest$ac_exeext'
10196 { (case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10199esac
10200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_try") 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 eval "$as_ac_var=yes"
10206else
10207 echo "$as_me: failed program was:" >&5
10208sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 eval "$as_ac_var=no"
10211fi
10212
10213rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215fi
10216ac_res=`eval echo '${'$as_ac_var'}'`
10217 { echo "$as_me:$LINENO: result: $ac_res" >&5
10218echo "${ECHO_T}$ac_res" >&6; }
10219if test `eval echo '${'$as_ac_var'}'` = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10222_ACEOF
10223
10224fi
10225done
10226
10227 LIBS="$lt_save_LIBS"
10228fi
10229ac_ext=c
10230ac_cpp='$CPP $CPPFLAGS'
10231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233ac_compiler_gnu=$ac_cv_c_compiler_gnu
10234
10235
10236
10237{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10238echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10239if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242 ac_cv_sys_symbol_underscore=no
10243 cat > conftest.$ac_ext <<EOF
10244void nm_test_func(){}
10245int main(){nm_test_func;return 0;}
10246EOF
10247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10248 (eval $ac_compile) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; then
10252 # Now try to grab the symbols.
10253 ac_nlist=conftest.nm
10254 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10255 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && test -s "$ac_nlist"; then
10259 # See whether the symbols have a leading underscore.
10260 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10261 ac_cv_sys_symbol_underscore=yes
10262 else
10263 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10264 :
10265 else
10266 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10267 fi
10268 fi
10269 else
10270 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10271 fi
10272 else
10273 echo "configure: failed program was:" >&5
10274 cat conftest.c >&5
10275 fi
10276 rm -rf conftest*
10277
10278fi
10279{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10280echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10281
10282
10283if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10284 if test x"$libltdl_cv_func_dlopen" = xyes ||
10285 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10286 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10287echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10288if test "${libltdl_cv_need_uscore+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10290else
10291 libltdl_cv_need_uscore=unknown
10292 save_LIBS="$LIBS"
10293 LIBS="$LIBS $LIBADD_DL"
10294 if test "$cross_compiling" = yes; then :
10295 libltdl_cv_need_uscore=cross
10296else
10297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298 lt_status=$lt_dlunknown
10299 cat > conftest.$ac_ext <<EOF
Benjamin Kramer8c3d2582012-03-07 17:07:20 +000010300#line 10300 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010301#include "confdefs.h"
10302
10303#if HAVE_DLFCN_H
10304#include <dlfcn.h>
10305#endif
10306
10307#include <stdio.h>
10308
10309#ifdef RTLD_GLOBAL
10310# define LT_DLGLOBAL RTLD_GLOBAL
10311#else
10312# ifdef DL_GLOBAL
10313# define LT_DLGLOBAL DL_GLOBAL
10314# else
10315# define LT_DLGLOBAL 0
10316# endif
10317#endif
10318
10319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320 find out it does not work in some platform. */
10321#ifndef LT_DLLAZY_OR_NOW
10322# ifdef RTLD_LAZY
10323# define LT_DLLAZY_OR_NOW RTLD_LAZY
10324# else
10325# ifdef DL_LAZY
10326# define LT_DLLAZY_OR_NOW DL_LAZY
10327# else
10328# ifdef RTLD_NOW
10329# define LT_DLLAZY_OR_NOW RTLD_NOW
10330# else
10331# ifdef DL_NOW
10332# define LT_DLLAZY_OR_NOW DL_NOW
10333# else
10334# define LT_DLLAZY_OR_NOW 0
10335# endif
10336# endif
10337# endif
10338# endif
10339#endif
10340
10341#ifdef __cplusplus
10342extern "C" void exit (int);
10343#endif
10344
10345void fnord() { int i=42;}
10346int main ()
10347{
10348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10349 int status = $lt_dlunknown;
10350
10351 if (self)
10352 {
10353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10355 /* dlclose (self); */
10356 }
10357 else
10358 puts (dlerror ());
10359
10360 exit (status);
10361}
10362EOF
10363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364 (eval $ac_link) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10368 (./conftest; exit; ) >&5 2>/dev/null
10369 lt_status=$?
10370 case x$lt_status in
10371 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10372 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10373 x$lt_dlunknown|x*) ;;
10374 esac
10375 else :
10376 # compilation failed
10377
10378 fi
10379fi
10380rm -fr conftest*
10381
10382 LIBS="$save_LIBS"
10383
10384fi
10385{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10386echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10387 fi
10388fi
10389
10390if test x"$libltdl_cv_need_uscore" = xyes; then
10391
10392cat >>confdefs.h <<\_ACEOF
10393#define NEED_USCORE 1
10394_ACEOF
10395
10396fi
10397
10398
10399{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10400echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10401if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404 # PORTME does your system automatically load deplibs for dlopen?
10405 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10406 # For now, we just catch OSes we know something about -- in the
10407 # future, we'll try test this programmatically.
10408 libltdl_cv_sys_dlopen_deplibs=unknown
10409 case "$host_os" in
10410 aix3*|aix4.1.*|aix4.2.*)
10411 # Unknown whether this is true for these versions of AIX, but
10412 # we want this `case' here to explicitly catch those versions.
10413 libltdl_cv_sys_dlopen_deplibs=unknown
10414 ;;
10415 aix[45]*)
10416 libltdl_cv_sys_dlopen_deplibs=yes
10417 ;;
10418 darwin*)
10419 # Assuming the user has installed a libdl from somewhere, this is true
10420 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10421 libltdl_cv_sys_dlopen_deplibs=yes
10422 ;;
10423 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10424 # GNU and its variants, using gnu ld.so (Glibc)
10425 libltdl_cv_sys_dlopen_deplibs=yes
10426 ;;
10427 hpux10*|hpux11*)
10428 libltdl_cv_sys_dlopen_deplibs=yes
10429 ;;
10430 interix*)
10431 libltdl_cv_sys_dlopen_deplibs=yes
10432 ;;
10433 irix[12345]*|irix6.[01]*)
10434 # Catch all versions of IRIX before 6.2, and indicate that we don't
10435 # know how it worked for any of those versions.
10436 libltdl_cv_sys_dlopen_deplibs=unknown
10437 ;;
10438 irix*)
10439 # The case above catches anything before 6.2, and it's known that
10440 # at 6.2 and later dlopen does load deplibs.
10441 libltdl_cv_sys_dlopen_deplibs=yes
10442 ;;
10443 netbsd*)
10444 libltdl_cv_sys_dlopen_deplibs=yes
10445 ;;
10446 openbsd*)
10447 libltdl_cv_sys_dlopen_deplibs=yes
10448 ;;
10449 osf[1234]*)
10450 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10451 # it did *not* use an RPATH in a shared library to find objects the
10452 # library depends on, so we explicitly say `no'.
10453 libltdl_cv_sys_dlopen_deplibs=no
10454 ;;
10455 osf5.0|osf5.0a|osf5.1)
10456 # dlopen *does* load deplibs and with the right loader patch applied
10457 # it even uses RPATH in a shared library to search for shared objects
10458 # that the library depends on, but there's no easy way to know if that
10459 # patch is installed. Since this is the case, all we can really
10460 # say is unknown -- it depends on the patch being installed. If
10461 # it is, this changes to `yes'. Without it, it would be `no'.
10462 libltdl_cv_sys_dlopen_deplibs=unknown
10463 ;;
10464 osf*)
10465 # the two cases above should catch all versions of osf <= 5.1. Read
10466 # the comments above for what we know about them.
10467 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10468 # is used to find them so we can finally say `yes'.
10469 libltdl_cv_sys_dlopen_deplibs=yes
10470 ;;
10471 solaris*)
10472 libltdl_cv_sys_dlopen_deplibs=yes
10473 ;;
10474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10475 libltdl_cv_sys_dlopen_deplibs=yes
10476 ;;
10477 esac
10478
10479fi
10480{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10481echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10482if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10483
10484cat >>confdefs.h <<\_ACEOF
10485#define LTDL_DLOPEN_DEPLIBS 1
10486_ACEOF
10487
10488fi
10489
10490
10491for ac_header in argz.h
10492do
10493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499fi
10500ac_res=`eval echo '${'$as_ac_Header'}'`
10501 { echo "$as_me:$LINENO: result: $ac_res" >&5
10502echo "${ECHO_T}$ac_res" >&6; }
10503else
10504 # Is the header compilable?
10505{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10507cat >conftest.$ac_ext <<_ACEOF
10508/* confdefs.h. */
10509_ACEOF
10510cat confdefs.h >>conftest.$ac_ext
10511cat >>conftest.$ac_ext <<_ACEOF
10512/* end confdefs.h. */
10513$ac_includes_default
10514#include <$ac_header>
10515_ACEOF
10516rm -f conftest.$ac_objext
10517if { (ac_try="$ac_compile"
10518case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10521esac
10522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_compile") 2>conftest.er1
10524 ac_status=$?
10525 grep -v '^ *+' conftest.er1 >conftest.err
10526 rm -f conftest.er1
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10531 { (case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534esac
10535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_try") 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try='test -s conftest.$ac_objext'
10541 { (case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544esac
10545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_try") 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_header_compiler=yes
10551else
10552 echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 ac_header_compiler=no
10556fi
10557
10558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10560echo "${ECHO_T}$ac_header_compiler" >&6; }
10561
10562# Is the header present?
10563{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10565cat >conftest.$ac_ext <<_ACEOF
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571#include <$ac_header>
10572_ACEOF
10573if { (ac_try="$ac_cpp conftest.$ac_ext"
10574case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577esac
10578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } >/dev/null; then
10586 if test -s conftest.err; then
10587 ac_cpp_err=$ac_c_preproc_warn_flag
10588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10589 else
10590 ac_cpp_err=
10591 fi
10592else
10593 ac_cpp_err=yes
10594fi
10595if test -z "$ac_cpp_err"; then
10596 ac_header_preproc=yes
10597else
10598 echo "$as_me: failed program was:" >&5
10599sed 's/^/| /' conftest.$ac_ext >&5
10600
10601 ac_header_preproc=no
10602fi
10603
10604rm -f conftest.err conftest.$ac_ext
10605{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10606echo "${ECHO_T}$ac_header_preproc" >&6; }
10607
10608# So? What about this header?
10609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10610 yes:no: )
10611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10615 ac_header_preproc=yes
10616 ;;
10617 no:yes:* )
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10630 ( cat <<\_ASBOX
10631## ------------------------------ ##
10632## Report this to bugs@yourdomain ##
10633## ------------------------------ ##
10634_ASBOX
10635 ) | sed "s/^/$as_me: WARNING: /" >&2
10636 ;;
10637esac
10638{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642else
10643 eval "$as_ac_Header=\$ac_header_preproc"
10644fi
10645ac_res=`eval echo '${'$as_ac_Header'}'`
10646 { echo "$as_me:$LINENO: result: $ac_res" >&5
10647echo "${ECHO_T}$ac_res" >&6; }
10648
10649fi
10650if test `eval echo '${'$as_ac_Header'}'` = yes; then
10651 cat >>confdefs.h <<_ACEOF
10652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10653_ACEOF
10654
10655fi
10656
10657done
10658
10659
10660{ echo "$as_me:$LINENO: checking for error_t" >&5
10661echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10662if test "${ac_cv_type_error_t+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665 cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
10671#if HAVE_ARGZ_H
10672# include <argz.h>
10673#endif
10674
10675typedef error_t ac__type_new_;
10676int
10677main ()
10678{
10679if ((ac__type_new_ *) 0)
10680 return 0;
10681if (sizeof (ac__type_new_))
10682 return 0;
10683 ;
10684 return 0;
10685}
10686_ACEOF
10687rm -f conftest.$ac_objext
10688if { (ac_try="$ac_compile"
10689case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10692esac
10693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_compile") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702 { (case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705esac
10706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_try") 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715esac
10716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_try") 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_type_error_t=yes
10722else
10723 echo "$as_me: failed program was:" >&5
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_cv_type_error_t=no
10727fi
10728
10729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730fi
10731{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10732echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10733if test $ac_cv_type_error_t = yes; then
10734
10735cat >>confdefs.h <<_ACEOF
10736#define HAVE_ERROR_T 1
10737_ACEOF
10738
10739
10740else
10741
10742cat >>confdefs.h <<\_ACEOF
10743#define error_t int
10744_ACEOF
10745
10746fi
10747
10748
10749
10750
10751
10752
10753
10754for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10755do
10756as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10757{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10758echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10759if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762 cat >conftest.$ac_ext <<_ACEOF
10763/* confdefs.h. */
10764_ACEOF
10765cat confdefs.h >>conftest.$ac_ext
10766cat >>conftest.$ac_ext <<_ACEOF
10767/* end confdefs.h. */
10768/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10770#define $ac_func innocuous_$ac_func
10771
10772/* System header to define __stub macros and hopefully few prototypes,
10773 which can conflict with char $ac_func (); below.
10774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10775 <limits.h> exists even on freestanding compilers. */
10776
10777#ifdef __STDC__
10778# include <limits.h>
10779#else
10780# include <assert.h>
10781#endif
10782
10783#undef $ac_func
10784
10785/* Override any GCC internal prototype to avoid an error.
10786 Use char because int might match the return type of a GCC
10787 builtin and then its argument prototype would still apply. */
10788#ifdef __cplusplus
10789extern "C"
10790#endif
10791char $ac_func ();
10792/* The GNU C library defines this for functions which it implements
10793 to always fail with ENOSYS. Some functions are actually named
10794 something starting with __ and the normal name is an alias. */
10795#if defined __stub_$ac_func || defined __stub___$ac_func
10796choke me
10797#endif
10798
10799int
10800main ()
10801{
10802return $ac_func ();
10803 ;
10804 return 0;
10805}
10806_ACEOF
10807rm -f conftest.$ac_objext conftest$ac_exeext
10808if { (ac_try="$ac_link"
10809case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812esac
10813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_link") 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825esac
10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; } &&
10831 { ac_try='test -s conftest$ac_exeext'
10832 { (case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10835esac
10836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_try") 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 eval "$as_ac_var=yes"
10842else
10843 echo "$as_me: failed program was:" >&5
10844sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 eval "$as_ac_var=no"
10847fi
10848
10849rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851fi
10852ac_res=`eval echo '${'$as_ac_var'}'`
10853 { echo "$as_me:$LINENO: result: $ac_res" >&5
10854echo "${ECHO_T}$ac_res" >&6; }
10855if test `eval echo '${'$as_ac_var'}'` = yes; then
10856 cat >>confdefs.h <<_ACEOF
10857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10858_ACEOF
10859
10860fi
10861done
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10891 stdio.h unistd.h
10892do
10893as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899fi
10900ac_res=`eval echo '${'$as_ac_Header'}'`
10901 { echo "$as_me:$LINENO: result: $ac_res" >&5
10902echo "${ECHO_T}$ac_res" >&6; }
10903else
10904 # Is the header compilable?
10905{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10906echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10907cat >conftest.$ac_ext <<_ACEOF
10908/* confdefs.h. */
10909_ACEOF
10910cat confdefs.h >>conftest.$ac_ext
10911cat >>conftest.$ac_ext <<_ACEOF
10912/* end confdefs.h. */
10913$ac_includes_default
10914#include <$ac_header>
10915_ACEOF
10916rm -f conftest.$ac_objext
10917if { (ac_try="$ac_compile"
10918case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944esac
10945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 ac_header_compiler=yes
10951else
10952 echo "$as_me: failed program was:" >&5
10953sed 's/^/| /' conftest.$ac_ext >&5
10954
10955 ac_header_compiler=no
10956fi
10957
10958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10960echo "${ECHO_T}$ac_header_compiler" >&6; }
10961
10962# Is the header present?
10963{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10964echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10965cat >conftest.$ac_ext <<_ACEOF
10966/* confdefs.h. */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h. */
10971#include <$ac_header>
10972_ACEOF
10973if { (ac_try="$ac_cpp conftest.$ac_ext"
10974case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } >/dev/null; then
10986 if test -s conftest.err; then
10987 ac_cpp_err=$ac_c_preproc_warn_flag
10988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10989 else
10990 ac_cpp_err=
10991 fi
10992else
10993 ac_cpp_err=yes
10994fi
10995if test -z "$ac_cpp_err"; then
10996 ac_header_preproc=yes
10997else
10998 echo "$as_me: failed program was:" >&5
10999sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ac_header_preproc=no
11002fi
11003
11004rm -f conftest.err conftest.$ac_ext
11005{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11006echo "${ECHO_T}$ac_header_preproc" >&6; }
11007
11008# So? What about this header?
11009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11010 yes:no: )
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11015 ac_header_preproc=yes
11016 ;;
11017 no:yes:* )
11018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11021echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11025echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11030 ( cat <<\_ASBOX
11031## ------------------------------ ##
11032## Report this to bugs@yourdomain ##
11033## ------------------------------ ##
11034_ASBOX
11035 ) | sed "s/^/$as_me: WARNING: /" >&2
11036 ;;
11037esac
11038{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042else
11043 eval "$as_ac_Header=\$ac_header_preproc"
11044fi
11045ac_res=`eval echo '${'$as_ac_Header'}'`
11046 { echo "$as_me:$LINENO: result: $ac_res" >&5
11047echo "${ECHO_T}$ac_res" >&6; }
11048
11049fi
11050if test `eval echo '${'$as_ac_Header'}'` = yes; then
11051 cat >>confdefs.h <<_ACEOF
11052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11053_ACEOF
11054
11055fi
11056
11057done
11058
11059
11060
11061
11062
11063for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11064do
11065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071fi
11072ac_res=`eval echo '${'$as_ac_Header'}'`
11073 { echo "$as_me:$LINENO: result: $ac_res" >&5
11074echo "${ECHO_T}$ac_res" >&6; }
11075else
11076 # Is the header compilable?
11077{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11079cat >conftest.$ac_ext <<_ACEOF
11080/* confdefs.h. */
11081_ACEOF
11082cat confdefs.h >>conftest.$ac_ext
11083cat >>conftest.$ac_ext <<_ACEOF
11084/* end confdefs.h. */
11085$ac_includes_default
11086#include <$ac_header>
11087_ACEOF
11088rm -f conftest.$ac_objext
11089if { (ac_try="$ac_compile"
11090case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11093esac
11094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_compile") 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11103 { (case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11106esac
11107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_try") 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; } &&
11112 { ac_try='test -s conftest.$ac_objext'
11113 { (case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116esac
11117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_try") 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 ac_header_compiler=yes
11123else
11124 echo "$as_me: failed program was:" >&5
11125sed 's/^/| /' conftest.$ac_ext >&5
11126
11127 ac_header_compiler=no
11128fi
11129
11130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11132echo "${ECHO_T}$ac_header_compiler" >&6; }
11133
11134# Is the header present?
11135{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11137cat >conftest.$ac_ext <<_ACEOF
11138/* confdefs.h. */
11139_ACEOF
11140cat confdefs.h >>conftest.$ac_ext
11141cat >>conftest.$ac_ext <<_ACEOF
11142/* end confdefs.h. */
11143#include <$ac_header>
11144_ACEOF
11145if { (ac_try="$ac_cpp conftest.$ac_ext"
11146case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149esac
11150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } >/dev/null; then
11158 if test -s conftest.err; then
11159 ac_cpp_err=$ac_c_preproc_warn_flag
11160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11161 else
11162 ac_cpp_err=
11163 fi
11164else
11165 ac_cpp_err=yes
11166fi
11167if test -z "$ac_cpp_err"; then
11168 ac_header_preproc=yes
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 ac_header_preproc=no
11174fi
11175
11176rm -f conftest.err conftest.$ac_ext
11177{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11178echo "${ECHO_T}$ac_header_preproc" >&6; }
11179
11180# So? What about this header?
11181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11182 yes:no: )
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11187 ac_header_preproc=yes
11188 ;;
11189 no:yes:* )
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11202 ( cat <<\_ASBOX
11203## ------------------------------ ##
11204## Report this to bugs@yourdomain ##
11205## ------------------------------ ##
11206_ASBOX
11207 ) | sed "s/^/$as_me: WARNING: /" >&2
11208 ;;
11209esac
11210{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214else
11215 eval "$as_ac_Header=\$ac_header_preproc"
11216fi
11217ac_res=`eval echo '${'$as_ac_Header'}'`
11218 { echo "$as_me:$LINENO: result: $ac_res" >&5
11219echo "${ECHO_T}$ac_res" >&6; }
11220
11221fi
11222if test `eval echo '${'$as_ac_Header'}'` = yes; then
11223 cat >>confdefs.h <<_ACEOF
11224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11225_ACEOF
11226
11227fi
11228
11229done
11230
11231
11232
11233for ac_header in string.h strings.h
11234do
11235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241fi
11242ac_res=`eval echo '${'$as_ac_Header'}'`
11243 { echo "$as_me:$LINENO: result: $ac_res" >&5
11244echo "${ECHO_T}$ac_res" >&6; }
11245else
11246 # Is the header compilable?
11247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11249cat >conftest.$ac_ext <<_ACEOF
11250/* confdefs.h. */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h. */
11255$ac_includes_default
11256#include <$ac_header>
11257_ACEOF
11258rm -f conftest.$ac_objext
11259if { (ac_try="$ac_compile"
11260case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263esac
11264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_compile") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276esac
11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest.$ac_objext'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286esac
11287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_header_compiler=yes
11293else
11294 echo "$as_me: failed program was:" >&5
11295sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 ac_header_compiler=no
11298fi
11299
11300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11302echo "${ECHO_T}$ac_header_compiler" >&6; }
11303
11304# Is the header present?
11305{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11307cat >conftest.$ac_ext <<_ACEOF
11308/* confdefs.h. */
11309_ACEOF
11310cat confdefs.h >>conftest.$ac_ext
11311cat >>conftest.$ac_ext <<_ACEOF
11312/* end confdefs.h. */
11313#include <$ac_header>
11314_ACEOF
11315if { (ac_try="$ac_cpp conftest.$ac_ext"
11316case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } >/dev/null; then
11328 if test -s conftest.err; then
11329 ac_cpp_err=$ac_c_preproc_warn_flag
11330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 else
11332 ac_cpp_err=
11333 fi
11334else
11335 ac_cpp_err=yes
11336fi
11337if test -z "$ac_cpp_err"; then
11338 ac_header_preproc=yes
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 ac_header_preproc=no
11344fi
11345
11346rm -f conftest.err conftest.$ac_ext
11347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348echo "${ECHO_T}$ac_header_preproc" >&6; }
11349
11350# So? What about this header?
11351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11352 yes:no: )
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11357 ac_header_preproc=yes
11358 ;;
11359 no:yes:* )
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11372 ( cat <<\_ASBOX
11373## ------------------------------ ##
11374## Report this to bugs@yourdomain ##
11375## ------------------------------ ##
11376_ASBOX
11377 ) | sed "s/^/$as_me: WARNING: /" >&2
11378 ;;
11379esac
11380{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384else
11385 eval "$as_ac_Header=\$ac_header_preproc"
11386fi
11387ac_res=`eval echo '${'$as_ac_Header'}'`
11388 { echo "$as_me:$LINENO: result: $ac_res" >&5
11389echo "${ECHO_T}$ac_res" >&6; }
11390
11391fi
11392if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395_ACEOF
11396 break
11397fi
11398
11399done
11400
11401
11402
11403
11404for ac_func in strchr index
11405do
11406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11407{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11409if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
11418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11420#define $ac_func innocuous_$ac_func
11421
11422/* System header to define __stub macros and hopefully few prototypes,
11423 which can conflict with char $ac_func (); below.
11424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11425 <limits.h> exists even on freestanding compilers. */
11426
11427#ifdef __STDC__
11428# include <limits.h>
11429#else
11430# include <assert.h>
11431#endif
11432
11433#undef $ac_func
11434
11435/* Override any GCC internal prototype to avoid an error.
11436 Use char because int might match the return type of a GCC
11437 builtin and then its argument prototype would still apply. */
11438#ifdef __cplusplus
11439extern "C"
11440#endif
11441char $ac_func ();
11442/* The GNU C library defines this for functions which it implements
11443 to always fail with ENOSYS. Some functions are actually named
11444 something starting with __ and the normal name is an alias. */
11445#if defined __stub_$ac_func || defined __stub___$ac_func
11446choke me
11447#endif
11448
11449int
11450main ()
11451{
11452return $ac_func ();
11453 ;
11454 return 0;
11455}
11456_ACEOF
11457rm -f conftest.$ac_objext conftest$ac_exeext
11458if { (ac_try="$ac_link"
11459case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462esac
11463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_link") 2>conftest.er1
11465 ac_status=$?
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11472 { (case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475esac
11476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_try") 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485esac
11486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_try") 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491 eval "$as_ac_var=yes"
11492else
11493 echo "$as_me: failed program was:" >&5
11494sed 's/^/| /' conftest.$ac_ext >&5
11495
11496 eval "$as_ac_var=no"
11497fi
11498
11499rm -f core conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11501fi
11502ac_res=`eval echo '${'$as_ac_var'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504echo "${ECHO_T}$ac_res" >&6; }
11505if test `eval echo '${'$as_ac_var'}'` = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11508_ACEOF
11509 break
11510fi
11511done
11512
11513
11514
11515for ac_func in strrchr rindex
11516do
11517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522else
11523 cat >conftest.$ac_ext <<_ACEOF
11524/* confdefs.h. */
11525_ACEOF
11526cat confdefs.h >>conftest.$ac_ext
11527cat >>conftest.$ac_ext <<_ACEOF
11528/* end confdefs.h. */
11529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11531#define $ac_func innocuous_$ac_func
11532
11533/* System header to define __stub macros and hopefully few prototypes,
11534 which can conflict with char $ac_func (); below.
11535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11536 <limits.h> exists even on freestanding compilers. */
11537
11538#ifdef __STDC__
11539# include <limits.h>
11540#else
11541# include <assert.h>
11542#endif
11543
11544#undef $ac_func
11545
11546/* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11549#ifdef __cplusplus
11550extern "C"
11551#endif
11552char $ac_func ();
11553/* The GNU C library defines this for functions which it implements
11554 to always fail with ENOSYS. Some functions are actually named
11555 something starting with __ and the normal name is an alias. */
11556#if defined __stub_$ac_func || defined __stub___$ac_func
11557choke me
11558#endif
11559
11560int
11561main ()
11562{
11563return $ac_func ();
11564 ;
11565 return 0;
11566}
11567_ACEOF
11568rm -f conftest.$ac_objext conftest$ac_exeext
11569if { (ac_try="$ac_link"
11570case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573esac
11574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_link") 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586esac
11587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest$ac_exeext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596esac
11597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 eval "$as_ac_var=yes"
11603else
11604 echo "$as_me: failed program was:" >&5
11605sed 's/^/| /' conftest.$ac_ext >&5
11606
11607 eval "$as_ac_var=no"
11608fi
11609
11610rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11612fi
11613ac_res=`eval echo '${'$as_ac_var'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615echo "${ECHO_T}$ac_res" >&6; }
11616if test `eval echo '${'$as_ac_var'}'` = yes; then
11617 cat >>confdefs.h <<_ACEOF
11618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11619_ACEOF
11620 break
11621fi
11622done
11623
11624
11625
11626for ac_func in memcpy bcopy
11627do
11628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11629{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11631if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633else
11634 cat >conftest.$ac_ext <<_ACEOF
11635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
11640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11642#define $ac_func innocuous_$ac_func
11643
11644/* System header to define __stub macros and hopefully few prototypes,
11645 which can conflict with char $ac_func (); below.
11646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647 <limits.h> exists even on freestanding compilers. */
11648
11649#ifdef __STDC__
11650# include <limits.h>
11651#else
11652# include <assert.h>
11653#endif
11654
11655#undef $ac_func
11656
11657/* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11660#ifdef __cplusplus
11661extern "C"
11662#endif
11663char $ac_func ();
11664/* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667#if defined __stub_$ac_func || defined __stub___$ac_func
11668choke me
11669#endif
11670
11671int
11672main ()
11673{
11674return $ac_func ();
11675 ;
11676 return 0;
11677}
11678_ACEOF
11679rm -f conftest.$ac_objext conftest$ac_exeext
11680if { (ac_try="$ac_link"
11681case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684esac
11685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_link") 2>conftest.er1
11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11694 { (case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11697esac
11698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_try") 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest$ac_exeext'
11704 { (case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707esac
11708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_try") 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 eval "$as_ac_var=yes"
11714else
11715 echo "$as_me: failed program was:" >&5
11716sed 's/^/| /' conftest.$ac_ext >&5
11717
11718 eval "$as_ac_var=no"
11719fi
11720
11721rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723fi
11724ac_res=`eval echo '${'$as_ac_var'}'`
11725 { echo "$as_me:$LINENO: result: $ac_res" >&5
11726echo "${ECHO_T}$ac_res" >&6; }
11727if test `eval echo '${'$as_ac_var'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11730_ACEOF
11731 break
11732fi
11733done
11734
11735
11736
11737for ac_func in memmove strcmp
11738do
11739as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11740{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11741echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11742if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744else
11745 cat >conftest.$ac_ext <<_ACEOF
11746/* confdefs.h. */
11747_ACEOF
11748cat confdefs.h >>conftest.$ac_ext
11749cat >>conftest.$ac_ext <<_ACEOF
11750/* end confdefs.h. */
11751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753#define $ac_func innocuous_$ac_func
11754
11755/* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11759
11760#ifdef __STDC__
11761# include <limits.h>
11762#else
11763# include <assert.h>
11764#endif
11765
11766#undef $ac_func
11767
11768/* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11771#ifdef __cplusplus
11772extern "C"
11773#endif
11774char $ac_func ();
11775/* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
11778#if defined __stub_$ac_func || defined __stub___$ac_func
11779choke me
11780#endif
11781
11782int
11783main ()
11784{
11785return $ac_func ();
11786 ;
11787 return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext conftest$ac_exeext
11791if { (ac_try="$ac_link"
11792case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_link") 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808esac
11809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818esac
11819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 eval "$as_ac_var=yes"
11825else
11826 echo "$as_me: failed program was:" >&5
11827sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 eval "$as_ac_var=no"
11830fi
11831
11832rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834fi
11835ac_res=`eval echo '${'$as_ac_var'}'`
11836 { echo "$as_me:$LINENO: result: $ac_res" >&5
11837echo "${ECHO_T}$ac_res" >&6; }
11838if test `eval echo '${'$as_ac_var'}'` = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11841_ACEOF
11842
11843fi
11844done
11845
11846
11847
11848
11849for ac_func in closedir opendir readdir
11850do
11851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11854if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 cat >conftest.$ac_ext <<_ACEOF
11858/* confdefs.h. */
11859_ACEOF
11860cat confdefs.h >>conftest.$ac_ext
11861cat >>conftest.$ac_ext <<_ACEOF
11862/* end confdefs.h. */
11863/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11865#define $ac_func innocuous_$ac_func
11866
11867/* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char $ac_func (); below.
11869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870 <limits.h> exists even on freestanding compilers. */
11871
11872#ifdef __STDC__
11873# include <limits.h>
11874#else
11875# include <assert.h>
11876#endif
11877
11878#undef $ac_func
11879
11880/* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883#ifdef __cplusplus
11884extern "C"
11885#endif
11886char $ac_func ();
11887/* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890#if defined __stub_$ac_func || defined __stub___$ac_func
11891choke me
11892#endif
11893
11894int
11895main ()
11896{
11897return $ac_func ();
11898 ;
11899 return 0;
11900}
11901_ACEOF
11902rm -f conftest.$ac_objext conftest$ac_exeext
11903if { (ac_try="$ac_link"
11904case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11907esac
11908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11910 ac_status=$?
11911 grep -v '^ *+' conftest.er1 >conftest.err
11912 rm -f conftest.er1
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917 { (case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11920esac
11921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_try") 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 eval "$as_ac_var=yes"
11937else
11938 echo "$as_me: failed program was:" >&5
11939sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 eval "$as_ac_var=no"
11942fi
11943
11944rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946fi
11947ac_res=`eval echo '${'$as_ac_var'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949echo "${ECHO_T}$ac_res" >&6; }
11950if test `eval echo '${'$as_ac_var'}'` = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953_ACEOF
11954
11955fi
11956done
11957
11958
11959
11960{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11961echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11962
11963ICC=no
11964IXX=no
11965case $CC in
11966 icc*|icpc*)
11967 ICC=yes
11968 IXX=yes
11969 ;;
11970 *)
11971 ;;
11972esac
11973
11974if test "$GCC" != "yes" && test "$ICC" != "yes"
11975then
11976 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11977echo "$as_me: error: gcc|icc required but not found" >&2;}
11978 { (exit 1); exit 1; }; }
11979fi
11980
11981if test "$GXX" != "yes" && test "$IXX" != "yes"
11982then
11983 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11984echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11985 { (exit 1); exit 1; }; }
11986fi
11987
11988if test "$GCC" = "yes"
11989then
11990 cat >conftest.$ac_ext <<_ACEOF
11991#if !defined(__GNUC__) || __GNUC__ < 3
11992#error Unsupported GCC version
11993#endif
11994
11995_ACEOF
11996rm -f conftest.$ac_objext
11997if { (ac_try="$ac_compile"
11998case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001esac
12002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_compile") 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014esac
12015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024esac
12025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 :
12031else
12032 echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12036echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12037 { (exit 1); exit 1; }; }
12038fi
12039
12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041fi
12042
12043if test -z "$llvm_cv_gnu_make_command"
12044then
12045 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12046echo "$as_me: error: GNU Make required but not found" >&2;}
12047 { (exit 1); exit 1; }; }
12048fi
12049
12050{ echo "$as_me:$LINENO: result: ok" >&5
12051echo "${ECHO_T}ok" >&6; }
12052
12053{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12054echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012055NO_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 +000012056
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012057NO_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 +000012058
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012059COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12060
12061{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12062echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012063
12064
12065
12066{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12067echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12068if test "${ac_cv_lib_m_sin+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070else
12071 ac_check_lib_save_LIBS=$LIBS
12072LIBS="-lm $LIBS"
12073cat >conftest.$ac_ext <<_ACEOF
12074/* confdefs.h. */
12075_ACEOF
12076cat confdefs.h >>conftest.$ac_ext
12077cat >>conftest.$ac_ext <<_ACEOF
12078/* end confdefs.h. */
12079
12080/* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12083#ifdef __cplusplus
12084extern "C"
12085#endif
12086char sin ();
12087int
12088main ()
12089{
12090return sin ();
12091 ;
12092 return 0;
12093}
12094_ACEOF
12095rm -f conftest.$ac_objext conftest$ac_exeext
12096if { (ac_try="$ac_link"
12097case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12100esac
12101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_link") 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12110 { (case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12113esac
12114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_try") 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123esac
12124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_cv_lib_m_sin=yes
12130else
12131 echo "$as_me: failed program was:" >&5
12132sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 ac_cv_lib_m_sin=no
12135fi
12136
12137rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139LIBS=$ac_check_lib_save_LIBS
12140fi
12141{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12142echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12143if test $ac_cv_lib_m_sin = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145#define HAVE_LIBM 1
12146_ACEOF
12147
12148 LIBS="-lm $LIBS"
12149
12150fi
12151
12152if test "$llvm_cv_os_type" = "MingW" ; then
12153
12154{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12155echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12156if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158else
12159 ac_check_lib_save_LIBS=$LIBS
12160LIBS="-limagehlp $LIBS"
12161cat >conftest.$ac_ext <<_ACEOF
12162/* confdefs.h. */
12163_ACEOF
12164cat confdefs.h >>conftest.$ac_ext
12165cat >>conftest.$ac_ext <<_ACEOF
12166/* end confdefs.h. */
12167
12168
12169int
12170main ()
12171{
12172return main ();
12173 ;
12174 return 0;
12175}
12176_ACEOF
12177rm -f conftest.$ac_objext conftest$ac_exeext
12178if { (ac_try="$ac_link"
12179case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_link") 2>conftest.er1
12185 ac_status=$?
12186 grep -v '^ *+' conftest.er1 >conftest.err
12187 rm -f conftest.er1
12188 cat conftest.err >&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } &&
12191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12192 { (case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195esac
12196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_try") 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try='test -s conftest$ac_exeext'
12202 { (case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205esac
12206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_try") 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_cv_lib_imagehlp_main=yes
12212else
12213 echo "$as_me: failed program was:" >&5
12214sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 ac_cv_lib_imagehlp_main=no
12217fi
12218
12219rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221LIBS=$ac_check_lib_save_LIBS
12222fi
12223{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12224echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12225if test $ac_cv_lib_imagehlp_main = yes; then
12226 cat >>confdefs.h <<_ACEOF
12227#define HAVE_LIBIMAGEHLP 1
12228_ACEOF
12229
12230 LIBS="-limagehlp $LIBS"
12231
12232fi
12233
12234
12235{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12236echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12237if test "${ac_cv_lib_psapi_main+set}" = set; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12239else
12240 ac_check_lib_save_LIBS=$LIBS
12241LIBS="-lpsapi $LIBS"
12242cat >conftest.$ac_ext <<_ACEOF
12243/* confdefs.h. */
12244_ACEOF
12245cat confdefs.h >>conftest.$ac_ext
12246cat >>conftest.$ac_ext <<_ACEOF
12247/* end confdefs.h. */
12248
12249
12250int
12251main ()
12252{
12253return main ();
12254 ;
12255 return 0;
12256}
12257_ACEOF
12258rm -f conftest.$ac_objext conftest$ac_exeext
12259if { (ac_try="$ac_link"
12260case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263esac
12264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_link") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12273 { (case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12276esac
12277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_try") 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest$ac_exeext'
12283 { (case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12286esac
12287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_try") 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_lib_psapi_main=yes
12293else
12294 echo "$as_me: failed program was:" >&5
12295sed 's/^/| /' conftest.$ac_ext >&5
12296
12297 ac_cv_lib_psapi_main=no
12298fi
12299
12300rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302LIBS=$ac_check_lib_save_LIBS
12303fi
12304{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12305echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12306if test $ac_cv_lib_psapi_main = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308#define HAVE_LIBPSAPI 1
12309_ACEOF
12310
12311 LIBS="-lpsapi $LIBS"
12312
12313fi
12314
12315fi
12316
12317{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12318echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12319if test "${ac_cv_search_dlopen+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321else
12322 ac_func_search_save_LIBS=$LIBS
12323cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h. */
12329
12330/* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12333#ifdef __cplusplus
12334extern "C"
12335#endif
12336char dlopen ();
12337int
12338main ()
12339{
12340return dlopen ();
12341 ;
12342 return 0;
12343}
12344_ACEOF
12345for ac_lib in '' dl; do
12346 if test -z "$ac_lib"; then
12347 ac_res="none required"
12348 else
12349 ac_res=-l$ac_lib
12350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12351 fi
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353if { (ac_try="$ac_link"
12354case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357esac
12358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_link") 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370esac
12371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest$ac_exeext'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380esac
12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_search_dlopen=$ac_res
12387else
12388 echo "$as_me: failed program was:" >&5
12389sed 's/^/| /' conftest.$ac_ext >&5
12390
12391
12392fi
12393
12394rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext
12396 if test "${ac_cv_search_dlopen+set}" = set; then
12397 break
12398fi
12399done
12400if test "${ac_cv_search_dlopen+set}" = set; then
12401 :
12402else
12403 ac_cv_search_dlopen=no
12404fi
12405rm conftest.$ac_ext
12406LIBS=$ac_func_search_save_LIBS
12407fi
12408{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12409echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12410ac_res=$ac_cv_search_dlopen
12411if test "$ac_res" != no; then
12412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12413
12414cat >>confdefs.h <<\_ACEOF
12415#define HAVE_DLOPEN 1
12416_ACEOF
12417
12418else
12419 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12420echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12421fi
12422
12423
12424if test "$llvm_cv_enable_libffi" = "yes" ; then
12425 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12426echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12427if test "${ac_cv_search_ffi_call+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12429else
12430 ac_func_search_save_LIBS=$LIBS
12431cat >conftest.$ac_ext <<_ACEOF
12432/* confdefs.h. */
12433_ACEOF
12434cat confdefs.h >>conftest.$ac_ext
12435cat >>conftest.$ac_ext <<_ACEOF
12436/* end confdefs.h. */
12437
12438/* Override any GCC internal prototype to avoid an error.
12439 Use char because int might match the return type of a GCC
12440 builtin and then its argument prototype would still apply. */
12441#ifdef __cplusplus
12442extern "C"
12443#endif
12444char ffi_call ();
12445int
12446main ()
12447{
12448return ffi_call ();
12449 ;
12450 return 0;
12451}
12452_ACEOF
12453for ac_lib in '' ffi; do
12454 if test -z "$ac_lib"; then
12455 ac_res="none required"
12456 else
12457 ac_res=-l$ac_lib
12458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12459 fi
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461if { (ac_try="$ac_link"
12462case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465esac
12466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_link") 2>conftest.er1
12468 ac_status=$?
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12475 { (case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478esac
12479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_try") 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest$ac_exeext'
12485 { (case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12488esac
12489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_try") 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_cv_search_ffi_call=$ac_res
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499
12500fi
12501
12502rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext
12504 if test "${ac_cv_search_ffi_call+set}" = set; then
12505 break
12506fi
12507done
12508if test "${ac_cv_search_ffi_call+set}" = set; then
12509 :
12510else
12511 ac_cv_search_ffi_call=no
12512fi
12513rm conftest.$ac_ext
12514LIBS=$ac_func_search_save_LIBS
12515fi
12516{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12517echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12518ac_res=$ac_cv_search_ffi_call
12519if test "$ac_res" != no; then
12520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12521
12522cat >>confdefs.h <<\_ACEOF
12523#define HAVE_FFI_CALL 1
12524_ACEOF
12525
12526else
12527 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12528echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12529 { (exit 1); exit 1; }; }
12530fi
12531
12532fi
12533
12534{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12535echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12536if test "${ac_cv_search_mallinfo+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538else
12539 ac_func_search_save_LIBS=$LIBS
12540cat >conftest.$ac_ext <<_ACEOF
12541/* confdefs.h. */
12542_ACEOF
12543cat confdefs.h >>conftest.$ac_ext
12544cat >>conftest.$ac_ext <<_ACEOF
12545/* end confdefs.h. */
12546
12547/* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12550#ifdef __cplusplus
12551extern "C"
12552#endif
12553char mallinfo ();
12554int
12555main ()
12556{
12557return mallinfo ();
12558 ;
12559 return 0;
12560}
12561_ACEOF
12562for ac_lib in '' malloc; do
12563 if test -z "$ac_lib"; then
12564 ac_res="none required"
12565 else
12566 ac_res=-l$ac_lib
12567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12568 fi
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570if { (ac_try="$ac_link"
12571case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_link") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584 { (case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587esac
12588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_try") 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest$ac_exeext'
12594 { (case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597esac
12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_try") 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_cv_search_mallinfo=$ac_res
12604else
12605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608
12609fi
12610
12611rm -f core conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext
12613 if test "${ac_cv_search_mallinfo+set}" = set; then
12614 break
12615fi
12616done
12617if test "${ac_cv_search_mallinfo+set}" = set; then
12618 :
12619else
12620 ac_cv_search_mallinfo=no
12621fi
12622rm conftest.$ac_ext
12623LIBS=$ac_func_search_save_LIBS
12624fi
12625{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12626echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12627ac_res=$ac_cv_search_mallinfo
12628if test "$ac_res" != no; then
12629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12630
12631cat >>confdefs.h <<\_ACEOF
12632#define HAVE_MALLINFO 1
12633_ACEOF
12634
12635fi
12636
12637
12638if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12639
12640{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12641echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12642if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644else
12645 ac_check_lib_save_LIBS=$LIBS
12646LIBS="-lpthread $LIBS"
12647cat >conftest.$ac_ext <<_ACEOF
12648/* confdefs.h. */
12649_ACEOF
12650cat confdefs.h >>conftest.$ac_ext
12651cat >>conftest.$ac_ext <<_ACEOF
12652/* end confdefs.h. */
12653
12654/* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12657#ifdef __cplusplus
12658extern "C"
12659#endif
12660char pthread_mutex_init ();
12661int
12662main ()
12663{
12664return pthread_mutex_init ();
12665 ;
12666 return 0;
12667}
12668_ACEOF
12669rm -f conftest.$ac_objext conftest$ac_exeext
12670if { (ac_try="$ac_link"
12671case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674esac
12675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_link") 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12684 { (case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687esac
12688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_try") 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; } &&
12693 { ac_try='test -s conftest$ac_exeext'
12694 { (case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697esac
12698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_try") 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_cv_lib_pthread_pthread_mutex_init=yes
12704else
12705 echo "$as_me: failed program was:" >&5
12706sed 's/^/| /' conftest.$ac_ext >&5
12707
12708 ac_cv_lib_pthread_pthread_mutex_init=no
12709fi
12710
12711rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713LIBS=$ac_check_lib_save_LIBS
12714fi
12715{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12716echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12717if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12718 cat >>confdefs.h <<_ACEOF
12719#define HAVE_LIBPTHREAD 1
12720_ACEOF
12721
12722 LIBS="-lpthread $LIBS"
12723
12724fi
12725
12726 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12727echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12728if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730else
12731 ac_func_search_save_LIBS=$LIBS
12732cat >conftest.$ac_ext <<_ACEOF
12733/* confdefs.h. */
12734_ACEOF
12735cat confdefs.h >>conftest.$ac_ext
12736cat >>conftest.$ac_ext <<_ACEOF
12737/* end confdefs.h. */
12738
12739/* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12742#ifdef __cplusplus
12743extern "C"
12744#endif
12745char pthread_mutex_lock ();
12746int
12747main ()
12748{
12749return pthread_mutex_lock ();
12750 ;
12751 return 0;
12752}
12753_ACEOF
12754for ac_lib in '' pthread; do
12755 if test -z "$ac_lib"; then
12756 ac_res="none required"
12757 else
12758 ac_res=-l$ac_lib
12759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12760 fi
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762if { (ac_try="$ac_link"
12763case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766esac
12767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_link") 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12779esac
12780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_try") 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789esac
12790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 ac_cv_search_pthread_mutex_lock=$ac_res
12796else
12797 echo "$as_me: failed program was:" >&5
12798sed 's/^/| /' conftest.$ac_ext >&5
12799
12800
12801fi
12802
12803rm -f core conftest.err conftest.$ac_objext \
12804 conftest$ac_exeext
12805 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12806 break
12807fi
12808done
12809if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12810 :
12811else
12812 ac_cv_search_pthread_mutex_lock=no
12813fi
12814rm conftest.$ac_ext
12815LIBS=$ac_func_search_save_LIBS
12816fi
12817{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12818echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12819ac_res=$ac_cv_search_pthread_mutex_lock
12820if test "$ac_res" != no; then
12821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12822
12823cat >>confdefs.h <<\_ACEOF
12824#define HAVE_PTHREAD_MUTEX_LOCK 1
12825_ACEOF
12826
12827fi
12828
12829 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12830echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12831if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833else
12834 ac_func_search_save_LIBS=$LIBS
12835cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841
12842/* Override any GCC internal prototype to avoid an error.
12843 Use char because int might match the return type of a GCC
12844 builtin and then its argument prototype would still apply. */
12845#ifdef __cplusplus
12846extern "C"
12847#endif
12848char pthread_rwlock_init ();
12849int
12850main ()
12851{
12852return pthread_rwlock_init ();
12853 ;
12854 return 0;
12855}
12856_ACEOF
12857for ac_lib in '' pthread; do
12858 if test -z "$ac_lib"; then
12859 ac_res="none required"
12860 else
12861 ac_res=-l$ac_lib
12862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12863 fi
12864 rm -f conftest.$ac_objext conftest$ac_exeext
12865if { (ac_try="$ac_link"
12866case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12869esac
12870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_link") 2>conftest.er1
12872 ac_status=$?
12873 grep -v '^ *+' conftest.er1 >conftest.err
12874 rm -f conftest.er1
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12879 { (case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12882esac
12883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_try") 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12892esac
12893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_try") 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_cv_search_pthread_rwlock_init=$ac_res
12899else
12900 echo "$as_me: failed program was:" >&5
12901sed 's/^/| /' conftest.$ac_ext >&5
12902
12903
12904fi
12905
12906rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext
12908 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12909 break
12910fi
12911done
12912if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12913 :
12914else
12915 ac_cv_search_pthread_rwlock_init=no
12916fi
12917rm conftest.$ac_ext
12918LIBS=$ac_func_search_save_LIBS
12919fi
12920{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12921echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12922ac_res=$ac_cv_search_pthread_rwlock_init
12923if test "$ac_res" != no; then
12924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12925
12926cat >>confdefs.h <<\_ACEOF
12927#define HAVE_PTHREAD_RWLOCK_INIT 1
12928_ACEOF
12929
12930fi
12931
12932 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12933echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12934if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12936else
12937 ac_func_search_save_LIBS=$LIBS
12938cat >conftest.$ac_ext <<_ACEOF
12939/* confdefs.h. */
12940_ACEOF
12941cat confdefs.h >>conftest.$ac_ext
12942cat >>conftest.$ac_ext <<_ACEOF
12943/* end confdefs.h. */
12944
12945/* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12948#ifdef __cplusplus
12949extern "C"
12950#endif
12951char pthread_getspecific ();
12952int
12953main ()
12954{
12955return pthread_getspecific ();
12956 ;
12957 return 0;
12958}
12959_ACEOF
12960for ac_lib in '' pthread; do
12961 if test -z "$ac_lib"; then
12962 ac_res="none required"
12963 else
12964 ac_res=-l$ac_lib
12965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12966 fi
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968if { (ac_try="$ac_link"
12969case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972esac
12973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_link") 2>conftest.er1
12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12985esac
12986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest$ac_exeext'
12992 { (case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995esac
12996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_try") 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_search_pthread_getspecific=$ac_res
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
13006
13007fi
13008
13009rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext
13011 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13012 break
13013fi
13014done
13015if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13016 :
13017else
13018 ac_cv_search_pthread_getspecific=no
13019fi
13020rm conftest.$ac_ext
13021LIBS=$ac_func_search_save_LIBS
13022fi
13023{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13024echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13025ac_res=$ac_cv_search_pthread_getspecific
13026if test "$ac_res" != no; then
13027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13028
13029cat >>confdefs.h <<\_ACEOF
13030#define HAVE_PTHREAD_GETSPECIFIC 1
13031_ACEOF
13032
13033fi
13034
13035fi
13036
13037
13038# Check whether --with-udis86 was given.
13039if test "${with_udis86+set}" = set; then
13040 withval=$with_udis86;
13041 USE_UDIS86=1
13042
13043 case "$withval" in
13044 /usr/lib|yes) ;;
13045 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13046 esac
13047
13048{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13049echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13050if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053 ac_check_lib_save_LIBS=$LIBS
13054LIBS="-ludis86 $LIBS"
13055cat >conftest.$ac_ext <<_ACEOF
13056/* confdefs.h. */
13057_ACEOF
13058cat confdefs.h >>conftest.$ac_ext
13059cat >>conftest.$ac_ext <<_ACEOF
13060/* end confdefs.h. */
13061
13062/* Override any GCC internal prototype to avoid an error.
13063 Use char because int might match the return type of a GCC
13064 builtin and then its argument prototype would still apply. */
13065#ifdef __cplusplus
13066extern "C"
13067#endif
13068char ud_init ();
13069int
13070main ()
13071{
13072return ud_init ();
13073 ;
13074 return 0;
13075}
13076_ACEOF
13077rm -f conftest.$ac_objext conftest$ac_exeext
13078if { (ac_try="$ac_link"
13079case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_link") 2>conftest.er1
13085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095esac
13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest$ac_exeext'
13102 { (case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13105esac
13106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_try") 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_lib_udis86_ud_init=yes
13112else
13113 echo "$as_me: failed program was:" >&5
13114sed 's/^/| /' conftest.$ac_ext >&5
13115
13116 ac_cv_lib_udis86_ud_init=no
13117fi
13118
13119rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
13121LIBS=$ac_check_lib_save_LIBS
13122fi
13123{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13124echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13125if test $ac_cv_lib_udis86_ud_init = yes; then
13126 cat >>confdefs.h <<_ACEOF
13127#define HAVE_LIBUDIS86 1
13128_ACEOF
13129
13130 LIBS="-ludis86 $LIBS"
13131
13132else
13133
13134 echo "Error! You need to have libudis86 around."
13135 exit -1
13136
13137fi
13138
13139
13140else
13141 USE_UDIS86=0
13142
13143fi
13144
13145
13146cat >>confdefs.h <<_ACEOF
13147#define USE_UDIS86 $USE_UDIS86
13148_ACEOF
13149
13150
13151
13152# Check whether --with-oprofile was given.
13153if test "${with_oprofile+set}" = set; then
13154 withval=$with_oprofile;
13155 USE_OPROFILE=1
13156
13157 case "$withval" in
13158 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13159 no) llvm_cv_oppath=
13160 USE_OPROFILE=0
13161 ;;
13162 *) llvm_cv_oppath="${withval}/lib/oprofile"
13163 CPPFLAGS="-I${withval}/include";;
13164 esac
13165 if test -n "$llvm_cv_oppath" ; then
13166 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13167 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13168echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13169if test "${ac_cv_search_bfd_init+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13171else
13172 ac_func_search_save_LIBS=$LIBS
13173cat >conftest.$ac_ext <<_ACEOF
13174/* confdefs.h. */
13175_ACEOF
13176cat confdefs.h >>conftest.$ac_ext
13177cat >>conftest.$ac_ext <<_ACEOF
13178/* end confdefs.h. */
13179
13180/* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183#ifdef __cplusplus
13184extern "C"
13185#endif
13186char bfd_init ();
13187int
13188main ()
13189{
13190return bfd_init ();
13191 ;
13192 return 0;
13193}
13194_ACEOF
13195for ac_lib in '' bfd; do
13196 if test -z "$ac_lib"; then
13197 ac_res="none required"
13198 else
13199 ac_res=-l$ac_lib
13200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13201 fi
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203if { (ac_try="$ac_link"
13204case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207esac
13208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_link") 2>conftest.er1
13210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13217 { (case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13220esac
13221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_try") 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest$ac_exeext'
13227 { (case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230esac
13231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_try") 2>&5
13233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13236 ac_cv_search_bfd_init=$ac_res
13237else
13238 echo "$as_me: failed program was:" >&5
13239sed 's/^/| /' conftest.$ac_ext >&5
13240
13241
13242fi
13243
13244rm -f core conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext
13246 if test "${ac_cv_search_bfd_init+set}" = set; then
13247 break
13248fi
13249done
13250if test "${ac_cv_search_bfd_init+set}" = set; then
13251 :
13252else
13253 ac_cv_search_bfd_init=no
13254fi
13255rm conftest.$ac_ext
13256LIBS=$ac_func_search_save_LIBS
13257fi
13258{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13259echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13260ac_res=$ac_cv_search_bfd_init
13261if test "$ac_res" != no; then
13262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13263
13264fi
13265
13266 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13267echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13268if test "${ac_cv_search_op_open_agent+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271 ac_func_search_save_LIBS=$LIBS
13272cat >conftest.$ac_ext <<_ACEOF
13273/* confdefs.h. */
13274_ACEOF
13275cat confdefs.h >>conftest.$ac_ext
13276cat >>conftest.$ac_ext <<_ACEOF
13277/* end confdefs.h. */
13278
13279/* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13282#ifdef __cplusplus
13283extern "C"
13284#endif
13285char op_open_agent ();
13286int
13287main ()
13288{
13289return op_open_agent ();
13290 ;
13291 return 0;
13292}
13293_ACEOF
13294for ac_lib in '' opagent; do
13295 if test -z "$ac_lib"; then
13296 ac_res="none required"
13297 else
13298 ac_res=-l$ac_lib
13299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13300 fi
13301 rm -f conftest.$ac_objext conftest$ac_exeext
13302if { (ac_try="$ac_link"
13303case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13306esac
13307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_link") 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316 { (case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13319esac
13320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_try") 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329esac
13330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_try") 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_cv_search_op_open_agent=$ac_res
13336else
13337 echo "$as_me: failed program was:" >&5
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
13340
13341fi
13342
13343rm -f core conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext
13345 if test "${ac_cv_search_op_open_agent+set}" = set; then
13346 break
13347fi
13348done
13349if test "${ac_cv_search_op_open_agent+set}" = set; then
13350 :
13351else
13352 ac_cv_search_op_open_agent=no
13353fi
13354rm conftest.$ac_ext
13355LIBS=$ac_func_search_save_LIBS
13356fi
13357{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13358echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13359ac_res=$ac_cv_search_op_open_agent
13360if test "$ac_res" != no; then
13361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13362
13363else
13364
13365 echo "Error! You need to have libopagent around."
13366 exit -1
13367
13368fi
13369
13370 if test "${ac_cv_header_opagent_h+set}" = set; then
13371 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13372echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13373if test "${ac_cv_header_opagent_h+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375fi
13376{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13377echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13378else
13379 # Is the header compilable?
13380{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13381echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13382cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
13388$ac_includes_default
13389#include <opagent.h>
13390_ACEOF
13391rm -f conftest.$ac_objext
13392if { (ac_try="$ac_compile"
13393case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396esac
13397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_compile") 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13406 { (case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13409esac
13410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_try") 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } &&
13415 { ac_try='test -s conftest.$ac_objext'
13416 { (case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_try") 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_header_compiler=yes
13426else
13427 echo "$as_me: failed program was:" >&5
13428sed 's/^/| /' conftest.$ac_ext >&5
13429
13430 ac_header_compiler=no
13431fi
13432
13433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13435echo "${ECHO_T}$ac_header_compiler" >&6; }
13436
13437# Is the header present?
13438{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13439echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13440cat >conftest.$ac_ext <<_ACEOF
13441/* confdefs.h. */
13442_ACEOF
13443cat confdefs.h >>conftest.$ac_ext
13444cat >>conftest.$ac_ext <<_ACEOF
13445/* end confdefs.h. */
13446#include <opagent.h>
13447_ACEOF
13448if { (ac_try="$ac_cpp conftest.$ac_ext"
13449case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13452esac
13453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13455 ac_status=$?
13456 grep -v '^ *+' conftest.er1 >conftest.err
13457 rm -f conftest.er1
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } >/dev/null; then
13461 if test -s conftest.err; then
13462 ac_cpp_err=$ac_c_preproc_warn_flag
13463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13464 else
13465 ac_cpp_err=
13466 fi
13467else
13468 ac_cpp_err=yes
13469fi
13470if test -z "$ac_cpp_err"; then
13471 ac_header_preproc=yes
13472else
13473 echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476 ac_header_preproc=no
13477fi
13478
13479rm -f conftest.err conftest.$ac_ext
13480{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13481echo "${ECHO_T}$ac_header_preproc" >&6; }
13482
13483# So? What about this header?
13484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13485 yes:no: )
13486 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13487echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13489echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13490 ac_header_preproc=yes
13491 ;;
13492 no:yes:* )
13493 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13494echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13496echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13498echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13500echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13502echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13504echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13505 ( cat <<\_ASBOX
13506## ------------------------------ ##
13507## Report this to bugs@yourdomain ##
13508## ------------------------------ ##
13509_ASBOX
13510 ) | sed "s/^/$as_me: WARNING: /" >&2
13511 ;;
13512esac
13513{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13514echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13515if test "${ac_cv_header_opagent_h+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517else
13518 ac_cv_header_opagent_h=$ac_header_preproc
13519fi
13520{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13521echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13522
13523fi
13524if test $ac_cv_header_opagent_h = yes; then
13525 :
13526else
13527
13528 echo "Error! You need to have opagent.h around."
13529 exit -1
13530
13531fi
13532
13533
13534 fi
13535
13536else
13537
13538 USE_OPROFILE=0
13539
13540
13541fi
13542
13543
13544cat >>confdefs.h <<_ACEOF
13545#define USE_OPROFILE $USE_OPROFILE
13546_ACEOF
13547
13548
13549
13550
13551
13552
13553
13554
13555ac_header_dirent=no
13556for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13557 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13558{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13559echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562else
13563 cat >conftest.$ac_ext <<_ACEOF
13564/* confdefs.h. */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
13568/* end confdefs.h. */
13569#include <sys/types.h>
13570#include <$ac_hdr>
13571
13572int
13573main ()
13574{
13575if ((DIR *) 0)
13576return 0;
13577 ;
13578 return 0;
13579}
13580_ACEOF
13581rm -f conftest.$ac_objext
13582if { (ac_try="$ac_compile"
13583case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_compile") 2>conftest.er1
13589 ac_status=$?
13590 grep -v '^ *+' conftest.er1 >conftest.err
13591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13596 { (case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13599esac
13600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_try") 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609esac
13610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 eval "$as_ac_Header=yes"
13616else
13617 echo "$as_me: failed program was:" >&5
13618sed 's/^/| /' conftest.$ac_ext >&5
13619
13620 eval "$as_ac_Header=no"
13621fi
13622
13623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624fi
13625ac_res=`eval echo '${'$as_ac_Header'}'`
13626 { echo "$as_me:$LINENO: result: $ac_res" >&5
13627echo "${ECHO_T}$ac_res" >&6; }
13628if test `eval echo '${'$as_ac_Header'}'` = yes; then
13629 cat >>confdefs.h <<_ACEOF
13630#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13631_ACEOF
13632
13633ac_header_dirent=$ac_hdr; break
13634fi
13635
13636done
13637# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13638if test $ac_header_dirent = dirent.h; then
13639 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13640echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13641if test "${ac_cv_search_opendir+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643else
13644 ac_func_search_save_LIBS=$LIBS
13645cat >conftest.$ac_ext <<_ACEOF
13646/* confdefs.h. */
13647_ACEOF
13648cat confdefs.h >>conftest.$ac_ext
13649cat >>conftest.$ac_ext <<_ACEOF
13650/* end confdefs.h. */
13651
13652/* Override any GCC internal prototype to avoid an error.
13653 Use char because int might match the return type of a GCC
13654 builtin and then its argument prototype would still apply. */
13655#ifdef __cplusplus
13656extern "C"
13657#endif
13658char opendir ();
13659int
13660main ()
13661{
13662return opendir ();
13663 ;
13664 return 0;
13665}
13666_ACEOF
13667for ac_lib in '' dir; do
13668 if test -z "$ac_lib"; then
13669 ac_res="none required"
13670 else
13671 ac_res=-l$ac_lib
13672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13673 fi
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675if { (ac_try="$ac_link"
13676case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679esac
13680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_link") 2>conftest.er1
13682 ac_status=$?
13683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13689 { (case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692esac
13693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_try") 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702esac
13703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 ac_cv_search_opendir=$ac_res
13709else
13710 echo "$as_me: failed program was:" >&5
13711sed 's/^/| /' conftest.$ac_ext >&5
13712
13713
13714fi
13715
13716rm -f core conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext
13718 if test "${ac_cv_search_opendir+set}" = set; then
13719 break
13720fi
13721done
13722if test "${ac_cv_search_opendir+set}" = set; then
13723 :
13724else
13725 ac_cv_search_opendir=no
13726fi
13727rm conftest.$ac_ext
13728LIBS=$ac_func_search_save_LIBS
13729fi
13730{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13731echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13732ac_res=$ac_cv_search_opendir
13733if test "$ac_res" != no; then
13734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13735
13736fi
13737
13738else
13739 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13740echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13741if test "${ac_cv_search_opendir+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743else
13744 ac_func_search_save_LIBS=$LIBS
13745cat >conftest.$ac_ext <<_ACEOF
13746/* confdefs.h. */
13747_ACEOF
13748cat confdefs.h >>conftest.$ac_ext
13749cat >>conftest.$ac_ext <<_ACEOF
13750/* end confdefs.h. */
13751
13752/* Override any GCC internal prototype to avoid an error.
13753 Use char because int might match the return type of a GCC
13754 builtin and then its argument prototype would still apply. */
13755#ifdef __cplusplus
13756extern "C"
13757#endif
13758char opendir ();
13759int
13760main ()
13761{
13762return opendir ();
13763 ;
13764 return 0;
13765}
13766_ACEOF
13767for ac_lib in '' x; do
13768 if test -z "$ac_lib"; then
13769 ac_res="none required"
13770 else
13771 ac_res=-l$ac_lib
13772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13773 fi
13774 rm -f conftest.$ac_objext conftest$ac_exeext
13775if { (ac_try="$ac_link"
13776case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13779esac
13780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_link") 2>conftest.er1
13782 ac_status=$?
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13789 { (case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792esac
13793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_try") 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest$ac_exeext'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802esac
13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_search_opendir=$ac_res
13809else
13810 echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
13813
13814fi
13815
13816rm -f core conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext
13818 if test "${ac_cv_search_opendir+set}" = set; then
13819 break
13820fi
13821done
13822if test "${ac_cv_search_opendir+set}" = set; then
13823 :
13824else
13825 ac_cv_search_opendir=no
13826fi
13827rm conftest.$ac_ext
13828LIBS=$ac_func_search_save_LIBS
13829fi
13830{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13831echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13832ac_res=$ac_cv_search_opendir
13833if test "$ac_res" != no; then
13834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13835
13836fi
13837
13838fi
13839
13840{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13841echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13842if test "${ac_cv_header_mmap_anon+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844else
13845 ac_ext=c
13846ac_cpp='$CPP $CPPFLAGS'
13847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849ac_compiler_gnu=$ac_cv_c_compiler_gnu
13850
13851 cat >conftest.$ac_ext <<_ACEOF
13852/* confdefs.h. */
13853_ACEOF
13854cat confdefs.h >>conftest.$ac_ext
13855cat >>conftest.$ac_ext <<_ACEOF
13856/* end confdefs.h. */
13857#include <sys/mman.h>
13858#include <unistd.h>
13859#include <fcntl.h>
13860int
13861main ()
13862{
13863mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13864 ;
13865 return 0;
13866}
13867_ACEOF
13868rm -f conftest.$ac_objext
13869if { (ac_try="$ac_compile"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_compile") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886esac
13887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest.$ac_objext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896esac
13897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_header_mmap_anon=yes
13903else
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 ac_cv_header_mmap_anon=no
13908fi
13909
13910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 ac_ext=c
13912ac_cpp='$CPP $CPPFLAGS'
13913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915ac_compiler_gnu=$ac_cv_c_compiler_gnu
13916
13917
13918fi
13919{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13920echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13921if test "$ac_cv_header_mmap_anon" = yes; then
13922
13923cat >>confdefs.h <<\_ACEOF
13924#define HAVE_MMAP_ANONYMOUS 1
13925_ACEOF
13926
13927fi
13928
13929{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13930echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13931if test "${ac_cv_header_stat_broken+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933else
13934 cat >conftest.$ac_ext <<_ACEOF
13935/* confdefs.h. */
13936_ACEOF
13937cat confdefs.h >>conftest.$ac_ext
13938cat >>conftest.$ac_ext <<_ACEOF
13939/* end confdefs.h. */
13940#include <sys/types.h>
13941#include <sys/stat.h>
13942
13943#if defined S_ISBLK && defined S_IFDIR
13944# if S_ISBLK (S_IFDIR)
13945You lose.
13946# endif
13947#endif
13948
13949#if defined S_ISBLK && defined S_IFCHR
13950# if S_ISBLK (S_IFCHR)
13951You lose.
13952# endif
13953#endif
13954
13955#if defined S_ISLNK && defined S_IFREG
13956# if S_ISLNK (S_IFREG)
13957You lose.
13958# endif
13959#endif
13960
13961#if defined S_ISSOCK && defined S_IFREG
13962# if S_ISSOCK (S_IFREG)
13963You lose.
13964# endif
13965#endif
13966
13967_ACEOF
13968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13969 $EGREP "You lose" >/dev/null 2>&1; then
13970 ac_cv_header_stat_broken=yes
13971else
13972 ac_cv_header_stat_broken=no
13973fi
13974rm -f conftest*
13975
13976fi
13977{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13978echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13979if test $ac_cv_header_stat_broken = yes; then
13980
13981cat >>confdefs.h <<\_ACEOF
13982#define STAT_MACROS_BROKEN 1
13983_ACEOF
13984
13985fi
13986
13987{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13988echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13989if test "${ac_cv_header_sys_wait_h+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991else
13992 cat >conftest.$ac_ext <<_ACEOF
13993/* confdefs.h. */
13994_ACEOF
13995cat confdefs.h >>conftest.$ac_ext
13996cat >>conftest.$ac_ext <<_ACEOF
13997/* end confdefs.h. */
13998#include <sys/types.h>
13999#include <sys/wait.h>
14000#ifndef WEXITSTATUS
14001# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14002#endif
14003#ifndef WIFEXITED
14004# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14005#endif
14006
14007int
14008main ()
14009{
14010 int s;
14011 wait (&s);
14012 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14013 ;
14014 return 0;
14015}
14016_ACEOF
14017rm -f conftest.$ac_objext
14018if { (ac_try="$ac_compile"
14019case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14022esac
14023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_compile") 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035esac
14036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_try") 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest.$ac_objext'
14042 { (case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045esac
14046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_try") 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_cv_header_sys_wait_h=yes
14052else
14053 echo "$as_me: failed program was:" >&5
14054sed 's/^/| /' conftest.$ac_ext >&5
14055
14056 ac_cv_header_sys_wait_h=no
14057fi
14058
14059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060fi
14061{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14062echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14063if test $ac_cv_header_sys_wait_h = yes; then
14064
14065cat >>confdefs.h <<\_ACEOF
14066#define HAVE_SYS_WAIT_H 1
14067_ACEOF
14068
14069fi
14070
14071{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14072echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14073if test "${ac_cv_header_time+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075else
14076 cat >conftest.$ac_ext <<_ACEOF
14077/* confdefs.h. */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
14081/* end confdefs.h. */
14082#include <sys/types.h>
14083#include <sys/time.h>
14084#include <time.h>
14085
14086int
14087main ()
14088{
14089if ((struct tm *) 0)
14090return 0;
14091 ;
14092 return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (ac_try="$ac_compile"
14097case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14100esac
14101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_compile") 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14110 { (case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113esac
14114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_try") 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; } &&
14119 { ac_try='test -s conftest.$ac_objext'
14120 { (case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14123esac
14124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14125 (eval "$ac_try") 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_cv_header_time=yes
14130else
14131 echo "$as_me: failed program was:" >&5
14132sed 's/^/| /' conftest.$ac_ext >&5
14133
14134 ac_cv_header_time=no
14135fi
14136
14137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138fi
14139{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14140echo "${ECHO_T}$ac_cv_header_time" >&6; }
14141if test $ac_cv_header_time = yes; then
14142
14143cat >>confdefs.h <<\_ACEOF
14144#define TIME_WITH_SYS_TIME 1
14145_ACEOF
14146
14147fi
14148
14149
14150
14151
14152
14153
14154
14155
14156for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14157do
14158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164fi
14165ac_res=`eval echo '${'$as_ac_Header'}'`
14166 { echo "$as_me:$LINENO: result: $ac_res" >&5
14167echo "${ECHO_T}$ac_res" >&6; }
14168else
14169 # Is the header compilable?
14170{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14172cat >conftest.$ac_ext <<_ACEOF
14173/* confdefs.h. */
14174_ACEOF
14175cat confdefs.h >>conftest.$ac_ext
14176cat >>conftest.$ac_ext <<_ACEOF
14177/* end confdefs.h. */
14178$ac_includes_default
14179#include <$ac_header>
14180_ACEOF
14181rm -f conftest.$ac_objext
14182if { (ac_try="$ac_compile"
14183case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14186esac
14187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_compile") 2>conftest.er1
14189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14196 { (case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14199esac
14200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_try") 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try='test -s conftest.$ac_objext'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 ac_header_compiler=yes
14216else
14217 echo "$as_me: failed program was:" >&5
14218sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 ac_header_compiler=no
14221fi
14222
14223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14225echo "${ECHO_T}$ac_header_compiler" >&6; }
14226
14227# Is the header present?
14228{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14230cat >conftest.$ac_ext <<_ACEOF
14231/* confdefs.h. */
14232_ACEOF
14233cat confdefs.h >>conftest.$ac_ext
14234cat >>conftest.$ac_ext <<_ACEOF
14235/* end confdefs.h. */
14236#include <$ac_header>
14237_ACEOF
14238if { (ac_try="$ac_cpp conftest.$ac_ext"
14239case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14245 ac_status=$?
14246 grep -v '^ *+' conftest.er1 >conftest.err
14247 rm -f conftest.er1
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } >/dev/null; then
14251 if test -s conftest.err; then
14252 ac_cpp_err=$ac_c_preproc_warn_flag
14253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14254 else
14255 ac_cpp_err=
14256 fi
14257else
14258 ac_cpp_err=yes
14259fi
14260if test -z "$ac_cpp_err"; then
14261 ac_header_preproc=yes
14262else
14263 echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_header_preproc=no
14267fi
14268
14269rm -f conftest.err conftest.$ac_ext
14270{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14271echo "${ECHO_T}$ac_header_preproc" >&6; }
14272
14273# So? What about this header?
14274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14275 yes:no: )
14276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14280 ac_header_preproc=yes
14281 ;;
14282 no:yes:* )
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14295 ( cat <<\_ASBOX
14296## ------------------------------ ##
14297## Report this to bugs@yourdomain ##
14298## ------------------------------ ##
14299_ASBOX
14300 ) | sed "s/^/$as_me: WARNING: /" >&2
14301 ;;
14302esac
14303{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14307else
14308 eval "$as_ac_Header=\$ac_header_preproc"
14309fi
14310ac_res=`eval echo '${'$as_ac_Header'}'`
14311 { echo "$as_me:$LINENO: result: $ac_res" >&5
14312echo "${ECHO_T}$ac_res" >&6; }
14313
14314fi
14315if test `eval echo '${'$as_ac_Header'}'` = yes; then
14316 cat >>confdefs.h <<_ACEOF
14317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14318_ACEOF
14319
14320fi
14321
14322done
14323
14324
14325
14326
14327
14328
14329
14330for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14331do
14332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338fi
14339ac_res=`eval echo '${'$as_ac_Header'}'`
14340 { echo "$as_me:$LINENO: result: $ac_res" >&5
14341echo "${ECHO_T}$ac_res" >&6; }
14342else
14343 # Is the header compilable?
14344{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14346cat >conftest.$ac_ext <<_ACEOF
14347/* confdefs.h. */
14348_ACEOF
14349cat confdefs.h >>conftest.$ac_ext
14350cat >>conftest.$ac_ext <<_ACEOF
14351/* end confdefs.h. */
14352$ac_includes_default
14353#include <$ac_header>
14354_ACEOF
14355rm -f conftest.$ac_objext
14356if { (ac_try="$ac_compile"
14357case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14360esac
14361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_compile") 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373esac
14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383esac
14384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14389 ac_header_compiler=yes
14390else
14391 echo "$as_me: failed program was:" >&5
14392sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_header_compiler=no
14395fi
14396
14397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14399echo "${ECHO_T}$ac_header_compiler" >&6; }
14400
14401# Is the header present?
14402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14404cat >conftest.$ac_ext <<_ACEOF
14405/* confdefs.h. */
14406_ACEOF
14407cat confdefs.h >>conftest.$ac_ext
14408cat >>conftest.$ac_ext <<_ACEOF
14409/* end confdefs.h. */
14410#include <$ac_header>
14411_ACEOF
14412if { (ac_try="$ac_cpp conftest.$ac_ext"
14413case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416esac
14417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14419 ac_status=$?
14420 grep -v '^ *+' conftest.er1 >conftest.err
14421 rm -f conftest.er1
14422 cat conftest.err >&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } >/dev/null; then
14425 if test -s conftest.err; then
14426 ac_cpp_err=$ac_c_preproc_warn_flag
14427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14428 else
14429 ac_cpp_err=
14430 fi
14431else
14432 ac_cpp_err=yes
14433fi
14434if test -z "$ac_cpp_err"; then
14435 ac_header_preproc=yes
14436else
14437 echo "$as_me: failed program was:" >&5
14438sed 's/^/| /' conftest.$ac_ext >&5
14439
14440 ac_header_preproc=no
14441fi
14442
14443rm -f conftest.err conftest.$ac_ext
14444{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14445echo "${ECHO_T}$ac_header_preproc" >&6; }
14446
14447# So? What about this header?
14448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14449 yes:no: )
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14454 ac_header_preproc=yes
14455 ;;
14456 no:yes:* )
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14469 ( cat <<\_ASBOX
14470## ------------------------------ ##
14471## Report this to bugs@yourdomain ##
14472## ------------------------------ ##
14473_ASBOX
14474 ) | sed "s/^/$as_me: WARNING: /" >&2
14475 ;;
14476esac
14477{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481else
14482 eval "$as_ac_Header=\$ac_header_preproc"
14483fi
14484ac_res=`eval echo '${'$as_ac_Header'}'`
14485 { echo "$as_me:$LINENO: result: $ac_res" >&5
14486echo "${ECHO_T}$ac_res" >&6; }
14487
14488fi
14489if test `eval echo '${'$as_ac_Header'}'` = yes; then
14490 cat >>confdefs.h <<_ACEOF
14491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14492_ACEOF
14493
14494fi
14495
14496done
14497
14498
14499
14500for ac_header in utime.h windows.h
14501do
14502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508fi
14509ac_res=`eval echo '${'$as_ac_Header'}'`
14510 { echo "$as_me:$LINENO: result: $ac_res" >&5
14511echo "${ECHO_T}$ac_res" >&6; }
14512else
14513 # Is the header compilable?
14514{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14516cat >conftest.$ac_ext <<_ACEOF
14517/* confdefs.h. */
14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h. */
14522$ac_includes_default
14523#include <$ac_header>
14524_ACEOF
14525rm -f conftest.$ac_objext
14526if { (ac_try="$ac_compile"
14527case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14530esac
14531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_compile") 2>conftest.er1
14533 ac_status=$?
14534 grep -v '^ *+' conftest.er1 >conftest.err
14535 rm -f conftest.er1
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14540 { (case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543esac
14544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_try") 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553esac
14554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_try") 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_header_compiler=yes
14560else
14561 echo "$as_me: failed program was:" >&5
14562sed 's/^/| /' conftest.$ac_ext >&5
14563
14564 ac_header_compiler=no
14565fi
14566
14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14569echo "${ECHO_T}$ac_header_compiler" >&6; }
14570
14571# Is the header present?
14572{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14574cat >conftest.$ac_ext <<_ACEOF
14575/* confdefs.h. */
14576_ACEOF
14577cat confdefs.h >>conftest.$ac_ext
14578cat >>conftest.$ac_ext <<_ACEOF
14579/* end confdefs.h. */
14580#include <$ac_header>
14581_ACEOF
14582if { (ac_try="$ac_cpp conftest.$ac_ext"
14583case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14586esac
14587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14589 ac_status=$?
14590 grep -v '^ *+' conftest.er1 >conftest.err
14591 rm -f conftest.er1
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } >/dev/null; then
14595 if test -s conftest.err; then
14596 ac_cpp_err=$ac_c_preproc_warn_flag
14597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14598 else
14599 ac_cpp_err=
14600 fi
14601else
14602 ac_cpp_err=yes
14603fi
14604if test -z "$ac_cpp_err"; then
14605 ac_header_preproc=yes
14606else
14607 echo "$as_me: failed program was:" >&5
14608sed 's/^/| /' conftest.$ac_ext >&5
14609
14610 ac_header_preproc=no
14611fi
14612
14613rm -f conftest.err conftest.$ac_ext
14614{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14615echo "${ECHO_T}$ac_header_preproc" >&6; }
14616
14617# So? What about this header?
14618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14619 yes:no: )
14620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14624 ac_header_preproc=yes
14625 ;;
14626 no:yes:* )
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14639 ( cat <<\_ASBOX
14640## ------------------------------ ##
14641## Report this to bugs@yourdomain ##
14642## ------------------------------ ##
14643_ASBOX
14644 ) | sed "s/^/$as_me: WARNING: /" >&2
14645 ;;
14646esac
14647{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651else
14652 eval "$as_ac_Header=\$ac_header_preproc"
14653fi
14654ac_res=`eval echo '${'$as_ac_Header'}'`
14655 { echo "$as_me:$LINENO: result: $ac_res" >&5
14656echo "${ECHO_T}$ac_res" >&6; }
14657
14658fi
14659if test `eval echo '${'$as_ac_Header'}'` = yes; then
14660 cat >>confdefs.h <<_ACEOF
14661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14662_ACEOF
14663
14664fi
14665
14666done
14667
14668
14669
14670
14671
14672
14673for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14674do
14675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14681fi
14682ac_res=`eval echo '${'$as_ac_Header'}'`
14683 { echo "$as_me:$LINENO: result: $ac_res" >&5
14684echo "${ECHO_T}$ac_res" >&6; }
14685else
14686 # Is the header compilable?
14687{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14689cat >conftest.$ac_ext <<_ACEOF
14690/* confdefs.h. */
14691_ACEOF
14692cat confdefs.h >>conftest.$ac_ext
14693cat >>conftest.$ac_ext <<_ACEOF
14694/* end confdefs.h. */
14695$ac_includes_default
14696#include <$ac_header>
14697_ACEOF
14698rm -f conftest.$ac_objext
14699if { (ac_try="$ac_compile"
14700case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703esac
14704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
14712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14713 { (case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14716esac
14717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_try") 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try='test -s conftest.$ac_objext'
14723 { (case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14726esac
14727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_try") 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 ac_header_compiler=yes
14733else
14734 echo "$as_me: failed program was:" >&5
14735sed 's/^/| /' conftest.$ac_ext >&5
14736
14737 ac_header_compiler=no
14738fi
14739
14740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14742echo "${ECHO_T}$ac_header_compiler" >&6; }
14743
14744# Is the header present?
14745{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14747cat >conftest.$ac_ext <<_ACEOF
14748/* confdefs.h. */
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h. */
14753#include <$ac_header>
14754_ACEOF
14755if { (ac_try="$ac_cpp conftest.$ac_ext"
14756case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759esac
14760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } >/dev/null; then
14768 if test -s conftest.err; then
14769 ac_cpp_err=$ac_c_preproc_warn_flag
14770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14771 else
14772 ac_cpp_err=
14773 fi
14774else
14775 ac_cpp_err=yes
14776fi
14777if test -z "$ac_cpp_err"; then
14778 ac_header_preproc=yes
14779else
14780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783 ac_header_preproc=no
14784fi
14785
14786rm -f conftest.err conftest.$ac_ext
14787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14788echo "${ECHO_T}$ac_header_preproc" >&6; }
14789
14790# So? What about this header?
14791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14792 yes:no: )
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14797 ac_header_preproc=yes
14798 ;;
14799 no:yes:* )
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14812 ( cat <<\_ASBOX
14813## ------------------------------ ##
14814## Report this to bugs@yourdomain ##
14815## ------------------------------ ##
14816_ASBOX
14817 ) | sed "s/^/$as_me: WARNING: /" >&2
14818 ;;
14819esac
14820{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14824else
14825 eval "$as_ac_Header=\$ac_header_preproc"
14826fi
14827ac_res=`eval echo '${'$as_ac_Header'}'`
14828 { echo "$as_me:$LINENO: result: $ac_res" >&5
14829echo "${ECHO_T}$ac_res" >&6; }
14830
14831fi
14832if test `eval echo '${'$as_ac_Header'}'` = yes; then
14833 cat >>confdefs.h <<_ACEOF
14834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14835_ACEOF
14836
14837fi
14838
14839done
14840
14841
14842
14843
14844
14845for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14846do
14847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853fi
14854ac_res=`eval echo '${'$as_ac_Header'}'`
14855 { echo "$as_me:$LINENO: result: $ac_res" >&5
14856echo "${ECHO_T}$ac_res" >&6; }
14857else
14858 # Is the header compilable?
14859{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14861cat >conftest.$ac_ext <<_ACEOF
14862/* confdefs.h. */
14863_ACEOF
14864cat confdefs.h >>conftest.$ac_ext
14865cat >>conftest.$ac_ext <<_ACEOF
14866/* end confdefs.h. */
14867$ac_includes_default
14868#include <$ac_header>
14869_ACEOF
14870rm -f conftest.$ac_objext
14871if { (ac_try="$ac_compile"
14872case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875esac
14876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_compile") 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14888esac
14889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898esac
14899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_header_compiler=yes
14905else
14906 echo "$as_me: failed program was:" >&5
14907sed 's/^/| /' conftest.$ac_ext >&5
14908
14909 ac_header_compiler=no
14910fi
14911
14912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14914echo "${ECHO_T}$ac_header_compiler" >&6; }
14915
14916# Is the header present?
14917{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14919cat >conftest.$ac_ext <<_ACEOF
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
14925#include <$ac_header>
14926_ACEOF
14927if { (ac_try="$ac_cpp conftest.$ac_ext"
14928case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931esac
14932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14934 ac_status=$?
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } >/dev/null; then
14940 if test -s conftest.err; then
14941 ac_cpp_err=$ac_c_preproc_warn_flag
14942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14943 else
14944 ac_cpp_err=
14945 fi
14946else
14947 ac_cpp_err=yes
14948fi
14949if test -z "$ac_cpp_err"; then
14950 ac_header_preproc=yes
14951else
14952 echo "$as_me: failed program was:" >&5
14953sed 's/^/| /' conftest.$ac_ext >&5
14954
14955 ac_header_preproc=no
14956fi
14957
14958rm -f conftest.err conftest.$ac_ext
14959{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14960echo "${ECHO_T}$ac_header_preproc" >&6; }
14961
14962# So? What about this header?
14963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14964 yes:no: )
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14969 ac_header_preproc=yes
14970 ;;
14971 no:yes:* )
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14984 ( cat <<\_ASBOX
14985## ------------------------------ ##
14986## Report this to bugs@yourdomain ##
14987## ------------------------------ ##
14988_ASBOX
14989 ) | sed "s/^/$as_me: WARNING: /" >&2
14990 ;;
14991esac
14992{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996else
14997 eval "$as_ac_Header=\$ac_header_preproc"
14998fi
14999ac_res=`eval echo '${'$as_ac_Header'}'`
15000 { echo "$as_me:$LINENO: result: $ac_res" >&5
15001echo "${ECHO_T}$ac_res" >&6; }
15002
15003fi
15004if test `eval echo '${'$as_ac_Header'}'` = yes; then
15005 cat >>confdefs.h <<_ACEOF
15006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15007_ACEOF
15008
15009fi
15010
15011done
15012
15013
15014for ac_header in valgrind/valgrind.h
15015do
15016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15022fi
15023ac_res=`eval echo '${'$as_ac_Header'}'`
15024 { echo "$as_me:$LINENO: result: $ac_res" >&5
15025echo "${ECHO_T}$ac_res" >&6; }
15026else
15027 # Is the header compilable?
15028{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15030cat >conftest.$ac_ext <<_ACEOF
15031/* confdefs.h. */
15032_ACEOF
15033cat confdefs.h >>conftest.$ac_ext
15034cat >>conftest.$ac_ext <<_ACEOF
15035/* end confdefs.h. */
15036$ac_includes_default
15037#include <$ac_header>
15038_ACEOF
15039rm -f conftest.$ac_objext
15040if { (ac_try="$ac_compile"
15041case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15044esac
15045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_compile") 2>conftest.er1
15047 ac_status=$?
15048 grep -v '^ *+' conftest.er1 >conftest.err
15049 rm -f conftest.er1
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } &&
15053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15054 { (case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15057esac
15058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_try") 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; } &&
15063 { ac_try='test -s conftest.$ac_objext'
15064 { (case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15067esac
15068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_try") 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_header_compiler=yes
15074else
15075 echo "$as_me: failed program was:" >&5
15076sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 ac_header_compiler=no
15079fi
15080
15081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15083echo "${ECHO_T}$ac_header_compiler" >&6; }
15084
15085# Is the header present?
15086{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15088cat >conftest.$ac_ext <<_ACEOF
15089/* confdefs.h. */
15090_ACEOF
15091cat confdefs.h >>conftest.$ac_ext
15092cat >>conftest.$ac_ext <<_ACEOF
15093/* end confdefs.h. */
15094#include <$ac_header>
15095_ACEOF
15096if { (ac_try="$ac_cpp conftest.$ac_ext"
15097case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100esac
15101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } >/dev/null; then
15109 if test -s conftest.err; then
15110 ac_cpp_err=$ac_c_preproc_warn_flag
15111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15112 else
15113 ac_cpp_err=
15114 fi
15115else
15116 ac_cpp_err=yes
15117fi
15118if test -z "$ac_cpp_err"; then
15119 ac_header_preproc=yes
15120else
15121 echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_header_preproc=no
15125fi
15126
15127rm -f conftest.err conftest.$ac_ext
15128{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15129echo "${ECHO_T}$ac_header_preproc" >&6; }
15130
15131# So? What about this header?
15132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15133 yes:no: )
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15135echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15137echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15138 ac_header_preproc=yes
15139 ;;
15140 no:yes:* )
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15142echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15144echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15146echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15148echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15152echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15153 ( cat <<\_ASBOX
15154## ------------------------------ ##
15155## Report this to bugs@yourdomain ##
15156## ------------------------------ ##
15157_ASBOX
15158 ) | sed "s/^/$as_me: WARNING: /" >&2
15159 ;;
15160esac
15161{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165else
15166 eval "$as_ac_Header=\$ac_header_preproc"
15167fi
15168ac_res=`eval echo '${'$as_ac_Header'}'`
15169 { echo "$as_me:$LINENO: result: $ac_res" >&5
15170echo "${ECHO_T}$ac_res" >&6; }
15171
15172fi
15173if test `eval echo '${'$as_ac_Header'}'` = yes; then
15174 cat >>confdefs.h <<_ACEOF
15175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15176_ACEOF
15177
15178fi
15179
15180done
15181
15182
15183for ac_header in fenv.h
15184do
15185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15191fi
15192ac_res=`eval echo '${'$as_ac_Header'}'`
15193 { echo "$as_me:$LINENO: result: $ac_res" >&5
15194echo "${ECHO_T}$ac_res" >&6; }
15195else
15196 # Is the header compilable?
15197{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15198echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15199cat >conftest.$ac_ext <<_ACEOF
15200/* confdefs.h. */
15201_ACEOF
15202cat confdefs.h >>conftest.$ac_ext
15203cat >>conftest.$ac_ext <<_ACEOF
15204/* end confdefs.h. */
15205$ac_includes_default
15206#include <$ac_header>
15207_ACEOF
15208rm -f conftest.$ac_objext
15209if { (ac_try="$ac_compile"
15210case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213esac
15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_compile") 2>conftest.er1
15216 ac_status=$?
15217 grep -v '^ *+' conftest.er1 >conftest.err
15218 rm -f conftest.er1
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } &&
15222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15223 { (case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15226esac
15227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_try") 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; } &&
15232 { ac_try='test -s conftest.$ac_objext'
15233 { (case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236esac
15237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_try") 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_header_compiler=yes
15243else
15244 echo "$as_me: failed program was:" >&5
15245sed 's/^/| /' conftest.$ac_ext >&5
15246
15247 ac_header_compiler=no
15248fi
15249
15250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15252echo "${ECHO_T}$ac_header_compiler" >&6; }
15253
15254# Is the header present?
15255{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15257cat >conftest.$ac_ext <<_ACEOF
15258/* confdefs.h. */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h. */
15263#include <$ac_header>
15264_ACEOF
15265if { (ac_try="$ac_cpp conftest.$ac_ext"
15266case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269esac
15270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } >/dev/null; then
15278 if test -s conftest.err; then
15279 ac_cpp_err=$ac_c_preproc_warn_flag
15280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15281 else
15282 ac_cpp_err=
15283 fi
15284else
15285 ac_cpp_err=yes
15286fi
15287if test -z "$ac_cpp_err"; then
15288 ac_header_preproc=yes
15289else
15290 echo "$as_me: failed program was:" >&5
15291sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 ac_header_preproc=no
15294fi
15295
15296rm -f conftest.err conftest.$ac_ext
15297{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15298echo "${ECHO_T}$ac_header_preproc" >&6; }
15299
15300# So? What about this header?
15301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15302 yes:no: )
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15307 ac_header_preproc=yes
15308 ;;
15309 no:yes:* )
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15313echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15317echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15322 ( cat <<\_ASBOX
15323## ------------------------------ ##
15324## Report this to bugs@yourdomain ##
15325## ------------------------------ ##
15326_ASBOX
15327 ) | sed "s/^/$as_me: WARNING: /" >&2
15328 ;;
15329esac
15330{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15334else
15335 eval "$as_ac_Header=\$ac_header_preproc"
15336fi
15337ac_res=`eval echo '${'$as_ac_Header'}'`
15338 { echo "$as_me:$LINENO: result: $ac_res" >&5
15339echo "${ECHO_T}$ac_res" >&6; }
15340
15341fi
15342if test `eval echo '${'$as_ac_Header'}'` = yes; then
15343 cat >>confdefs.h <<_ACEOF
15344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15345_ACEOF
15346
15347fi
15348
15349done
15350
15351if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15352
15353for ac_header in pthread.h
15354do
15355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15361fi
15362ac_res=`eval echo '${'$as_ac_Header'}'`
15363 { echo "$as_me:$LINENO: result: $ac_res" >&5
15364echo "${ECHO_T}$ac_res" >&6; }
15365else
15366 # Is the header compilable?
15367{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15369cat >conftest.$ac_ext <<_ACEOF
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375$ac_includes_default
15376#include <$ac_header>
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (ac_try="$ac_compile"
15380case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383esac
15384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_compile") 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15393 { (case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396esac
15397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_try") 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
15403 { (case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406esac
15407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_try") 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_header_compiler=yes
15413else
15414 echo "$as_me: failed program was:" >&5
15415sed 's/^/| /' conftest.$ac_ext >&5
15416
15417 ac_header_compiler=no
15418fi
15419
15420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15422echo "${ECHO_T}$ac_header_compiler" >&6; }
15423
15424# Is the header present?
15425{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15427cat >conftest.$ac_ext <<_ACEOF
15428/* confdefs.h. */
15429_ACEOF
15430cat confdefs.h >>conftest.$ac_ext
15431cat >>conftest.$ac_ext <<_ACEOF
15432/* end confdefs.h. */
15433#include <$ac_header>
15434_ACEOF
15435if { (ac_try="$ac_cpp conftest.$ac_ext"
15436case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15439esac
15440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15442 ac_status=$?
15443 grep -v '^ *+' conftest.er1 >conftest.err
15444 rm -f conftest.er1
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } >/dev/null; then
15448 if test -s conftest.err; then
15449 ac_cpp_err=$ac_c_preproc_warn_flag
15450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15451 else
15452 ac_cpp_err=
15453 fi
15454else
15455 ac_cpp_err=yes
15456fi
15457if test -z "$ac_cpp_err"; then
15458 ac_header_preproc=yes
15459else
15460 echo "$as_me: failed program was:" >&5
15461sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 ac_header_preproc=no
15464fi
15465
15466rm -f conftest.err conftest.$ac_ext
15467{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15468echo "${ECHO_T}$ac_header_preproc" >&6; }
15469
15470# So? What about this header?
15471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15472 yes:no: )
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15474echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15476echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15477 ac_header_preproc=yes
15478 ;;
15479 no:yes:* )
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15485echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15487echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15491echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15492 ( cat <<\_ASBOX
15493## ------------------------------ ##
15494## Report this to bugs@yourdomain ##
15495## ------------------------------ ##
15496_ASBOX
15497 ) | sed "s/^/$as_me: WARNING: /" >&2
15498 ;;
15499esac
15500{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504else
15505 eval "$as_ac_Header=\$ac_header_preproc"
15506fi
15507ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result: $ac_res" >&5
15509echo "${ECHO_T}$ac_res" >&6; }
15510
15511fi
15512if test `eval echo '${'$as_ac_Header'}'` = yes; then
15513 cat >>confdefs.h <<_ACEOF
15514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15515_ACEOF
15516 HAVE_PTHREAD=1
15517
15518else
15519 HAVE_PTHREAD=0
15520
15521fi
15522
15523done
15524
15525else
15526 HAVE_PTHREAD=0
15527
15528fi
15529
15530if test "$llvm_cv_enable_libffi" = "yes" ; then
15531
15532
15533for ac_header in ffi.h ffi/ffi.h
15534do
15535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15541fi
15542ac_res=`eval echo '${'$as_ac_Header'}'`
15543 { echo "$as_me:$LINENO: result: $ac_res" >&5
15544echo "${ECHO_T}$ac_res" >&6; }
15545else
15546 # Is the header compilable?
15547{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15549cat >conftest.$ac_ext <<_ACEOF
15550/* confdefs.h. */
15551_ACEOF
15552cat confdefs.h >>conftest.$ac_ext
15553cat >>conftest.$ac_ext <<_ACEOF
15554/* end confdefs.h. */
15555$ac_includes_default
15556#include <$ac_header>
15557_ACEOF
15558rm -f conftest.$ac_objext
15559if { (ac_try="$ac_compile"
15560case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15563esac
15564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_compile") 2>conftest.er1
15566 ac_status=$?
15567 grep -v '^ *+' conftest.er1 >conftest.err
15568 rm -f conftest.er1
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15573 { (case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15576esac
15577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_try") 2>&5
15579 ac_status=$?
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; } &&
15582 { ac_try='test -s conftest.$ac_objext'
15583 { (case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15586esac
15587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_try") 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_header_compiler=yes
15593else
15594 echo "$as_me: failed program was:" >&5
15595sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 ac_header_compiler=no
15598fi
15599
15600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15602echo "${ECHO_T}$ac_header_compiler" >&6; }
15603
15604# Is the header present?
15605{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15607cat >conftest.$ac_ext <<_ACEOF
15608/* confdefs.h. */
15609_ACEOF
15610cat confdefs.h >>conftest.$ac_ext
15611cat >>conftest.$ac_ext <<_ACEOF
15612/* end confdefs.h. */
15613#include <$ac_header>
15614_ACEOF
15615if { (ac_try="$ac_cpp conftest.$ac_ext"
15616case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619esac
15620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } >/dev/null; then
15628 if test -s conftest.err; then
15629 ac_cpp_err=$ac_c_preproc_warn_flag
15630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15631 else
15632 ac_cpp_err=
15633 fi
15634else
15635 ac_cpp_err=yes
15636fi
15637if test -z "$ac_cpp_err"; then
15638 ac_header_preproc=yes
15639else
15640 echo "$as_me: failed program was:" >&5
15641sed 's/^/| /' conftest.$ac_ext >&5
15642
15643 ac_header_preproc=no
15644fi
15645
15646rm -f conftest.err conftest.$ac_ext
15647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15648echo "${ECHO_T}$ac_header_preproc" >&6; }
15649
15650# So? What about this header?
15651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15652 yes:no: )
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15657 ac_header_preproc=yes
15658 ;;
15659 no:yes:* )
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15672 ( cat <<\_ASBOX
15673## ------------------------------ ##
15674## Report this to bugs@yourdomain ##
15675## ------------------------------ ##
15676_ASBOX
15677 ) | sed "s/^/$as_me: WARNING: /" >&2
15678 ;;
15679esac
15680{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684else
15685 eval "$as_ac_Header=\$ac_header_preproc"
15686fi
15687ac_res=`eval echo '${'$as_ac_Header'}'`
15688 { echo "$as_me:$LINENO: result: $ac_res" >&5
15689echo "${ECHO_T}$ac_res" >&6; }
15690
15691fi
15692if test `eval echo '${'$as_ac_Header'}'` = yes; then
15693 cat >>confdefs.h <<_ACEOF
15694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15695_ACEOF
15696
15697fi
15698
15699done
15700
15701fi
15702
15703
15704for ac_header in CrashReporterClient.h
15705do
15706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15712fi
15713ac_res=`eval echo '${'$as_ac_Header'}'`
15714 { echo "$as_me:$LINENO: result: $ac_res" >&5
15715echo "${ECHO_T}$ac_res" >&6; }
15716else
15717 # Is the header compilable?
15718{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15720cat >conftest.$ac_ext <<_ACEOF
15721/* confdefs.h. */
15722_ACEOF
15723cat confdefs.h >>conftest.$ac_ext
15724cat >>conftest.$ac_ext <<_ACEOF
15725/* end confdefs.h. */
15726$ac_includes_default
15727#include <$ac_header>
15728_ACEOF
15729rm -f conftest.$ac_objext
15730if { (ac_try="$ac_compile"
15731case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15734esac
15735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736 (eval "$ac_compile") 2>conftest.er1
15737 ac_status=$?
15738 grep -v '^ *+' conftest.er1 >conftest.err
15739 rm -f conftest.er1
15740 cat conftest.err >&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15744 { (case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15747esac
15748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_try") 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest.$ac_objext'
15754 { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757esac
15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_try") 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_header_compiler=yes
15764else
15765 echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
15768 ac_header_compiler=no
15769fi
15770
15771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15773echo "${ECHO_T}$ac_header_compiler" >&6; }
15774
15775# Is the header present?
15776{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15778cat >conftest.$ac_ext <<_ACEOF
15779/* confdefs.h. */
15780_ACEOF
15781cat confdefs.h >>conftest.$ac_ext
15782cat >>conftest.$ac_ext <<_ACEOF
15783/* end confdefs.h. */
15784#include <$ac_header>
15785_ACEOF
15786if { (ac_try="$ac_cpp conftest.$ac_ext"
15787case "(($ac_try" in
15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789 *) ac_try_echo=$ac_try;;
15790esac
15791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15793 ac_status=$?
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } >/dev/null; then
15799 if test -s conftest.err; then
15800 ac_cpp_err=$ac_c_preproc_warn_flag
15801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15802 else
15803 ac_cpp_err=
15804 fi
15805else
15806 ac_cpp_err=yes
15807fi
15808if test -z "$ac_cpp_err"; then
15809 ac_header_preproc=yes
15810else
15811 echo "$as_me: failed program was:" >&5
15812sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 ac_header_preproc=no
15815fi
15816
15817rm -f conftest.err conftest.$ac_ext
15818{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15819echo "${ECHO_T}$ac_header_preproc" >&6; }
15820
15821# So? What about this header?
15822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15823 yes:no: )
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15828 ac_header_preproc=yes
15829 ;;
15830 no:yes:* )
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15843 ( cat <<\_ASBOX
15844## ------------------------------ ##
15845## Report this to bugs@yourdomain ##
15846## ------------------------------ ##
15847_ASBOX
15848 ) | sed "s/^/$as_me: WARNING: /" >&2
15849 ;;
15850esac
15851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15855else
15856 eval "$as_ac_Header=\$ac_header_preproc"
15857fi
15858ac_res=`eval echo '${'$as_ac_Header'}'`
15859 { echo "$as_me:$LINENO: result: $ac_res" >&5
15860echo "${ECHO_T}$ac_res" >&6; }
15861
15862fi
15863if test `eval echo '${'$as_ac_Header'}'` = yes; then
15864 cat >>confdefs.h <<_ACEOF
15865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15866_ACEOF
15867
15868fi
15869
15870done
15871
15872
15873{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15874echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15875cat >conftest.$ac_ext <<_ACEOF
15876/* confdefs.h. */
15877_ACEOF
15878cat confdefs.h >>conftest.$ac_ext
15879cat >>conftest.$ac_ext <<_ACEOF
15880/* end confdefs.h. */
15881extern const char *__crashreporter_info__;
15882 int main() {
15883 __crashreporter_info__ = "test";
15884 return 0;
15885 }
15886
15887_ACEOF
15888rm -f conftest.$ac_objext conftest$ac_exeext
15889if { (ac_try="$ac_link"
15890case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893esac
15894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_link") 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15903 { (case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15906esac
15907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_try") 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; } &&
15912 { ac_try='test -s conftest$ac_exeext'
15913 { (case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15916esac
15917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918 (eval "$ac_try") 2>&5
15919 ac_status=$?
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; }; then
15922 { echo "$as_me:$LINENO: result: yes" >&5
15923echo "${ECHO_T}yes" >&6; }
15924
15925cat >>confdefs.h <<\_ACEOF
15926#define HAVE_CRASHREPORTER_INFO 1
15927_ACEOF
15928
15929else
15930 echo "$as_me: failed program was:" >&5
15931sed 's/^/| /' conftest.$ac_ext >&5
15932
15933 { echo "$as_me:$LINENO: result: no" >&5
15934echo "${ECHO_T}no" >&6; }
15935
15936cat >>confdefs.h <<\_ACEOF
15937#define HAVE_CRASHREPORTER_INFO 0
15938_ACEOF
15939
15940fi
15941
15942rm -f core conftest.err conftest.$ac_objext \
15943 conftest$ac_exeext conftest.$ac_ext
15944
15945
15946
15947
15948 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15949echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15950if test "${ac_cv_huge_val_sanity+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15952else
15953
15954 ac_ext=cpp
15955ac_cpp='$CXXCPP $CPPFLAGS'
15956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15959
15960 ac_save_CXXFLAGS=$CXXFLAGS
15961 CXXFLAGS=-pedantic
15962 if test "$cross_compiling" = yes; then
15963 ac_cv_huge_val_sanity=yes
15964else
15965 cat >conftest.$ac_ext <<_ACEOF
15966/* confdefs.h. */
15967_ACEOF
15968cat confdefs.h >>conftest.$ac_ext
15969cat >>conftest.$ac_ext <<_ACEOF
15970/* end confdefs.h. */
15971#include <math.h>
15972int
15973main ()
15974{
15975double x = HUGE_VAL; return x != x;
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980rm -f conftest$ac_exeext
15981if { (ac_try="$ac_link"
15982case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985esac
15986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15991 { (case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15994esac
15995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_try") 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_cv_huge_val_sanity=yes
16001else
16002 echo "$as_me: program exited with status $ac_status" >&5
16003echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
16006( exit $ac_status )
16007ac_cv_huge_val_sanity=no
16008fi
16009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16010fi
16011
16012
16013 CXXFLAGS=$ac_save_CXXFLAGS
16014 ac_ext=c
16015ac_cpp='$CPP $CPPFLAGS'
16016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16018ac_compiler_gnu=$ac_cv_c_compiler_gnu
16019
16020
16021fi
16022{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16023echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16024 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16025
16026
16027{ echo "$as_me:$LINENO: checking for pid_t" >&5
16028echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16029if test "${ac_cv_type_pid_t+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16031else
16032 cat >conftest.$ac_ext <<_ACEOF
16033/* confdefs.h. */
16034_ACEOF
16035cat confdefs.h >>conftest.$ac_ext
16036cat >>conftest.$ac_ext <<_ACEOF
16037/* end confdefs.h. */
16038$ac_includes_default
16039typedef pid_t ac__type_new_;
16040int
16041main ()
16042{
16043if ((ac__type_new_ *) 0)
16044 return 0;
16045if (sizeof (ac__type_new_))
16046 return 0;
16047 ;
16048 return 0;
16049}
16050_ACEOF
16051rm -f conftest.$ac_objext
16052if { (ac_try="$ac_compile"
16053case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16056esac
16057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16058 (eval "$ac_compile") 2>conftest.er1
16059 ac_status=$?
16060 grep -v '^ *+' conftest.er1 >conftest.err
16061 rm -f conftest.er1
16062 cat conftest.err >&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16066 { (case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069esac
16070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_try") 2>&5
16072 ac_status=$?
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; } &&
16075 { ac_try='test -s conftest.$ac_objext'
16076 { (case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16079esac
16080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_try") 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }; then
16085 ac_cv_type_pid_t=yes
16086else
16087 echo "$as_me: failed program was:" >&5
16088sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 ac_cv_type_pid_t=no
16091fi
16092
16093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16094fi
16095{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16096echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16097if test $ac_cv_type_pid_t = yes; then
16098 :
16099else
16100
16101cat >>confdefs.h <<_ACEOF
16102#define pid_t int
16103_ACEOF
16104
16105fi
16106
16107{ echo "$as_me:$LINENO: checking for size_t" >&5
16108echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16109if test "${ac_cv_type_size_t+set}" = set; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16111else
16112 cat >conftest.$ac_ext <<_ACEOF
16113/* confdefs.h. */
16114_ACEOF
16115cat confdefs.h >>conftest.$ac_ext
16116cat >>conftest.$ac_ext <<_ACEOF
16117/* end confdefs.h. */
16118$ac_includes_default
16119typedef size_t ac__type_new_;
16120int
16121main ()
16122{
16123if ((ac__type_new_ *) 0)
16124 return 0;
16125if (sizeof (ac__type_new_))
16126 return 0;
16127 ;
16128 return 0;
16129}
16130_ACEOF
16131rm -f conftest.$ac_objext
16132if { (ac_try="$ac_compile"
16133case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16136esac
16137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_compile") 2>conftest.er1
16139 ac_status=$?
16140 grep -v '^ *+' conftest.er1 >conftest.err
16141 rm -f conftest.er1
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16146 { (case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16149esac
16150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_try") 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; } &&
16155 { ac_try='test -s conftest.$ac_objext'
16156 { (case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159esac
16160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_try") 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
16165 ac_cv_type_size_t=yes
16166else
16167 echo "$as_me: failed program was:" >&5
16168sed 's/^/| /' conftest.$ac_ext >&5
16169
16170 ac_cv_type_size_t=no
16171fi
16172
16173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174fi
16175{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16176echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16177if test $ac_cv_type_size_t = yes; then
16178 :
16179else
16180
16181cat >>confdefs.h <<_ACEOF
16182#define size_t unsigned int
16183_ACEOF
16184
16185fi
16186
16187
16188cat >>confdefs.h <<_ACEOF
16189#define RETSIGTYPE void
16190_ACEOF
16191
16192{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16193echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16194if test "${ac_cv_struct_tm+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196else
16197 cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203#include <sys/types.h>
16204#include <time.h>
16205
16206int
16207main ()
16208{
16209struct tm *tp; tp->tm_sec;
16210 ;
16211 return 0;
16212}
16213_ACEOF
16214rm -f conftest.$ac_objext
16215if { (ac_try="$ac_compile"
16216case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219esac
16220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_compile") 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16229 { (case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16232esac
16233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_try") 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest.$ac_objext'
16239 { (case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16242esac
16243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_try") 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_cv_struct_tm=time.h
16249else
16250 echo "$as_me: failed program was:" >&5
16251sed 's/^/| /' conftest.$ac_ext >&5
16252
16253 ac_cv_struct_tm=sys/time.h
16254fi
16255
16256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257fi
16258{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16259echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16260if test $ac_cv_struct_tm = sys/time.h; then
16261
16262cat >>confdefs.h <<\_ACEOF
16263#define TM_IN_SYS_TIME 1
16264_ACEOF
16265
16266fi
16267
16268{ echo "$as_me:$LINENO: checking for int64_t" >&5
16269echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16270if test "${ac_cv_type_int64_t+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272else
16273 cat >conftest.$ac_ext <<_ACEOF
16274/* confdefs.h. */
16275_ACEOF
16276cat confdefs.h >>conftest.$ac_ext
16277cat >>conftest.$ac_ext <<_ACEOF
16278/* end confdefs.h. */
16279$ac_includes_default
16280typedef int64_t ac__type_new_;
16281int
16282main ()
16283{
16284if ((ac__type_new_ *) 0)
16285 return 0;
16286if (sizeof (ac__type_new_))
16287 return 0;
16288 ;
16289 return 0;
16290}
16291_ACEOF
16292rm -f conftest.$ac_objext
16293if { (ac_try="$ac_compile"
16294case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297esac
16298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_compile") 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16307 { (case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16310esac
16311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_try") 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16320esac
16321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_try") 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_cv_type_int64_t=yes
16327else
16328 echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331 ac_cv_type_int64_t=no
16332fi
16333
16334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335fi
16336{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16337echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16338if test $ac_cv_type_int64_t = yes; then
16339
16340cat >>confdefs.h <<_ACEOF
16341#define HAVE_INT64_T 1
16342_ACEOF
16343
16344
16345else
16346 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16347echo "$as_me: error: Type int64_t required but not found" >&2;}
16348 { (exit 1); exit 1; }; }
16349fi
16350
16351{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16352echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16353if test "${ac_cv_type_uint64_t+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16355else
16356 cat >conftest.$ac_ext <<_ACEOF
16357/* confdefs.h. */
16358_ACEOF
16359cat confdefs.h >>conftest.$ac_ext
16360cat >>conftest.$ac_ext <<_ACEOF
16361/* end confdefs.h. */
16362$ac_includes_default
16363typedef uint64_t ac__type_new_;
16364int
16365main ()
16366{
16367if ((ac__type_new_ *) 0)
16368 return 0;
16369if (sizeof (ac__type_new_))
16370 return 0;
16371 ;
16372 return 0;
16373}
16374_ACEOF
16375rm -f conftest.$ac_objext
16376if { (ac_try="$ac_compile"
16377case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380esac
16381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16390 { (case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393esac
16394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_try") 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest.$ac_objext'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403esac
16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ac_cv_type_uint64_t=yes
16410else
16411 echo "$as_me: failed program was:" >&5
16412sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 ac_cv_type_uint64_t=no
16415fi
16416
16417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16418fi
16419{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16420echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16421if test $ac_cv_type_uint64_t = yes; then
16422
16423cat >>confdefs.h <<_ACEOF
16424#define HAVE_UINT64_T 1
16425_ACEOF
16426
16427
16428else
16429 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16430echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16431if test "${ac_cv_type_u_int64_t+set}" = set; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16433else
16434 cat >conftest.$ac_ext <<_ACEOF
16435/* confdefs.h. */
16436_ACEOF
16437cat confdefs.h >>conftest.$ac_ext
16438cat >>conftest.$ac_ext <<_ACEOF
16439/* end confdefs.h. */
16440$ac_includes_default
16441typedef u_int64_t ac__type_new_;
16442int
16443main ()
16444{
16445if ((ac__type_new_ *) 0)
16446 return 0;
16447if (sizeof (ac__type_new_))
16448 return 0;
16449 ;
16450 return 0;
16451}
16452_ACEOF
16453rm -f conftest.$ac_objext
16454if { (ac_try="$ac_compile"
16455case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458esac
16459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_compile") 2>conftest.er1
16461 ac_status=$?
16462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471esac
16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; } &&
16477 { ac_try='test -s conftest.$ac_objext'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16481esac
16482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_type_u_int64_t=yes
16488else
16489 echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 ac_cv_type_u_int64_t=no
16493fi
16494
16495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496fi
16497{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16498echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16499if test $ac_cv_type_u_int64_t = yes; then
16500
16501cat >>confdefs.h <<_ACEOF
16502#define HAVE_U_INT64_T 1
16503_ACEOF
16504
16505
16506else
16507 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16508echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16509 { (exit 1); exit 1; }; }
16510fi
16511
16512fi
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16524do
16525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16526{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16528if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16530else
16531 cat >conftest.$ac_ext <<_ACEOF
16532/* confdefs.h. */
16533_ACEOF
16534cat confdefs.h >>conftest.$ac_ext
16535cat >>conftest.$ac_ext <<_ACEOF
16536/* end confdefs.h. */
16537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16539#define $ac_func innocuous_$ac_func
16540
16541/* System header to define __stub macros and hopefully few prototypes,
16542 which can conflict with char $ac_func (); below.
16543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16544 <limits.h> exists even on freestanding compilers. */
16545
16546#ifdef __STDC__
16547# include <limits.h>
16548#else
16549# include <assert.h>
16550#endif
16551
16552#undef $ac_func
16553
16554/* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16557#ifdef __cplusplus
16558extern "C"
16559#endif
16560char $ac_func ();
16561/* The GNU C library defines this for functions which it implements
16562 to always fail with ENOSYS. Some functions are actually named
16563 something starting with __ and the normal name is an alias. */
16564#if defined __stub_$ac_func || defined __stub___$ac_func
16565choke me
16566#endif
16567
16568int
16569main ()
16570{
16571return $ac_func ();
16572 ;
16573 return 0;
16574}
16575_ACEOF
16576rm -f conftest.$ac_objext conftest$ac_exeext
16577if { (ac_try="$ac_link"
16578case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16581esac
16582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_link") 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16594esac
16595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest$ac_exeext'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604esac
16605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 eval "$as_ac_var=yes"
16611else
16612 echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 eval "$as_ac_var=no"
16616fi
16617
16618rm -f core conftest.err conftest.$ac_objext \
16619 conftest$ac_exeext conftest.$ac_ext
16620fi
16621ac_res=`eval echo '${'$as_ac_var'}'`
16622 { echo "$as_me:$LINENO: result: $ac_res" >&5
16623echo "${ECHO_T}$ac_res" >&6; }
16624if test `eval echo '${'$as_ac_var'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16627_ACEOF
16628
16629fi
16630done
16631
16632
16633
16634
16635
16636for ac_func in powf fmodf strtof round
16637do
16638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16641if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643else
16644 cat >conftest.$ac_ext <<_ACEOF
16645/* confdefs.h. */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
16649/* end confdefs.h. */
16650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16652#define $ac_func innocuous_$ac_func
16653
16654/* System header to define __stub macros and hopefully few prototypes,
16655 which can conflict with char $ac_func (); below.
16656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657 <limits.h> exists even on freestanding compilers. */
16658
16659#ifdef __STDC__
16660# include <limits.h>
16661#else
16662# include <assert.h>
16663#endif
16664
16665#undef $ac_func
16666
16667/* Override any GCC internal prototype to avoid an error.
16668 Use char because int might match the return type of a GCC
16669 builtin and then its argument prototype would still apply. */
16670#ifdef __cplusplus
16671extern "C"
16672#endif
16673char $ac_func ();
16674/* The GNU C library defines this for functions which it implements
16675 to always fail with ENOSYS. Some functions are actually named
16676 something starting with __ and the normal name is an alias. */
16677#if defined __stub_$ac_func || defined __stub___$ac_func
16678choke me
16679#endif
16680
16681int
16682main ()
16683{
16684return $ac_func ();
16685 ;
16686 return 0;
16687}
16688_ACEOF
16689rm -f conftest.$ac_objext conftest$ac_exeext
16690if { (ac_try="$ac_link"
16691case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694esac
16695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_link") 2>conftest.er1
16697 ac_status=$?
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
16703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest$ac_exeext'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717esac
16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 eval "$as_ac_var=yes"
16724else
16725 echo "$as_me: failed program was:" >&5
16726sed 's/^/| /' conftest.$ac_ext >&5
16727
16728 eval "$as_ac_var=no"
16729fi
16730
16731rm -f core conftest.err conftest.$ac_objext \
16732 conftest$ac_exeext conftest.$ac_ext
16733fi
16734ac_res=`eval echo '${'$as_ac_var'}'`
16735 { echo "$as_me:$LINENO: result: $ac_res" >&5
16736echo "${ECHO_T}$ac_res" >&6; }
16737if test `eval echo '${'$as_ac_var'}'` = yes; then
16738 cat >>confdefs.h <<_ACEOF
16739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16740_ACEOF
16741
16742fi
16743done
16744
16745
16746
16747
16748
16749
16750for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16751do
16752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757else
16758 cat >conftest.$ac_ext <<_ACEOF
16759/* confdefs.h. */
16760_ACEOF
16761cat confdefs.h >>conftest.$ac_ext
16762cat >>conftest.$ac_ext <<_ACEOF
16763/* end confdefs.h. */
16764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16766#define $ac_func innocuous_$ac_func
16767
16768/* System header to define __stub macros and hopefully few prototypes,
16769 which can conflict with char $ac_func (); below.
16770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771 <limits.h> exists even on freestanding compilers. */
16772
16773#ifdef __STDC__
16774# include <limits.h>
16775#else
16776# include <assert.h>
16777#endif
16778
16779#undef $ac_func
16780
16781/* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784#ifdef __cplusplus
16785extern "C"
16786#endif
16787char $ac_func ();
16788/* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
16791#if defined __stub_$ac_func || defined __stub___$ac_func
16792choke me
16793#endif
16794
16795int
16796main ()
16797{
16798return $ac_func ();
16799 ;
16800 return 0;
16801}
16802_ACEOF
16803rm -f conftest.$ac_objext conftest$ac_exeext
16804if { (ac_try="$ac_link"
16805case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808esac
16809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818 { (case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821esac
16822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_try") 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest$ac_exeext'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831esac
16832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 eval "$as_ac_var=yes"
16838else
16839 echo "$as_me: failed program was:" >&5
16840sed 's/^/| /' conftest.$ac_ext >&5
16841
16842 eval "$as_ac_var=no"
16843fi
16844
16845rm -f core conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16847fi
16848ac_res=`eval echo '${'$as_ac_var'}'`
16849 { echo "$as_me:$LINENO: result: $ac_res" >&5
16850echo "${ECHO_T}$ac_res" >&6; }
16851if test `eval echo '${'$as_ac_var'}'` = yes; then
16852 cat >>confdefs.h <<_ACEOF
16853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16854_ACEOF
16855
16856fi
16857done
16858
16859
16860
16861
16862for ac_func in isatty mkdtemp mkstemp
16863do
16864as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16865{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16867if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16869else
16870 cat >conftest.$ac_ext <<_ACEOF
16871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
16876/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16878#define $ac_func innocuous_$ac_func
16879
16880/* System header to define __stub macros and hopefully few prototypes,
16881 which can conflict with char $ac_func (); below.
16882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16883 <limits.h> exists even on freestanding compilers. */
16884
16885#ifdef __STDC__
16886# include <limits.h>
16887#else
16888# include <assert.h>
16889#endif
16890
16891#undef $ac_func
16892
16893/* Override any GCC internal prototype to avoid an error.
16894 Use char because int might match the return type of a GCC
16895 builtin and then its argument prototype would still apply. */
16896#ifdef __cplusplus
16897extern "C"
16898#endif
16899char $ac_func ();
16900/* The GNU C library defines this for functions which it implements
16901 to always fail with ENOSYS. Some functions are actually named
16902 something starting with __ and the normal name is an alias. */
16903#if defined __stub_$ac_func || defined __stub___$ac_func
16904choke me
16905#endif
16906
16907int
16908main ()
16909{
16910return $ac_func ();
16911 ;
16912 return 0;
16913}
16914_ACEOF
16915rm -f conftest.$ac_objext conftest$ac_exeext
16916if { (ac_try="$ac_link"
16917case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920esac
16921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_link") 2>conftest.er1
16923 ac_status=$?
16924 grep -v '^ *+' conftest.er1 >conftest.err
16925 rm -f conftest.er1
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } &&
16929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16930 { (case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16933esac
16934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_try") 2>&5
16936 ac_status=$?
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; } &&
16939 { ac_try='test -s conftest$ac_exeext'
16940 { (case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16943esac
16944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_try") 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 eval "$as_ac_var=yes"
16950else
16951 echo "$as_me: failed program was:" >&5
16952sed 's/^/| /' conftest.$ac_ext >&5
16953
16954 eval "$as_ac_var=no"
16955fi
16956
16957rm -f core conftest.err conftest.$ac_objext \
16958 conftest$ac_exeext conftest.$ac_ext
16959fi
16960ac_res=`eval echo '${'$as_ac_var'}'`
16961 { echo "$as_me:$LINENO: result: $ac_res" >&5
16962echo "${ECHO_T}$ac_res" >&6; }
16963if test `eval echo '${'$as_ac_var'}'` = yes; then
16964 cat >>confdefs.h <<_ACEOF
16965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16966_ACEOF
16967
16968fi
16969done
16970
16971
16972
16973
16974
16975
16976
16977for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16978do
16979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16980{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16982if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984else
16985 cat >conftest.$ac_ext <<_ACEOF
16986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
16991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16993#define $ac_func innocuous_$ac_func
16994
16995/* System header to define __stub macros and hopefully few prototypes,
16996 which can conflict with char $ac_func (); below.
16997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16998 <limits.h> exists even on freestanding compilers. */
16999
17000#ifdef __STDC__
17001# include <limits.h>
17002#else
17003# include <assert.h>
17004#endif
17005
17006#undef $ac_func
17007
17008/* Override any GCC internal prototype to avoid an error.
17009 Use char because int might match the return type of a GCC
17010 builtin and then its argument prototype would still apply. */
17011#ifdef __cplusplus
17012extern "C"
17013#endif
17014char $ac_func ();
17015/* The GNU C library defines this for functions which it implements
17016 to always fail with ENOSYS. Some functions are actually named
17017 something starting with __ and the normal name is an alias. */
17018#if defined __stub_$ac_func || defined __stub___$ac_func
17019choke me
17020#endif
17021
17022int
17023main ()
17024{
17025return $ac_func ();
17026 ;
17027 return 0;
17028}
17029_ACEOF
17030rm -f conftest.$ac_objext conftest$ac_exeext
17031if { (ac_try="$ac_link"
17032case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035esac
17036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_link") 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045 { (case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17048esac
17049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_try") 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest$ac_exeext'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058esac
17059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 eval "$as_ac_var=yes"
17065else
17066 echo "$as_me: failed program was:" >&5
17067sed 's/^/| /' conftest.$ac_ext >&5
17068
17069 eval "$as_ac_var=no"
17070fi
17071
17072rm -f core conftest.err conftest.$ac_objext \
17073 conftest$ac_exeext conftest.$ac_ext
17074fi
17075ac_res=`eval echo '${'$as_ac_var'}'`
17076 { echo "$as_me:$LINENO: result: $ac_res" >&5
17077echo "${ECHO_T}$ac_res" >&6; }
17078if test `eval echo '${'$as_ac_var'}'` = yes; then
17079 cat >>confdefs.h <<_ACEOF
17080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17081_ACEOF
17082
17083fi
17084done
17085
17086
17087
17088
17089for ac_func in strerror strerror_r setenv
17090do
17091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17092{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17094if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
17097 cat >conftest.$ac_ext <<_ACEOF
17098/* confdefs.h. */
17099_ACEOF
17100cat confdefs.h >>conftest.$ac_ext
17101cat >>conftest.$ac_ext <<_ACEOF
17102/* end confdefs.h. */
17103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17105#define $ac_func innocuous_$ac_func
17106
17107/* System header to define __stub macros and hopefully few prototypes,
17108 which can conflict with char $ac_func (); below.
17109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110 <limits.h> exists even on freestanding compilers. */
17111
17112#ifdef __STDC__
17113# include <limits.h>
17114#else
17115# include <assert.h>
17116#endif
17117
17118#undef $ac_func
17119
17120/* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17123#ifdef __cplusplus
17124extern "C"
17125#endif
17126char $ac_func ();
17127/* The GNU C library defines this for functions which it implements
17128 to always fail with ENOSYS. Some functions are actually named
17129 something starting with __ and the normal name is an alias. */
17130#if defined __stub_$ac_func || defined __stub___$ac_func
17131choke me
17132#endif
17133
17134int
17135main ()
17136{
17137return $ac_func ();
17138 ;
17139 return 0;
17140}
17141_ACEOF
17142rm -f conftest.$ac_objext conftest$ac_exeext
17143if { (ac_try="$ac_link"
17144case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147esac
17148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_link") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160esac
17161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_try") 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170esac
17171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 eval "$as_ac_var=yes"
17177else
17178 echo "$as_me: failed program was:" >&5
17179sed 's/^/| /' conftest.$ac_ext >&5
17180
17181 eval "$as_ac_var=no"
17182fi
17183
17184rm -f core conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext conftest.$ac_ext
17186fi
17187ac_res=`eval echo '${'$as_ac_var'}'`
17188 { echo "$as_me:$LINENO: result: $ac_res" >&5
17189echo "${ECHO_T}$ac_res" >&6; }
17190if test `eval echo '${'$as_ac_var'}'` = yes; then
17191 cat >>confdefs.h <<_ACEOF
17192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17193_ACEOF
17194
17195fi
17196done
17197
17198
17199
17200
17201
17202for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17203do
17204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17205{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17207if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209else
17210 cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
17216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17218#define $ac_func innocuous_$ac_func
17219
17220/* System header to define __stub macros and hopefully few prototypes,
17221 which can conflict with char $ac_func (); below.
17222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17223 <limits.h> exists even on freestanding compilers. */
17224
17225#ifdef __STDC__
17226# include <limits.h>
17227#else
17228# include <assert.h>
17229#endif
17230
17231#undef $ac_func
17232
17233/* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17236#ifdef __cplusplus
17237extern "C"
17238#endif
17239char $ac_func ();
17240/* The GNU C library defines this for functions which it implements
17241 to always fail with ENOSYS. Some functions are actually named
17242 something starting with __ and the normal name is an alias. */
17243#if defined __stub_$ac_func || defined __stub___$ac_func
17244choke me
17245#endif
17246
17247int
17248main ()
17249{
17250return $ac_func ();
17251 ;
17252 return 0;
17253}
17254_ACEOF
17255rm -f conftest.$ac_objext conftest$ac_exeext
17256if { (ac_try="$ac_link"
17257case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17260esac
17261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_link") 2>conftest.er1
17263 ac_status=$?
17264 grep -v '^ *+' conftest.er1 >conftest.err
17265 rm -f conftest.er1
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273esac
17274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17283esac
17284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 eval "$as_ac_var=yes"
17290else
17291 echo "$as_me: failed program was:" >&5
17292sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 eval "$as_ac_var=no"
17295fi
17296
17297rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17299fi
17300ac_res=`eval echo '${'$as_ac_var'}'`
17301 { echo "$as_me:$LINENO: result: $ac_res" >&5
17302echo "${ECHO_T}$ac_res" >&6; }
17303if test `eval echo '${'$as_ac_var'}'` = yes; then
17304 cat >>confdefs.h <<_ACEOF
17305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17306_ACEOF
17307
17308fi
17309done
17310
17311
17312
17313
17314
17315
17316for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17317do
17318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17319{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17321if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17323else
17324 cat >conftest.$ac_ext <<_ACEOF
17325/* confdefs.h. */
17326_ACEOF
17327cat confdefs.h >>conftest.$ac_ext
17328cat >>conftest.$ac_ext <<_ACEOF
17329/* end confdefs.h. */
17330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17332#define $ac_func innocuous_$ac_func
17333
17334/* System header to define __stub macros and hopefully few prototypes,
17335 which can conflict with char $ac_func (); below.
17336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17337 <limits.h> exists even on freestanding compilers. */
17338
17339#ifdef __STDC__
17340# include <limits.h>
17341#else
17342# include <assert.h>
17343#endif
17344
17345#undef $ac_func
17346
17347/* Override any GCC internal prototype to avoid an error.
17348 Use char because int might match the return type of a GCC
17349 builtin and then its argument prototype would still apply. */
17350#ifdef __cplusplus
17351extern "C"
17352#endif
17353char $ac_func ();
17354/* The GNU C library defines this for functions which it implements
17355 to always fail with ENOSYS. Some functions are actually named
17356 something starting with __ and the normal name is an alias. */
17357#if defined __stub_$ac_func || defined __stub___$ac_func
17358choke me
17359#endif
17360
17361int
17362main ()
17363{
17364return $ac_func ();
17365 ;
17366 return 0;
17367}
17368_ACEOF
17369rm -f conftest.$ac_objext conftest$ac_exeext
17370if { (ac_try="$ac_link"
17371case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17374esac
17375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_link") 2>conftest.er1
17377 ac_status=$?
17378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17384 { (case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387esac
17388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_try") 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest$ac_exeext'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397esac
17398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; }; then
17403 eval "$as_ac_var=yes"
17404else
17405 echo "$as_me: failed program was:" >&5
17406sed 's/^/| /' conftest.$ac_ext >&5
17407
17408 eval "$as_ac_var=no"
17409fi
17410
17411rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413fi
17414ac_res=`eval echo '${'$as_ac_var'}'`
17415 { echo "$as_me:$LINENO: result: $ac_res" >&5
17416echo "${ECHO_T}$ac_res" >&6; }
17417if test `eval echo '${'$as_ac_var'}'` = yes; then
17418 cat >>confdefs.h <<_ACEOF
17419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17420_ACEOF
17421
17422fi
17423done
17424
17425{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17426echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17427if test "${llvm_cv_c_printf_a+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429else
17430 ac_ext=c
17431ac_cpp='$CPP $CPPFLAGS'
17432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17434ac_compiler_gnu=$ac_cv_c_compiler_gnu
17435
17436 if test "$cross_compiling" = yes; then
17437 llvmac_cv_c_printf_a=no
17438else
17439 cat >conftest.$ac_ext <<_ACEOF
17440
17441 /* confdefs.h. */
17442_ACEOF
17443cat confdefs.h >>conftest.$ac_ext
17444cat >>conftest.$ac_ext <<_ACEOF
17445/* end confdefs.h. */
17446
17447#include <stdio.h>
17448#include <stdlib.h>
17449
17450int
17451main ()
17452{
17453
17454volatile double A, B;
17455char Buffer[100];
17456A = 1;
17457A /= 10.0;
17458sprintf(Buffer, "%a", A);
17459B = atof(Buffer);
17460if (A != B)
17461 return (1);
17462if (A != 0x1.999999999999ap-4)
17463 return (1);
17464return (0);
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469rm -f conftest$ac_exeext
17470if { (ac_try="$ac_link"
17471case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474esac
17475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_link") 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17480 { (case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17483esac
17484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_try") 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 llvm_cv_c_printf_a=yes
17490else
17491 echo "$as_me: program exited with status $ac_status" >&5
17492echo "$as_me: failed program was:" >&5
17493sed 's/^/| /' conftest.$ac_ext >&5
17494
17495( exit $ac_status )
17496llvmac_cv_c_printf_a=no
17497fi
17498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17499fi
17500
17501
17502 ac_ext=c
17503ac_cpp='$CPP $CPPFLAGS'
17504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17506ac_compiler_gnu=$ac_cv_c_compiler_gnu
17507
17508fi
17509{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17510echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17511 if test "$llvm_cv_c_printf_a" = "yes"; then
17512
17513cat >>confdefs.h <<\_ACEOF
17514#define HAVE_PRINTF_A 1
17515_ACEOF
17516
17517 fi
17518
17519
17520{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17521echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17522if test "${ac_cv_func_rand48+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17524else
17525 ac_ext=cpp
17526ac_cpp='$CXXCPP $CPPFLAGS'
17527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17530
17531 cat >conftest.$ac_ext <<_ACEOF
17532/* confdefs.h. */
17533_ACEOF
17534cat confdefs.h >>conftest.$ac_ext
17535cat >>conftest.$ac_ext <<_ACEOF
17536/* end confdefs.h. */
17537#include <stdlib.h>
17538int
17539main ()
17540{
17541srand48(0);lrand48();drand48();
17542 ;
17543 return 0;
17544}
17545_ACEOF
17546rm -f conftest.$ac_objext
17547if { (ac_try="$ac_compile"
17548case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17551esac
17552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_compile") 2>conftest.er1
17554 ac_status=$?
17555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
17571 { (case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17574esac
17575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_try") 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_func_rand48=yes
17581else
17582 echo "$as_me: failed program was:" >&5
17583sed 's/^/| /' conftest.$ac_ext >&5
17584
17585 ac_cv_func_rand48=no
17586fi
17587
17588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 ac_ext=c
17590ac_cpp='$CPP $CPPFLAGS'
17591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593ac_compiler_gnu=$ac_cv_c_compiler_gnu
17594
17595fi
17596{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17597echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17598
17599if test "$ac_cv_func_rand48" = "yes" ; then
17600
17601cat >>confdefs.h <<\_ACEOF
17602#define HAVE_RAND48 1
17603_ACEOF
17604
17605fi
17606
17607
17608{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17609echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17610if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612else
17613 cat >conftest.$ac_ext <<_ACEOF
17614/* confdefs.h. */
17615_ACEOF
17616cat confdefs.h >>conftest.$ac_ext
17617cat >>conftest.$ac_ext <<_ACEOF
17618/* end confdefs.h. */
17619$ac_includes_default
17620int
17621main ()
17622{
17623#ifndef strerror_s
17624 char *p = (char *) strerror_s;
17625 return !p;
17626#endif
17627
17628 ;
17629 return 0;
17630}
17631_ACEOF
17632rm -f conftest.$ac_objext
17633if { (ac_try="$ac_compile"
17634case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637esac
17638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_compile") 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650esac
17651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_try") 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660esac
17661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_have_decl_strerror_s=yes
17667else
17668 echo "$as_me: failed program was:" >&5
17669sed 's/^/| /' conftest.$ac_ext >&5
17670
17671 ac_cv_have_decl_strerror_s=no
17672fi
17673
17674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675fi
17676{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17677echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17678if test $ac_cv_have_decl_strerror_s = yes; then
17679
17680cat >>confdefs.h <<_ACEOF
17681#define HAVE_DECL_STRERROR_S 1
17682_ACEOF
17683
17684
17685else
17686 cat >>confdefs.h <<_ACEOF
17687#define HAVE_DECL_STRERROR_S 0
17688_ACEOF
17689
17690
17691fi
17692
17693
17694
17695if test "$llvm_cv_os_type" = "MingW" ; then
17696 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17697echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17698if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17700else
17701 ac_check_lib_save_LIBS=$LIBS
17702LIBS="-lgcc $LIBS"
17703cat >conftest.$ac_ext <<_ACEOF
17704/* confdefs.h. */
17705_ACEOF
17706cat confdefs.h >>conftest.$ac_ext
17707cat >>conftest.$ac_ext <<_ACEOF
17708/* end confdefs.h. */
17709
17710/* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17713#ifdef __cplusplus
17714extern "C"
17715#endif
17716char _alloca ();
17717int
17718main ()
17719{
17720return _alloca ();
17721 ;
17722 return 0;
17723}
17724_ACEOF
17725rm -f conftest.$ac_objext conftest$ac_exeext
17726if { (ac_try="$ac_link"
17727case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730esac
17731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_link") 2>conftest.er1
17733 ac_status=$?
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17740 { (case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17743esac
17744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_try") 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
17750 { (case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17753esac
17754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_try") 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_cv_lib_gcc__alloca=yes
17760else
17761 echo "$as_me: failed program was:" >&5
17762sed 's/^/| /' conftest.$ac_ext >&5
17763
17764 ac_cv_lib_gcc__alloca=no
17765fi
17766
17767rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
17769LIBS=$ac_check_lib_save_LIBS
17770fi
17771{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17772echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17773if test $ac_cv_lib_gcc__alloca = yes; then
17774
17775cat >>confdefs.h <<\_ACEOF
17776#define HAVE__ALLOCA 1
17777_ACEOF
17778
17779fi
17780
17781 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17782echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17783if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17785else
17786 ac_check_lib_save_LIBS=$LIBS
17787LIBS="-lgcc $LIBS"
17788cat >conftest.$ac_ext <<_ACEOF
17789/* confdefs.h. */
17790_ACEOF
17791cat confdefs.h >>conftest.$ac_ext
17792cat >>conftest.$ac_ext <<_ACEOF
17793/* end confdefs.h. */
17794
17795/* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17798#ifdef __cplusplus
17799extern "C"
17800#endif
17801char __alloca ();
17802int
17803main ()
17804{
17805return __alloca ();
17806 ;
17807 return 0;
17808}
17809_ACEOF
17810rm -f conftest.$ac_objext conftest$ac_exeext
17811if { (ac_try="$ac_link"
17812case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815esac
17816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_link") 2>conftest.er1
17818 ac_status=$?
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828esac
17829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest$ac_exeext'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_lib_gcc___alloca=yes
17845else
17846 echo "$as_me: failed program was:" >&5
17847sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 ac_cv_lib_gcc___alloca=no
17850fi
17851
17852rm -f core conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17854LIBS=$ac_check_lib_save_LIBS
17855fi
17856{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17857echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17858if test $ac_cv_lib_gcc___alloca = yes; then
17859
17860cat >>confdefs.h <<\_ACEOF
17861#define HAVE___ALLOCA 1
17862_ACEOF
17863
17864fi
17865
17866 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17867echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17868if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17870else
17871 ac_check_lib_save_LIBS=$LIBS
17872LIBS="-lgcc $LIBS"
17873cat >conftest.$ac_ext <<_ACEOF
17874/* confdefs.h. */
17875_ACEOF
17876cat confdefs.h >>conftest.$ac_ext
17877cat >>conftest.$ac_ext <<_ACEOF
17878/* end confdefs.h. */
17879
17880/* Override any GCC internal prototype to avoid an error.
17881 Use char because int might match the return type of a GCC
17882 builtin and then its argument prototype would still apply. */
17883#ifdef __cplusplus
17884extern "C"
17885#endif
17886char __chkstk ();
17887int
17888main ()
17889{
17890return __chkstk ();
17891 ;
17892 return 0;
17893}
17894_ACEOF
17895rm -f conftest.$ac_objext conftest$ac_exeext
17896if { (ac_try="$ac_link"
17897case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17900esac
17901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_link") 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913esac
17914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest$ac_exeext'
17920 { (case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17923esac
17924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_try") 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_lib_gcc___chkstk=yes
17930else
17931 echo "$as_me: failed program was:" >&5
17932sed 's/^/| /' conftest.$ac_ext >&5
17933
17934 ac_cv_lib_gcc___chkstk=no
17935fi
17936
17937rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939LIBS=$ac_check_lib_save_LIBS
17940fi
17941{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17942echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17943if test $ac_cv_lib_gcc___chkstk = yes; then
17944
17945cat >>confdefs.h <<\_ACEOF
17946#define HAVE___CHKSTK 1
17947_ACEOF
17948
17949fi
17950
17951 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17952echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17953if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17955else
17956 ac_check_lib_save_LIBS=$LIBS
17957LIBS="-lgcc $LIBS"
17958cat >conftest.$ac_ext <<_ACEOF
17959/* confdefs.h. */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h. */
17964
17965/* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17968#ifdef __cplusplus
17969extern "C"
17970#endif
17971char ___chkstk ();
17972int
17973main ()
17974{
17975return ___chkstk ();
17976 ;
17977 return 0;
17978}
17979_ACEOF
17980rm -f conftest.$ac_objext conftest$ac_exeext
17981if { (ac_try="$ac_link"
17982case "(($ac_try" in
17983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984 *) ac_try_echo=$ac_try;;
17985esac
17986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987 (eval "$ac_link") 2>conftest.er1
17988 ac_status=$?
17989 grep -v '^ *+' conftest.er1 >conftest.err
17990 rm -f conftest.er1
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17995 { (case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17998esac
17999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_try") 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try='test -s conftest$ac_exeext'
18005 { (case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18008esac
18009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_try") 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_lib_gcc____chkstk=yes
18015else
18016 echo "$as_me: failed program was:" >&5
18017sed 's/^/| /' conftest.$ac_ext >&5
18018
18019 ac_cv_lib_gcc____chkstk=no
18020fi
18021
18022rm -f core conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18024LIBS=$ac_check_lib_save_LIBS
18025fi
18026{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18027echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18028if test $ac_cv_lib_gcc____chkstk = yes; then
18029
18030cat >>confdefs.h <<\_ACEOF
18031#define HAVE____CHKSTK 1
18032_ACEOF
18033
18034fi
18035
18036
18037 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18038echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18039if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041else
18042 ac_check_lib_save_LIBS=$LIBS
18043LIBS="-lgcc $LIBS"
18044cat >conftest.$ac_ext <<_ACEOF
18045/* confdefs.h. */
18046_ACEOF
18047cat confdefs.h >>conftest.$ac_ext
18048cat >>conftest.$ac_ext <<_ACEOF
18049/* end confdefs.h. */
18050
18051/* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
18054#ifdef __cplusplus
18055extern "C"
18056#endif
18057char __ashldi3 ();
18058int
18059main ()
18060{
18061return __ashldi3 ();
18062 ;
18063 return 0;
18064}
18065_ACEOF
18066rm -f conftest.$ac_objext conftest$ac_exeext
18067if { (ac_try="$ac_link"
18068case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18071esac
18072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073 (eval "$ac_link") 2>conftest.er1
18074 ac_status=$?
18075 grep -v '^ *+' conftest.er1 >conftest.err
18076 rm -f conftest.er1
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
18080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084esac
18085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
18091 { (case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094esac
18095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_try") 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_lib_gcc___ashldi3=yes
18101else
18102 echo "$as_me: failed program was:" >&5
18103sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ac_cv_lib_gcc___ashldi3=no
18106fi
18107
18108rm -f core conftest.err conftest.$ac_objext \
18109 conftest$ac_exeext conftest.$ac_ext
18110LIBS=$ac_check_lib_save_LIBS
18111fi
18112{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18113echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18114if test $ac_cv_lib_gcc___ashldi3 = yes; then
18115
18116cat >>confdefs.h <<\_ACEOF
18117#define HAVE___ASHLDI3 1
18118_ACEOF
18119
18120fi
18121
18122 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18123echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18124if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126else
18127 ac_check_lib_save_LIBS=$LIBS
18128LIBS="-lgcc $LIBS"
18129cat >conftest.$ac_ext <<_ACEOF
18130/* confdefs.h. */
18131_ACEOF
18132cat confdefs.h >>conftest.$ac_ext
18133cat >>conftest.$ac_ext <<_ACEOF
18134/* end confdefs.h. */
18135
18136/* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18139#ifdef __cplusplus
18140extern "C"
18141#endif
18142char __ashrdi3 ();
18143int
18144main ()
18145{
18146return __ashrdi3 ();
18147 ;
18148 return 0;
18149}
18150_ACEOF
18151rm -f conftest.$ac_objext conftest$ac_exeext
18152if { (ac_try="$ac_link"
18153case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18156esac
18157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179esac
18180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_cv_lib_gcc___ashrdi3=yes
18186else
18187 echo "$as_me: failed program was:" >&5
18188sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 ac_cv_lib_gcc___ashrdi3=no
18191fi
18192
18193rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195LIBS=$ac_check_lib_save_LIBS
18196fi
18197{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18198echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18199if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18200
18201cat >>confdefs.h <<\_ACEOF
18202#define HAVE___ASHRDI3 1
18203_ACEOF
18204
18205fi
18206
18207 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18208echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18209if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
18211else
18212 ac_check_lib_save_LIBS=$LIBS
18213LIBS="-lgcc $LIBS"
18214cat >conftest.$ac_ext <<_ACEOF
18215/* confdefs.h. */
18216_ACEOF
18217cat confdefs.h >>conftest.$ac_ext
18218cat >>conftest.$ac_ext <<_ACEOF
18219/* end confdefs.h. */
18220
18221/* Override any GCC internal prototype to avoid an error.
18222 Use char because int might match the return type of a GCC
18223 builtin and then its argument prototype would still apply. */
18224#ifdef __cplusplus
18225extern "C"
18226#endif
18227char __divdi3 ();
18228int
18229main ()
18230{
18231return __divdi3 ();
18232 ;
18233 return 0;
18234}
18235_ACEOF
18236rm -f conftest.$ac_objext conftest$ac_exeext
18237if { (ac_try="$ac_link"
18238case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18241esac
18242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_link") 2>conftest.er1
18244 ac_status=$?
18245 grep -v '^ *+' conftest.er1 >conftest.err
18246 rm -f conftest.er1
18247 cat conftest.err >&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } &&
18250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18251 { (case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18254esac
18255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_try") 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest$ac_exeext'
18261 { (case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264esac
18265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_try") 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 ac_cv_lib_gcc___divdi3=yes
18271else
18272 echo "$as_me: failed program was:" >&5
18273sed 's/^/| /' conftest.$ac_ext >&5
18274
18275 ac_cv_lib_gcc___divdi3=no
18276fi
18277
18278rm -f core conftest.err conftest.$ac_objext \
18279 conftest$ac_exeext conftest.$ac_ext
18280LIBS=$ac_check_lib_save_LIBS
18281fi
18282{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18283echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18284if test $ac_cv_lib_gcc___divdi3 = yes; then
18285
18286cat >>confdefs.h <<\_ACEOF
18287#define HAVE___DIVDI3 1
18288_ACEOF
18289
18290fi
18291
18292 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18293echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18294if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18296else
18297 ac_check_lib_save_LIBS=$LIBS
18298LIBS="-lgcc $LIBS"
18299cat >conftest.$ac_ext <<_ACEOF
18300/* confdefs.h. */
18301_ACEOF
18302cat confdefs.h >>conftest.$ac_ext
18303cat >>conftest.$ac_ext <<_ACEOF
18304/* end confdefs.h. */
18305
18306/* Override any GCC internal prototype to avoid an error.
18307 Use char because int might match the return type of a GCC
18308 builtin and then its argument prototype would still apply. */
18309#ifdef __cplusplus
18310extern "C"
18311#endif
18312char __fixdfdi ();
18313int
18314main ()
18315{
18316return __fixdfdi ();
18317 ;
18318 return 0;
18319}
18320_ACEOF
18321rm -f conftest.$ac_objext conftest$ac_exeext
18322if { (ac_try="$ac_link"
18323case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18326esac
18327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_link") 2>conftest.er1
18329 ac_status=$?
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339esac
18340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest$ac_exeext'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18349esac
18350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_lib_gcc___fixdfdi=yes
18356else
18357 echo "$as_me: failed program was:" >&5
18358sed 's/^/| /' conftest.$ac_ext >&5
18359
18360 ac_cv_lib_gcc___fixdfdi=no
18361fi
18362
18363rm -f core conftest.err conftest.$ac_objext \
18364 conftest$ac_exeext conftest.$ac_ext
18365LIBS=$ac_check_lib_save_LIBS
18366fi
18367{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18368echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18369if test $ac_cv_lib_gcc___fixdfdi = yes; then
18370
18371cat >>confdefs.h <<\_ACEOF
18372#define HAVE___FIXDFDI 1
18373_ACEOF
18374
18375fi
18376
18377 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18378echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18379if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381else
18382 ac_check_lib_save_LIBS=$LIBS
18383LIBS="-lgcc $LIBS"
18384cat >conftest.$ac_ext <<_ACEOF
18385/* confdefs.h. */
18386_ACEOF
18387cat confdefs.h >>conftest.$ac_ext
18388cat >>conftest.$ac_ext <<_ACEOF
18389/* end confdefs.h. */
18390
18391/* Override any GCC internal prototype to avoid an error.
18392 Use char because int might match the return type of a GCC
18393 builtin and then its argument prototype would still apply. */
18394#ifdef __cplusplus
18395extern "C"
18396#endif
18397char __fixsfdi ();
18398int
18399main ()
18400{
18401return __fixsfdi ();
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406rm -f conftest.$ac_objext conftest$ac_exeext
18407if { (ac_try="$ac_link"
18408case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18411esac
18412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
18414 ac_status=$?
18415 grep -v '^ *+' conftest.er1 >conftest.err
18416 rm -f conftest.er1
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest$ac_exeext'
18431 { (case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18434esac
18435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_try") 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 ac_cv_lib_gcc___fixsfdi=yes
18441else
18442 echo "$as_me: failed program was:" >&5
18443sed 's/^/| /' conftest.$ac_ext >&5
18444
18445 ac_cv_lib_gcc___fixsfdi=no
18446fi
18447
18448rm -f core conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18450LIBS=$ac_check_lib_save_LIBS
18451fi
18452{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18453echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18454if test $ac_cv_lib_gcc___fixsfdi = yes; then
18455
18456cat >>confdefs.h <<\_ACEOF
18457#define HAVE___FIXSFDI 1
18458_ACEOF
18459
18460fi
18461
18462 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18463echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18464if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18466else
18467 ac_check_lib_save_LIBS=$LIBS
18468LIBS="-lgcc $LIBS"
18469cat >conftest.$ac_ext <<_ACEOF
18470/* confdefs.h. */
18471_ACEOF
18472cat confdefs.h >>conftest.$ac_ext
18473cat >>conftest.$ac_ext <<_ACEOF
18474/* end confdefs.h. */
18475
18476/* Override any GCC internal prototype to avoid an error.
18477 Use char because int might match the return type of a GCC
18478 builtin and then its argument prototype would still apply. */
18479#ifdef __cplusplus
18480extern "C"
18481#endif
18482char __floatdidf ();
18483int
18484main ()
18485{
18486return __floatdidf ();
18487 ;
18488 return 0;
18489}
18490_ACEOF
18491rm -f conftest.$ac_objext conftest$ac_exeext
18492if { (ac_try="$ac_link"
18493case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18496esac
18497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_link") 2>conftest.er1
18499 ac_status=$?
18500 grep -v '^ *+' conftest.er1 >conftest.err
18501 rm -f conftest.er1
18502 cat conftest.err >&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } &&
18505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18506 { (case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18509esac
18510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_try") 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; } &&
18515 { ac_try='test -s conftest$ac_exeext'
18516 { (case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18519esac
18520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_try") 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 ac_cv_lib_gcc___floatdidf=yes
18526else
18527 echo "$as_me: failed program was:" >&5
18528sed 's/^/| /' conftest.$ac_ext >&5
18529
18530 ac_cv_lib_gcc___floatdidf=no
18531fi
18532
18533rm -f core conftest.err conftest.$ac_objext \
18534 conftest$ac_exeext conftest.$ac_ext
18535LIBS=$ac_check_lib_save_LIBS
18536fi
18537{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18538echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18539if test $ac_cv_lib_gcc___floatdidf = yes; then
18540
18541cat >>confdefs.h <<\_ACEOF
18542#define HAVE___FLOATDIDF 1
18543_ACEOF
18544
18545fi
18546
18547 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18548echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18549if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551else
18552 ac_check_lib_save_LIBS=$LIBS
18553LIBS="-lgcc $LIBS"
18554cat >conftest.$ac_ext <<_ACEOF
18555/* confdefs.h. */
18556_ACEOF
18557cat confdefs.h >>conftest.$ac_ext
18558cat >>conftest.$ac_ext <<_ACEOF
18559/* end confdefs.h. */
18560
18561/* Override any GCC internal prototype to avoid an error.
18562 Use char because int might match the return type of a GCC
18563 builtin and then its argument prototype would still apply. */
18564#ifdef __cplusplus
18565extern "C"
18566#endif
18567char __lshrdi3 ();
18568int
18569main ()
18570{
18571return __lshrdi3 ();
18572 ;
18573 return 0;
18574}
18575_ACEOF
18576rm -f conftest.$ac_objext conftest$ac_exeext
18577if { (ac_try="$ac_link"
18578case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18581esac
18582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_link") 2>conftest.er1
18584 ac_status=$?
18585 grep -v '^ *+' conftest.er1 >conftest.err
18586 rm -f conftest.er1
18587 cat conftest.err >&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } &&
18590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18591 { (case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18594esac
18595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_try") 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; } &&
18600 { ac_try='test -s conftest$ac_exeext'
18601 { (case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604esac
18605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_try") 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18610 ac_cv_lib_gcc___lshrdi3=yes
18611else
18612 echo "$as_me: failed program was:" >&5
18613sed 's/^/| /' conftest.$ac_ext >&5
18614
18615 ac_cv_lib_gcc___lshrdi3=no
18616fi
18617
18618rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18620LIBS=$ac_check_lib_save_LIBS
18621fi
18622{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18623echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18624if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18625
18626cat >>confdefs.h <<\_ACEOF
18627#define HAVE___LSHRDI3 1
18628_ACEOF
18629
18630fi
18631
18632 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18633echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18634if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18636else
18637 ac_check_lib_save_LIBS=$LIBS
18638LIBS="-lgcc $LIBS"
18639cat >conftest.$ac_ext <<_ACEOF
18640/* confdefs.h. */
18641_ACEOF
18642cat confdefs.h >>conftest.$ac_ext
18643cat >>conftest.$ac_ext <<_ACEOF
18644/* end confdefs.h. */
18645
18646/* Override any GCC internal prototype to avoid an error.
18647 Use char because int might match the return type of a GCC
18648 builtin and then its argument prototype would still apply. */
18649#ifdef __cplusplus
18650extern "C"
18651#endif
18652char __moddi3 ();
18653int
18654main ()
18655{
18656return __moddi3 ();
18657 ;
18658 return 0;
18659}
18660_ACEOF
18661rm -f conftest.$ac_objext conftest$ac_exeext
18662if { (ac_try="$ac_link"
18663case "(($ac_try" in
18664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665 *) ac_try_echo=$ac_try;;
18666esac
18667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668 (eval "$ac_link") 2>conftest.er1
18669 ac_status=$?
18670 grep -v '^ *+' conftest.er1 >conftest.err
18671 rm -f conftest.er1
18672 cat conftest.err >&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } &&
18675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18676 { (case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18679esac
18680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_try") 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try='test -s conftest$ac_exeext'
18686 { (case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18689esac
18690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_try") 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18695 ac_cv_lib_gcc___moddi3=yes
18696else
18697 echo "$as_me: failed program was:" >&5
18698sed 's/^/| /' conftest.$ac_ext >&5
18699
18700 ac_cv_lib_gcc___moddi3=no
18701fi
18702
18703rm -f core conftest.err conftest.$ac_objext \
18704 conftest$ac_exeext conftest.$ac_ext
18705LIBS=$ac_check_lib_save_LIBS
18706fi
18707{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18708echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18709if test $ac_cv_lib_gcc___moddi3 = yes; then
18710
18711cat >>confdefs.h <<\_ACEOF
18712#define HAVE___MODDI3 1
18713_ACEOF
18714
18715fi
18716
18717 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18718echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18719if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18721else
18722 ac_check_lib_save_LIBS=$LIBS
18723LIBS="-lgcc $LIBS"
18724cat >conftest.$ac_ext <<_ACEOF
18725/* confdefs.h. */
18726_ACEOF
18727cat confdefs.h >>conftest.$ac_ext
18728cat >>conftest.$ac_ext <<_ACEOF
18729/* end confdefs.h. */
18730
18731/* Override any GCC internal prototype to avoid an error.
18732 Use char because int might match the return type of a GCC
18733 builtin and then its argument prototype would still apply. */
18734#ifdef __cplusplus
18735extern "C"
18736#endif
18737char __udivdi3 ();
18738int
18739main ()
18740{
18741return __udivdi3 ();
18742 ;
18743 return 0;
18744}
18745_ACEOF
18746rm -f conftest.$ac_objext conftest$ac_exeext
18747if { (ac_try="$ac_link"
18748case "(($ac_try" in
18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750 *) ac_try_echo=$ac_try;;
18751esac
18752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753 (eval "$ac_link") 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18761 { (case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764esac
18765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_try") 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest$ac_exeext'
18771 { (case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18774esac
18775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_try") 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; }; then
18780 ac_cv_lib_gcc___udivdi3=yes
18781else
18782 echo "$as_me: failed program was:" >&5
18783sed 's/^/| /' conftest.$ac_ext >&5
18784
18785 ac_cv_lib_gcc___udivdi3=no
18786fi
18787
18788rm -f core conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790LIBS=$ac_check_lib_save_LIBS
18791fi
18792{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18793echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18794if test $ac_cv_lib_gcc___udivdi3 = yes; then
18795
18796cat >>confdefs.h <<\_ACEOF
18797#define HAVE___UDIVDI3 1
18798_ACEOF
18799
18800fi
18801
18802 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18803echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18804if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806else
18807 ac_check_lib_save_LIBS=$LIBS
18808LIBS="-lgcc $LIBS"
18809cat >conftest.$ac_ext <<_ACEOF
18810/* confdefs.h. */
18811_ACEOF
18812cat confdefs.h >>conftest.$ac_ext
18813cat >>conftest.$ac_ext <<_ACEOF
18814/* end confdefs.h. */
18815
18816/* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18819#ifdef __cplusplus
18820extern "C"
18821#endif
18822char __umoddi3 ();
18823int
18824main ()
18825{
18826return __umoddi3 ();
18827 ;
18828 return 0;
18829}
18830_ACEOF
18831rm -f conftest.$ac_objext conftest$ac_exeext
18832if { (ac_try="$ac_link"
18833case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18836esac
18837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_link") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
18845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18846 { (case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18849esac
18850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_try") 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; } &&
18855 { ac_try='test -s conftest$ac_exeext'
18856 { (case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859esac
18860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_try") 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_cv_lib_gcc___umoddi3=yes
18866else
18867 echo "$as_me: failed program was:" >&5
18868sed 's/^/| /' conftest.$ac_ext >&5
18869
18870 ac_cv_lib_gcc___umoddi3=no
18871fi
18872
18873rm -f core conftest.err conftest.$ac_objext \
18874 conftest$ac_exeext conftest.$ac_ext
18875LIBS=$ac_check_lib_save_LIBS
18876fi
18877{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18878echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18879if test $ac_cv_lib_gcc___umoddi3 = yes; then
18880
18881cat >>confdefs.h <<\_ACEOF
18882#define HAVE___UMODDI3 1
18883_ACEOF
18884
18885fi
18886
18887
18888 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18889echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18890if test "${ac_cv_lib_gcc___main+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892else
18893 ac_check_lib_save_LIBS=$LIBS
18894LIBS="-lgcc $LIBS"
18895cat >conftest.$ac_ext <<_ACEOF
18896/* confdefs.h. */
18897_ACEOF
18898cat confdefs.h >>conftest.$ac_ext
18899cat >>conftest.$ac_ext <<_ACEOF
18900/* end confdefs.h. */
18901
18902/* Override any GCC internal prototype to avoid an error.
18903 Use char because int might match the return type of a GCC
18904 builtin and then its argument prototype would still apply. */
18905#ifdef __cplusplus
18906extern "C"
18907#endif
18908char __main ();
18909int
18910main ()
18911{
18912return __main ();
18913 ;
18914 return 0;
18915}
18916_ACEOF
18917rm -f conftest.$ac_objext conftest$ac_exeext
18918if { (ac_try="$ac_link"
18919case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18922esac
18923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_link") 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18935esac
18936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_try") 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest$ac_exeext'
18942 { (case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945esac
18946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_try") 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; }; then
18951 ac_cv_lib_gcc___main=yes
18952else
18953 echo "$as_me: failed program was:" >&5
18954sed 's/^/| /' conftest.$ac_ext >&5
18955
18956 ac_cv_lib_gcc___main=no
18957fi
18958
18959rm -f core conftest.err conftest.$ac_objext \
18960 conftest$ac_exeext conftest.$ac_ext
18961LIBS=$ac_check_lib_save_LIBS
18962fi
18963{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18964echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18965if test $ac_cv_lib_gcc___main = yes; then
18966
18967cat >>confdefs.h <<\_ACEOF
18968#define HAVE___MAIN 1
18969_ACEOF
18970
18971fi
18972
18973 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18974echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18975if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977else
18978 ac_check_lib_save_LIBS=$LIBS
18979LIBS="-lgcc $LIBS"
18980cat >conftest.$ac_ext <<_ACEOF
18981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
18986
18987/* Override any GCC internal prototype to avoid an error.
18988 Use char because int might match the return type of a GCC
18989 builtin and then its argument prototype would still apply. */
18990#ifdef __cplusplus
18991extern "C"
18992#endif
18993char __cmpdi2 ();
18994int
18995main ()
18996{
18997return __cmpdi2 ();
18998 ;
18999 return 0;
19000}
19001_ACEOF
19002rm -f conftest.$ac_objext conftest$ac_exeext
19003if { (ac_try="$ac_link"
19004case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007esac
19008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19010 ac_status=$?
19011 grep -v '^ *+' conftest.er1 >conftest.err
19012 rm -f conftest.er1
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } &&
19016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19017 { (case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19020esac
19021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_try") 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; } &&
19026 { ac_try='test -s conftest$ac_exeext'
19027 { (case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19030esac
19031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_try") 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19036 ac_cv_lib_gcc___cmpdi2=yes
19037else
19038 echo "$as_me: failed program was:" >&5
19039sed 's/^/| /' conftest.$ac_ext >&5
19040
19041 ac_cv_lib_gcc___cmpdi2=no
19042fi
19043
19044rm -f core conftest.err conftest.$ac_objext \
19045 conftest$ac_exeext conftest.$ac_ext
19046LIBS=$ac_check_lib_save_LIBS
19047fi
19048{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19049echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19050if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19051
19052cat >>confdefs.h <<\_ACEOF
19053#define HAVE___CMPDI2 1
19054_ACEOF
19055
19056fi
19057
19058fi
19059
19060if test "$llvm_cv_os_type" = "MingW" ; then
19061 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19062echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19063 cat >conftest.$ac_ext <<_ACEOF
19064#include <windows.h>
19065#include <imagehlp.h>
19066extern void foo(PENUMLOADED_MODULES_CALLBACK);
19067extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19068_ACEOF
19069rm -f conftest.$ac_objext
19070if { (ac_try="$ac_compile"
19071case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19074esac
19075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_compile") 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } &&
19083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19084 { (case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087esac
19088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_try") 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest.$ac_objext'
19094 { (case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19097esac
19098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_try") 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19103
19104 { echo "$as_me:$LINENO: result: yes" >&5
19105echo "${ECHO_T}yes" >&6; }
19106 llvm_cv_win32_elmcb_pcstr="PCSTR"
19107
19108else
19109 echo "$as_me: failed program was:" >&5
19110sed 's/^/| /' conftest.$ac_ext >&5
19111
19112
19113 { echo "$as_me:$LINENO: result: no" >&5
19114echo "${ECHO_T}no" >&6; }
19115 llvm_cv_win32_elmcb_pcstr="PSTR"
19116
19117fi
19118
19119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19120
19121cat >>confdefs.h <<_ACEOF
19122#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19123_ACEOF
19124
19125fi
19126
19127
19128{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19129echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19130if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19132else
19133 ac_ext=cpp
19134ac_cpp='$CXXCPP $CPPFLAGS'
19135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19138
19139 cat >conftest.$ac_ext <<_ACEOF
19140/* confdefs.h. */
19141_ACEOF
19142cat confdefs.h >>conftest.$ac_ext
19143cat >>conftest.$ac_ext <<_ACEOF
19144/* end confdefs.h. */
19145#include <math.h>
19146int
19147main ()
19148{
19149float f; isnan(f);
19150 ;
19151 return 0;
19152}
19153_ACEOF
19154rm -f conftest.$ac_objext
19155if { (ac_try="$ac_compile"
19156case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19159esac
19160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_compile") 2>conftest.er1
19162 ac_status=$?
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19169 { (case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172esac
19173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_try") 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; } &&
19178 { ac_try='test -s conftest.$ac_objext'
19179 { (case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182esac
19183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_try") 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 ac_cv_func_isnan_in_math_h=yes
19189else
19190 echo "$as_me: failed program was:" >&5
19191sed 's/^/| /' conftest.$ac_ext >&5
19192
19193 ac_cv_func_isnan_in_math_h=no
19194fi
19195
19196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19197 ac_ext=c
19198ac_cpp='$CPP $CPPFLAGS'
19199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19201ac_compiler_gnu=$ac_cv_c_compiler_gnu
19202
19203fi
19204{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19205echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19206
19207
19208if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19209
19210cat >>confdefs.h <<\_ACEOF
19211#define HAVE_ISNAN_IN_MATH_H 1
19212_ACEOF
19213
19214fi
19215
19216{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19217echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19218if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19220else
19221 ac_ext=cpp
19222ac_cpp='$CXXCPP $CPPFLAGS'
19223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19226
19227 cat >conftest.$ac_ext <<_ACEOF
19228/* confdefs.h. */
19229_ACEOF
19230cat confdefs.h >>conftest.$ac_ext
19231cat >>conftest.$ac_ext <<_ACEOF
19232/* end confdefs.h. */
19233#include <cmath>
19234int
19235main ()
19236{
19237float f; isnan(f);
19238 ;
19239 return 0;
19240}
19241_ACEOF
19242rm -f conftest.$ac_objext
19243if { (ac_try="$ac_compile"
19244case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19247esac
19248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_compile") 2>conftest.er1
19250 ac_status=$?
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19257 { (case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260esac
19261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_try") 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
19266 { ac_try='test -s conftest.$ac_objext'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270esac
19271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 ac_cv_func_isnan_in_cmath=yes
19277else
19278 echo "$as_me: failed program was:" >&5
19279sed 's/^/| /' conftest.$ac_ext >&5
19280
19281 ac_cv_func_isnan_in_cmath=no
19282fi
19283
19284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285 ac_ext=c
19286ac_cpp='$CPP $CPPFLAGS'
19287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19289ac_compiler_gnu=$ac_cv_c_compiler_gnu
19290
19291fi
19292{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19293echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19294
19295if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19296
19297cat >>confdefs.h <<\_ACEOF
19298#define HAVE_ISNAN_IN_CMATH 1
19299_ACEOF
19300
19301fi
19302
19303{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19304echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19305if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19307else
19308 ac_ext=cpp
19309ac_cpp='$CXXCPP $CPPFLAGS'
19310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19313
19314 cat >conftest.$ac_ext <<_ACEOF
19315/* confdefs.h. */
19316_ACEOF
19317cat confdefs.h >>conftest.$ac_ext
19318cat >>conftest.$ac_ext <<_ACEOF
19319/* end confdefs.h. */
19320#include <cmath>
19321int
19322main ()
19323{
19324float f; std::isnan(f);
19325 ;
19326 return 0;
19327}
19328_ACEOF
19329rm -f conftest.$ac_objext
19330if { (ac_try="$ac_compile"
19331case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19334esac
19335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_compile") 2>conftest.er1
19337 ac_status=$?
19338 grep -v '^ *+' conftest.er1 >conftest.err
19339 rm -f conftest.er1
19340 cat conftest.err >&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } &&
19343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19344 { (case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19347esac
19348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_try") 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; } &&
19353 { ac_try='test -s conftest.$ac_objext'
19354 { (case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19357esac
19358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_try") 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; }; then
19363 ac_cv_func_std_isnan_in_cmath=yes
19364else
19365 echo "$as_me: failed program was:" >&5
19366sed 's/^/| /' conftest.$ac_ext >&5
19367
19368 ac_cv_func_std_isnan_in_cmath=no
19369fi
19370
19371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19372 ac_ext=c
19373ac_cpp='$CPP $CPPFLAGS'
19374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19376ac_compiler_gnu=$ac_cv_c_compiler_gnu
19377
19378fi
19379{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19380echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19381
19382if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19383
19384cat >>confdefs.h <<\_ACEOF
19385#define HAVE_STD_ISNAN_IN_CMATH 1
19386_ACEOF
19387
19388fi
19389
19390
19391{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19392echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19393if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19395else
19396 ac_ext=cpp
19397ac_cpp='$CXXCPP $CPPFLAGS'
19398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19401
19402 cat >conftest.$ac_ext <<_ACEOF
19403/* confdefs.h. */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h. */
19408#include <math.h>
19409int
19410main ()
19411{
19412float f; isinf(f);
19413 ;
19414 return 0;
19415}
19416_ACEOF
19417rm -f conftest.$ac_objext
19418if { (ac_try="$ac_compile"
19419case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19422esac
19423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_compile") 2>conftest.er1
19425 ac_status=$?
19426 grep -v '^ *+' conftest.er1 >conftest.err
19427 rm -f conftest.er1
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435esac
19436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest.$ac_objext'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445esac
19446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 ac_cv_func_isinf_in_math_h=yes
19452else
19453 echo "$as_me: failed program was:" >&5
19454sed 's/^/| /' conftest.$ac_ext >&5
19455
19456 ac_cv_func_isinf_in_math_h=no
19457fi
19458
19459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19460 ac_ext=c
19461ac_cpp='$CPP $CPPFLAGS'
19462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464ac_compiler_gnu=$ac_cv_c_compiler_gnu
19465
19466fi
19467{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19468echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19469
19470if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19471
19472cat >>confdefs.h <<\_ACEOF
19473#define HAVE_ISINF_IN_MATH_H 1
19474_ACEOF
19475
19476fi
19477
19478{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19479echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19480if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19482else
19483 ac_ext=cpp
19484ac_cpp='$CXXCPP $CPPFLAGS'
19485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19488
19489 cat >conftest.$ac_ext <<_ACEOF
19490/* confdefs.h. */
19491_ACEOF
19492cat confdefs.h >>conftest.$ac_ext
19493cat >>conftest.$ac_ext <<_ACEOF
19494/* end confdefs.h. */
19495#include <cmath>
19496int
19497main ()
19498{
19499float f; isinf(f);
19500 ;
19501 return 0;
19502}
19503_ACEOF
19504rm -f conftest.$ac_objext
19505if { (ac_try="$ac_compile"
19506case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_compile") 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522esac
19523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532esac
19533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_cv_func_isinf_in_cmath=yes
19539else
19540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543 ac_cv_func_isinf_in_cmath=no
19544fi
19545
19546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19547 ac_ext=c
19548ac_cpp='$CPP $CPPFLAGS'
19549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552
19553fi
19554{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19555echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19556
19557if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19558
19559cat >>confdefs.h <<\_ACEOF
19560#define HAVE_ISINF_IN_CMATH 1
19561_ACEOF
19562
19563fi
19564
19565{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19566echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19567if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19569else
19570 ac_ext=cpp
19571ac_cpp='$CXXCPP $CPPFLAGS'
19572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19575
19576 cat >conftest.$ac_ext <<_ACEOF
19577/* confdefs.h. */
19578_ACEOF
19579cat confdefs.h >>conftest.$ac_ext
19580cat >>conftest.$ac_ext <<_ACEOF
19581/* end confdefs.h. */
19582#include <cmath>
19583int
19584main ()
19585{
19586float f; std::isinf(f)}
19587 ;
19588 return 0;
19589}
19590_ACEOF
19591rm -f conftest.$ac_objext
19592if { (ac_try="$ac_compile"
19593case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596esac
19597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_compile") 2>conftest.er1
19599 ac_status=$?
19600 grep -v '^ *+' conftest.er1 >conftest.err
19601 rm -f conftest.er1
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19606 { (case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19609esac
19610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_try") 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_func_std_isinf_in_cmath=yes
19626else
19627 echo "$as_me: failed program was:" >&5
19628sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 ac_cv_func_std_isinf_in_cmath=no
19631fi
19632
19633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634 ac_ext=c
19635ac_cpp='$CPP $CPPFLAGS'
19636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638ac_compiler_gnu=$ac_cv_c_compiler_gnu
19639
19640fi
19641{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19642echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19643
19644if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19645
19646cat >>confdefs.h <<\_ACEOF
19647#define HAVE_STD_ISINF_IN_CMATH 1
19648_ACEOF
19649
19650fi
19651
19652{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19653echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19654if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656else
19657 ac_ext=cpp
19658ac_cpp='$CXXCPP $CPPFLAGS'
19659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19662
19663 cat >conftest.$ac_ext <<_ACEOF
19664/* confdefs.h. */
19665_ACEOF
19666cat confdefs.h >>conftest.$ac_ext
19667cat >>conftest.$ac_ext <<_ACEOF
19668/* end confdefs.h. */
19669#include <ieeefp.h>
19670int
19671main ()
19672{
19673float f; finite(f);
19674 ;
19675 return 0;
19676}
19677_ACEOF
19678rm -f conftest.$ac_objext
19679if { (ac_try="$ac_compile"
19680case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683esac
19684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_compile") 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19693 { (case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19696esac
19697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_try") 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; } &&
19702 { ac_try='test -s conftest.$ac_objext'
19703 { (case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19706esac
19707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_try") 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_cv_func_finite_in_ieeefp_h=yes
19713else
19714 echo "$as_me: failed program was:" >&5
19715sed 's/^/| /' conftest.$ac_ext >&5
19716
19717 ac_cv_func_finite_in_ieeefp_h=no
19718fi
19719
19720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 ac_ext=c
19722ac_cpp='$CPP $CPPFLAGS'
19723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19725ac_compiler_gnu=$ac_cv_c_compiler_gnu
19726
19727fi
19728{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19729echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19730
19731if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19732
19733cat >>confdefs.h <<\_ACEOF
19734#define HAVE_FINITE_IN_IEEEFP_H 1
19735_ACEOF
19736
19737fi
19738
19739
19740
19741if test "$llvm_cv_platform_type" = "Unix" ; then
19742
19743
19744for ac_header in stdlib.h unistd.h
19745do
19746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752fi
19753ac_res=`eval echo '${'$as_ac_Header'}'`
19754 { echo "$as_me:$LINENO: result: $ac_res" >&5
19755echo "${ECHO_T}$ac_res" >&6; }
19756else
19757 # Is the header compilable?
19758{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19759echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19760cat >conftest.$ac_ext <<_ACEOF
19761/* confdefs.h. */
19762_ACEOF
19763cat confdefs.h >>conftest.$ac_ext
19764cat >>conftest.$ac_ext <<_ACEOF
19765/* end confdefs.h. */
19766$ac_includes_default
19767#include <$ac_header>
19768_ACEOF
19769rm -f conftest.$ac_objext
19770if { (ac_try="$ac_compile"
19771case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774esac
19775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_compile") 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } &&
19783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19784 { (case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19787esac
19788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_try") 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
19794 { (case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19797esac
19798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_try") 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 ac_header_compiler=yes
19804else
19805 echo "$as_me: failed program was:" >&5
19806sed 's/^/| /' conftest.$ac_ext >&5
19807
19808 ac_header_compiler=no
19809fi
19810
19811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19813echo "${ECHO_T}$ac_header_compiler" >&6; }
19814
19815# Is the header present?
19816{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19818cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
19824#include <$ac_header>
19825_ACEOF
19826if { (ac_try="$ac_cpp conftest.$ac_ext"
19827case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830esac
19831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } >/dev/null; then
19839 if test -s conftest.err; then
19840 ac_cpp_err=$ac_c_preproc_warn_flag
19841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19842 else
19843 ac_cpp_err=
19844 fi
19845else
19846 ac_cpp_err=yes
19847fi
19848if test -z "$ac_cpp_err"; then
19849 ac_header_preproc=yes
19850else
19851 echo "$as_me: failed program was:" >&5
19852sed 's/^/| /' conftest.$ac_ext >&5
19853
19854 ac_header_preproc=no
19855fi
19856
19857rm -f conftest.err conftest.$ac_ext
19858{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19859echo "${ECHO_T}$ac_header_preproc" >&6; }
19860
19861# So? What about this header?
19862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19863 yes:no: )
19864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19868 ac_header_preproc=yes
19869 ;;
19870 no:yes:* )
19871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19883 ( cat <<\_ASBOX
19884## ------------------------------ ##
19885## Report this to bugs@yourdomain ##
19886## ------------------------------ ##
19887_ASBOX
19888 ) | sed "s/^/$as_me: WARNING: /" >&2
19889 ;;
19890esac
19891{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895else
19896 eval "$as_ac_Header=\$ac_header_preproc"
19897fi
19898ac_res=`eval echo '${'$as_ac_Header'}'`
19899 { echo "$as_me:$LINENO: result: $ac_res" >&5
19900echo "${ECHO_T}$ac_res" >&6; }
19901
19902fi
19903if test `eval echo '${'$as_ac_Header'}'` = yes; then
19904 cat >>confdefs.h <<_ACEOF
19905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19906_ACEOF
19907
19908fi
19909
19910done
19911
19912
19913for ac_func in getpagesize
19914do
19915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19920else
19921 cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
19926/* end confdefs.h. */
19927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19929#define $ac_func innocuous_$ac_func
19930
19931/* System header to define __stub macros and hopefully few prototypes,
19932 which can conflict with char $ac_func (); below.
19933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19934 <limits.h> exists even on freestanding compilers. */
19935
19936#ifdef __STDC__
19937# include <limits.h>
19938#else
19939# include <assert.h>
19940#endif
19941
19942#undef $ac_func
19943
19944/* Override any GCC internal prototype to avoid an error.
19945 Use char because int might match the return type of a GCC
19946 builtin and then its argument prototype would still apply. */
19947#ifdef __cplusplus
19948extern "C"
19949#endif
19950char $ac_func ();
19951/* The GNU C library defines this for functions which it implements
19952 to always fail with ENOSYS. Some functions are actually named
19953 something starting with __ and the normal name is an alias. */
19954#if defined __stub_$ac_func || defined __stub___$ac_func
19955choke me
19956#endif
19957
19958int
19959main ()
19960{
19961return $ac_func ();
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966rm -f conftest.$ac_objext conftest$ac_exeext
19967if { (ac_try="$ac_link"
19968case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19971esac
19972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_link") 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19984esac
19985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest$ac_exeext'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19994esac
19995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 eval "$as_ac_var=yes"
20001else
20002 echo "$as_me: failed program was:" >&5
20003sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 eval "$as_ac_var=no"
20006fi
20007
20008rm -f core conftest.err conftest.$ac_objext \
20009 conftest$ac_exeext conftest.$ac_ext
20010fi
20011ac_res=`eval echo '${'$as_ac_var'}'`
20012 { echo "$as_me:$LINENO: result: $ac_res" >&5
20013echo "${ECHO_T}$ac_res" >&6; }
20014if test `eval echo '${'$as_ac_var'}'` = yes; then
20015 cat >>confdefs.h <<_ACEOF
20016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20017_ACEOF
20018
20019fi
20020done
20021
20022{ echo "$as_me:$LINENO: checking for working mmap" >&5
20023echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20024if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026else
20027 if test "$cross_compiling" = yes; then
20028 ac_cv_func_mmap_fixed_mapped=no
20029else
20030 cat >conftest.$ac_ext <<_ACEOF
20031/* confdefs.h. */
20032_ACEOF
20033cat confdefs.h >>conftest.$ac_ext
20034cat >>conftest.$ac_ext <<_ACEOF
20035/* end confdefs.h. */
20036$ac_includes_default
20037/* malloc might have been renamed as rpl_malloc. */
20038#undef malloc
20039
20040/* Thanks to Mike Haertel and Jim Avera for this test.
20041 Here is a matrix of mmap possibilities:
20042 mmap private not fixed
20043 mmap private fixed at somewhere currently unmapped
20044 mmap private fixed at somewhere already mapped
20045 mmap shared not fixed
20046 mmap shared fixed at somewhere currently unmapped
20047 mmap shared fixed at somewhere already mapped
20048 For private mappings, we should verify that changes cannot be read()
20049 back from the file, nor mmap's back from the file at a different
20050 address. (There have been systems where private was not correctly
20051 implemented like the infamous i386 svr4.0, and systems where the
20052 VM page cache was not coherent with the file system buffer cache
20053 like early versions of FreeBSD and possibly contemporary NetBSD.)
20054 For shared mappings, we should conversely verify that changes get
20055 propagated back to all the places they're supposed to be.
20056
20057 Grep wants private fixed already mapped.
20058 The main things grep needs to know about mmap are:
20059 * does it exist and is it safe to write into the mmap'd area
20060 * how to use it (BSD variants) */
20061
20062#include <fcntl.h>
20063#include <sys/mman.h>
20064
20065#if !STDC_HEADERS && !HAVE_STDLIB_H
20066char *malloc ();
20067#endif
20068
20069/* This mess was copied from the GNU getpagesize.h. */
20070#if !HAVE_GETPAGESIZE
20071/* Assume that all systems that can run configure have sys/param.h. */
20072# if !HAVE_SYS_PARAM_H
20073# define HAVE_SYS_PARAM_H 1
20074# endif
20075
20076# ifdef _SC_PAGESIZE
20077# define getpagesize() sysconf(_SC_PAGESIZE)
20078# else /* no _SC_PAGESIZE */
20079# if HAVE_SYS_PARAM_H
20080# include <sys/param.h>
20081# ifdef EXEC_PAGESIZE
20082# define getpagesize() EXEC_PAGESIZE
20083# else /* no EXEC_PAGESIZE */
20084# ifdef NBPG
20085# define getpagesize() NBPG * CLSIZE
20086# ifndef CLSIZE
20087# define CLSIZE 1
20088# endif /* no CLSIZE */
20089# else /* no NBPG */
20090# ifdef NBPC
20091# define getpagesize() NBPC
20092# else /* no NBPC */
20093# ifdef PAGESIZE
20094# define getpagesize() PAGESIZE
20095# endif /* PAGESIZE */
20096# endif /* no NBPC */
20097# endif /* no NBPG */
20098# endif /* no EXEC_PAGESIZE */
20099# else /* no HAVE_SYS_PARAM_H */
20100# define getpagesize() 8192 /* punt totally */
20101# endif /* no HAVE_SYS_PARAM_H */
20102# endif /* no _SC_PAGESIZE */
20103
20104#endif /* no HAVE_GETPAGESIZE */
20105
20106int
20107main ()
20108{
20109 char *data, *data2, *data3;
20110 int i, pagesize;
20111 int fd;
20112
20113 pagesize = getpagesize ();
20114
20115 /* First, make a file with some known garbage in it. */
20116 data = (char *) malloc (pagesize);
20117 if (!data)
20118 return 1;
20119 for (i = 0; i < pagesize; ++i)
20120 *(data + i) = rand ();
20121 umask (0);
20122 fd = creat ("conftest.mmap", 0600);
20123 if (fd < 0)
20124 return 1;
20125 if (write (fd, data, pagesize) != pagesize)
20126 return 1;
20127 close (fd);
20128
20129 /* Next, try to mmap the file at a fixed address which already has
20130 something else allocated at it. If we can, also make sure that
20131 we see the same garbage. */
20132 fd = open ("conftest.mmap", O_RDWR);
20133 if (fd < 0)
20134 return 1;
20135 data2 = (char *) malloc (2 * pagesize);
20136 if (!data2)
20137 return 1;
20138 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20139 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20140 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20141 return 1;
20142 for (i = 0; i < pagesize; ++i)
20143 if (*(data + i) != *(data2 + i))
20144 return 1;
20145
20146 /* Finally, make sure that changes to the mapped area do not
20147 percolate back to the file as seen by read(). (This is a bug on
20148 some variants of i386 svr4.0.) */
20149 for (i = 0; i < pagesize; ++i)
20150 *(data2 + i) = *(data2 + i) + 1;
20151 data3 = (char *) malloc (pagesize);
20152 if (!data3)
20153 return 1;
20154 if (read (fd, data3, pagesize) != pagesize)
20155 return 1;
20156 for (i = 0; i < pagesize; ++i)
20157 if (*(data + i) != *(data3 + i))
20158 return 1;
20159 close (fd);
20160 return 0;
20161}
20162_ACEOF
20163rm -f conftest$ac_exeext
20164if { (ac_try="$ac_link"
20165case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168esac
20169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177esac
20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_func_mmap_fixed_mapped=yes
20184else
20185 echo "$as_me: program exited with status $ac_status" >&5
20186echo "$as_me: failed program was:" >&5
20187sed 's/^/| /' conftest.$ac_ext >&5
20188
20189( exit $ac_status )
20190ac_cv_func_mmap_fixed_mapped=no
20191fi
20192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20193fi
20194
20195
20196fi
20197{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20198echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20199if test $ac_cv_func_mmap_fixed_mapped = yes; then
20200
20201cat >>confdefs.h <<\_ACEOF
20202#define HAVE_MMAP 1
20203_ACEOF
20204
20205fi
20206rm -f conftest.mmap
20207
20208 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20209echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20210if test "${ac_cv_func_mmap_file+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20212else
20213 ac_ext=c
20214ac_cpp='$CPP $CPPFLAGS'
20215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20217ac_compiler_gnu=$ac_cv_c_compiler_gnu
20218
20219 if test "$cross_compiling" = yes; then
20220 ac_cv_func_mmap_file=no
20221else
20222 cat >conftest.$ac_ext <<_ACEOF
20223
20224 /* confdefs.h. */
20225_ACEOF
20226cat confdefs.h >>conftest.$ac_ext
20227cat >>conftest.$ac_ext <<_ACEOF
20228/* end confdefs.h. */
20229
20230#include <sys/types.h>
20231#include <sys/mman.h>
20232#include <fcntl.h>
20233
20234int
20235main ()
20236{
20237
20238 int fd;
20239 fd = creat ("foo",0777);
20240 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20241 unlink ("foo");
20242 return (fd != (int) MAP_FAILED);
20243 ;
20244 return 0;
20245}
20246_ACEOF
20247rm -f conftest$ac_exeext
20248if { (ac_try="$ac_link"
20249case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20252esac
20253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_link") 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20258 { (case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20261esac
20262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_try") 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 ac_cv_func_mmap_file=yes
20268else
20269 echo "$as_me: program exited with status $ac_status" >&5
20270echo "$as_me: failed program was:" >&5
20271sed 's/^/| /' conftest.$ac_ext >&5
20272
20273( exit $ac_status )
20274ac_cv_func_mmap_file=no
20275fi
20276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20277fi
20278
20279
20280 ac_ext=c
20281ac_cpp='$CPP $CPPFLAGS'
20282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284ac_compiler_gnu=$ac_cv_c_compiler_gnu
20285
20286
20287fi
20288{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20289echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20290if test "$ac_cv_func_mmap_file" = yes; then
20291
20292cat >>confdefs.h <<\_ACEOF
20293#define HAVE_MMAP_FILE
20294_ACEOF
20295
20296 MMAP_FILE=yes
20297
20298fi
20299
20300 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20301echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20302if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304else
20305 if test "$llvm_cv_os_type" = "Interix" ; then
20306 ac_cv_need_dev_zero_for_mmap=yes
20307 else
20308 ac_cv_need_dev_zero_for_mmap=no
20309 fi
20310
20311fi
20312{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20313echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20314if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20315
20316cat >>confdefs.h <<\_ACEOF
20317#define NEED_DEV_ZERO_FOR_MMAP 1
20318_ACEOF
20319
20320fi
20321
20322 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20323 then
20324 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20325echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20326 fi
20327 if test "$ac_cv_func_mmap_file" = "no"
20328 then
20329 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20330echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20331 fi
20332fi
20333
20334{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20335echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20336ac_ext=cpp
20337ac_cpp='$CXXCPP $CPPFLAGS'
20338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20341
20342cat >conftest.$ac_ext <<_ACEOF
20343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
20348int main() {
20349 volatile unsigned long val = 1;
20350 __sync_synchronize();
20351 __sync_val_compare_and_swap(&val, 1, 0);
20352 __sync_add_and_fetch(&val, 1);
20353 __sync_sub_and_fetch(&val, 1);
20354 return 0;
20355 }
20356
20357_ACEOF
20358rm -f conftest.$ac_objext conftest$ac_exeext
20359if { (ac_try="$ac_link"
20360case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363esac
20364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_link") 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20373 { (case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20376esac
20377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_try") 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try='test -s conftest$ac_exeext'
20383 { (case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20386esac
20387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 ac_ext=c
20393ac_cpp='$CPP $CPPFLAGS'
20394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396ac_compiler_gnu=$ac_cv_c_compiler_gnu
20397
20398 { echo "$as_me:$LINENO: result: yes" >&5
20399echo "${ECHO_T}yes" >&6; }
20400
20401cat >>confdefs.h <<\_ACEOF
20402#define LLVM_HAS_ATOMICS 1
20403_ACEOF
20404
20405else
20406 echo "$as_me: failed program was:" >&5
20407sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 { echo "$as_me:$LINENO: result: no" >&5
20410echo "${ECHO_T}no" >&6; }
20411
20412cat >>confdefs.h <<\_ACEOF
20413#define LLVM_HAS_ATOMICS 0
20414_ACEOF
20415
20416 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20417echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20418fi
20419
20420rm -f core conftest.err conftest.$ac_objext \
20421 conftest$ac_exeext conftest.$ac_ext
20422
20423
20424if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20425 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20426echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20427if test "${llvm_cv_linux_mixed+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429else
20430 ac_ext=c
20431ac_cpp='$CPP $CPPFLAGS'
20432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20434ac_compiler_gnu=$ac_cv_c_compiler_gnu
20435
20436 cat >conftest.$ac_ext <<_ACEOF
20437/* confdefs.h. */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h. */
20442#ifndef __x86_64__
20443 error: Not x86-64 even if uname says so!
20444 #endif
20445
20446int
20447main ()
20448{
20449
20450 ;
20451 return 0;
20452}
20453_ACEOF
20454rm -f conftest.$ac_objext
20455if { (ac_try="$ac_compile"
20456case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459esac
20460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_compile") 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } &&
20468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20469 { (case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20472esac
20473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_try") 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try='test -s conftest.$ac_objext'
20479 { (case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482esac
20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_try") 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488 llvm_cv_linux_mixed=no
20489else
20490 echo "$as_me: failed program was:" >&5
20491sed 's/^/| /' conftest.$ac_ext >&5
20492
20493 llvm_cv_linux_mixed=yes
20494fi
20495
20496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497 ac_ext=c
20498ac_cpp='$CPP $CPPFLAGS'
20499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501ac_compiler_gnu=$ac_cv_c_compiler_gnu
20502
20503
20504fi
20505{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20506echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20507
20508 if test "$llvm_cv_linux_mixed" = "yes"; then
20509 llvm_cv_target_arch="x86"
20510 ARCH="x86"
20511 fi
20512fi
20513
20514
20515for ac_func in __dso_handle
20516do
20517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20522else
20523 cat >conftest.$ac_ext <<_ACEOF
20524/* confdefs.h. */
20525_ACEOF
20526cat confdefs.h >>conftest.$ac_ext
20527cat >>conftest.$ac_ext <<_ACEOF
20528/* end confdefs.h. */
20529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20531#define $ac_func innocuous_$ac_func
20532
20533/* System header to define __stub macros and hopefully few prototypes,
20534 which can conflict with char $ac_func (); below.
20535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536 <limits.h> exists even on freestanding compilers. */
20537
20538#ifdef __STDC__
20539# include <limits.h>
20540#else
20541# include <assert.h>
20542#endif
20543
20544#undef $ac_func
20545
20546/* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20549#ifdef __cplusplus
20550extern "C"
20551#endif
20552char $ac_func ();
20553/* The GNU C library defines this for functions which it implements
20554 to always fail with ENOSYS. Some functions are actually named
20555 something starting with __ and the normal name is an alias. */
20556#if defined __stub_$ac_func || defined __stub___$ac_func
20557choke me
20558#endif
20559
20560int
20561main ()
20562{
20563return $ac_func ();
20564 ;
20565 return 0;
20566}
20567_ACEOF
20568rm -f conftest.$ac_objext conftest$ac_exeext
20569if { (ac_try="$ac_link"
20570case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20573esac
20574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_link") 2>conftest.er1
20576 ac_status=$?
20577 grep -v '^ *+' conftest.er1 >conftest.err
20578 rm -f conftest.er1
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } &&
20582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20583 { (case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586esac
20587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_try") 2>&5
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; } &&
20592 { ac_try='test -s conftest$ac_exeext'
20593 { (case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20596esac
20597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_try") 2>&5
20599 ac_status=$?
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 eval "$as_ac_var=yes"
20603else
20604 echo "$as_me: failed program was:" >&5
20605sed 's/^/| /' conftest.$ac_ext >&5
20606
20607 eval "$as_ac_var=no"
20608fi
20609
20610rm -f core conftest.err conftest.$ac_objext \
20611 conftest$ac_exeext conftest.$ac_ext
20612fi
20613ac_res=`eval echo '${'$as_ac_var'}'`
20614 { echo "$as_me:$LINENO: result: $ac_res" >&5
20615echo "${ECHO_T}$ac_res" >&6; }
20616if test `eval echo '${'$as_ac_var'}'` = yes; then
20617 cat >>confdefs.h <<_ACEOF
20618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20619_ACEOF
20620
20621fi
20622done
20623
20624
20625SHLIBEXT=$libltdl_cv_shlibext
20626
20627
20628SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20629
20630
20631# Translate the various configuration directories and other basic
20632# information into substitutions that will end up in Makefile.config.in
20633# that these configured values can be used by the makefiles
20634if test "${prefix}" = "NONE" ; then
20635 prefix="/usr/local"
20636fi
20637eval LLVM_PREFIX="${prefix}";
20638eval LLVM_BINDIR="${prefix}/bin";
20639eval LLVM_LIBDIR="${prefix}/lib";
20640eval LLVM_DATADIR="${prefix}/share/llvm";
20641eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20642eval LLVM_ETCDIR="${prefix}/etc/llvm";
20643eval LLVM_INCLUDEDIR="${prefix}/include";
20644eval LLVM_INFODIR="${prefix}/info";
20645eval LLVM_MANDIR="${prefix}/man";
20646LLVM_CONFIGTIME=`date`
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658# Place the various directores into the config.h file as #defines so that we
20659# can know about the installation paths within LLVM.
20660
20661cat >>confdefs.h <<_ACEOF
20662#define LLVM_PREFIX "$LLVM_PREFIX"
20663_ACEOF
20664
20665
20666cat >>confdefs.h <<_ACEOF
20667#define LLVM_BINDIR "$LLVM_BINDIR"
20668_ACEOF
20669
20670
20671cat >>confdefs.h <<_ACEOF
20672#define LLVM_LIBDIR "$LLVM_LIBDIR"
20673_ACEOF
20674
20675
20676cat >>confdefs.h <<_ACEOF
20677#define LLVM_DATADIR "$LLVM_DATADIR"
20678_ACEOF
20679
20680
20681cat >>confdefs.h <<_ACEOF
20682#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20683_ACEOF
20684
20685
20686cat >>confdefs.h <<_ACEOF
20687#define LLVM_ETCDIR "$LLVM_ETCDIR"
20688_ACEOF
20689
20690
20691cat >>confdefs.h <<_ACEOF
20692#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20693_ACEOF
20694
20695
20696cat >>confdefs.h <<_ACEOF
20697#define LLVM_INFODIR "$LLVM_INFODIR"
20698_ACEOF
20699
20700
20701cat >>confdefs.h <<_ACEOF
20702#define LLVM_MANDIR "$LLVM_MANDIR"
20703_ACEOF
20704
20705
20706cat >>confdefs.h <<_ACEOF
20707#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20708_ACEOF
20709
20710
20711cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020712#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020713_ACEOF
20714
20715
20716# Determine which bindings to build.
20717if test "$BINDINGS_TO_BUILD" = auto ; then
20718 BINDINGS_TO_BUILD=""
20719 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20720 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20721 fi
20722fi
20723BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20724
20725
20726# This isn't really configurey, but it avoids having to repeat the list in
20727# other files.
20728ALL_BINDINGS=ocaml
20729
20730
20731# Do any work necessary to ensure that bindings have what they need.
20732binding_prereqs_failed=0
20733for a_binding in $BINDINGS_TO_BUILD ; do
20734 case "$a_binding" in
20735 ocaml)
20736 if test "x$OCAMLC" = x ; then
20737 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20738echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20739 binding_prereqs_failed=1
20740 fi
20741 if test "x$OCAMLDEP" = x ; then
20742 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20743echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20744 binding_prereqs_failed=1
20745 fi
20746 if test "x$OCAMLOPT" = x ; then
20747 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20748echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20749 fi
20750 if test "x$with_ocaml_libdir" != xauto ; then
20751 OCAML_LIBDIR=$with_ocaml_libdir
20752
20753 else
20754 ocaml_stdlib="`"$OCAMLC" -where`"
20755 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20756 then
20757 # ocaml stdlib is beneath our prefix; use stdlib
20758 OCAML_LIBDIR=$ocaml_stdlib
20759
20760 else
20761 # ocaml stdlib is outside our prefix; use libdir/ocaml
20762 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20763
20764 fi
20765 fi
20766 ;;
20767 esac
20768done
20769if test "$binding_prereqs_failed" = 1 ; then
20770 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20771echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20772 { (exit 1); exit 1; }; }
20773fi
20774
20775{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20776echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20777if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20779else
20780 ac_ext=cpp
20781ac_cpp='$CXXCPP $CPPFLAGS'
20782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20785
20786 oldcxxflags="$CXXFLAGS"
20787 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20788 cat >conftest.$ac_ext <<_ACEOF
20789/* confdefs.h. */
20790_ACEOF
20791cat confdefs.h >>conftest.$ac_ext
20792cat >>conftest.$ac_ext <<_ACEOF
20793/* end confdefs.h. */
20794
20795int
20796main ()
20797{
20798
20799 ;
20800 return 0;
20801}
20802_ACEOF
20803rm -f conftest.$ac_objext
20804if { (ac_try="$ac_compile"
20805case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20808esac
20809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_compile") 2>conftest.er1
20811 ac_status=$?
20812 grep -v '^ *+' conftest.er1 >conftest.err
20813 rm -f conftest.er1
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20818 { (case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20821esac
20822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_try") 2>&5
20824 ac_status=$?
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; } &&
20827 { ac_try='test -s conftest.$ac_objext'
20828 { (case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831esac
20832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_try") 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 llvm_cv_cxx_visibility_inlines_hidden=yes
20838else
20839 echo "$as_me: failed program was:" >&5
20840sed 's/^/| /' conftest.$ac_ext >&5
20841
20842 llvm_cv_cxx_visibility_inlines_hidden=no
20843fi
20844
20845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 CXXFLAGS="$oldcxxflags"
20847 ac_ext=c
20848ac_cpp='$CPP $CPPFLAGS'
20849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852
20853
20854fi
20855{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20856echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20857if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20858 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20859
20860else
20861 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20862
20863fi
20864
20865
20866if test "$llvm_cv_link_use_r" = "yes" ; then
20867 RPATH="-Wl,-R"
20868else
20869 RPATH="-Wl,-rpath"
20870fi
20871
20872
20873if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20874 RDYNAMIC="-Wl,-export-dynamic"
20875else
20876 RDYNAMIC=""
20877fi
20878
20879
20880
Reid Spencer421ec052005-02-24 18:53:47 +000020881
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020882ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020883
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020884ac_config_files="$ac_config_files Makefile.llvm.config"
20885
John Criswell451f67f2003-10-16 01:45:35 +000020886
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020887ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020888
20889
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020890ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020891
20892
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020893ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020894
20895
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020896ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020897
20898
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020899ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020900
20901
20902
John Criswell451f67f2003-10-16 01:45:35 +000020903cat >confcache <<\_ACEOF
20904# This file is a shell script that caches the results of configure
20905# tests run on this system so they can be shared between configure
20906# scripts and configure runs, see configure's option --config-cache.
20907# It is not useful on other systems. If it contains results you don't
20908# want to keep, you may remove or edit it.
20909#
20910# config.status only pays attention to the cache file if you give it
20911# the --recheck option to rerun configure.
20912#
20913# `ac_cv_env_foo' variables (set or unset) will be overridden when
20914# loading this file, other *unset* `ac_cv_foo' will be assigned the
20915# following values.
20916
20917_ACEOF
20918
20919# The following way of writing the cache mishandles newlines in values,
20920# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020921# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020922# Ultrix sh set writes to stderr and can't be redirected directly,
20923# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020924(
20925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20926 eval ac_val=\$$ac_var
20927 case $ac_val in #(
20928 *${as_nl}*)
20929 case $ac_var in #(
20930 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20931echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20932 esac
20933 case $ac_var in #(
20934 _ | IFS | as_nl) ;; #(
20935 *) $as_unset $ac_var ;;
20936 esac ;;
20937 esac
20938 done
20939
John Criswell451f67f2003-10-16 01:45:35 +000020940 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020941 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20942 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020943 # `set' does not quote correctly, so add quotes (double-quote
20944 # substitution turns \\\\ into \\, and sed turns \\ into \).
20945 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000020946 "s/'/'\\\\''/g;
20947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020948 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000020949 *)
20950 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000020952 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020953 esac |
20954 sort
20955) |
John Criswell451f67f2003-10-16 01:45:35 +000020956 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020957 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000020958 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020959 :clear
John Criswell451f67f2003-10-16 01:45:35 +000020960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20961 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020962 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20963 :end' >>confcache
20964if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20965 if test -w "$cache_file"; then
20966 test "x$cache_file" != "x/dev/null" &&
20967 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20968echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020969 cat confcache >$cache_file
20970 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020971 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20972echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020973 fi
20974fi
20975rm -f confcache
20976
20977test "x$prefix" = xNONE && prefix=$ac_default_prefix
20978# Let make expand exec_prefix.
20979test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20980
John Criswell451f67f2003-10-16 01:45:35 +000020981# Transform confdefs.h into DEFS.
20982# Protect against shell expansion while executing Makefile rules.
20983# Protect against Makefile macro expansion.
20984#
20985# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020986# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000020987# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020988ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000020989t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020990:clear
20991s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000020992t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020993s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000020994t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020995b any
20996:quote
20997s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20998s/\[/\\&/g
20999s/\]/\\&/g
21000s/\$/$$/g
21001H
21002:any
21003${
21004 g
21005 s/^\n//
21006 s/\n/ /g
21007 p
21008}
21009'
21010DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021011
21012
21013ac_libobjs=
21014ac_ltlibobjs=
21015for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21016 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021017 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21018 ac_i=`echo "$ac_i" | sed "$ac_script"`
21019 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21020 # will be set to the directory where LIBOBJS objects are built.
21021 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21022 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021023done
21024LIBOBJS=$ac_libobjs
21025
21026LTLIBOBJS=$ac_ltlibobjs
21027
21028
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021029if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21030 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21031Usually this means the macro was only invoked conditionally." >&5
21032echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21033Usually this means the macro was only invoked conditionally." >&2;}
21034 { (exit 1); exit 1; }; }
21035fi
21036if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21037 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21038Usually this means the macro was only invoked conditionally." >&5
21039echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21040Usually this means the macro was only invoked conditionally." >&2;}
21041 { (exit 1); exit 1; }; }
21042fi
John Criswell451f67f2003-10-16 01:45:35 +000021043
21044: ${CONFIG_STATUS=./config.status}
21045ac_clean_files_save=$ac_clean_files
21046ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21047{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21048echo "$as_me: creating $CONFIG_STATUS" >&6;}
21049cat >$CONFIG_STATUS <<_ACEOF
21050#! $SHELL
21051# Generated by $as_me.
21052# Run this file to recreate the current configuration.
21053# Compiler output produced by configure, useful for debugging
21054# configure, is in config.log if it exists.
21055
21056debug=false
21057ac_cs_recheck=false
21058ac_cs_silent=false
21059SHELL=\${CONFIG_SHELL-$SHELL}
21060_ACEOF
21061
21062cat >>$CONFIG_STATUS <<\_ACEOF
21063## --------------------- ##
21064## M4sh Initialization. ##
21065## --------------------- ##
21066
Dan Gohman324f6082009-03-25 00:52:11 +000021067# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021068if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21069 emulate sh
21070 NULLCMD=:
21071 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21072 # is contrary to our usage. Disable this feature.
21073 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021074 setopt NO_GLOB_SUBST
21075else
21076 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021077fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021078BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021079DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021080
John Criswell451f67f2003-10-16 01:45:35 +000021081
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021082# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021083# Avoid depending upon Character Ranges.
21084as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21085as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21086as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21087as_cr_digits='0123456789'
21088as_cr_alnum=$as_cr_Letters$as_cr_digits
21089
21090# The user is always right.
21091if test "${PATH_SEPARATOR+set}" != set; then
21092 echo "#! /bin/sh" >conf$$.sh
21093 echo "exit 0" >>conf$$.sh
21094 chmod +x conf$$.sh
21095 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21096 PATH_SEPARATOR=';'
21097 else
21098 PATH_SEPARATOR=:
21099 fi
21100 rm -f conf$$.sh
21101fi
21102
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021103# Support unset when possible.
21104if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21105 as_unset=unset
21106else
21107 as_unset=false
21108fi
John Criswell451f67f2003-10-16 01:45:35 +000021109
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021110
21111# IFS
21112# We need space, tab and new line, in precisely that order. Quoting is
21113# there to prevent editors from complaining about space-tab.
21114# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21115# splitting by setting IFS to empty value.)
21116as_nl='
21117'
21118IFS=" "" $as_nl"
21119
21120# Find who we are. Look in the path if we contain no directory separator.
21121case $0 in
21122 *[\\/]* ) as_myself=$0 ;;
21123 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021124for as_dir in $PATH
21125do
21126 IFS=$as_save_IFS
21127 test -z "$as_dir" && as_dir=.
21128 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21129done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021130IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021131
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021132 ;;
21133esac
21134# We did not find ourselves, most probably we were run as `sh COMMAND'
21135# in which case we are not to be found in the path.
21136if test "x$as_myself" = x; then
21137 as_myself=$0
21138fi
21139if test ! -f "$as_myself"; then
21140 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21141 { (exit 1); exit 1; }
21142fi
21143
21144# Work around bugs in pre-3.0 UWIN ksh.
21145for as_var in ENV MAIL MAILPATH
21146do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21147done
21148PS1='$ '
21149PS2='> '
21150PS4='+ '
21151
21152# NLS nuisances.
21153for as_var in \
21154 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21155 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21156 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021157do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021158 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21159 eval $as_var=C; export $as_var
21160 else
21161 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21162 fi
21163done
21164
21165# Required to use basename.
21166if expr a : '\(a\)' >/dev/null 2>&1 &&
21167 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21168 as_expr=expr
21169else
21170 as_expr=false
21171fi
21172
21173if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21174 as_basename=basename
21175else
21176 as_basename=false
21177fi
21178
21179
21180# Name of the executable.
21181as_me=`$as_basename -- "$0" ||
21182$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21183 X"$0" : 'X\(//\)$' \| \
21184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21185echo X/"$0" |
21186 sed '/^.*\/\([^/][^/]*\)\/*$/{
21187 s//\1/
21188 q
21189 }
21190 /^X\/\(\/\/\)$/{
21191 s//\1/
21192 q
21193 }
21194 /^X\/\(\/\).*/{
21195 s//\1/
21196 q
21197 }
21198 s/.*/./; q'`
21199
21200# CDPATH.
21201$as_unset CDPATH
21202
21203
21204
John Criswell451f67f2003-10-16 01:45:35 +000021205 as_lineno_1=$LINENO
21206 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021207 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021208 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021209
21210 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21211 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021212 # line-number line after each line using $LINENO; the second 'sed'
21213 # does the real work. The second script uses 'N' to pair each
21214 # line-number line with the line containing $LINENO, and appends
21215 # trailing '-' during substitution so that $LINENO is not a special
21216 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021217 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021218 # scripts with optimization help from Paolo Bonzini. Blame Lee
21219 # E. McMahon (1931-1989) for sed's syntax. :-)
21220 sed -n '
21221 p
21222 /[$]LINENO/=
21223 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021224 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021225 s/[$]LINENO.*/&-/
21226 t lineno
21227 b
21228 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021229 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021230 :loop
21231 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021232 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021233 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021234 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021235 chmod +x "$as_me.lineno" ||
21236 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021237 { (exit 1); exit 1; }; }
21238
21239 # Don't try to exec as it changes $[0], causing all sort of problems
21240 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021241 # original and so on. Autoconf is especially sensitive to this).
21242 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021243 # Exit status is that of the last command.
21244 exit
21245}
21246
21247
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021248if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21249 as_dirname=dirname
21250else
21251 as_dirname=false
21252fi
21253
21254ECHO_C= ECHO_N= ECHO_T=
21255case `echo -n x` in
21256-n*)
21257 case `echo 'x\c'` in
21258 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21259 *) ECHO_C='\c';;
21260 esac;;
21261*)
21262 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021263esac
21264
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021265if expr a : '\(a\)' >/dev/null 2>&1 &&
21266 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021267 as_expr=expr
21268else
21269 as_expr=false
21270fi
21271
21272rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021273if test -d conf$$.dir; then
21274 rm -f conf$$.dir/conf$$.file
21275else
21276 rm -f conf$$.dir
21277 mkdir conf$$.dir
21278fi
John Criswell451f67f2003-10-16 01:45:35 +000021279echo >conf$$.file
21280if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021281 as_ln_s='ln -s'
21282 # ... but there are two gotchas:
21283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21285 # In both cases, we have to default to `cp -p'.
21286 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021287 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021288elif ln conf$$.file conf$$ 2>/dev/null; then
21289 as_ln_s=ln
21290else
21291 as_ln_s='cp -p'
21292fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021293rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21294rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021295
21296if mkdir -p . 2>/dev/null; then
21297 as_mkdir_p=:
21298else
Reid Spencer9964cd82005-01-01 09:26:55 +000021299 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021300 as_mkdir_p=false
21301fi
21302
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021303# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21304# systems may use methods other than mode bits to determine executability.
21305cat >conf$$.file <<_ASEOF
21306#! /bin/sh
21307exit 0
21308_ASEOF
21309chmod +x conf$$.file
21310if test -x conf$$.file >/dev/null 2>&1; then
21311 as_executable_p="test -x"
21312else
21313 as_executable_p=:
21314fi
21315rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021316
21317# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021318as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021319
21320# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021321as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021322
21323
John Criswell451f67f2003-10-16 01:45:35 +000021324exec 6>&1
21325
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021326# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021327# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021328# values after options handling.
21329ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021330This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021331generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021332
21333 CONFIG_FILES = $CONFIG_FILES
21334 CONFIG_HEADERS = $CONFIG_HEADERS
21335 CONFIG_LINKS = $CONFIG_LINKS
21336 CONFIG_COMMANDS = $CONFIG_COMMANDS
21337 $ $0 $@
21338
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021339on `(hostname || uname -n) 2>/dev/null | sed 1q`
21340"
21341
John Criswell451f67f2003-10-16 01:45:35 +000021342_ACEOF
21343
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021344cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021345# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021346config_files="$ac_config_files"
21347config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021348
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021349_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021350
21351cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021352ac_cs_usage="\
21353\`$as_me' instantiates files from templates according to the
21354current configuration.
21355
21356Usage: $0 [OPTIONS] [FILE]...
21357
21358 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021359 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021360 -q, --quiet do not print progress messages
21361 -d, --debug don't remove temporary files
21362 --recheck update $as_me by reconfiguring in the same conditions
21363 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021364 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021365
21366Configuration files:
21367$config_files
21368
21369Configuration commands:
21370$config_commands
21371
21372Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021373
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021374_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021375cat >>$CONFIG_STATUS <<_ACEOF
21376ac_cs_version="\\
21377[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021378configured by $0, generated by GNU Autoconf 2.60,
21379 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021380
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021381Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021382This config.status script is free software; the Free Software Foundation
21383gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021384
21385ac_pwd='$ac_pwd'
21386srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021387INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021388_ACEOF
21389
21390cat >>$CONFIG_STATUS <<\_ACEOF
21391# If no file are specified by the user, then we need to provide default
21392# value. By we need to know if files were specified by the user.
21393ac_need_defaults=:
21394while test $# != 0
21395do
21396 case $1 in
21397 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021400 ac_shift=:
21401 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021402 *)
John Criswell451f67f2003-10-16 01:45:35 +000021403 ac_option=$1
21404 ac_optarg=$2
21405 ac_shift=shift
21406 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021407 esac
21408
21409 case $ac_option in
21410 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21412 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21414 echo "$ac_cs_version"; exit ;;
21415 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021416 debug=: ;;
21417 --file | --fil | --fi | --f )
21418 $ac_shift
21419 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21420 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021421 --he | --h | --help | --hel | -h )
21422 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21424 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21425 ac_cs_silent=: ;;
21426
21427 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021428 -*) { echo "$as_me: error: unrecognized option: $1
21429Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021430 { (exit 1); exit 1; }; } ;;
21431
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021432 *) ac_config_targets="$ac_config_targets $1"
21433 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021434
21435 esac
21436 shift
21437done
21438
21439ac_configure_extra_args=
21440
21441if $ac_cs_silent; then
21442 exec 6>/dev/null
21443 ac_configure_extra_args="$ac_configure_extra_args --silent"
21444fi
21445
21446_ACEOF
21447cat >>$CONFIG_STATUS <<_ACEOF
21448if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021449 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21450 CONFIG_SHELL=$SHELL
21451 export CONFIG_SHELL
21452 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021453fi
21454
21455_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021456cat >>$CONFIG_STATUS <<\_ACEOF
21457exec 5>>config.log
21458{
21459 echo
21460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21461## Running $as_me. ##
21462_ASBOX
21463 echo "$ac_log"
21464} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021465
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021466_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021467cat >>$CONFIG_STATUS <<_ACEOF
21468#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021469# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021470#
Reid Spencer421ec052005-02-24 18:53:47 +000021471llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021472
21473_ACEOF
21474
Dan Gohman324f6082009-03-25 00:52:11 +000021475cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021476
21477# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021478for ac_config_target in $ac_config_targets
21479do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021480 case $ac_config_target in
21481 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21482 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021483 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021484 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21485 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21486 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21487 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21488 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21489
John Criswell451f67f2003-10-16 01:45:35 +000021490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21491echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21492 { (exit 1); exit 1; }; };;
21493 esac
21494done
21495
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021496
John Criswell451f67f2003-10-16 01:45:35 +000021497# If the user did not use the arguments to specify the items to instantiate,
21498# then the envvar interface is used. Set only those that are not.
21499# We use the long form for the default assignment because of an extremely
21500# bizarre bug on SunOS 4.1.3.
21501if $ac_need_defaults; then
21502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21504fi
21505
21506# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021507# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021508# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021509# Hook for its removal unless debugging.
21510# Note that there is a small window in which the directory will not be cleaned:
21511# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021512$debug ||
21513{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021514 tmp=
21515 trap 'exit_status=$?
21516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21517' 0
John Criswell451f67f2003-10-16 01:45:35 +000021518 trap '{ (exit 1); exit 1; }' 1 2 13 15
21519}
John Criswell451f67f2003-10-16 01:45:35 +000021520# Create a (secure) tmp directory for tmp files.
21521
21522{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021524 test -n "$tmp" && test -d "$tmp"
21525} ||
21526{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021527 tmp=./conf$$-$RANDOM
21528 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021529} ||
21530{
21531 echo "$me: cannot create a temporary directory in ." >&2
21532 { (exit 1); exit 1; }
21533}
21534
John Criswell451f67f2003-10-16 01:45:35 +000021535#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021536# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021537#
21538
21539# No need to generate the scripts if there are no CONFIG_FILES.
21540# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021541if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021542
21543_ACEOF
21544
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021545
21546
21547ac_delim='%!_!# '
21548for ac_last_try in false false false false false :; do
21549 cat >conf$$subs.sed <<_ACEOF
21550SHELL!$SHELL$ac_delim
21551PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21552PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21553PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21554PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21555PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21556PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21557exec_prefix!$exec_prefix$ac_delim
21558prefix!$prefix$ac_delim
21559program_transform_name!$program_transform_name$ac_delim
21560bindir!$bindir$ac_delim
21561sbindir!$sbindir$ac_delim
21562libexecdir!$libexecdir$ac_delim
21563datarootdir!$datarootdir$ac_delim
21564datadir!$datadir$ac_delim
21565sysconfdir!$sysconfdir$ac_delim
21566sharedstatedir!$sharedstatedir$ac_delim
21567localstatedir!$localstatedir$ac_delim
21568includedir!$includedir$ac_delim
21569oldincludedir!$oldincludedir$ac_delim
21570docdir!$docdir$ac_delim
21571infodir!$infodir$ac_delim
21572htmldir!$htmldir$ac_delim
21573dvidir!$dvidir$ac_delim
21574pdfdir!$pdfdir$ac_delim
21575psdir!$psdir$ac_delim
21576libdir!$libdir$ac_delim
21577localedir!$localedir$ac_delim
21578mandir!$mandir$ac_delim
21579DEFS!$DEFS$ac_delim
21580ECHO_C!$ECHO_C$ac_delim
21581ECHO_N!$ECHO_N$ac_delim
21582ECHO_T!$ECHO_T$ac_delim
21583LIBS!$LIBS$ac_delim
21584build_alias!$build_alias$ac_delim
21585host_alias!$host_alias$ac_delim
21586target_alias!$target_alias$ac_delim
21587LLVM_SRC!$LLVM_SRC$ac_delim
21588LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021589LLVM_VERSION!$LLVM_VERSION$ac_delim
21590CC!$CC$ac_delim
21591CFLAGS!$CFLAGS$ac_delim
21592LDFLAGS!$LDFLAGS$ac_delim
21593CPPFLAGS!$CPPFLAGS$ac_delim
21594ac_ct_CC!$ac_ct_CC$ac_delim
21595EXEEXT!$EXEEXT$ac_delim
21596OBJEXT!$OBJEXT$ac_delim
21597CXX!$CXX$ac_delim
21598CXXFLAGS!$CXXFLAGS$ac_delim
21599ac_ct_CXX!$ac_ct_CXX$ac_delim
21600CPP!$CPP$ac_delim
21601ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21602LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21603subdirs!$subdirs$ac_delim
21604build!$build$ac_delim
21605build_cpu!$build_cpu$ac_delim
21606build_vendor!$build_vendor$ac_delim
21607build_os!$build_os$ac_delim
21608host!$host$ac_delim
21609host_cpu!$host_cpu$ac_delim
21610host_vendor!$host_vendor$ac_delim
21611host_os!$host_os$ac_delim
21612target!$target$ac_delim
21613target_cpu!$target_cpu$ac_delim
21614target_vendor!$target_vendor$ac_delim
21615target_os!$target_os$ac_delim
21616OS!$OS$ac_delim
21617HOST_OS!$HOST_OS$ac_delim
21618TARGET_OS!$TARGET_OS$ac_delim
21619LINKALL!$LINKALL$ac_delim
21620NOLINKALL!$NOLINKALL$ac_delim
21621LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21622LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21623ARCH!$ARCH$ac_delim
21624ENDIAN!$ENDIAN$ac_delim
21625GREP!$GREP$ac_delim
21626EGREP!$EGREP$ac_delim
21627LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21628BUILD_CC!$BUILD_CC$ac_delim
21629BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21630BUILD_CXX!$BUILD_CXX$ac_delim
21631CVSBUILD!$CVSBUILD$ac_delim
21632ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21633ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21634DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21635ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21636EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21637DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21638DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21639JIT!$JIT$ac_delim
21640TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21641ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21642ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21643ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21644ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21645ENABLE_PIC!$ENABLE_PIC$ac_delim
21646ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021647_ACEOF
21648
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021649 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021650 break
21651 elif $ac_last_try; then
21652 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21653echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21654 { (exit 1); exit 1; }; }
21655 else
21656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021657 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021658done
21659
21660ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21661if test -n "$ac_eof"; then
21662 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21663 ac_eof=`expr $ac_eof + 1`
21664fi
21665
21666cat >>$CONFIG_STATUS <<_ACEOF
21667cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021668/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21669_ACEOF
21670sed '
21671s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21672s/^/s,@/; s/!/@,|#_!!_#|/
21673:n
21674t n
21675s/'"$ac_delim"'$/,g/; t
21676s/$/\\/; p
21677N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21678' >>$CONFIG_STATUS <conf$$subs.sed
21679rm -f conf$$subs.sed
21680cat >>$CONFIG_STATUS <<_ACEOF
21681CEOF$ac_eof
21682_ACEOF
21683
21684
21685ac_delim='%!_!# '
21686for ac_last_try in false false false false false :; do
21687 cat >conf$$subs.sed <<_ACEOF
21688ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21689ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21690TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21691LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21692LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21693LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21694LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21695ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21696OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21697EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21698EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21699BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21700NM!$NM$ac_delim
21701ifGNUmake!$ifGNUmake$ac_delim
21702LN_S!$LN_S$ac_delim
21703CMP!$CMP$ac_delim
21704CP!$CP$ac_delim
21705DATE!$DATE$ac_delim
21706FIND!$FIND$ac_delim
21707MKDIR!$MKDIR$ac_delim
21708MV!$MV$ac_delim
21709RANLIB!$RANLIB$ac_delim
21710AR!$AR$ac_delim
21711RM!$RM$ac_delim
21712SED!$SED$ac_delim
21713TAR!$TAR$ac_delim
21714BINPWD!$BINPWD$ac_delim
21715GRAPHVIZ!$GRAPHVIZ$ac_delim
21716DOT!$DOT$ac_delim
21717FDP!$FDP$ac_delim
21718NEATO!$NEATO$ac_delim
21719TWOPI!$TWOPI$ac_delim
21720CIRCO!$CIRCO$ac_delim
21721GV!$GV$ac_delim
21722DOTTY!$DOTTY$ac_delim
21723XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021724INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21725INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21726INSTALL_DATA!$INSTALL_DATA$ac_delim
21727BZIP2!$BZIP2$ac_delim
21728CAT!$CAT$ac_delim
21729DOXYGEN!$DOXYGEN$ac_delim
21730GROFF!$GROFF$ac_delim
21731GZIPBIN!$GZIPBIN$ac_delim
21732POD2HTML!$POD2HTML$ac_delim
21733POD2MAN!$POD2MAN$ac_delim
21734PDFROFF!$PDFROFF$ac_delim
21735RUNTEST!$RUNTEST$ac_delim
21736TCLSH!$TCLSH$ac_delim
21737ZIP!$ZIP$ac_delim
21738OCAMLC!$OCAMLC$ac_delim
21739OCAMLOPT!$OCAMLOPT$ac_delim
21740OCAMLDEP!$OCAMLDEP$ac_delim
21741OCAMLDOC!$OCAMLDOC$ac_delim
21742GAS!$GAS$ac_delim
21743HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21744INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21745INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21746CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21747CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21748LIBADD_DL!$LIBADD_DL$ac_delim
21749NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21750NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021751COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021752USE_UDIS86!$USE_UDIS86$ac_delim
21753USE_OPROFILE!$USE_OPROFILE$ac_delim
21754HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21755HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21756MMAP_FILE!$MMAP_FILE$ac_delim
21757SHLIBEXT!$SHLIBEXT$ac_delim
21758SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21759LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21760LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21761LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21762LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21763LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21764LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21765LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21766LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21767LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21768LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21769BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21770ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21771OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21772ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21773RPATH!$RPATH$ac_delim
21774RDYNAMIC!$RDYNAMIC$ac_delim
21775LIBOBJS!$LIBOBJS$ac_delim
21776LTLIBOBJS!$LTLIBOBJS$ac_delim
21777_ACEOF
21778
Benjamin Kramer8c3d2582012-03-07 17:07:20 +000021779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021780 break
21781 elif $ac_last_try; then
21782 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21783echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21784 { (exit 1); exit 1; }; }
21785 else
21786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21787 fi
21788done
21789
21790ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21791if test -n "$ac_eof"; then
21792 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21793 ac_eof=`expr $ac_eof + 1`
21794fi
21795
21796cat >>$CONFIG_STATUS <<_ACEOF
21797cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21799_ACEOF
21800sed '
21801s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21802s/^/s,@/; s/!/@,|#_!!_#|/
21803:n
21804t n
21805s/'"$ac_delim"'$/,g/; t
21806s/$/\\/; p
21807N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21808' >>$CONFIG_STATUS <conf$$subs.sed
21809rm -f conf$$subs.sed
21810cat >>$CONFIG_STATUS <<_ACEOF
21811:end
21812s/|#_!!_#|//g
21813CEOF$ac_eof
21814_ACEOF
21815
21816
21817# VPATH may cause trouble with some makes, so we remove $(srcdir),
21818# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21819# trailing colons and then remove the whole line if VPATH becomes empty
21820# (actually we leave an empty line to preserve line numbers).
21821if test "x$srcdir" = x.; then
21822 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21823s/:*\$(srcdir):*/:/
21824s/:*\${srcdir}:*/:/
21825s/:*@srcdir@:*/:/
21826s/^\([^=]*=[ ]*\):*/\1/
21827s/:*$//
21828s/^[^=]*=[ ]*$//
21829}'
21830fi
21831
21832cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021833fi # test -n "$CONFIG_FILES"
21834
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021835
21836for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21837do
21838 case $ac_tag in
21839 :[FHLC]) ac_mode=$ac_tag; continue;;
21840 esac
21841 case $ac_mode$ac_tag in
21842 :[FHL]*:*);;
21843 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21844echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21845 { (exit 1); exit 1; }; };;
21846 :[FH]-) ac_tag=-:-;;
21847 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21848 esac
21849 ac_save_IFS=$IFS
21850 IFS=:
21851 set x $ac_tag
21852 IFS=$ac_save_IFS
21853 shift
21854 ac_file=$1
21855 shift
21856
21857 case $ac_mode in
21858 :L) ac_source=$1;;
21859 :[FH])
21860 ac_file_inputs=
21861 for ac_f
21862 do
21863 case $ac_f in
21864 -) ac_f="$tmp/stdin";;
21865 *) # Look for the file first in the build tree, then in the source tree
21866 # (if the path is not absolute). The absolute path cannot be DOS-style,
21867 # because $ac_f cannot contain `:'.
21868 test -f "$ac_f" ||
21869 case $ac_f in
21870 [\\/$]*) false;;
21871 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21872 esac ||
21873 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21874echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21875 { (exit 1); exit 1; }; };;
21876 esac
21877 ac_file_inputs="$ac_file_inputs $ac_f"
21878 done
21879
21880 # Let's still pretend it is `configure' which instantiates (i.e., don't
21881 # use $as_me), people would be surprised to read:
21882 # /* config.h. Generated by config.status. */
21883 configure_input="Generated from "`IFS=:
21884 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21885 if test x"$ac_file" != x-; then
21886 configure_input="$ac_file. $configure_input"
21887 { echo "$as_me:$LINENO: creating $ac_file" >&5
21888echo "$as_me: creating $ac_file" >&6;}
21889 fi
21890
21891 case $ac_tag in
21892 *:-:* | *:-) cat >"$tmp/stdin";;
21893 esac
21894 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021895 esac
21896
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021897 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021898$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021899 X"$ac_file" : 'X\(//\)[^/]' \| \
21900 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021902echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21904 s//\1/
21905 q
21906 }
21907 /^X\(\/\/\)[^/].*/{
21908 s//\1/
21909 q
21910 }
21911 /^X\(\/\/\)$/{
21912 s//\1/
21913 q
21914 }
21915 /^X\(\/\).*/{
21916 s//\1/
21917 q
21918 }
21919 s/.*/./; q'`
21920 { as_dir="$ac_dir"
21921 case $as_dir in #(
21922 -*) as_dir=./$as_dir;;
21923 esac
21924 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021925 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021926 while :; do
21927 case $as_dir in #(
21928 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21929 *) as_qdir=$as_dir;;
21930 esac
21931 as_dirs="'$as_qdir' $as_dirs"
21932 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021934 X"$as_dir" : 'X\(//\)[^/]' \| \
21935 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021937echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21939 s//\1/
21940 q
21941 }
21942 /^X\(\/\/\)[^/].*/{
21943 s//\1/
21944 q
21945 }
21946 /^X\(\/\/\)$/{
21947 s//\1/
21948 q
21949 }
21950 /^X\(\/\).*/{
21951 s//\1/
21952 q
21953 }
21954 s/.*/./; q'`
21955 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000021956 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021957 test -z "$as_dirs" || eval "mkdir $as_dirs"
21958 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21959echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000021960 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000021961 ac_builddir=.
21962
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021963case "$ac_dir" in
21964.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21965*)
John Criswell451f67f2003-10-16 01:45:35 +000021966 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021967 # A ".." for each directory in $ac_dir_suffix.
21968 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21969 case $ac_top_builddir_sub in
21970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21972 esac ;;
21973esac
21974ac_abs_top_builddir=$ac_pwd
21975ac_abs_builddir=$ac_pwd$ac_dir_suffix
21976# for backward compatibility:
21977ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000021978
21979case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021980 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000021981 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021982 ac_top_srcdir=$ac_top_builddir_sub
21983 ac_abs_top_srcdir=$ac_pwd ;;
21984 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000021985 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021986 ac_top_srcdir=$srcdir
21987 ac_abs_top_srcdir=$srcdir ;;
21988 *) # Relative name.
21989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21990 ac_top_srcdir=$ac_top_build_prefix$srcdir
21991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000021992esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021993ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000021994
Dan Gohman324f6082009-03-25 00:52:11 +000021995
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021996 case $ac_mode in
21997 :F)
21998 #
21999 # CONFIG_FILE
22000 #
Dan Gohman324f6082009-03-25 00:52:11 +000022001
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022002 case $INSTALL in
22003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22004 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22005 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022006_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022007
22008cat >>$CONFIG_STATUS <<\_ACEOF
22009# If the template does not know about datarootdir, expand it.
22010# FIXME: This hack should be removed a few years after 2.60.
22011ac_datarootdir_hack=; ac_datarootdir_seen=
22012
22013case `sed -n '/datarootdir/ {
22014 p
22015 q
22016}
22017/@datadir@/p
22018/@docdir@/p
22019/@infodir@/p
22020/@localedir@/p
22021/@mandir@/p
22022' $ac_file_inputs` in
22023*datarootdir*) ac_datarootdir_seen=yes;;
22024*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22025 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22026echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22027_ACEOF
22028cat >>$CONFIG_STATUS <<_ACEOF
22029 ac_datarootdir_hack='
22030 s&@datadir@&$datadir&g
22031 s&@docdir@&$docdir&g
22032 s&@infodir@&$infodir&g
22033 s&@localedir@&$localedir&g
22034 s&@mandir@&$mandir&g
22035 s&\\\${datarootdir}&$datarootdir&g' ;;
22036esac
22037_ACEOF
22038
22039# Neutralize VPATH when `$srcdir' = `.'.
22040# Shell code in configure.ac might set extrasub.
22041# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022042cat >>$CONFIG_STATUS <<_ACEOF
22043 sed "$ac_vpsub
22044$extrasub
22045_ACEOF
22046cat >>$CONFIG_STATUS <<\_ACEOF
22047:t
22048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022049s&@configure_input@&$configure_input&;t t
22050s&@top_builddir@&$ac_top_builddir_sub&;t t
22051s&@srcdir@&$ac_srcdir&;t t
22052s&@abs_srcdir@&$ac_abs_srcdir&;t t
22053s&@top_srcdir@&$ac_top_srcdir&;t t
22054s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22055s&@builddir@&$ac_builddir&;t t
22056s&@abs_builddir@&$ac_abs_builddir&;t t
22057s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022058s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022059$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022060" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022061
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022062test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22063 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22064 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22065 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22066which seems to be undefined. Please make sure it is defined." >&5
22067echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22068which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022069
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022070 rm -f "$tmp/stdin"
22071 case $ac_file in
22072 -) cat "$tmp/out"; rm -f "$tmp/out";;
22073 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022074 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022075 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022076
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022077
22078 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22079echo "$as_me: executing $ac_file commands" >&6;}
22080 ;;
22081 esac
22082
22083
22084 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022085 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22086 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22087 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22088 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22089 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22090 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22091 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22092 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22093 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22094 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022095
22096 esac
22097done # for ac_tag
22098
John Criswell451f67f2003-10-16 01:45:35 +000022099
22100{ (exit 0); exit 0; }
22101_ACEOF
22102chmod +x $CONFIG_STATUS
22103ac_clean_files=$ac_clean_files_save
22104
22105
22106# configure is writing to config.log, and then calls config.status.
22107# config.status does its own redirection, appending to config.log.
22108# Unfortunately, on DOS this fails, as config.log is still kept open
22109# by configure, so config.status won't be able to write to it; its
22110# output is simply discarded. So we exec the FD to /dev/null,
22111# effectively closing config.log, so it can be properly (re)opened and
22112# appended to by config.status. When coming back to configure, we
22113# need to make the FD available again.
22114if test "$no_create" != yes; then
22115 ac_cs_success=:
22116 ac_config_status_args=
22117 test "$silent" = yes &&
22118 ac_config_status_args="$ac_config_status_args --quiet"
22119 exec 5>/dev/null
22120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22121 exec 5>>config.log
22122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22123 # would make configure fail if this is the last instruction.
22124 $ac_cs_success || { (exit 1); exit 1; }
22125fi
22126
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022127#
22128# CONFIG_SUBDIRS section.
22129#
22130if test "$no_recursion" != yes; then
22131
22132 # Remove --cache-file and --srcdir arguments so they do not pile up.
22133 ac_sub_configure_args=
22134 ac_prev=
22135 eval "set x $ac_configure_args"
22136 shift
22137 for ac_arg
22138 do
22139 if test -n "$ac_prev"; then
22140 ac_prev=
22141 continue
22142 fi
22143 case $ac_arg in
22144 -cache-file | --cache-file | --cache-fil | --cache-fi \
22145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22146 ac_prev=cache_file ;;
22147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22149 | --c=*)
22150 ;;
22151 --config-cache | -C)
22152 ;;
22153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22154 ac_prev=srcdir ;;
22155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22156 ;;
22157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22158 ac_prev=prefix ;;
22159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22160 ;;
22161 *)
22162 case $ac_arg in
22163 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22164 esac
22165 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22166 esac
22167 done
22168
22169 # Always prepend --prefix to ensure using the same prefix
22170 # in subdir configurations.
22171 ac_arg="--prefix=$prefix"
22172 case $ac_arg in
22173 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22174 esac
22175 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22176
22177 ac_popdir=`pwd`
22178 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22179
22180 # Do not complain, so a configure script can configure whichever
22181 # parts of a large source tree are present.
22182 test -d "$srcdir/$ac_dir" || continue
22183
22184 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22185 echo "$as_me:$LINENO: $ac_msg" >&5
22186 echo "$ac_msg" >&6
22187 { as_dir="$ac_dir"
22188 case $as_dir in #(
22189 -*) as_dir=./$as_dir;;
22190 esac
22191 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22192 as_dirs=
22193 while :; do
22194 case $as_dir in #(
22195 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22196 *) as_qdir=$as_dir;;
22197 esac
22198 as_dirs="'$as_qdir' $as_dirs"
22199 as_dir=`$as_dirname -- "$as_dir" ||
22200$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201 X"$as_dir" : 'X\(//\)[^/]' \| \
22202 X"$as_dir" : 'X\(//\)$' \| \
22203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22204echo X"$as_dir" |
22205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22206 s//\1/
22207 q
22208 }
22209 /^X\(\/\/\)[^/].*/{
22210 s//\1/
22211 q
22212 }
22213 /^X\(\/\/\)$/{
22214 s//\1/
22215 q
22216 }
22217 /^X\(\/\).*/{
22218 s//\1/
22219 q
22220 }
22221 s/.*/./; q'`
22222 test -d "$as_dir" && break
22223 done
22224 test -z "$as_dirs" || eval "mkdir $as_dirs"
22225 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22226echo "$as_me: error: cannot create directory $as_dir" >&2;}
22227 { (exit 1); exit 1; }; }; }
22228 ac_builddir=.
22229
22230case "$ac_dir" in
22231.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22232*)
22233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22234 # A ".." for each directory in $ac_dir_suffix.
22235 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22236 case $ac_top_builddir_sub in
22237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22239 esac ;;
22240esac
22241ac_abs_top_builddir=$ac_pwd
22242ac_abs_builddir=$ac_pwd$ac_dir_suffix
22243# for backward compatibility:
22244ac_top_builddir=$ac_top_build_prefix
22245
22246case $srcdir in
22247 .) # We are building in place.
22248 ac_srcdir=.
22249 ac_top_srcdir=$ac_top_builddir_sub
22250 ac_abs_top_srcdir=$ac_pwd ;;
22251 [\\/]* | ?:[\\/]* ) # Absolute name.
22252 ac_srcdir=$srcdir$ac_dir_suffix;
22253 ac_top_srcdir=$srcdir
22254 ac_abs_top_srcdir=$srcdir ;;
22255 *) # Relative name.
22256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22257 ac_top_srcdir=$ac_top_build_prefix$srcdir
22258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22259esac
22260ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22261
22262
22263 cd "$ac_dir"
22264
22265 # Check for guested configure; otherwise get Cygnus style configure.
22266 if test -f "$ac_srcdir/configure.gnu"; then
22267 ac_sub_configure=$ac_srcdir/configure.gnu
22268 elif test -f "$ac_srcdir/configure"; then
22269 ac_sub_configure=$ac_srcdir/configure
22270 elif test -f "$ac_srcdir/configure.in"; then
22271 # This should be Cygnus configure.
22272 ac_sub_configure=$ac_aux_dir/configure
22273 else
22274 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22275echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22276 ac_sub_configure=
22277 fi
22278
22279 # The recursion is here.
22280 if test -n "$ac_sub_configure"; then
22281 # Make the cache file name correct relative to the subdirectory.
22282 case $cache_file in
22283 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22284 *) # Relative name.
22285 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22286 esac
22287
22288 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22289echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22290 # The eval makes quoting arguments work.
22291 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22292 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22293 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22294echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22295 { (exit 1); exit 1; }; }
22296 fi
22297
22298 cd "$ac_popdir"
22299 done
22300fi
22301